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

后端 未结 6 2048
青春惊慌失措
青春惊慌失措 2020-11-28 19:37

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

相关标签:
6条回答
  • 2020-11-28 20:22

    Try

    adb root
    adb remount
    

    to start the adb demon as root and ensure partitions are mounted in read-write mode (the essential part is adb root). After pushing, revoke root permissions again using:

    adb unroot
    
    0 讨论(0)
  • 2020-11-28 20:24

    Some newer builds require the following additional adb commands to be run first

    adb root
    adb disable-verity
    adb reboot
    

    Then

    adb root
    adb remount
    
    0 讨论(0)
  • 2020-11-28 20:24

    you can use:

    adb shell su -c "your command here"
    

    only rooted devices with su works.

    0 讨论(0)
  • 2020-11-28 20:31

    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

    0 讨论(0)
  • 2020-11-28 20:36

    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.

    0 讨论(0)
  • 2020-11-28 20:39
    @echo off
    color 0B
    echo =============================================================================
    echo.
    echo              ClockworkMod Recovery for SAMSUNG GALAXY SIII E210L
    echo.
    echo                  ClockworkMod Recovery (v6.0.1.2 Touch)
    echo.
    echo     ¡ô¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¡ô
    echo     ¨U                                                                  ¨U
    echo     ¨U SAMSUNG GALAXY SIII E210L                                        ¨U
    echo     ¡ô¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¨T¡ô
    echo.
    echo  1) (Settings\Developer options©¥ USB debugging)
    echo.
    echo  2) CWM SAMSUNG GALAXY SIII E210L 
    echo.
    echo  3) THANK!!!!!!
    echo.
    echo =============================================================================
    echo                           ARE YOU READY? GO! ¡·¡·¡·
    @pause
    echo.
    echo adb...
    adb.exe kill-server
    adb.exe wait-for-device
    echo wiat¸!
    echo.
    echo conect...
    adb.exe push IMG /data/local/tmp/
    adb.exe shell su -c "dd if=/data/local/tmp/GANGSTAR-VEGAS-1.3.0-APK-Andropalace.net.apk of=/mnt/sdcard/Android/GANGSTAR-VEGAS-1.3.0-APK-Andropalace.net.apk
    adb.exe shell su -c "rm /data/local/tmp/bootloader.img"
    adb.exe shell su -c "rm /data/local/tmp/recovery.img"
    
    
    echo ===============================================================
    echo     ClockworkMod Recovery!
    echo.
    @pause
    
    0 讨论(0)
提交回复
热议问题