OTA更新失败,无法挂载/ data /分区

问题描述 投票:0回答:1

我正在尝试为运行Android 8.1的msm8998主板实现OTA功能。我已经生成了OTA文件,并遵循了标准的处理方式,

我遇到了两个问题,解决任何一个都会解决问题:

  1. OTA的大小大于/ cache,因此,即使恢复可以挂载/ cache,映像也无法容纳在那里。我将如何增加/ cache的大小,这样做是个好主意吗?
  2. 如果将OTA zip放在/ data /或/ sdcard /中,则在恢复过程中会出现错误,似乎无法挂载它。我将如何使/ data /可挂载?

...

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.
android android-source
1个回答
0
投票

结果您必须使用RecoverySystem.installPackage(...)方法,并且OTA文件位于/data/中。

[以前,我曾尝试过RecoverySystem.installPackage(...)方法,但是在/sdcard/中使用了文件,并且可以通过自己设置/cache/recovery/command并使用/data/来单独进行

[使用RecoverySystem.installPackage(...时)和/data/中的文件,似乎uncrypt在重新启动之前就已在其上运行,这使得恢复可访问该更新。

© www.soinside.com 2019 - 2024. All rights reserved.