On Friday, February 24, 2012 5:52:51 AM UTC-5, Sridhar Reddy wrote: >Hi.. Only in emulator we can able to access the db files, but it is not possible on Real devices? How to access the db file on real device?
If you have non-root ADB but your app is debug-able you have to use the run-as command (or apparently as Dianne notes on later version, su) It would be something like adb shell run-as your.package.name /system/bin/sh whatever shell commands you were trying to do if you try the ps command after the run-as command, you should see that there is now a second copy of /system/bin/sh running as uid app_## in addition to the parent copy running as uid 'shell' If you have neither root nor a debug-able app nor the ability to rebuild it as debug-able or with a built-in export capability, you are out of luck. Beware the adb shell on stock devices is primitive - it seems 'permission denied' is the only error message it knows, and it uses it as a synonym for command not found, and just about anything else that can go wrong. -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en