so, i'm trying to push some files to /system on android device (zte) I've rooted, connected with ADB,
所以,我正在尝试将一些文件推送到android设备(zte)上,我已经与ADB建立了联系,
adb remount -> I get permission denied adb shell su -> I'm able to access shell and create folders etc and edit filesystem
我获得了被拒绝的权限,我可以访问shell并创建文件夹,以及编辑文件系统
(but in shell I can't copy a file from my computer to device)
(但在shell中,我不能将文件从电脑拷贝到设备)
Any help please
任何帮助请
5 个解决方案
#1
87
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.
adb remount和adb root都不会在不修改ro的情况下对生产构建进行工作。安全,但是您仍然可以通过打开shell、请求根权限并输入mount命令来重新加载/系统。
#2
15
use
使用
#adb root
this will start adb demon as root. Then run
这将使adb demon成为根。然后运行
#adb remount
, this will remount device with proper permission
这将在适当的许可下重新安装设备
#3
7
you can use:
您可以使用:
adb shell su -c "your command here"
only rooted devices with su works.
只有带su的根设备才能工作。
#4
3
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://*.com/a/41332316/4962858
对于使用仿真器的人:另一种可能是需要使用-writable-system启动仿真器。在使用标准模拟器时,这是唯一对我有用的东西,该模拟器与android studio打包,带有4.1映像。检查在这里:https://*.com/a/41332316/4962858
#5
-3
@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
#1
87
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.
adb remount和adb root都不会在不修改ro的情况下对生产构建进行工作。安全,但是您仍然可以通过打开shell、请求根权限并输入mount命令来重新加载/系统。
#2
15
use
使用
#adb root
this will start adb demon as root. Then run
这将使adb demon成为根。然后运行
#adb remount
, this will remount device with proper permission
这将在适当的许可下重新安装设备
#3
7
you can use:
您可以使用:
adb shell su -c "your command here"
only rooted devices with su works.
只有带su的根设备才能工作。
#4
3
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://*.com/a/41332316/4962858
对于使用仿真器的人:另一种可能是需要使用-writable-system启动仿真器。在使用标准模拟器时,这是唯一对我有用的东西,该模拟器与android studio打包,带有4.1映像。检查在这里:https://*.com/a/41332316/4962858
#5
-3
@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