Android - adb push ... Permission denied
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:
Push to
/data/tmp/
;Copy on the device using
adb shell
, usingcp
if it's available on your device orcat
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.