ui_print(" ");
ui_print("@ ROM for LG Optimus GX");
ui_print("@ SphinX ROM V3a");
ui_print("@ by HoangNova");
ui_print("@ LGViet.com");
ui_print(" ");
ui_print(" ");
set_progress(0.01);
ui_print("@Delete Old System");
set_progress(0.02);
ui_print(" Mounting system");
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system");
set_progress(0.04);
ui_print(" Formating system");
delete_recursive("/system");
ui_print(" ");
set_progress(0.10);
show_progress(0.50, 2400);
ui_print("@Install New System");
ui_print(" Extracting files");
package_extract_dir("system", "/system");
set_progress(0.60);
ui_print(" Creating symlinks");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("libuicc.so", "/system/lib/libusim_aka.so");
symlink("libuicc.so", "/system/lib/uplus_usim.so");
symlink("libGLESv2.so", "/system/lib/libGLESv3.so");
symlink("/data/misc/audio/wcd9310_anc.bin", "/system/etc/firmware/wcd9310/wcd9310_anc.bin");
symlink("/data/misc/audio/mbhc.bin", "/system/etc/firmware/wcd9310/wcd9310_mbhc.bin");
symlink("/persist-lg/firmware/tzapps.b00", "/system/vendor/firmware/tzapps.b00");
symlink("/persist-lg/firmware/tzapps.b01", "/system/vendor/firmware/tzapps.b01");
symlink("/persist-lg/firmware/tzapps.b02", "/system/vendor/firmware/tzapps.b02");
symlink("/persist-lg/firmware/tzapps.b03", "/system/vendor/firmware/tzapps.b03");
symlink("/persist-lg/firmware/tzapps.mdt", "/system/vendor/firmware/tzapps.mdt");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/cat", "/system/bin/chcon", "/system/bin/chmod", "/system/bin/chown",
"/system/bin/clear", "/system/bin/cmp", "/system/bin/cp", "/system/bin/date",
"/system/bin/dd", "/system/bin/df", "/system/bin/dmesg", "/system/bin/du",
"/system/bin/getenforce", "/system/bin/getevent", "/system/bin/getprop", "/system/bin/getsebool",
"/system/bin/grep", "/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/load_policy", "/system/bin/log",
"/system/bin/ls", "/system/bin/lsmod", "/system/bin/lsof", "/system/bin/md5",
"/system/bin/mkdir", "/system/bin/mkswap", "/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/readlink", "/system/bin/renice",
"/system/bin/restorecon", "/system/bin/rm", "/system/bin/rmdir", "/system/bin/rmmod",
"/system/bin/route", "/system/bin/runcon", "/system/bin/schedtop", "/system/bin/sendevent",
"/system/bin/setconsole", "/system/bin/setenforce", "/system/bin/setprop", "/system/bin/setsebool",
"/system/bin/sleep", "/system/bin/smd", "/system/bin/start", "/system/bin/stop",
"/system/bin/swapoff", "/system/bin/swapon", "/system/bin/sync", "/system/bin/top",
"/system/bin/touch", "/system/bin/umount", "/system/bin/uptime", "/system/bin/vmstat",
"/system/bin/watchprops", "/system/bin/wipe");
set_progress(0.62);
ui_print(" Setting permissions");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 2000, 0755, "/system/bin/app_process");
set_perm(0, 2000, 0755, "/system/bin/clatd");
set_perm(0, 2000, 0755, "/system/bin/debuggerd");
set_perm(0, 2000, 0755, "/system/bin/dhcpcd");
set_perm(0, 2000, 0755, "/system/bin/dnsmasq");
set_perm(0, 2000, 0755, "/system/bin/drmserver");
set_perm(0, 2000, 0755, "/system/bin/hostapd");
set_perm(0, 2000, 0755, "/system/bin/installd");
set_perm(0, 2000, 0755, "/system/bin/keystore");
set_perm(0, 2000, 0755, "/system/bin/mediaserver");
set_perm(0, 2000, 0755, "/system/bin/mksh");
set_perm(0, 2000, 0755, "/system/bin/mtpd");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 2000, 0755, "/system/bin/netd");
set_perm(0, 0, 0755, "/system/bin/ping");
set_perm(0, 2000, 0755, "/system/bin/pppd");
set_perm(0, 2000, 0755, "/system/bin/racoon");
set_perm(0, 2000, 0755, "/system/bin/rild");
set_perm(0, 2000, 0750, "/system/bin/run-as");
set_perm(0, 2000, 0755, "/system/bin/sdcard");
set_perm(0, 2000, 0755, "/system/bin/servicemanager");
set_perm(0, 2000, 0755, "/system/bin/surfaceflinger");
set_perm(0, 2000, 0755, "/system/bin/vold");
set_perm(0, 2000, 0755, "/system/bin/wpa_supplicant");
set_perm_recursive(0, 0, 0755, 0644, "/system/etc/dhcpcd");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
set_perm(0, 2000, 0755, "/system/vendor/lib/egl");
set_perm(0, 2000, 0755, "/system/vendor/lib/mediadrm");
set_perm(0, 0, 0644, "/system/vendor/lib/mediadrm/libwvdrmengine.so");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib/drm");
set_perm(0, 0, 0644, "/system/vendor/lib/drm");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
ui_print(" Busybox and root");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/xbin/daemonsu");
set_perm(0, 2000, 0755, "/system/etc/install-recovery.sh");
unmount("/system");
ui_print(" ");
set_progress(1.0);
ui_print("@Finished");
ui_print(" ");
Khu chung cư cao cấp C-Sky View Bình Dương chủ đầu tư Cty Cổ phần Chánh Nghĩa Quốc Cường phối cảnh độc đáo vị trí vàng nội thất tiện nghi. C-Sky View Bình Dương giagocchudautu.com phối cảnh độc đáo...
C-Sky View Bình Dương Căn hộ tiện ích phù hợp hiện đại nhất