我最近安装了我的Droid X,一切似乎都很完美。我做了一些改变来构建。prop,当我做adb push build时。prop /system/我得到以下错误:未能复制'c:\build。支持“到”/system//build。prop':只读文件系统。
我该如何解决这个问题?
我最近安装了我的Droid X,一切似乎都很完美。我做了一些改变来构建。prop,当我做adb push build时。prop /system/我得到以下错误:未能复制'c:\build。支持“到”/system//build。prop':只读文件系统。
我该如何解决这个问题?
当前回答
This worked for me
#Mount as ReadOnly
su -c "mount -o rw,remount /system"
# Change Permission for file
su -c "chmod 777 /system/build.prop"
#Edit the file to add the property
su -c "busybox vi /system/build.prop"
# Add now
service.adb.tcp.port=5678
# Reset old permissions
su -c "chmod 644 /system/build.prop"
# Mount as readonly again once done
su -c "mount -o ro,remount /system"
其他回答
有时你会得到错误,因为目标位置在电话不存在。例如,一些android手机的外部存储位置是/storage/emulated/legacy而不是/storage/emulated/0。
我认为最安全的方法是将/system重新挂载为可读写,使用:
mount -o remount,rw /system
完成后,将其重新挂载为只读:
mount -o remount,ro /system
我只需要这个:
su -c "mount -o rw,remount /system"
在手机上打开终端模拟器: 然后
adb shell
在该守护进程启动之后
su
mount -o rw,remount /mnt/sdcard
那么只读转换为读写。
并不是所有的手机和安卓版本都安装了相同的东西。 重新安装时限制选项是最好的。
简单地重新挂载为rw(读/写):
# mount -o rw,remount /system
一旦你完成了修改,重新挂载到ro(只读):
# mount -o ro,remount /system