Lines Matching refs:script
50 Insert the contents of file at the end of the update script.
207 # set metadata for the files generated by this script.
262 def SetPermissions(self, script):
263 """Append set_perm/set_perm_recursive commands to 'script' to
276 script.SetPermissionsRecursive("/"+item.name, *item.best_subtree)
282 script.SetPermissions("/"+item.name, item.uid, item.gid,
291 script.SetPermissions("/"+item.name, item.uid, item.gid,
343 def AppendAssertions(script, info_dict):
345 script.AssertDevice(device)
353 script that is run from init.rc on first boot to actually do the
360 Returns an Item for the shell script, which must be made
406 script = edify_generator.EdifyGenerator(3, OPTIONS.info_dict)
420 script=script,
428 script.AssertOlderBuild(ts, ts_text)
430 AppendAssertions(script, OPTIONS.info_dict)
434 script.ShowProgress(0.5, 0)
437 script.FormatPartition("/data")
442 script.FormatPartition("/system")
443 script.Mount("/system")
444 script.UnpackPackageDir("recovery", "/system")
445 script.UnpackPackageDir("system", "/system")
448 script.MakeSymlinks(symlinks)
457 Item.Get("system").SetPermissions(script)
461 script.ShowProgress(0.2, 0)
463 script.ShowProgress(0.2, 10)
464 script.WriteRawImage("/boot", "boot.img")
466 script.ShowProgress(0.1, 0)
470 script.AppendExtra(OPTIONS.extra_script)
472 script.UnmountAll()
473 script.AddToZip(input_zip, output_zip)
513 print ("WARNING: generating edify script for a source that "
515 script = edify_generator.EdifyGenerator(source_version,
530 script=script,
596 script.Mount("/system")
597 script.AssertSomeFingerprint(source_fp, target_fp)
619 AppendAssertions(script, OPTIONS.target_info_dict)
622 script.Print("Verifying current system...")
626 script.ShowProgress(0.1, 0)
633 script.PatchCheck("/"+fn, tf.sha1, sf.sha1)
635 script.SetProgress(so_far / total_verify_size)
647 script.PatchCheck("%s:%s:%d:%s:%d:%s" %
652 script.SetProgress(so_far / total_verify_size)
655 script.CacheFreeSpaceCheck(largest_source_size)
659 script.Comment("---- start making changes here ----")
664 script.Print("Erasing user data...")
665 script.FormatPartition("/data")
667 script.Print("Removing unneeded files...")
668 script.DeleteFiles(["/"+i[0] for i in verbatim_targets] +
674 script.ShowProgress(0.8, 0)
680 script.Print("Patching system files...")
687 script.ApplyPatch("/"+fn, "-", tf.size, tf.sha1, sf.sha1, "patch/"+fn+".p")
689 script.SetProgress(so_far / total_patch_size)
695 script.Print("Patching boot image...")
696 script.ApplyPatch("%s:%s:%d:%s:%d:%s"
704 script.SetProgress(so_far / total_patch_size)
721 script.DeleteFiles(["/system/recovery-from-boot.p",
727 script.ShowProgress(0.1, 10)
732 temp_script = script.MakeTemporary()
748 script.DeleteFiles(to_delete)
751 script.Print("Unpacking new files...")
752 script.UnpackPackageDir("system", "/system")
755 script.Print("Unpacking new recovery...")
756 script.UnpackPackageDir("recovery", "/system")
759 script.Print("Renaming files...")
763 script.RenameFile(src, renames[src].name)
765 script.Print("Symlinks and permissions...")
777 script.DeleteFiles([i[1] for i in to_create])
778 script.MakeSymlinks(to_create)
782 script.AppendScript(temp_script)
788 script.AppendExtra(OPTIONS.extra_script)
793 script.Print("Patching remaining system files...")
796 script.ApplyPatch("/"+fn, "-", tf.size, tf.sha1, sf.sha1, "patch/"+fn+".p")
797 script.SetPermissions("/system/build.prop", 0, 0, 0644, None, None)
799 script.AddToZip(target_zip, output_zip)