我最近安装了我的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"

其他回答

mount -o rw,remount /dev/stl12 /system

对我有用

并不是所有的手机和安卓版本都安装了相同的东西。 重新安装时限制选项是最好的。

简单地重新挂载为rw(读/写):

# mount -o rw,remount /system

一旦你完成了修改,重新挂载到ro(只读):

# mount -o ro,remount /system

同样,必须提取并重新打包initrc。使用mount /system的代码编辑init文件

这是从一个Android论坛得到的,我在那里问了同样的问题。希望这能帮助到其他人。

在手机终端模拟器中:

mount -o rw,remount -t yaffs2 /dev/block/mtdblock3 /system

然后在cmd提示符下,执行adb push

在手机上打开终端模拟器: 然后

adb shell

在该守护进程启动之后

su
mount -o rw,remount /mnt/sdcard

那么只读转换为读写。