Home | History | Annotate | Download | only in releasetools

Lines Matching refs:recovery

56       Generate a 'two-step' OTA package, where recovery is updated
58 using the new recovery (new kernel, etc.).
214 i = cls.ITEMS.get("system/recovery-from-boot.p", None)
216 i = cls.ITEMS.get("system/etc/install-recovery.sh", None)
355 """Generate a binary patch that creates the recovery image starting
360 patching and install the new recovery image.
371 path = os.path.join(input_tmp, "SYSTEM", "etc", "recovery-resource.dat")
375 bonus_args = "-b /system/etc/recovery-resource.dat"
381 common.ZipWriteStr(output_zip, "recovery/recovery-from-boot.p", patch)
382 Item.Get("system/recovery-from-boot.p", dir=False)
385 recovery_type, recovery_device = common.GetTypeAndDevice("/recovery", OPTIONS.info_dict)
389 log -t recovery "Installing new recovery image"
390 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
392 log -t recovery "Recovery image already installed"
404 common.ZipWriteStr(output_zip, "recovery/etc/install-recovery.sh", sh)
405 return Item.Get("system/etc/install-recovery.sh", dir=False)
443 # write recovery image to boot partition
445 # reboot to boot partition and restart recovery
447 # write recovery image to recovery partition
449 # reboot to recovery partition and restart recovery
455 # set up system to update recovery partition on first boot
456 # complete script normally (allow recovery to mark itself finished and reboot)
458 recovery.img", "recovery.img",
459 OPTIONS.input_tmp, "RECOVERY")
467 common.ZipWriteStr(output_zip, "recovery.img", recovery_img.data)
471 script.WriteRawImage("/recovery", "recovery.img")
474 reboot_now("%(bcb_dev)s", "recovery");
490 script.UnpackPackageDir("recovery", "/system")
523 script.WriteRawImage("/boot", "recovery.img")
686 "/tmp/recovery.img", "recovery.img", OPTIONS.source_tmp, "RECOVERY",
689 "/tmp/recovery.img", "recovery.img", OPTIONS.target_tmp, "RECOVERY")
707 # write recovery image to boot partition
709 # reboot to boot partition and restart recovery
711 # write recovery image to recovery partition
713 # reboot to recovery partition and restart recovery
719 # set up system to update recovery partition on first boot
720 # complete script normally (allow recovery to mark itself finished and reboot)
729 common.ZipWriteStr(output_zip, "recovery.img", target_recovery.data)
734 script.WriteRawImage("/recovery", "recovery.img")
737 reboot_now("%(bcb_dev)s", "recovery");
781 script.WriteRawImage("/boot", "recovery.img")
806 ["/system/recovery.img"])
847 # Recovery is generated as a patch using both the boot image
848 # (which contains the same linux kernel as recovery) and the file
849 # /system/etc/recovery-resource.dat (which contains all the images
850 # used in the recovery UI) as sources. This lets us minimize the
853 # For older builds where recovery-resource.dat is not present, we
858 script.DeleteFiles(["/system/recovery-from-boot.p",
859 "/system/etc/install-recovery.sh"])
860 print "recovery image changed; including as patch from boot."
862 print "recovery image unchanged; skipping."
892 script.Print("Unpacking new recovery...")
893 script.UnpackPackageDir("recovery", "/system")