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. Log in to the emulator

 adb -s emulator-5554 shell 

3. permission of application folder and parent folder has been changed

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

4. Still can not get the material outside. Why?

 adb -s emulator-5554 pull /data/data/com.me.myproject 
+12
source share
3 answers

I had the same problem and I did this:

  1. adb shell
  2. run-as com.yourPackageName (not a run-as com.yourPackageName device)
  3. cp 'database/file_you_want.db' '/sdcard/file_you_want.db'
  4. exit
  5. exit (now you will return to the main window of the terminal)
  6. adb pull/sdcard/xx.db
+17
source

This is because your Android debugging device is not rutted.

If you have a physical rooted device or an emulated device, try this earlier to restart ADB as root. Then any command should work:

 adb root 
+9
source

The reason is that the file you want to copy requires root permission. It is better to copy the file to / mnt / sdcard /, where you have the right to interact.

  1. cp <file> /mnt/sdcard/
  2. adb pull /mnt/sdcard/<file>
0
source

Source: https://habr.com/ru/post/1012144/


All Articles