我最近扎根了我的Droid X,一切似乎都很完美.我做了一些更改build.prop,当我这样做时,adb push build.prop /system/我得到以下错误:failed to copy 'c:\build.prop' to '/system//build.prop': Read-only file system.
我怎样才能解决这个问题?
我刚刚更新了模拟器26.0.3,现在我无法adb root为新创建的模拟器运行命令.
显示的错误如下:
adbd cannot run as root in production builds
我杀了并重新开始adbd像:
adb kill-server
adb devices
Run Code Online (Sandbox Code Playgroud)
没有任何帮助,任何想法?
我尝试了stackoverflow和在线中可用的所有命令和建议,但没有一个起作用
还有很多,但对我没有用
我收到以下错误-以下命令均无效。
$adb root
$adb disable-verity
Run Code Online (Sandbox Code Playgroud)
对于
$adb remount
remount of / failed: Permission denied
remount failed
Run Code Online (Sandbox Code Playgroud)
所以然后我尝试了不同的命令
$ adb shell mount -o rw,remount /system
mount: '/system' not in /proc/mounts
$ adb shell mount -o rw,remount /
'/dev/root' is read-only
$ adb shell mount -o rw,remount -t /dev/block/stl12 system
mount: 'system' not in /proc/mounts
$ adb shell "su 0 mount -o rw,remount /system"
mount: '/system' not in /proc/mounts
$ adb shell
$ su
# mount -o rw,remount …Run Code Online (Sandbox Code Playgroud) 我正在尝试adb root在模拟器上运行命令;这是我连接的唯一设备:
$ adb devices
List of devices attached
emulator-5554 device
Run Code Online (Sandbox Code Playgroud)
但是,我收到以下错误消息:
$ adb root
adbd cannot run as root in production builds
Run Code Online (Sandbox Code Playgroud)
我试过按照这个答案,adb shell su 工作但 adb root 没有,以解决我的问题:
通过设计 adb root 命令仅适用于开发版本(即默认情况下具有 ro.debuggable=1 的 eng 和 userdebug)。或者,您可以使用修改后的 adbd 二进制文件(不检查 ro.debuggable)
但是,我不清楚如何将构建更改为开发构建而不是生产构建?
更新 我发现了一些额外的说明,这让我相信要使其工作,您需要使您的模拟器成为“可写系统”(参见如何在模拟器可写的 AVD 中制作系统分区)。但是,如果我尝试
$ emulator -avd Nexus_5X_API_28 -writable-system
emulator: WARNING: System image is writable
emulator: ERROR: Running multiple emulators with the same AVD is an experimental feature.
Please use -read-only …Run Code Online (Sandbox Code Playgroud)