Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set_progress(0.0);
- ui_print(" ");
- ui_print("************************************");
- ui_print("S5 Neo NeoLite Lollipop Rom 1.0");
- ui_print("Made by wilmans2m");
- ui_print("************************************");
- ifelse(is_mounted("/system") == "/system", unmount("/system"));
- ifelse(is_mounted("/cache") == "/cache", unmount("/cache"));
- ifelse(is_mounted("/data") == "/data", unmount("/data"));
- run_program("/sbin/sleep", "1");
- ui_print("+++MOUNTING PARTITIONS+++");
- run_program("/sbin/sh", "-c", "mount -t ext4 -o rw /dev/block/platform/13540000.dwmmc0/by-name/SYSTEM /system");
- run_program("/sbin/sh", "-c", "mount -t ext4 -o rw /dev/block/platform/13540000.dwmmc0/by-name/DATA /data");
- run_program("/sbin/sh", "-c", "mount -t ext4 -o rw /dev/block/platform/13540000.dwmmc0/by-name/CACHE /cache");
- ui_print("+++MOUNTING DONE+++");
- ui_print("Wiping cache, dalvik, system");
- run_program("/sbin/sh", "-c", "rm -fR /cache /data/dalvik-cache /system");
- run_program("/sbin/sleep", "2");
- ui_print("--> Installing NeoLite Lollipop Rom 1.0");
- package_extract_dir("system", "/system");
- run_program("/sbin/sleep", "3");
- ui_print("--> Setting Permissions");
- set_perm_recursive(0, 0, 0755, 0644, "/system");
- set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
- set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor");
- set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
- set_perm_recursive(0, 0, 0755, 0644, "/system/etc/dhcpcd");
- set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp);
- set_perm_recursive(0, 0, 0755, 0644, "/system/lib");
- set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
- set_perm(0, 2000, 0755, "/system/bin/androidshmservice");
- set_perm(0, 2000, 0755, "/system/bin/apaservice");
- set_perm(0, 2000, 0755, "/system/bin/app_process32");
- set_perm(0, 2000, 0755, "/system/bin/at_distributor");
- set_perm(0, 2000, 0755, "/system/bin/auditd");
- set_perm(0, 2000, 0755, "/system/bin/bootanimation");
- set_perm(0, 2000, 0755, "/system/bin/bootchecker");
- set_perm(0, 2000, 0755, "/system/bin/bugreport");
- set_perm(0, 2000, 0755, "/system/bin/charon");
- set_perm(0, 2000, 0755, "/system/bin/clatd");
- set_perm(0, 2000, 0755, "/system/bin/connfwexe");
- set_perm(0, 2000, 0755, "/system/bin/cs");
- set_perm(0, 2000, 0755, "/system/bin/ddexe");
- set_perm(0, 2000, 0755, "/system/bin/debuggerd");
- set_perm(0, 2000, 0755, "/system/bin/dex2oat");
- set_perm(0, 2000, 0755, "/system/bin/dhcpcd");
- set_perm(0, 2000, 0755, "/system/bin/dnsmasq");
- set_perm(0, 2000, 0755, "/system/bin/dpm");
- set_perm(0, 2000, 0755, "/system/bin/drmserver");
- set_perm(0, 2000, 0755, "/system/bin/drsd");
- set_perm(0, 2000, 0755, "/system/bin/dumpstate");
- set_perm(0, 2000, 0755, "/system/bin/dumpsys");
- set_perm(0, 2000, 0755, "/system/bin/edmaudit");
- set_perm(0, 2000, 0755, "/system/bin/hostapd");
- set_perm(0, 2000, 0755, "/system/bin/icd");
- set_perm(0, 2000, 0755, "/system/bin/immvibed");
- set_perm(0, 0, 0750, "/system/bin/install-recovery.sh");
- set_perm(0, 2000, 0755, "/system/bin/installd");
- set_perm(0, 2000, 0755, "/system/bin/insthk");
- set_perm(0, 2000, 0755, "/system/bin/jackservice");
- set_perm(0, 2000, 0755, "/system/bin/keystore");
- set_perm(0, 2000, 0755, "/system/bin/lmkd");
- set_perm(0, 2000, 0755, "/system/bin/logd");
- set_perm(0, 2000, 0755, "/system/bin/macloader");
- set_perm(0, 2000, 0755, "/system/bin/mcDriverDaemon");
- set_perm(0, 2000, 0755, "/system/bin/mdnsd");
- set_perm(0, 2000, 0755, "/system/bin/mediaserver");
- set_perm(0, 2000, 0755, "/system/bin/mfgloader");
- set_perm(0, 2000, 0755, "/system/bin/mpdecision");
- 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, 2000, 0755, "/system/bin/netmgrd");
- set_perm(0, 2000, 0755, "/system/bin/npsmobex");
- set_perm(0, 2000, 0755, "/system/bin/olsrd");
- set_perm(0, 2000, 0755, "/system/bin/patchoat");
- set_perm(0, 2000, 0755, "/system/bin/ping");
- set_perm(0, 2000, 0755, "/system/bin/pppd");
- set_perm(0, 2000, 0755, "/system/bin/prepare_param.sh");
- set_perm(0, 2000, 0755, "/system/bin/racoon");
- set_perm(1000, 1000, 0710, "/system/bin/resetreason");
- set_perm(0, 2000, 0755, "/system/bin/rild");
- set_perm(0, 2000, 0750, "/system/bin/run-as");
- set_perm(0, 2000, 0755, "/system/bin/samsungpowersoundplay");
- set_perm(0, 2000, 0755, "/system/bin/sdcard");
- set_perm(0, 2000, 0755, "/system/bin/sdp_cryptod");
- set_perm(0, 2000, 0755, "/system/bin/secure_storage_daemon");
- set_perm(0, 2000, 0755, "/system/bin/selinux-network.sh");
- set_perm(0, 2000, 0755, "/system/bin/sensorservice");
- set_perm(0, 2000, 0755, "/system/bin/servicemanager");
- set_perm(0, 2000, 0755, "/system/bin/sh");
- set_perm(0, 2000, 0755, "/system/bin/smdexe");
- set_perm(0, 2000, 0755, "/system/bin/ss_conn_daemon");
- set_perm(0, 2000, 0755, "/system/bin/ss_kbservice_daemon");
- set_perm(0, 2000, 0755, "/system/bin/surfaceflinger");
- set_perm(0, 2000, 0755, "/system/bin/tima_dump_log");
- set_perm(0, 2000, 0755, "/system/bin/tlc_server");
- set_perm(0, 0, 0750, "/system/bin/uncrypt");
- set_perm(0, 2000, 0755, "/system/bin/vdc");
- set_perm(0, 2000, 0755, "/system/bin/vold");
- set_perm(0, 2000, 0755, "/system/bin/wlandutservice");
- set_perm(0, 2000, 0755, "/system/bin/wpa_supplicant");
- set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
- set_perm(0, 0, 0644, "/system/etc/event-log-tags");
- set_perm(0, 0, 0755, "/system/lib/drm");
- ui_print("--> Permissions done!");
- run_program("/sbin/sleep", "3");
- ui_print("--> Setting Symlinks");
- symlink("app_process32", "/system/bin/app_process");
- symlink("dalvikvm32", "/system/bin/dalvikvm");
- 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/mknod",
- "/system/bin/mkswap", "/system/bin/mount", "/system/bin/mv", "/system/bin/nandread", "/system/bin/netstat",
- "/system/bin/newfs_msdos", "/system/bin/nohup", "/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/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");
- symlink("/system/lib/libbluetooth_jni.so", "/system/app/Bluetooth/lib/arm/libbluetooth_jni.so");
- symlink("/system/lib/libnfc_nci_jni.so", "/system/app/NfcNci/lib/arm/libnfc_nci_jni.so");
- symlink("/system/lib/libjni_pacprocessor.so", "/system/app/PacProcessor/lib/arm/libjni_pacprocessor.so");
- symlink("/system/lib/libcommonpawrapper.so", "/system/app/RootPA/lib/arm/libcommonpawrapper.so");
- symlink("/system/lib/libapa_jni.so", "/system/app/SapaMonitor/lib/arm/libapa_jni.so");
- symlink("/system/lib/libdefcontainer_jni.so", "/system/priv-app/DefaultContainerService/lib/arm/libdefcontainer_jni.so");
- symlink("/data/misc/audio/wcd9320_anc.bin", "/system/etc/firmware/wcd9320/wcd9320_anc.bin");
- symlink("/data/misc/audio/wcd9320_mad_audio.bin", "/system/etc/firmware/wcd9320/wcd9320_mad_audio.bin");
- symlink("/data/misc/audio/mbhc.bin", "/system/etc/firmware/wcd9320/wcd9320_mbhc.bin");
- symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
- symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
- symlink("libGLESv2.so", "/system/lib/libGLESv3.so");
- symlink("/system/lib/libbluetooth_jni.so", "/system/app/Bluetooth/lib/arm/libbluetooth_jni.so");
- symlink("/system/lib/libcommonpawrapper.so", "/system/app/RootPA/lib/arm/libcommonpawrapper.so");
- symlink("/system/lib/libdefcontainer_jni.so", "/system/priv-app/DefaultContainerService/lib/arm/libdefcontainer_jni.so");
- symlink("/system/lib/libjni_emailencryption.so", "/system/app/SecEmail_K/lib/arm/libjni_emailencryption.so");
- symlink("/system/lib/libjni_pacprocessor.so", "/system/app/PacProcessor/lib/arm/libjni_pacprocessor.so");
- symlink("/system/lib/libloadStylusCore.so", "/system/app/SamsungIME/lib/arm/libloadStylusCore.so");
- symlink("/system/lib/libnfc_nci_jni.so", "/system/app/NfcNci/lib/arm/libnfc_nci_jni.so");
- symlink("/system/lib/libprintspooler_jni.so", "/system/app/SPrintSpooler/lib/arm/libprintspooler_jni.so");
- symlink("/system/lib/libsbrowser.so", "/system/app/SBrowser/lib/arm/libsbrowser.so");
- symlink("/system/lib/libssecv8.so", "/system/app/SBrowser/lib/arm/libssecv8.so");
- symlink("/system/lib/libstlport_sh_521.so", "/system/app/SBrowser/lib/arm/libstlport_sh_521.so");
- symlink("/system/lib/libwbs.so", "/system/app/SBrowser/lib/arm/libwbs.so");
- ui_print("--> Symlinks done!");
- run_program("/sbin/sleep", "3");
- set_progress(0.6);
- run_program("/sbin/sleep", "2");
- ui_print("+++UNMOUNTING PARTITIONS+++");
- run_program("/sbin/sh", "-c", "umount /system");
- run_program("/sbin/sh", "-c", "umount /data");
- run_program("/sbin/sh", "-c", "umount /cache");
- set_progress(0.8);
- ui_print(" ");
- ui_print("Installation complete");
- ui_print(" ");
- set_progress(0.999992);
- run_program("/sbin/reboot")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement