0

I have a Galaxy Ace with access to super user and I can not see the contents of the file, I urgently need to access internal database of mobile

enter image description here

What can I do?

TuGordoBello
  • 4,350
  • 9
  • 52
  • 78

1 Answers1

0

You can list all files in the root directory using:

adb shell "run-as com.your.package ls -l"

To copy a file over:

adb shell "run-as com.your.package cat relative/path > /sdcard/some_name" adb pull /sdcard/some_name

Smittey
  • 2,475
  • 10
  • 28
  • 35
  • ``zhelon@zhelon-Lenovo-IdeaPad-Z400:~$ adb shell "run-as com.app cat relative/path > /sdcard/some_name" relative/path: No such file or directory `` – TuGordoBello Mar 26 '14 at 14:25
  • @zhelon: Substitute in the full path to the file for `relative/path` and an appropriate output location (`/sdcard` may not exist on all devices) – CommonsWare Mar 26 '14 at 14:33
  • Yeah sorry, I just left a generic file path in there. @CommonsWare is right, replace it with your own file path! – Smittey Mar 26 '14 at 14:40
  • Note this will only work on a debug apk. Also there was an early 4.something android version where some security changes accidentally broke it until the next version. – Chris Stratton Mar 26 '14 at 15:16