Android - Adb Push ... Permission Denied


Answer :

Edit: I found a work-around: AirDroid allows me to upload the file, but the permissions on the file are set to this:

-rw------- 

Performing the following commands solves this problem (from Windows 7 command prompt).

>adb shell # su # chmod 777 /data/data/com.me.app/databases/data.db 

The usual approach, which doesn't require any additional apps:

  1. Push to /data/tmp/;

  2. Copy on the device using adb shell, using cp if it's available on your device or cat if it isn't.

     > adb push data.db /data/tmp/data.db  > adb shell  # su # or run-as com.me.app  # cp /data/tmp/data.db /data/data/com.me.app/databases/data.db 

Remembering to change com.me.app to the correct package name for your app.


Comments

Popular posts from this blog

Are Regular VACUUM ANALYZE Still Recommended Under 9.1?

Can Feynman Diagrams Be Used To Represent Any Perturbation Theory?