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

对我有用

adb remount

对我来说,这似乎是最简单的解决方案。

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

对Jan Bergström的回答再补充一点:因为Android是基于Linux的系统,Linux中的路径包含正斜杠(../),在使用push命令时,使用“/”来定义Android设备中的目标路径。

例如:adb push C:\Users\admin\Desktop\1.JPG sdcard/pictures/

注意这里,向后斜杠用来定义从windows PC推送的文件的源路径,向前斜杠用来定义目标路径,因为Android是基于Linux的系统。您不必作为根用户来使用这个命令,而且它在生产设备上工作得非常好。

我只需要这个:

su -c "mount -o rw,remount /system"