Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ui_print("[ ] Formatting SYSTEM");
- format("ext4", "EMMC", "/dev/block/nandd", "0");
- show_progress(0.200000, 0);
- ui_print("[ ] Mounting SYSTEM");
- mount("ext4", "EMMC", "/dev/block/nandd", "/system");
- show_progress(0.300000, 0);
- ui_print("[ ] Copying files to SYSTEM");
- package_extract_dir("system", "/system");
- show_progress(0.200000, 10);
- ui_print("[ ] Creating symlinks to BUSYBOX");
- show_progress(0.300000, 10);
- symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
- symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
- symlink("busybox", "/system/bin/[", "/system/bin/[[",
- "/system/bin/arp", "/system/bin/ash", "/system/bin/awk",
- "/system/bin/base64", "/system/bin/basename", "/system/bin/bbconfig",
- "/system/bin/blockdev", "/system/bin/brctl", "/system/bin/bunzip2",
- "/system/bin/bzcat", "/system/bin/bzip2", "/system/bin/blkid", "/system/bin/cal",
- "/system/bin/cat", "/system/bin/catv", "/system/bin/chattr", "/system/bin/chrt",
- "/system/bin/chgrp", "/system/bin/chmod", "/system/bin/chown", "/system/bin/cksum",
- "/system/bin/chroot", "/system/bin/clear", "/system/bin/cmp",
- "/system/bin/comm", "/system/bin/cp", "/system/bin/cpio",
- "/system/bin/crond", "/system/bin/crontab", "/system/bin/cut",
- "/system/bin/date", "/system/bin/dc", "/system/bin/dd", "/system/bin/dnsdomainname",
- "/system/bin/depmod", "/system/bin/devmem", "/system/bin/df",
- "/system/bin/diff", "/system/bin/dirname", "/system/bin/dmesg",
- "/system/bin/dnsd", "/system/bin/dos2unix", "/system/bin/du",
- "/system/bin/echo", "/system/bin/ed", "/system/bin/egrep", "/system/bin/ether-wake",
- "/system/bin/env", "/system/bin/expand", "/system/bin/expr",
- "/system/bin/false", "/system/bin/fdisk", "/system/bin/fgrep", "/system/bin/fakeidentd",
- "/system/bin/find", "/system/bin/flash_lock", "/system/bin/fdflush", "/system/bin/fdformat",
- "/system/bin/flash_unlock", "/system/bin/flashcp", "/system/bin/fsck", "/system/bin/ftpd",
- "/system/bin/flock", "/system/bin/fold", "/system/bin/free",
- "/system/bin/freeramdisk", "/system/bin/fsync", "/system/bin/ftpget",
- "/system/bin/ftpput", "/system/bin/fuser", "/system/bin/getopt",
- "/system/bin/grep", "/system/bin/groups", "/system/bin/gunzip",
- "/system/bin/gzip", "/system/bin/halt", "/system/bin/head", "/system/bin/hostid", "/system/bin/hostname",
- "/system/bin/hexdump", "/system/bin/id", "/system/bin/ifconfig", "/system/bin/httpd", "/system/bin/hwclock",
- "/system/bin/insmod", "/system/bin/install", "/system/bin/iostat", "/system/bin/ifenslave", "/system/bin/inetd",
- "/system/bin/ip", "/system/bin/kill", "/system/bin/killall", "/system/bin/inotifyd", "/system/bin/ipaddr",
- "/system/bin/killall5", "/system/bin/length", "/system/bin/less", "/system/bin/ipcalc", "/system/bin/iplink",
- "/system/bin/ln", "/system/bin/losetup", "/system/bin/ls", "/system/bin/iproute", "/system/bin/iprule",
- "/system/bin/lsattr", "/system/bin/lsmod", "/system/bin/lsusb", "/system/bin/iptunnel", "/system/bin/logname",
- "/system/bin/lzcat", "/system/bin/lzma", "/system/bin/lzop", "/system/bin/microcom",
- "/system/bin/lzopcat", "/system/bin/man", "/system/bin/md5sum", "/system/bin/mkdosfs",
- "/system/bin/mesg", "/system/bin/mkdir", "/system/bin/mke2fs", "/system/bin/mt",
- "/system/bin/mkfifo", "/system/bin/mkfs.ext2", "/system/bin/nameif", "/system/bin/nc",
- "/system/bin/mkfs.vfat", "/system/bin/mknod", "/system/bin/mkswap", "/system/bin/nmeter",
- "/system/bin/mktemp", "/system/bin/modinfo", "/system/bin/modprobe",
- "/system/bin/more", "/system/bin/mount", "/system/bin/mountpoint",
- "/system/bin/mpstat", "/system/bin/mv", "/system/bin/nanddump",
- "/system/bin/nandwrite", "/system/bin/netstat", "/system/bin/nice",
- "/system/bin/nohup", "/system/bin/nslookup", "/system/bin/ntpd",
- "/system/bin/od", "/system/bin/patch", "/system/bin/pgrep", "/system/bin/powertop",
- "/system/bin/pidof", "/system/bin/ping", "/system/bin/pkill", "/system/bin/pscan",
- "/system/bin/pmap", "/system/bin/poweroff", "/system/bin/printenv",
- "/system/bin/printf", "/system/bin/ps", "/system/bin/pstree",
- "/system/bin/pwd", "/system/bin/pwdx", "/system/bin/rdev", "/system/bin/rdate",
- "/system/bin/readlink", "/system/bin/realpath", "/system/bin/renice",
- "/system/bin/reset", "/system/bin/resize", "/system/bin/rev", "/system/bin/readahead",
- "/system/bin/rm", "/system/bin/rmdir", "/system/bin/rmmod", "/system/bin/rfkill",
- "/system/bin/route", "/system/bin/run-parts", "/system/bin/rx",
- "/system/bin/sed", "/system/bin/seq", "/system/bin/setconsole", "/system/bin/script",
- "/system/bin/setserial", "/system/bin/setsid", "/system/bin/sh", "/system/bin/scriptreplay",
- "/system/bin/sha1sum", "/system/bin/sha256sum", "/system/bin/setkeycodes", "/system/bin/setlogcons",
- "/system/bin/sha512sum", "/system/bin/sleep", "/system/bin/sort", "/system/bin/showkey",
- "/system/bin/split", "/system/bin/stat", "/system/bin/strings", "/system/bin/smemcap",
- "/system/bin/stty", "/system/bin/sum", "/system/bin/swapoff",
- "/system/bin/swapon", "/system/bin/sync", "/system/bin/sysctl",
- "/system/bin/tac", "/system/bin/tail", "/system/bin/tar", "/system/bin/traceroute",
- "/system/bin/tee", "/system/bin/telnet", "/system/bin/telnetd", "/system/bin/tty",
- "/system/bin/test", "/system/bin/tftp", "/system/bin/tftpd", "/system/bin/tunctl",
- "/system/bin/time", "/system/bin/timeout", "/system/bin/top",
- "/system/bin/touch", "/system/bin/tr", "/system/bin/traceroute",
- "/system/bin/true", "/system/bin/ttysize", "/system/bin/tune2fs",
- "/system/bin/umount", "/system/bin/uname", "/system/bin/uncompress",
- "/system/bin/unexpand", "/system/bin/uniq", "/system/bin/unix2dos",
- "/system/bin/unlzma", "/system/bin/unlzop", "/system/bin/unxz",
- "/system/bin/unzip", "/system/bin/uptime", "/system/bin/usleep",
- "/system/bin/uudecode", "/system/bin/uuencode", "/system/bin/vi", "/system/bin/vconfig",
- "/system/bin/watch", "/system/bin/wc", "/system/bin/wget", "/system/bin/who", "/system/bin/whois",
- "/system/bin/which", "/system/bin/whoami", "/system/bin/xargs",
- "/system/bin/xz", "/system/bin/xzcat", "/system/bin/yes",
- "/system/bin/zcat");
- symlink("mksh", "/system/bin/sh");
- symlink("toolbox", "/system/bin/cat", "/system/bin/chmod",
- "/system/bin/chown", "/system/bin/cmp", "/system/bin/date",
- "/system/bin/dd", "/system/bin/df", "/system/bin/dmesg",
- "/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd",
- "/system/bin/id", "/system/bin/ifconfig", "/system/bin/iftop",
- "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice",
- "/system/bin/kill", "/system/bin/ln", "/system/bin/log",
- "/system/bin/ls", "/system/bin/lsmod", "/system/bin/lsof",
- "/system/bin/mkdir", "/system/bin/mount", "/system/bin/mv",
- "/system/bin/nandread", "/system/bin/netstat",
- "/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/printenv",
- "/system/bin/ps", "/system/bin/r", "/system/bin/reboot",
- "/system/bin/renice", "/system/bin/rm", "/system/bin/rmdir",
- "/system/bin/rmmod", "/system/bin/route", "/system/bin/schedtop",
- "/system/bin/sendevent", "/system/bin/setconsole",
- "/system/bin/setprop", "/system/bin/sleep", "/system/bin/smd",
- "/system/bin/start", "/system/bin/stop", "/system/bin/sync",
- "/system/bin/top", "/system/bin/touch", "/system/bin/umount",
- "/system/bin/uptime", "/system/bin/vmstat", "/system/bin/watchprops",
- "/system/bin/wipe");
- ui_print("[ ] Setting permissions to SYSTEM");
- set_perm_recursive(0, 0, 0755, 0644, "/system");
- set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
- set_perm(0, 3003, 02750, "/system/bin/netcfg");
- set_perm(0, 3004, 02755, "/system/bin/ping");
- set_perm(0, 2000, 06750, "/system/bin/run-as");
- set_perm(0, 0, 0755, "/system/bin/busybox");
- set_perm(0, 0, 0755, "/system/bin/zipalign");
- 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_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
- set_perm(0, 0, 0755, "/system/etc/init.d");
- set_perm(0, 0, 0755, "/system/xbin/zipalign");
- set_perm(0, 0, 0755, "/system/bin/system_server");
- set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
- set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
- set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
- set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
- set_perm(0, 0, 0644, "/system/vendor/etc/audio_effects.conf");
- set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
- set_perm(0, 0, 06755, "/system/xbin/librank");
- set_perm(0, 0, 06755, "/system/xbin/procmem");
- set_perm(0, 0, 06755, "/system/xbin/procrank");
- set_perm(0, 0, 06755, "/system/xbin/su");
- symlink("/system/xbin/su", "/system/bin/su");
- show_progress(0.100000, 0);
- ui_print("[ ] Unmounting SYSTEM");
- unmount("/system");
- ui_print("[ ] Updating BOOT");
- package_extract_file("boot.img", "/dev/block/nandc");
- ui_print("");
- ui_print("[*] Completed!");
- ui_print("");
Add Comment
Please, Sign In to add comment