C:\Users\User>adb push X:\work\projectname\alps\out\target\product\hd\system\framework\services.jar system/framework
adb: error: failed to copy 'X:\work\projectnamealps\out\target\product\hd\system\framework\services.jar' to 'system/framework/services.jar': remote couldn't create file: Read-only file system
X:\work\projectname\alps\out\target\product\hd\system\framework\services.jar: 0 files pushed. 6.9 MB/s (65528 bytes in 0.009s)
C:\Users\User>adb remount
remount of /system failed: Read-only file system
remount of /vendor failed: Read-only file system
remount failed
或是:
remount of the / superblock failed: Permission denied
Android P 版本后 google 启用 avb(Android Verified Boot)2.0,verified boot and DM-verity 默认启用策略发生了变化。
多调用一次 "adb disable-verity" 就行。
解决方案可以试试:
1. adb root
2. adb disable-verity
3. adb reboot
4. adb root
5. adb remount