Where are cookies stored in my own browser for Android?

Basically, I would like to know if there is a specific folder that I can look into and copy / paste cookie data. I tried looking around, but to no avail. Google didn't help either.

If they are not stored in a folder accessible directly, is there any other way to get to them?

I am using Android version 2.2 (Froyo) if this helps. THANKS: D

+5
source share
3 answers

For security reasons, each application stores its data in a private sandbox / folder, while other applications cannot access it. See Cookie Management Details in Webview http://developer.android.com/reference/android/webkit/WebView.html

+7
source

We came across a specific scenario where we wanted to see how our web cookies were repeated with the device. We were able to view a database of cookies that are stored using the "adb shell" on an emulated device. After starting the shell, we were able to track cookies in the database using the following command.

sqlite3 /data/data/com.android.browser/databases/webviewCookiesChromium.db 

and select statement:

 select * from cookies; 

The list of columns can be viewed using the following command:

 pragma table_info(cookies); 
+6
source

If you use WebView in an application to display the page in question, you can find cookies in the db file:

 /data/data/your.apps.package.name/databases/webview.db 

Once you have this db, you can do the same from Mike's answer to check the cookies.

 select * from cookies 
+1
source

Source: https://habr.com/ru/post/989288/


All Articles