35

Is there any way for me to get and read cookies from my Android Chrome browser?

Thank you.

Cris Lee
  • 351
  • 1
  • 3
  • 3

4 Answers4

52

You can view cookies in Chrome on Android if you connect your Android device to a PC/Mac/laptop via USB. No rooting required. The laptop needs to have Chrome installed. You can then inspect the content on your Android device in Chrome on your laptop by visiting chrome://inspect/#devices

There's a little more to it than that, you need to enable developer mode on your Android device:

Settings -> About Phone -> Build number. Tap build number 7 times.

Then under Settings you will see a new item - "Developer Options".

Within Developer Options enable USB debugging.

If you don't see your connected device listed on your laptop Chrome URL: chrome://inspect/#devices then you might need to install a USB driver. Or disconnect and reconnect device after installing USB driver.

Details here - https://developer.chrome.com/devtools/docs/remote-debugging

Once you can inspect content you can get cookies from the network tab in the same way as you would in Chrome on your laptop.

Note : This doesn't work in inCognitoMode

WesternGun
  • 11,303
  • 6
  • 88
  • 157
Ewen Pearson
  • 621
  • 5
  • 4
17

Follow these steps

1: Go the web page that you want the cookies from.

2: In the URL type the following:

javascript:alert(document.cookie);

Then press ENTER

Just type, DO not PASTE!

Luis Paulo Pinto
  • 5,578
  • 4
  • 21
  • 35
Sid
  • 301
  • 3
  • 4
0

Without an external PC and a cable, but on a rooted device, it is possible to access the cookies database by a tool like SQLight Editor by opening this file:

/data/data/com.android.chrome/app_chrome/Default/Cookies

mountrix
  • 1,126
  • 15
  • 32
0

You could try using the the net-export page chrome://net-export/ . I guess that should work, or at least you can use it to make a .json file, viewing it's contents however, I don't know how to do that