I just spent a little while trying to figure out why I was getting ‘push: permission denied’ when running:
1 |
adb shell push c:/file.txt /sdcard/file.txt |
I did some googling to no avail.
Then I remembered that pushing and pulling is not done in the shell, it’s just done with adb.
Thus, it should have been:
1 |
adb push c:/file.txt /sdcard/file.txt |
Which succeeds. I know it’s a silly error to make, but I thought I’d share this in case anybody else uses the adb shell push instead of regular adb push and can’t figure out why permission is denied.
Leave Your Response