我最近安装了我的Droid X,一切似乎都很完美。我做了一些改变来构建。prop,当我做adb push build时。prop /system/我得到以下错误:未能复制'c:\build。支持“到”/system//build。prop':只读文件系统。

我该如何解决这个问题?


当前回答

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

对我有用

其他回答

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

对我有用

如果在复制只读文件时失败,你可以尝试在根目录中定位原始文件,并使用根文本编辑器(最好是)RB文本编辑器修改它,它带有ROM Toolbox应用程序。

在我的三星galaxy mini S5570上(在手机上扎根后):

首先,作为根,我跑:

systemctl start adb

作为普通用户:

adb shell 
su 

在触摸屏上授予root权限

mount 

列出我们拥有的所有挂载点,我们可以看到,在我的例子中,/dev/stl12被挂载在/system上为ro(仅准备好),所以我们只需要做:

mount -o rw,remount /dev/stl12 /system
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"

在命令提示符上尝试以下命令:

>adb remount
>adb push framework-res_old.apk /system/framework-res.apk