我正在尝试为运行Android 8.1的msm8998主板实现OTA功能。我已经生成了OTA文件,并遵循了标准的处理方式,
我遇到了两个问题,解决任何一个都会解决问题:
...
Finding update package...
I:Update location: /data/update.zip
Opening update package...
E:Failed to mount /data: Invalid argument
E:Unable to open '/data/update.zip': No such file or directory
E:failed to map file
W:failed to read uncrypt status: No such file or directory
W:Failed to read /sys/class/thermal/thermal_zone28/temp: Invalid argument
W:Failed to read /sys/class/thermal/thermal_zone27/temp: Invalid argument
I:current maximum temperature: 44756
I:/data/update.zip
I:0
I:time_total: 0
I:retry: 0
I:temperature_start: 44814
I:temperature_end: 44756
I:temperature_max: 44814
I:
Installation aborted.
结果您必须使用RecoverySystem.installPackage(...)
方法,并且OTA文件位于/data/
中。
[以前,我曾尝试过RecoverySystem.installPackage(...)
方法,但是在/sdcard/
中使用了文件,并且可以通过自己设置/cache/recovery/command
并使用/data/
来单独进行
[使用RecoverySystem.installPackage(...
时)和/data/
中的文件,似乎uncrypt
在重新启动之前就已在其上运行,这使得恢复可访问该更新。