0

I'm trying to pull a file from my android device using the adb shell. My android is rooted.

If I start adb.exe and execute the command:

adb pull /data/data/com.android.providers.settings/databases/settings.db c:\temp

I receive the error: "failed to copy, remote permission denied"

So, I then I follow the steps:

adb shell -> OK
shell@acer_z200:/ $ su -> OK
root@acer_z200:/ # adb pull /data/data/com.android.providers.settings/databases/settings.db c:\temp

And it gives the error error: device not found. So, how in gods heaven I'm able to access the shell and root, and not being connected to the device?

I'm also able to list the files within the folder:

root@acer_z200:/ # ls /data/data/com.android.providers.settings/databases/

So..the device was not found yet I can list the files?

Linesofcode
  • 5,327
  • 13
  • 62
  • 116
  • Ensure that some instance is running using the command `adb devices -l` – MNS Mar 27 '17 at 11:09
  • @MNS yes, it appears my mobile phone. I have already restarted the phone; changed the USB port; restarted the adb using `adb kill-server` but the problem persists – Linesofcode Mar 27 '17 at 11:11

1 Answers1

0

Solved.

After successfully connect to device with su, I had to open another shell and execute the adb pull.

copy db file with adb pull results in 'permission denied' error

Community
  • 1
  • 1
Linesofcode
  • 5,327
  • 13
  • 62
  • 116