Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Updater-script Leedroid HD for the Desire HD
- assert(getprop("ro.product.device") == "ace" || getprop("ro.build.product") == "ace" || getprop("ro.product.board") == "ace");
- # Prints banner/status,then wipes, mounts, copies folders/files to /system and /data from this package
- ui_print("Flashing LeeDrOiD HD V1.0");
- # System
- ui_print("-Wiping /system");
- format("MTD", "system");
- mount("MTD", "system", "/system");
- ui_print("-Copying /system");
- package_extract_dir("system", "/system");
- show_progress(0.500000, 0);
- # Data
- # Wipe /data is optionable, to enable, remove the hash(#)
- #ui_print("-Wiping /data");
- #format("MTD", "userdata");
- mount("MTD", "userdata", "/data");
- ui_print("-Copying /data");
- package_extract_dir("data", "/data");
- show_progress(0.400000, 0);
- # Symlinks
- ui_print("-Setting symlink's");
- set_perm_recursive(0, 0, 0777, 0777, "/system/etc/init.d");
- symlink("toolbox", "/system/bin/schedtop", "/system/bin/route", "/system/bin/chownto", "/system/bin/cat", "/system/bin/log", "/system/bin/dd", "/system/bin/dmesg""/system/bin/lsmod", "/system/bin/id", "/system/bin/iftop", "/system/bin/sendevent", "/system/bin/df", "/system/bin/hd", "/system/bin/netstat", "/system/bin/watchprops", "/system/bin/newfs_msdos", "/system/bin/ls", "/system/bin/kill", "/system/bin/sleep", "/system/bin/umount", "/system/bin/smd", "/system/bin/mv", "/system/bin/stop", "/system/bin/sync", "/system/bin/setconsole", "/system/bin/getprop", "/system/bin/start", "/system/bin/mkdir", "/system/bin/ifconfig", "/system/bin/insmod", "/system/bin/chown", "/system/bin/ioctl", "/system/bin/ln", "/system/bin/date", "/system/bin/chmod", "/system/bin/notify", "/system/bin/rmdir", "/system/bin/vmstat", "/system/bin/ionice", "/system/bin/top", "/system/bin/cmp", "/system/bin/printenv", "/system/bin/setprop", "/system/bin/ps", "/system/bin/getevent", "/system/bin/wipe", "/system/bin/mount", "/system/bin/rm", "/system/bin/renice", "/system/bin/rmmod", "/system/bin/nandread");
- symlink("/system/bin/bash", "/system/bin/sh");
- symlink("/system/bin/su", "/system/xbin/su");
- show_progress(0.300000, 0);
- # General Ownership/Permissions
- ui_print("-Setting permissions");
- set_perm_recursive(0, 0, 0755, 0644, "/system/");
- set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
- set_perm(0, 3003, 06755, "/system/bin/ip");
- set_perm(0, 3003, 02755, "/system/bin/netcfg");
- set_perm(0, 3004, 02755, "/system/bin/ping");
- set_perm(0, 2000, 06750, "/system/bin/run-as");
- set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
- set_perm(0, 0, 0755, "/system/etc/bluetooth");
- set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
- set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
- set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
- set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
- set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
- set_perm(0, 0, 04755, "/system/bin/bash");
- set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
- set_perm(0, 0, 04755, "/system/bin/sysrw");
- set_perm(0, 0, 04755, "/system/bin/sysro");
- set_perm(0, 0, 04755, "/system/bin/nano");
- set_perm(0, 0, 06755, "/system/bin/su");
- show_progress(0.200000, 0);
- #Set Additional mods
- ui_print("-Applying additional mods");
- symlink("/data/local/bootanimation.zip", "/system/customize/resource/bootanimation.zip");
- symlink("/data/local/android_audio.mp3", "/system/customize/resource/android_audio.mp3");
- run_program("installbusybox");
- show_progress(0.200000, 0);
- # Boot
- ui_print("-Writing boot.img");
- assert(package_extract_file("boot.img", "/tmp/boot.img");
- write_raw_image("/tmp/boot.img", "boot");
- delete("/tmp/boot.img");
- show_progress(0.100000, 0);
- # Unmount file system(s)
- unmount("/data");
- unmount("/system");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement