Skip to content

Instantly share code, notes, and snippets.

Created December 2, 2010 02:48
Show Gist options
  • Save anonymous/724655 to your computer and use it in GitHub Desktop.
Save anonymous/724655 to your computer and use it in GitHub Desktop.
ui_print("Welcome to SparksMod-1.4-1.4.1 No Wipe Update!");
mount("MTD", "system", "/system");
show_progress(1, 15);
package_extract_dir("system", "/system");
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
package_extract_dir("scripts", "/tmp");
set_perm(0, 0, 0777, "/tmp/remove.sh");run_program("/tmp/remove.sh");
package_extract_dir("mod","/system/lib/modules");set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");
unmount("/system");
ui_print("Extracting Kernel files...");
package_extract_dir("kernel", "/tmp");
ui_print("Installing kernel...");
set_perm(0, 0, 0777, "/tmp/dump_image");
set_perm(0, 0, 0777, "/tmp/mkbootimg.sh");
set_perm(0, 0, 0777, "/tmp/mkbootimg");
set_perm(0, 0, 0777, "/tmp/unpackbootimg");
run_program("/tmp/dump_image", "boot", "/tmp/boot.img");
run_program("/tmp/unpackbootimg", "/tmp/boot.img", "/tmp/");
run_program("/tmp/mkbootimg.sh");
write_raw_image("/tmp/newboot.img", "boot");ui_print("");
unmount("/system");
package_extract_dir("mod","/system/lib/modules");
mount("MTD", "userdata", "/sd-ext");
package_extract_dir("sd-ext","/sd-ext");
ui_print("Installation complete!");
unmount("/sd-ext");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment