• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Help Unable to push file using adb push

Coolprab

Lurker
I am unable to copy file from desktop to my android device using
Adb push command. I am able to copy the db file to sdcard0 folder but not the /data/data partition.

My device is not rooted .is rooting device the only option to achieve this.
My device is a note 2.

I have tried to use adb shell run-as command but get a package unknown error.

Regards
 
I am unable to copy file from desktop to my android device using
Adb push command. I am able to copy the db file to sdcard0 folder but not the /data/data partition.

My device is not rooted .is rooting device the only option to achieve this.
My device is a note 2.

I have tried to use adb shell run-as command but get a package unknown error.

Regards
If you got that kind of error you're trying to send a file that's incompatible with your Android version.

It's essentially not much different from the error you get trying to install a CM12 theme on a CM11 ROM. "there was a problem parsing the package".

Try adb using su (if you're rooted). You'll see a prompt from your su manager or OS debugger. Acknowledge the hardware print and/or the su prompt.

Make sure when you use cmd with adb, you've held Shift + Right click and selected " Open command window here".
 
Welcome to our AndroidForums, @Coolprab :).

As you've discovered, the /data/data area is protected and yes, you won't be able to update it without having root privileges.

In fact, even if you were rooted, you'd likely have to push the file to your "SD card" area first and then start-up an adb shell, invoke su, and then copy/move/cat the file to the desired location in the /data/data area.

Cheers!
 
Back
Top Bottom