Click here to Skip to main content
15,889,315 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
About Android adb shell

When i am inserting the data that will insert successfully also they are displyed in
file explorer>data>data>package>database

But when i use adb shell that time display no such table available:
i don't know what happen
please help me...
Posted

1 solution

It sounds like you want to access your apps data directory from adb shell. It's nt normally accessible since your files are generally not world readable, however you can run the adb shell as your pgram's user if your app is set as debuggable

At the ADB shell, just type:
run-as com.your.package.name

Now any commands you type after this will be executed as your app and you should be able to get into that directory and view/edit files.

Source: http://denniskubes.com/2012/09/25/read-android-data-folder-without-rooting/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900