前提
在手机root和remount成功后执行adb push 电脑文件路径 手机文件路径。
C:\Users\yi>adb root
* daemon not running; starting now at tcp:5037
* daemon started successfully
restarting adbd as root
C:\Users\yi>adb remount
remount succeeded
报错
C:\Users\yi>adb push D:\TranSetting\MtkTelecom.apk \system\priv-app\MtkTelecom
adb: error: failed to copy 'D:\TranSetting\MtkTelecom.apk' to '\system\priv-app\MtkTelecom': remote couldn't create file: Read-only file system
D:\TranSetting\MtkTelecom.apk: 1 file pushed, 0 skipped. 157.4 MB/s (14830520 bytes in 0.090s)
避坑
开始报这个错我一脸懵逼,为什么都remount成功了还是提示read-only,后来突然想起是不是文件路径格式问题,然后用下面的命令果然成功了。
C:\Users\yi>adb push D:\TranSetting\MtkTelecom.apk /system/priv-app/MtkTelecom
D:\TranSetting\MtkTelecom.apk: 1 file pushed, 0 skipped. 181.6 MB/s (14830520 bytes in 0.078s)
看到区别了吧,就是把’/‘换成了’',这么一个小问题困扰了我好久,希望发出来对大家有帮助。