Skip to content

Commit

Permalink
Remove Recovery
Browse files Browse the repository at this point in the history
  • Loading branch information
mrbirdman authored and rhcp committed Jan 7, 2012
1 parent 1af989d commit fe401f6
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tools/releasetools/ota_from_target_files
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,6 @@ def MakeRecoveryPatch(output_zip, recovery_img, boot_img):

d = common.Difference(recovery_img, boot_img)
_, _, patch = d.ComputePatch()
common.ZipWriteStr(output_zip, "recovery/recovery-from-boot.p", patch)
Item.Get("system/recovery-from-boot.p", dir=False)

boot_type, boot_device = common.GetTypeAndDevice("/boot", OPTIONS.info_dict)
recovery_type, recovery_device = common.GetTypeAndDevice("/recovery", OPTIONS.info_dict)
Expand Down Expand Up @@ -390,7 +388,6 @@ def WriteFullOTAPackage(input_zip, output_zip):

script.FormatPartition("/system")
script.Mount("/system")
script.UnpackPackageDir("recovery", "/system")
script.UnpackPackageDir("system", "/system")

(symlinks, retouch_files) = CopySystemFiles(input_zip, output_zip)
Expand All @@ -402,10 +399,6 @@ def WriteFullOTAPackage(input_zip, output_zip):

boot_img = common.GetBootableImage("boot.img", "boot.img",
OPTIONS.input_tmp, "BOOT")
recovery_img = common.GetBootableImage("recovery.img", "recovery.img",
OPTIONS.input_tmp, "RECOVERY")
MakeRecoveryPatch(output_zip, recovery_img, boot_img)

Item.GetMetadata(input_zip)
Item.Get("system").SetPermissions(script)

Expand Down

0 comments on commit fe401f6

Please sign in to comment.