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, input_zip):
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
359 script = edify_generator.EdifyGenerator(3, OPTIONS.info_dict)
370 script=script,
377 script.AssertOlderBuild(ts)
379 AppendAssertions(script, input_zip)
383 script.ShowProgress(0.5, 0)
386 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)
406 Item.Get("system").SetPermissions(script)
410 script.ShowProgress(0.2, 0)
412 script.ShowProgress(0.2, 10)
413 script.WriteRawImage("/boot", "boot.img")
415 script.ShowProgress(0.1, 0)
419 script.AppendExtra(OPTIONS.extra_script)
421 script.UnmountAll()
422 script.AddToZip(input_zip, output_zip)
466 print ("WARNING: generating edify script for a source that "
468 script = edify_generator.EdifyGenerator(source_version, OPTIONS.target_info_dict)
480 script=script,
530 script.Mount("/system")
531 script.AssertSomeFingerprint(source_fp, target_fp)
551 AppendAssertions(script, target_zip)
554 script.Print("Verifying current system...")
558 script.ShowProgress(0.1, 0)
565 script.PatchCheck("/"+fn, tf.sha1, sf.sha1)
567 script.SetProgress(so_far / total_verify_size)
579 script.PatchCheck("%s:%s:%d:%s:%d:%s" %
584 script.SetProgress(so_far / total_verify_size)
587 script.CacheFreeSpaceCheck(largest_source_size)
591 script.Comment("---- start making changes here ----")
596 script.Print("Erasing user data...")
597 script.FormatPartition("/data")
599 script.Print("Removing unneeded files...")
600 script.DeleteFiles(["/"+i[0] for i in verbatim_targets] +
605 script.ShowProgress(0.8, 0)
611 script.Print("Patching system files...")
618 script.ApplyPatch("/"+fn, "-", tf.size, tf.sha1, sf.sha1, "patch/"+fn+".p")
620 script.SetProgress(so_far / total_patch_size)
626 script.Print("Patching boot image...")
627 script.ApplyPatch("%s:%s:%d:%s:%d:%s"
635 script.SetProgress(so_far / total_patch_size)
653 script.DeleteFiles(["/system/recovery-from-boot.p",
659 script.ShowProgress(0.1, 10)
664 temp_script = script.MakeTemporary()
680 script.DeleteFiles(to_delete)
683 script.Print("Unpacking new files...")
684 script.UnpackPackageDir("system", "/system")
687 script.Print("Unpacking new recovery...")
688 script.UnpackPackageDir("recovery", "/system")
690 script.Print("Symlinks and permissions...")
702 script.DeleteFiles([i[1] for i in to_create])
703 script.MakeSymlinks(to_create)
707 script.AppendScript(temp_script)
713 script.AppendExtra(OPTIONS.extra_script)
718 script.Print("Patching remaining system files...")
721 script.ApplyPatch("/"+fn, "-", tf.size, tf.sha1, sf.sha1, "patch/"+fn+".p")
722 script.SetPermissions("/system/build.prop", 0, 0, 0644)
724 script.AddToZip(target_zip, output_zip)