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:
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:
Copy on the device using
adb shell, using
cpif it's available on your device or
catif 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.