-4

I want to get the browser cookies from the android application programmatically.

I got a link for one application (.apk) through one customer(i.e. website). The link will redirect me to the server(i.e., the data base of the owner of .apk file). Then the owner will check whether the customer is registered. If registered, It'll allow me to download the .apk file and the server will also send the Customer Id to the cookies. I want to get the Customer Id from the mobile browser cookies using program.

Sergiu Dumitriu
  • 11,455
  • 3
  • 39
  • 62
Helina D
  • 3
  • 3

2 Answers2

0

You could do some kind of xss. Depending on your website configuration if you set your cookies for all subdomains you could add a new subdomain let's call it xss.example.com where you read the cookies and put them in GET args pointing back to an URL which is caught by your app.

rekire
  • 47,260
  • 30
  • 167
  • 264
0

The cookies, for the default android browser, are stored in

/data/data/com.android.browser/databases/webview.db.

The problem is that other applications, for security reasons, do not have access to files that do not belong to them, like the database file.

In order for what you are asking to be possible, the Browser application would have to implement this functionality.

Dixit Patel
  • 3,190
  • 1
  • 24
  • 36