Home | History | Annotate | Download | only in releasetools

Lines Matching refs:Recovery

179     i = cls.ITEMS.get("system/recovery-from-boot.p", None)
181 i = cls.ITEMS.get("system/etc/install-recovery.sh", None)
312 """Generate a binary patch that creates the recovery image starting
317 patching and install the new recovery image.
328 path = os.path.join(input_tmp, "SYSTEM", "etc", "recovery-resource.dat")
332 bonus_args = "-b /system/etc/recovery-resource.dat"
338 common.ZipWriteStr(output_zip, "recovery/recovery-from-boot.p", patch)
339 Item.Get("system/recovery-from-boot.p", dir=False)
342 recovery_type, recovery_device = common.GetTypeAndDevice("/recovery", OPTIONS.info_dict)
346 log -t recovery "Installing new recovery image"
347 applypatch %(bonus_args)s %(boot_type)s:%(boot_device)s:%(boot_size)d:%(boot_sha1)s %(recovery_type)s:%(recovery_device)s %(recovery_sha1)s %(recovery_size)d %(boot_sha1)s:/system/recovery-from-boot.p
349 log -t recovery "Recovery image already installed"
361 common.ZipWriteStr(output_zip, "recovery/etc/install-recovery.sh", sh)
362 return Item.Get("system/etc/install-recovery.sh", dir=False)
406 script.UnpackPackageDir("recovery", "/system")
414 recovery_img = common.GetBootableImage("recovery.img", "recovery.img",
415 OPTIONS.input_tmp, "RECOVERY")
553 "/tmp/recovery.img", "recovery.img", OPTIONS.source_tmp, "RECOVERY",
556 "/tmp/recovery.img", "recovery.img", OPTIONS.target_tmp, "RECOVERY")
617 ["/system/recovery.img"])
655 # Recovery is generated as a patch using both the boot image
656 # (which contains the same linux kernel as recovery) and the file
657 # /system/etc/recovery-resource.dat (which contains all the images
658 # used in the recovery UI) as sources. This lets us minimize the
661 # For older builds where recovery-resource.dat is not present, we
666 script.DeleteFiles(["/system/recovery-from-boot.p",
667 "/system/etc/install-recovery.sh"])
668 print "recovery image changed; including as patch from boot."
670 print "recovery image unchanged; skipping."
700 script.Print("Unpacking new recovery...")
701 script.UnpackPackageDir("recovery", "/system")