在System_ext分区上更新应用程序Android AOSP
我正在学习AOSP,并且已经制作了Service.APK并将其放置在System_ext/Priv-App分区中。我第一次构建了一个完整的Android映像,包括我的服务和闪光灯到设备,并且可以按预期工作。但是现在,当我想更新testService.apk时,我无法通过$ adb推动将其推入System_ext分区,日志说:
无法将'testService.apk''复制到'/system_ext/priv-app/testservice/testservice .apk':无法创建文件:只读文件系统
,我也尝试使用$ adb安装结果仍然失败: 失败[install_failed_invalid_apk:软件包com.testservice是一个持久的应用程序。持续的应用程序无法更新。]
I'm learning about AOSP and I've made a Service.apk and placed it in the system_ext/priv-app partition. For the first time, I've to build a full Android image including my service and flash to the device and it works as expected. But now when I want to update my TestService.apk I can't push it into the system_ext partition via $adb push, the log says:
failed to copy 'TestService.apk' to '/system_ext/priv-app/TestService/TestService.apk': couldn't create file: Read-only file system
And I've also tried to use $adb install the result still failed:
Failure [INSTALL_FAILED_INVALID_APK: Package com.testservice is a persistent app. Persistent apps are not updateable.]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论