herbertD
herbertD

Reputation: 10965

Can not access android /data folder

I want to get the /data/data/packagename/databases/test.db, but i can not get it "Permission denied".

I use adb shell to access data folder, it shows:

$ sudo adb shell
$ cd data
$ ls
ls: can't open '.': Permission denied

why?? I can access /system folder

Upvotes: 1

Views: 3361

Answers (2)

Mehdi Boukhechba
Mehdi Boukhechba

Reputation: 2581

First your phone should be rooted, you can use https://www.kingoapp.com/ for that. Next, you should modify the permission of your app access, to do so you have to :

  1. Locate your adb.exe folder (you can find it in your sdk folders)

  2. Right click

  3. open cmd here

  4. Type:

    adb shell su chmod 777 /data /data/data /data/data/yourapp

Good luck

Upvotes: 0

Samuh
Samuh

Reputation: 36484

You need to be a root user to do that.

Upvotes: 1

Related Questions