Skip to content

Commit

Permalink
ota: Include copies of the recovery scripts even if shipping in block…
Browse files Browse the repository at this point in the history
… mode

Change-Id: If53fdf90e418485afd1dd5a21f86dce6c975a9dc
  • Loading branch information
rmcc authored and Flinny committed Sep 8, 2016
1 parent bad382a commit b43f965
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/releasetools/ota_from_target_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,11 +628,17 @@ def WriteFullOTAPackage(input_zip, output_zip):

device_specific.FullOTA_InstallBegin()

if block_based:
common.ZipWriteStr(output_zip, "system/bin/otasigcheck.sh",
""+input_zip.read("SYSTEM/bin/otasigcheck.sh"))
script.Mount("/data")
script.ValidateSignatures("data")
script.Unmount("/data")

if OPTIONS.backuptool:
if block_based:
common.ZipWriteStr(output_zip, "system/bin/backuptool.sh",
""+input_zip.read("SYSTEM/bin/backuptool.sh"))
script.Mount("/system")
script.RunBackup("backup")
script.Unmount("/system")
Expand Down

0 comments on commit b43f965

Please sign in to comment.