Skip to content

Instantly share code, notes, and snippets.

@chirayudesai
Created January 6, 2013 14:07
Show Gist options
  • Save chirayudesai/4467378 to your computer and use it in GitHub Desktop.
Save chirayudesai/4467378 to your computer and use it in GitHub Desktop.
--- /home/cdesai/android/cm/10.1/out/target/product/mint/updater-script-orig 2008-02-29 08:03:46.000000000 +0530
+++ /home/cdesai/android/cm/10.1/out/target/product/mint/updater-script 2008-02-29 08:03:46.000000000 +0530
@@ -136,6 +136,7 @@
set_perm(0, 0, 06755, "/system/xbin/procmem");
set_perm(0, 0, 06755, "/system/xbin/procrank");
set_perm(0, 0, 06755, "/system/xbin/su");
+show_progress(0.200000, 0);
show_progress(0.200000, 10);
package_extract_file("system/bin/backuptool.sh", "/tmp/backuptool.sh");
package_extract_file("system/bin/backuptool.functions", "/tmp/backuptool.functions");
@@ -144,13 +145,10 @@
run_program("/tmp/backuptool.sh", "restore");
delete("/system/bin/backuptool.sh");
delete("/system/bin/backuptool.functions");
-package_extract_file("system/bin/modelid_cfg.sh", "/tmp/modelid_cfg.sh");
-set_perm(0, 0, 0777, "/tmp/modelid_cfg.sh");
-run_program("/tmp/modelid_cfg.sh", "");
show_progress(0.200000, 10);
package_extract_file("boot.img", "/dev/block/mmcblk0p4");
+show_progress(0.100000, 0);
package_extract_file("system/bin/fix_storage_permissions.sh", "/tmp/fix_storage_permissions.sh");
set_perm(0, 0, 0777, "/tmp/fix_storage_permissions.sh");
run_program("/tmp/fix_storage_permissions.sh");
-show_progress(0.100000, 0);
unmount("/system");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment