Failed to copy to /data using adb push

test.im.09

Member
Jan 8, 2012
25
0
0
Hi,

I am trying to push

Code:
$ adb push androidvncserver /data/androidvncserver
failed to copy 'androidvncserver' to '/data/androidvncserver': Permission denied
When I do 'su' in 'adb shell', i get a root prompt , that means I have rooted my device, right?

Code:
$ adb shell
$ su
#
If so, how can I push to /data?

Thank you.
 

Jack_R1

Senior Member
Aug 9, 2009
4,365
962
0
Your default shell is secured - means, when you're executing ADB command without executing something through SU, you're going through the regular permissions.
To enable insecure boot, set ro.secure to 0 in your build.prop. I'm not sure if it's enough, though, or if you need a kernel compiled with security off to take full advantage of insecure adb commands.

You can push the file to sdcard, enter shell, enter su, and in root shell copy the file where you want it to be.

And you're posting in the wrong section. There is Q&A for questions, please move there.