Home | History | Annotate | Download | only in releasetools

Lines Matching refs:script

50       Insert the contents of file at the end of the update script.
178 # set metadata for the files generated by this script.
229 def SetPermissions(self, script):
230 """Append set_perm/set_perm_recursive commands to 'script' to
243 script.SetPermissionsRecursive("/"+item.name, *item.best_subtree)
248 script.SetPermissions("/"+item.name, item.uid, item.gid, item.mode)
255 script.SetPermissions("/"+item.name, item.uid, item.gid, item.mode)
306 def AppendAssertions(script, info_dict):
308 script.AssertDevice(device)
316 script that is run from init.rc on first boot to actually do the
323 Returns an Item for the shell script, which must be made
369 script = edify_generator.EdifyGenerator(3, OPTIONS.info_dict)
383 script=script,
390 script.AssertOlderBuild(ts)
392 AppendAssertions(script, OPTIONS.info_dict)
396 script.ShowProgress(0.5, 0)
399 script.FormatPartition("/data")
404 script.FormatPartition("/system")
405 script.Mount("/system")
406 script.UnpackPackageDir("recovery", "/system")
407 script.UnpackPackageDir("system", "/system")
410 script.MakeSymlinks(symlinks)
419 Item.Get("system").SetPermissions(script)
423 script.ShowProgress(0.2, 0)
425 script.ShowProgress(0.2, 10)
426 script.WriteRawImage("/boot", "boot.img")
428 script.ShowProgress(0.1, 0)
432 script.AppendExtra(OPTIONS.extra_script)
434 script.UnmountAll()
435 script.AddToZip(input_zip, output_zip)
475 print ("WARNING: generating edify script for a source that "
477 script = edify_generator.EdifyGenerator(source_version,
492 script=script,
542 script.Mount("/system")
543 script.AssertSomeFingerprint(source_fp, target_fp)
565 AppendAssertions(script, OPTIONS.target_info_dict)
568 script.Print("Verifying current system...")
572 script.ShowProgress(0.1, 0)
579 script.PatchCheck("/"+fn, tf.sha1, sf.sha1)
581 script.SetProgress(so_far / total_verify_size)
593 script.PatchCheck("%s:%s:%d:%s:%d:%s" %
598 script.SetProgress(so_far / total_verify_size)
601 script.CacheFreeSpaceCheck(largest_source_size)
605 script.Comment("---- start making changes here ----")
610 script.Print("Erasing user data...")
611 script.FormatPartition("/data")
613 script.Print("Removing unneeded files...")
614 script.DeleteFiles(["/"+i[0] for i in verbatim_targets] +
619 script.ShowProgress(0.8, 0)
625 script.Print("Patching system files...")
632 script.ApplyPatch("/"+fn, "-", tf.size, tf.sha1, sf.sha1, "patch/"+fn+".p")
634 script.SetProgress(so_far / total_patch_size)
640 script.Print("Patching boot image...")
641 script.ApplyPatch("%s:%s:%d:%s:%d:%s"
649 script.SetProgress(so_far / total_patch_size)
666 script.DeleteFiles(["/system/recovery-from-boot.p",
672 script.ShowProgress(0.1, 10)
677 temp_script = script.MakeTemporary()
693 script.DeleteFiles(to_delete)
696 script.Print("Unpacking new files...")
697 script.UnpackPackageDir("system", "/system")
700 script.Print("Unpacking new recovery...")
701 script.UnpackPackageDir("recovery", "/system")
703 script.Print("Symlinks and permissions...")
715 script.DeleteFiles([i[1] for i in to_create])
716 script.MakeSymlinks(to_create)
720 script.AppendScript(temp_script)
726 script.AppendExtra(OPTIONS.extra_script)
731 script.Print("Patching remaining system files...")
734 script.ApplyPatch("/"+fn, "-", tf.size, tf.sha1, sf.sha1, "patch/"+fn+".p")
735 script.SetPermissions("/system/build.prop", 0, 0, 0644)
737 script.AddToZip(target_zip, output_zip)