Home | History | Annotate | Download | only in releasetools

Lines Matching refs:script

50       Insert the contents of file at the end of the update script.
177 # set metadata for the files generated by this script.
228 def SetPermissions(self, script):
229 """Append set_perm/set_perm_recursive commands to 'script' to
242 script.SetPermissionsRecursive("/"+item.name, *item.best_subtree)
247 script.SetPermissions("/"+item.name, item.uid, item.gid, item.mode)
254 script.SetPermissions("/"+item.name, item.uid, item.gid, item.mode)
310 def AppendAssertions(script, input_zip):
312 script.AssertDevice(device)
320 script that is run from init.rc on first boot to actually do the
327 Returns an Item for the shell script, which must be made
363 script = edify_generator.EdifyGenerator(3, OPTIONS.info_dict)
374 script=script,
381 script.AssertOlderBuild(ts)
383 AppendAssertions(script, input_zip)
386 script.ShowProgress(0.5, 0)
389 script.FormatPartition("/data")
391 script.FormatPartition("/system")
392 script.Mount("/system")
393 script.UnpackPackageDir("recovery", "/system")
394 script.UnpackPackageDir("system", "/system")
397 script.MakeSymlinks(symlinks)
399 script.RetouchBinaries(retouch_files)
401 script.UndoRetouchBinaries(retouch_files)
410 Item.Get("system").SetPermissions(script)
414 script.ShowProgress(0.2, 0)
416 script.ShowProgress(0.2, 10)
417 script.WriteRawImage("/boot", "boot.img")
419 script.ShowProgress(0.1, 0)
423 script.AppendExtra(OPTIONS.extra_script)
425 script.UnmountAll()
426 script.AddToZip(input_zip, output_zip)
472 print ("WARNING: generating edify script for a source that "
474 script = edify_generator.EdifyGenerator(source_version, OPTIONS.target_info_dict)
486 script=script,
536 script.Mount("/system")
537 script.AssertSomeFingerprint(source_fp, target_fp)
557 AppendAssertions(script, target_zip)
560 script.Print("Verifying current system...")
562 script.ShowProgress(0.1, 0)
569 script.PatchCheck("/"+fn, tf.sha1, sf.sha1)
571 script.SetProgress(so_far / total_verify_size)
583 script.PatchCheck("%s:%s:%d:%s:%d:%s" %
588 script.SetProgress(so_far / total_verify_size)
591 script.CacheFreeSpaceCheck(largest_source_size)
595 script.Comment("---- start making changes here ----")
598 script.Print("Erasing user data...")
599 script.FormatPartition("/data")
601 script.Print("Removing unneeded files...")
602 script.DeleteFiles(["/"+i[0] for i in verbatim_targets] +
607 script.ShowProgress(0.8, 0)
613 script.Print("Patching system files...")
620 script.ApplyPatch("/"+fn, "-", tf.size, tf.sha1, sf.sha1, "patch/"+fn+".p")
622 script.SetProgress(so_far / total_patch_size)
628 script.Print("Patching boot image...")
629 script.ApplyPatch("%s:%s:%d:%s:%d:%s"
637 script.SetProgress(so_far / total_patch_size)
655 script.DeleteFiles(["/system/recovery-from-boot.p",
661 script.ShowProgress(0.1, 10)
666 temp_script = script.MakeTemporary()
682 script.DeleteFiles(to_delete)
685 script.Print("Unpacking new files...")
686 script.UnpackPackageDir("system", "/system")
689 script.Print("Unpacking new recovery...")
690 script.UnpackPackageDir("recovery", "/system")
692 script.Print("Symlinks and permissions...")
704 script.DeleteFiles([i[1] for i in to_create])
705 script.MakeSymlinks(to_create)
707 script.RetouchBinaries(target_retouch_files)
709 script.UndoRetouchBinaries(target_retouch_files)
713 script.AppendScript(temp_script)
719 script.AppendExtra(OPTIONS.extra_script)
724 script.Print("Patching remaining system files...")
727 script.ApplyPatch("/"+fn, "-", tf.size, tf.sha1, sf.sha1, "patch/"+fn+".p")
728 script.SetPermissions("/system/build.prop", 0, 0, 0644)
730 script.AddToZip(target_zip, output_zip)