Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adb: error: remote object '/data/data/com.me.myproject' does not exist

1. Added adb path to ~/.bash_profile

export PATH="/Users/myname/Library/Android/sdk/platform-tools:$PATH"

2. Logged in to emulator

adb -s emulator-5554 shell

3. changed permission of the app folder and parent folder

chmod 777 /data/data/com.me.myproject
chmod 777 /data/data

4. Still can not get stuff from outside. Why?

adb -s emulator-5554 pull /data/data/com.me.myproject
like image 385
János Avatar asked Nov 08 '16 13:11

János


1 Answers

I had the same problem and I did this:

  1. adb shell
  2. run-as com.yourPackageName (not rooted device)
  3. cp 'database/file_you_want.db' '/sdcard/file_you_want.db'
  4. exit
  5. exit (now you will be back to main terminal window)
  6. adb pull /sdcard/xx.db
like image 180
oscarthecat Avatar answered Sep 19 '22 22:09

oscarthecat