我正在玩 AOSP,并尝试应用 OTA 包
1)。我为 Google Pixel 构建了 AOSP 并安装了它
2)。我创建了一个简单的应用程序,它下载 OTA 包,并尝试应用它(它基于这篇文章:http: //jhshi.me/2013/12/13/how-to-apply-downloaded-ota-package/index.html) html )
我在打电话
RecoverySystem.installPackage(getContext(), file);
,它让我
java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.os.IRecoverySystem.setupBcb(java.lang.String)' on a null object reference
at android.os.RecoverySystem.setupBcb(RecoverySystem.java:895)
at android.os.RecoverySystem.installPackage(RecoverySystem.java:496)
at android.os.RecoverySystem.installPackage(RecoverySystem.java:421)
谁能指点我如何解决它?