Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

adb remount permission denied, but able to access super user in shell -- android

so, i'm trying to push some files to /system on android device (zte) I've rooted, connected with ADB,

adb remount -> I get permission denied adb shell su -> I'm able to access shell and create folders etc and edit filesystem

(but in shell I can't copy a file from my computer to device)

Any help please

like image 818
IanO.S. Avatar asked Oct 26 '12 15:10

IanO.S.


2 Answers

In case anyone has the same problem in the future:

$ adb shell
$ su
# mount -o rw,remount /system

Both adb remount and adb root don't work on a production build without altering ro.secure, but you can still remount /system by opening a shell, asking for root permissions and typing the mount command.

like image 186
MartinodF Avatar answered Nov 06 '22 22:11

MartinodF


emulator -writable-system

For people using an Emulator: Another possibility is that you need to start the emulator with -writable-system. That was the only thing that worked for me when using the standard emulator packaged with android studio with a 4.1 image. Check here: https://stackoverflow.com/a/41332316/4962858

like image 23
francis duvivier Avatar answered Nov 07 '22 00:11

francis duvivier