Related
trying to make my own update.zip file but it keeps giving me the status 6 error. i now its a sytax error and i need to figure out what it is . i just want to see if anyone can help me with this or else show me what to use to edit the "updater-script" file.
This is what i have so far:
ui_print("The Scoot Custom Sensation UI");
show_progress(0.500000, 0);
ui_print("Mounting Data Partition Stuff...");
mount("ext4", "EMMC", "/dev/block/mmcblk0p23", "/data");
ui_print("Writing Data Stuff...");
package_extract_dir("data", "/data");
ui_print("Mounting System Partition Stuff...");
mount("ext4", "EMMC", "/dev/block/mmcblk0p22", "/system");
ui_print("Writing System Stuff...");
package_extract_dir("system", "/system");
ui_print("Doing Permission Stuff...");
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_recursive(1000, 1000, 0771, 0644, "/data/data/com.android.providers.contacts/files");
set_perm(0, 2000, 0775, "/system/bin/iptables");
set_perm_recursive(1002, 1002, 0775, 0440, "/system/etc/bluez");
set_perm(0, 0, 0644, "/system/bin/profile");
set_perm(0, 0, 0775, "/system/etc/bluez");
set_perm(1000, 1000, 0755, "/system/bin/bash");
set_perm(1000, 1000, 0755, "/system/bin/nano");
set_perm(1000, 1000, 0755, "/system/bin/sysro");
set_perm(1000, 1000, 0755, "/system/bin/sysrw");
set_perm(1000, 1000, 0755, "/system/xbin/openvpn");
set_perm(0, 3003, 0755, "/system/bin/ip");
set_perm(0, 3003, 0755, "/system/bin/ipd");
set_perm(0, 2000, 06755, "/system/bin/reboot");
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(0, 3004, 02755, "/system/bin/ping");
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_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 0, 04755, "/system/etc/ppp/ip-up-vpn");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");
set_perm(1000, 1000, 0755, "/system/xbin/openvpn");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm(0, 0, 06755, "/system/bin/su");
set_perm(0, 0, 04755, "/system/xbin/busybox");
set_perm(0, 0, 04755, "/system/bin/sh");
set_perm_recursive(1000, 1000, 0771, 0644, "/system/mnt");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(1000, 1000, 0771, "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
set_perm (0, 0, 0777, "/system/etc/init.d/95modules");
set_perm (0, 0, 0777, "/system/etc/init.d/97zipalign");
set_perm (0, 0, 0777, "/system/etc/init.d/99complete");
unmount("/system");
unmount("/data");
ui_print("It is Time!!");
show_progress(0.100000, 0);
any help at all would be appreciated
PS: this update.zip is for a system UI update for sense 3.5 i dont know if that helps
I have an Ainol Novo 7 Basic.
I want to start cooking and this seems like a nice cheap device to start with!
I have made an update.zip using the system folder from the original ics 4.0.3 update.
The updater-script flashes fine in the modded CWM 5.0.5.
After reboot, the device wont boot to android. Just returns to CWM,
Not sure what the problem could be?
Any advice is appreciated.
I am new here and have only been on android just under a year.
I believe it may be a permissions error on my part.
But, I havn't been able to find any clear info on what permissions are needed. Just looked at a couple of other ROM zips updater-scripts for guidance...
Or, maybe there is importance in the order of the commands in updater-script?
here is the updater-script:
Code:
ui_print("<***************-------------------****************>");
ui_print(" Ainol Novo 7 Basic MasterROM 1.0");
ui_print("<***************-------------------****************>");
show_progress(1.000000, 0);
ui_print(" Clearing System...");
format("ext4", "system", "/dev/block/mmcblk0p1", "/system");
ui_print(" Mounting SYSTEM...");
mount("ext4", "system", "/dev/block/mmcblk0p1", "/system");
set_progress(0.140000);
ui_print(" Extracting files to SYSTEM...");
package_extract_dir("system", "/system");
set_progress(0.210000);
ui_print(" Clearing Data...");
format("ext4", "data", "/dev/block/mmcblk0p2", "/data");
ui_print(" Mounting DATA...");
mount("ext4", "data", "/dev/block/mmcblk0p2", "/data");
set_progress(0.280000);
ui_print(" Extracting files to DATA...");
package_extract_dir("data", "/data");
set_progress(0.350000);
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, 0644, "/system/etc");
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(1000, 1003, 02755, "/system/bin/screenshot");
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, 0777, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/wifi/wpa_supplicant.conf");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm(0, 0, 0544, "/system/etc/install-recovery.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 0, 06755, "/system/xbin/hcitool");
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/tcpdump");
set_progress(0.490000);
ui_print(" Unmounting DATA...");
unmount("/data");
set_progress(0.770000);
ui_print(" Unmounting SYSTEM...");
unmount("/system");
set_progress(0.840000);
ui_print(" Clearing Cache...");
format("ext4", "cache", "/dev/block/mmcblk0p3", "/cache");
ui_print("****************************************************");
ui_print(" Install complete. Enjoy!");
ui_print("****************************************************");
set_progress(1.000000);
masterjakeway said:
The updater-script flashes fine in the modded CWM 5.0.5.
After reboot, the device wont boot to android. Just returns to CWM,
Not sure what the problem could be?
Click to expand...
Click to collapse
The Novo7 version of CWM is very buggy, it's going to mess up your device. Please, don't use it. Try to reflash the last working version of firmware. You may need to do this twice, first to get native recovery image, then once again to get everything flashed properly with the native recovery.
ps. Friends don't let friends to use CWM on Novo7 Basic/Paladin =)
Hey Guys,
i just tried to install PDroid but it doesn't work. I tried to patch the Rom but it doesnt work..
Got anyone an idea?
Here is the Error Message:
ROOT= /cygdrive/c/xxx/xxx/Desktop/Test/ApGPackages/ap/
TOOL= /cygdrive/c/xxx/xxxDesktop/Test/ApGPackages/ap//patch_tools.tgz
ROM= /cygdrive/c/xxx/xxx/Desktop/Test/SuperNexus-I9300-BUILD5-20121017.zip
ROMX= C:\Users\xxx/xxx\Test\SUPERN~1.ZIP
### verify tools ###
/cygdrive/c/Users/xxx/xxx/Test/ApGPackages/cygwin/bin/patch
/cygdrive/c/Users/xxx/xxx/Test/ApGPackages/cygwin/bin/tar
/cygdrive/c/Users/xxx/xxx/Test/ApGPackages/Java/bin/jar
/cygdrive/c/Users/xxx/xxx/Test/ApGPackages/Java/bin/java
/cygdrive/c/Users/xxx/xxx/Test/ApGPackages/cygwin/bin/cpio
### verify ROM ###
### running ./auto_patcher /cygdrive/c/Users/sven/Desktop/Test/SuperNexus-I9300-BUILD5-20121017.zip pdroid jellybean
PATH= /cygdrive/c/Users/sven/Desktop/Test/ApGPackages/ap/tmp20121024155356:/cygdrive/c/Users/sven/Desktop/Test/ApGPackages/Java/bin:/cygdrive/c/Users/sven/Desktop/Test/ApGPackages/cygwin/bin:/cygdrive/c/Users/sven/Desktop/Test/ApGPackages/cygwin/usr/sbin
### unzip patch tools ###
### unzip patch patches ###
... result of ROM check: RIL= Smdk4210RIL
### probe rom type ###
\vergr�t: system/framework/framework2.jar
\vergr�t: system/framework/framework2.jar
# VER= Auto-Patcher v2.2.03
# OS= cygwin 32bit
# VID= 4.1.2
# PID= pdroid
# MID= JZO54K
# RID= aosp-mod
# ANDR= jellybean
# BDID= 20121017
# DID= m0
# BID= 20121003
### DELETE FILES=
### COPY FILES=
### JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar
### APK FILES=
### IMG FILES=
### TXT FILES=
### unzip rom ###
### create updater script ###
... using Clockworkmod installer ...
# generated updater-script
mount("ext4", "EMMC", "/dev/block/mmcblk0p9", "/system");
package_extract_dir("system", "/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_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, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 2000, 0755, "/system/vendor");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/lib");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/lib/drm");
set_perm(0, 0, 0644, "/system/vendor/lib/drm/libdrmwvmplugin.so");
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");
unmount("/system");
### create restore.zip ###
### decompile system files ###
... decompile framework.jar ...
... extract preloaded-classes ...
\vergr�t: preloaded-classes
... decompile core.jar ...
... decompile services.jar ...
### jar patch pdroid/jellybean/aosp-mod/20121003 ###
... apply framework.patch ...
1 out of 1 hunk FAILED -- saving rejects to file 'smali/android/app/ContextImpl$20.smali.rej'
... apply preloaded.patch ...
!!! PATCHING FAILED FOR android/app/ContextImpl$20.smali' !!!
!!! patch error for android/app/ContextImpl$20.smali' !!!
**************************************
**************************************
So I am trying some new code, but status 6 is really becoming a pain in the neck...can someone tell me where the problem is?
my code is-->
Code:
ui_print("-----------------------------");
ui_print("- UltraRom 6b -");
ui_print("- L9 Version! -");
ui_print("- By: -");
ui_print("- UltraRoboto -");
ui_print("-----------------------------");
package_extract_file("boot760.img", "/tmp/boot760.img");
set_perm(0, 0, 0777, "/tmp/boot760.img");
package_extract_file("boot769.img", "/tmp/boot769.img");
set_perm(0, 0, 0777, "/tmp/boot769.img");
# checking boot.img
ui_print("Verifying boot images...");
if
sha1_check(read_file("/tmp/boot760.img")) == "51d9cf62ee5dc560755262f026cd521a94cf3173";
then
ui_print("...OK...");
delete("/tmp/boot760.img");
else
ui_print("File corruption is present, aborting install..");
abort("Please download this zip again...");
endif;
if
sha1_check(read_file("/tmp/boot769.img")) == "46c5be87777034d922f995c31a3d2fcf0941cb8b";
then
ui_print("...OK...");
delete("/tmp/boot769.img");
else
ui_print("File corruption is present, aborting install..");
abort("Please download this zip again...");
endif;
package_extract_file("ice769-recovery.img", "/tmp/ice769-recovery.img");
set_perm(0, 0, 0777, "/tmp/ice769-recovery.img");
# checking ice769-recovery.img
ui_print("Verifying recovery images...");
if
sha1_check(read_file("/tmp/ice769-recovery.img")) == "8d8f0d35b7f128a2aacbc180b4e438238294d0d2";
then
ui_print("...OK...");
delete("/tmp/ice769-recovery.img");
else
ui_print("File corruption is present, aborting install..");
abort("Please download this zip again...");
endif;
ui_print("");
ui_print("Installing...");
######### system
ui_print("Wiping SYSTEM");
run_program("/sbin/busybox", "umount", "/system");
format("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/system", "0", "/system");
mount("ext4", "EMMC", "/dev/block/platform/omap/omap_hsmmc.1/by-name/system", "/system");
ui_print("Extracting SYSTEM ");
ui_print("please wait...");
package_extract_dir("system", "/system");
#
ui_print("Installing Busybox & Linking Tools");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("toolbox", "/system/bin/cat");
symlink("toolbox", "/system/bin/chmod");
symlink("toolbox", "/system/bin/chown");
symlink("toolbox", "/system/bin/cmp");
symlink("toolbox", "/system/bin/date");
symlink("toolbox", "/system/bin/dd");
symlink("toolbox", "/system/bin/df");
symlink("toolbox", "/system/bin/dmesg");
symlink("toolbox", "/system/bin/getevent");
symlink("toolbox", "/system/bin/getprop");
symlink("toolbox", "/system/bin/hd");
symlink("toolbox", "/system/bin/id");
symlink("toolbox", "/system/bin/ifconfig");
symlink("toolbox", "/system/bin/iftop");
symlink("toolbox", "/system/bin/insmod");
symlink("toolbox", "/system/bin/ioctl");
symlink("toolbox", "/system/bin/ionice");
symlink("toolbox", "/system/bin/kill");
symlink("toolbox", "/system/bin/ln");
symlink("toolbox", "/system/bin/log");
symlink("toolbox", "/system/bin/ls");
symlink("toolbox", "/system/bin/lsmod");
symlink("toolbox", "/system/bin/lsof");
symlink("toolbox", "/system/bin/md5");
symlink("toolbox", "/system/bin/mkdir");
symlink("toolbox", "/system/bin/mount");
symlink("toolbox", "/system/bin/mv");
symlink("toolbox", "/system/bin/nandread");
symlink("toolbox", "/system/bin/netstat");
symlink("toolbox", "/system/bin/newfs_msdos");
symlink("toolbox", "/system/bin/notify");
symlink("toolbox", "/system/bin/printenv");
symlink("toolbox", "/system/bin/ps");
symlink("toolbox", "/system/bin/reboot");
symlink("toolbox", "/system/bin/renice");
symlink("toolbox", "/system/bin/rm");
symlink("toolbox", "/system/bin/rmdir");
symlink("toolbox", "/system/bin/rmmod");
symlink("toolbox", "/system/bin/route");
symlink("toolbox", "/system/bin/schedtop");
symlink("toolbox", "/system/bin/sendevent");
symlink("toolbox", "/system/bin/setconsole");
symlink("toolbox", "/system/bin/setprop");
symlink("mksh", "/system/bin/sh");
symlink("toolbox", "/system/bin/sleep");
symlink("toolbox", "/system/bin/smd");
symlink("toolbox", "/system/bin/start");
symlink("toolbox", "/system/bin/stop");
symlink("toolbox", "/system/bin/sync");
symlink("toolbox", "/system/bin/top");
symlink("toolbox", "/system/bin/touch");
symlink("toolbox", "/system/bin/umount");
symlink("toolbox", "/system/bin/uptime");
symlink("toolbox", "/system/bin/vmstat");
symlink("toolbox", "/system/bin/watchprops");
symlink("toolbox", "/system/bin/wipe");
ui_print("Setting Permission...");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(1000, 1005, 0777, 0777, "/system/etc/init.d");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 0, 0755, 0700, "/system/bootstrap");
set_perm(0, 0, 0755, "/system/bin/e2fsck");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 3004, 02755, "/system/bin/ping6");
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/firstboot.sh");
set_perm(0, 0, 0755, "/system/etc/install-recovery.sh");
set_perm(1002, 1002, 0440, "/system/etc/bluetooth/audio.conf");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(0, 0, 0644, "/system/etc/bluetooth/block_avrcp_toggle.conf");
set_perm(1002, 1002, 0640, "/system/etc/bluetooth/did.conf");
set_perm(1002, 1002, 0440, "/system/etc/bluetooth/input.conf");
set_perm(1002, 1002, 0440, "/system/etc/bluetooth/main.conf");
set_perm(1002, 1002, 0440, "/system/etc/bluetooth/network.conf");
set_perm(1000, 1015, 0644, "/system/etc/apns-conf.xml");
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_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, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
set_perm(0, 0, 06755, "/system/xbin/su");
set_perm_recursive(0, 0, 0711, 06755, "/system/bin/.ext");
run_program("/system/xbin/busybox", "--install", "-s", "/system/xbin");
#Erase Data Prompt and Extract files
###########################################################################
if file_getprop("/tmp/aroma/data.prop", "selected.1") == "1" then
ui_print("Removing Data");
run_program("/sbin/busybox", "mount", "/data");
delete_recursive("/data");
else
######### clean dc
ui_print("Clearing dalvik");
run_program("/sbin/busybox", "mount", "/data");
delete_recursive("/data/dalvik-cache");
######### apps
ui_print("Installing your requested apps");
if file_getprop("/tmp/aroma/option.prop", "item.1.1") == "1" then
if file_getprop("/tmp/datacheck.prop", "holotheme") == "yes" then
run_program("/tmp/aroma/remove.sh", "HoloLightTheme");
run_program("/tmp/aroma/remove.sh", "om.gnexushd.apollo.holoCM");
endif;
package_extract_file("system/apps/bootup/com.gnexushd.apollo.holoCM.apk", "/data/app/com.gnexushd.apollo.holoCM.apk");
set_perm(1000, 1000, 0644, "/data/app/com.gnexushd.apollo.holoCM.apk");
endif;
if file_getprop("/tmp/aroma/option.prop", "item.1.2") == "1" then
if file_getprop("/tmp/datacheck.prop", "gravity") == "yes" then
delete_recursive("data/data/com.ceco.gm2.gravitybox");
run_program("/tmp/aroma/remove.sh", "ceco.gm2.gravitybox");
endif;
package_extract_file("system/apps/bootup/com.ceco.gm2.gravitybox-1.apk", "/data/app/com.ceco.gm2.gravitybox-1.apk");
set_perm(1000, 1000, 0644, "/data/app/com.ceco.gm2.gravitybox-1.apk");
endif;
if file_getprop("/tmp/aroma/option.prop", "item.1.3") == "1" then
if file_getprop("/tmp/datacheck.prop", "xposed") == "yes" then
run_program("/tmp/aroma/remove.sh", "de.robv.android.xposed.installer");
delete_recursive("data/data/de.robv.android.xposed.installer");
endif;
package_extract_file("system/apps/bootup/de.robv.android.xposed.installer-1.apk", "/data/app/de.robv.android.xposed.installer-1.apk");
set_perm(1000, 1000, 0644, "/data/app/de.robv.android.xposed.installer-1.apk");
endif;
if file_getprop("/tmp/aroma/option.prop", "item.1.4") == "1" then
if file_getprop("/tmp/datacheck.prop", "flash") == "yes" then
run_program("/tmp/aroma/remove.sh", "flash_player");
run_program("/tmp/aroma/remove.sh", "adobe.flashplayer");
endif;
package_extract_file("system/apps/bootup/com.adobe.flashplayer.apk", "/data/app/com.adobe.flashplayer.apk");
set_perm(1000, 1000, 0644, "/data/app/com.adobe.flashplayer.apk");
endif;
if file_getprop("/tmp/aroma/option.prop", "item.1.5") == "1" then
if file_getprop("/tmp/datacheck.prop", "ma.wanam") == "yes" then
run_program("/tmp/aroma/remove.sh", "wanam.youtubeadaway");
delete_recursive("data/data/ma.wanam.youtubeadaway");
endif;
package_extract_file("system/apps/bootup/ma.wanam.youtubeadaway-1.apk", "/data/app/ma.wanam.youtubeadaway-1.apk");
set_perm(1000, 1000, 0644, "/data/app/ma.wanam.youtubeadaway-1.apk");
endif;
if file_getprop("/tmp/aroma/system-option.prop", "item.1.6") == "0" then
delete("/system/app/monsterui.apk");
endif;
if file_getprop("/tmp/aroma/system-option.prop", "item.1.7") == "0" then
delete("/system/app/acdisplay.apk");
endif;
if file_getprop("/tmp/aroma/system-option.prop", "item.1.8") == "0" then
delete("/system/app/LockScreen3.apk");
delete("/system/app/LockScreen3.odex");
endif;
##############################################################################
#Music
if file_getprop("/tmp/aroma/system-option.prop", "item.1.1") == "0" then
delete("/system/app/Apollo.apk");
delete("/system/app/Apollo.odex");
endif;
if file_getprop("/tmp/aroma/system-option.prop", "item.1.2") == "0" then
delete("/system/app/MusicPlayer.apk");
delete("/system/app/MusicPlayer.odex");
endif;
if file_getprop("/tmp/aroma/system-option.prop", "item.1.3") == "0" then
delete("/system/app/com.google.android.music.apk");
delete("/system/app/com.google.android.music.odex");
endif;
#############################################################################
#Launcher
if file_getprop("/tmp/aroma/system-option.prop", "item.2.1") == "0" then
delete("/system/app/com.ksmobile.launcher-1.apk");
delete("/system/app/com.ksmobile.launcher-1.odex");
endif;
if file_getprop("/tmp/aroma/system-option.prop", "item.2.2") == "0" then
delete("/system/app/com.google.android.launcher.apk");
delete("/system/app/com.google.android.launcher.odex");
endif;
if file_getprop("/tmp/aroma/system-option.prop", "item.2.3") == "0" then
delete("/system/app/ginlemon.flowerfree-2.apk");
delete("/system/app/ginlemon.flowerfree-2.odex");
if file_getprop("/tmp/aroma/system-option.prop", "item.2.4") == "0" then
delete("/system/app/Action.Launcher.3.apk");
delete("/system/app/Action.Launcher.3.odex");
endif;
######################################################################
#Messaging
if file_getprop("/tmp/aroma/system-message.prop", "item.1.1") == "0" then
delete("/system/app/com.textra.apk");
endif;
if file_getprop("/tmp/aroma/system-message.prop", "item.1.2") == "0" then
delete("/system/app/com.google.android.apps.messaging.apk");
endif;
######################################################################
#Keyboard
if file_getprop("/tmp/aroma/keyboard.prop", "selected.0") == "1" then
package_extract_dir("LG_Keyboard", "/system/app");
delete("/system/app/com.google.android.inputmethod.latin.apk");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
endif;
if file_getprop("/tmp/aroma/keyboard.prop", "selected.0") == "3" then
delete("/system/app/com.google.android.inputmethod.latin.apk");
delete("/system/lib/libjni_unbundled_latinimegoogle.so");
run_program("/tmp/aroma/remove.sh", "google.android.inputmethod.latin");
package_extract_file("Shafta_Keyboard/libjni_unbundled_latinimegoogle.so", "/system/lib/libjni_unbundled_latinimegoogle.so");
package_extract_file("Shafta_Keyboard/Shafta123CreamSandwich6.0.apk", "/system/app/Shafta123CreamSandwich6.0.apk");
package_extract_file("Shafta_Keyboard/Shafta123CreamSandwich6.0.odex", "/system/app/Shafta123CreamSandwich6.0.odex");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
endif;
if file_getprop("/tmp/aroma/keyboard.prop", "selected.0") == "4" then
delete("/system/app/com.google.android.inputmethod.latin.apk");
delete("/system/lib/libjni_unbundled_latinimegoogle.so");
run_program("/tmp/aroma/remove.sh", "google.android.inputmethod.latin");
package_extract_file("Shafta_Keyboard/libjni_unbundled_latinimegoogle.so", "/system/lib/libjni_unbundled_latinimegoogle.so");
package_extract_file("Shafta_Keyboard/ShaftaAppleSauceICS6.0.apk", "/system/app/ShaftaAppleSauceICS6.0.apk");
package_extract_file("Shafta_Keyboard/ShaftaAppleSauceICS6.0.odex", "/system/app/ShaftaAppleSauceICS6.0.odex");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
endif;
if file_getprop("/tmp/aroma/keyboard.prop", "selected.0") == "5" then
delete("/system/app/com.google.android.inputmethod.latin.apk");
delete("/system/lib/libjni_unbundled_latinimegoogle.so");
run_program("/tmp/aroma/remove.sh", "google.android.inputmethod.latin");
package_extract_file("Shafta_Keyboard/libjni_unbundled_latinimegoogle.so", "/system/lib/libjni_unbundled_latinimegoogle.so");
package_extract_file("Shafta_Keyboard/ShaftaLemon6.0.apk", "/system/app/ShaftaLemon6.0.apk");
package_extract_file("Shafta_Keyboard/ShaftaLemon6.0.odex", "/system/app/ShaftaLemon6.0.odex");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
endif;
#####################################################################
#2nd-init Recovery
if file_getprop("/tmp/aroma/recovery.prop", "selected.0") == "1" then
package_extract_file("recovery/twrp/recovery.tar", "/system/bootstrap/recovery.tar");
set_perm(0, 0, 0755, "/system/bootstrap/recovery.tar");
endif;
if file_getprop("/tmp/aroma/recovery.prop", "selected.0") == "2" then
package_extract_file("recovery/cwmtouch/recovery.tar", "/system/bootstrap/recovery.tar");
set_perm(0, 0, 0755, "/system/bootstrap/recovery.tar");
endif;
if file_getprop("/tmp/aroma/recovery.prop", "selected.0") == "3" then
package_extract_file("recovery/cwmreg/recovery.tar", "/system/bootstrap/recovery.tar");
set_perm(0, 0, 0755, "/system/bootstrap/recovery.tar");
endif;
if file_getprop("/tmp/aroma/recovery.prop", "selected.0") == "4" then
package_extract_file("recovery/philzcwm/recovery.tar", "/system/bootstrap/recovery.tar");
set_perm(0, 0, 0755, "/system/bootstrap/recovery.tar");
endif;
#####################################################################
#2nd-init Rom
if file_getprop("/tmp/aroma/init.prop", "selected.1") == "2" then
if file_getprop("/tmp/aroma/swap.prop", "selected.1") == "2" then
delete("/system/etc/init.d/69swap");
endif;
# installing required files
package_extract_dir("regular", "/system");
delete("/system/bootstrap/boot.tar");
set_perm(0, 0, 0755, "/system/etc/install-recovery.sh");
set_perm(0, 0, 0644, "/system/etc/vold.fstab");
set_perm(0, 0, 0644, "/system/framework/framework-res.apk");
else
delete("/system/etc/init.d/69swap");
endif;
#####################################################################
#Model
if file_getprop("/tmp/aroma/model.prop", "selected.0") == "1" then
package_extract_dir("model/P760", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 0, 0644, "/system/build.prop");
endif;
if file_getprop("/tmp/aroma/model.prop", "selected.0") == "2" then
package_extract_dir("model/P765", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 0, 0644, "/system/build.prop");
endif;
if file_getprop("/tmp/aroma/model.prop", "selected.0") == "3" then
package_extract_dir("model/P768", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 0, 0644, "/system/build.prop");
endif;
if file_getprop("/tmp/aroma/model.prop", "selected.0") == "4" then
package_extract_dir("model/P769", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/vendor/firmware");
set_perm(0, 2000, 0755, "/system/vendor/firmware");
set_perm(0, 0, 0644, "/system/build.prop");
delete("/system/app/FmRadio.apk");
ui_print("Uploading Boot Image...");
package_extract_file("boot769.img", "/dev/block/mmcblk0p3");
else
ui_print("Uploading Boot Image...");
package_extract_file("boot760.img", "/dev/block/mmcblk0p3");
endif;
#############################
if file_getprop("/tmp/aroma/loader.prop", "selected.1") == "2" then
ui_print("Installing ICE Recovery");
package_extract_file("ice769-recovery.img", "/dev/block/mmcblk0p4");
endif;
######################################################
if file_getprop("/tmp/aroma/init.prop", "selected.1") == "1" then
run_program("/tmp/aroma/move2sd.sh");
set_perm(0, 0, 0644, "/system/build.prop");
endif;
#############################################
ui_print(" Clearing cache");
delete_recursive("/cache");
unmount("/data");
unmount("/cache");
unmount("/system");
ui_print("Install Complete");
ui_print("");
ui_print("Enjoy!");
ui_print("");
And the error is here-->
Code:
AROMA INSTALLER version 3.00
(c) 2013-2015 by amarullz.com
ROM Name : UltraRom
ROM Version : 6b
ROM Author : UltraRoboto
Device : L9 Variants
Start at : Mon Oct 26 00:32:12 2015
installing samsung updater extensions
line 390 col 1: syntax error, unexpected $end
1 parse errors
Installer Error (Status 6)
End at : Mon Oct 26 00:32:12 2015
any help?
Hello xda
So today i just wanted to make a flashable update zip, so, i have the zip archive with 2 folders, one is the META-INF, the other one is system, (the system folder is empty!)
And now, when i flash the zip in twrp, i'm getting:
Updater process ended with ERROR: 6
My update-script looks like this:
HTML:
set_perm_recursive(0, 0, 0755, 0644, "/system");
ui_print("- Mounting...")
mount("ext4", "MTD", "system", "/system");
ui_print("- Installing...");
package_extract_dir("system", "/system");
unmount("/system");
ui_print("- Done, Enjoy!");
The only thing what i wanna do is that the /system gets mounted, then, the system should install, and then, /system should be unmounted.
Can someone help me? I have a HTC One M8 and TWRP 3.0.0.1. Thanks.
Line 2 is missing a semi-colon at the end. Just figured that out myself.
@KevYoshi;65657737
Maybe it is bad End Of Line conversion. Please look this yt tutorial https://youtu.be/Za9H7TgeZ50
mew1033 said:
Line 2 is missing a semi-colon at the end. Just figured that out myself.
Click to expand...
Click to collapse
Oh, i see, Thanks i will try again later
The assert line is missing in the final updater-script.
Should be:
Code:
assert(getprop("ro.product.device") == "angler" || getprop("ro.build.product") == "angler" || getprop("ro.product.name") == "angler" ||
abort("This package is for \"angler\" devices; this is a \"" + getprop("ro.product.device") + "\"."););
But instead is:
Code:
abort("This package is for \"angler\" devices; this is a \"" + getprop("ro.product.device") + "\"."););
The first line is missing.
@KevYoshi, if all else fails, see if either of the following threads, at least, provides you with some kind of solution to the annoying "TWRP Error: 6".
TWRP error :6 by andy21304
updater-script error 6 in twrp 2.8.7.0 by zwiebug
I wish you the best of luck!
"Live Long and Prosper..."
~Ambassador S'chn T'gai Spock
Sent via Communicator [D2VZW] from the Bridge of the U.S.S. Enterprise
I have lg g3 d855 and today i try 3 different room and whit every room i get error 6
where is mistake?
assert(getprop("ro.product.device") == "g3,d855" || getprop("ro.build.product") == "g3,d855" || getprop("ro.product.device") == "g3,d855" || getprop("ro.build.product") == "g3,d855" || abort("E3004: This package is for device: g3,d855; this device is " + getprop("ro.product.device") + ".");
assert(g3,d855.verify_baseband("21C:MPSS.DI.2.0.1.C1.13.2-00002") == "1");
ifelse(is_mounted("/system"), unmount("/system"));
package_extract_dir("install", "/tmp/install");
set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup");
unmount("/system");
if is_mounted("/data") then
package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
else
mount("f2fs", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/userdata", "/data", "");
package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
unmount("/data");
endif;
show_progress(0.750000, 0);
ui_print(" ");
ui_print("Flashing System..");
block_image_update("/dev/block/platform/msm_sdcc.1/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat");
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/platform/msm_sdcc.1/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/platform/msm_sdcc.1/by-name/boot");
show_progress(0.200000, 10);
set_progress(1.000000);
Click to expand...
Click to collapse
Code:
ui_print("Mod : Lenovo File Manager");
ui_print("By : AbhayRuparel");
ui_print("Status : Mouting system");
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system");
ui_print("Status : Adding filemanger ported");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/priv-app/FileBrowser/FileBrowser.apk");
unmount("/system");
ui_print("Status : Done");
ui_print("Message : Reboot Mobile");
can anyone tell me why im getting error 6?
Hello xda,
I have about the same issue with my Zenfone3 (ze520kl)
I tried to flash lineage-14.1-20170408-Z017 with TWRP but got an error 7. (it said that my phone is a ze520kl and not Z017)
After some research, i found that the "assert" lines can be deleted.
The problem is that now that the error 7 isn't here anymore, there goes the error 6.
Here is the original code:
HTML:
(!less_than_int(1491664861, getprop("ro.build.date.utc"))) || abort("E3003: Can't install this package (Sat Apr 8 23:21:01 CST 2017) over newer build (" + getprop("ro.build.date") + ").");
assert(getprop("ro.product.device") == "ze520kl" || getprop("ro.build.product") == "Z017" || getprop("ro.product.device") == "ASUS_Z017D_1" || getprop("ro.build.product") == "ASUS_Z017D_1" || abort("E3004: This package is for device: Z017,ASUS_Z017D_1; this device is " + getprop("ro.product.device") + ";" +getprop("ro.build.product") "."););
ui_print("Target: asus/lineage_Z017/Z017:7.1.1/NOF27B/dfeb25c1ec:userdebug/test-keys");
ifelse(is_mounted("/system"), unmount("/system"));
package_extract_dir("install", "/tmp/install");
set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup");
unmount("/system");
if is_mounted("/data") then
package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
else
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/userdata", "/data", "");
package_extract_file("META-INF/org/lineageos/releasekey", "/tmp/releasekey");
run_program("/tmp/install/bin/otasigcheck.sh") != "31744" || abort("Can't install this package on top of incompatible data. Please try another package or run a factory reset");
unmount("/data");
endif;
show_progress(0.750000, 0);
ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/bootdevice/by-name/system", package_extract_file("system.transfer.list"), "system.new.dat", "system.patch.dat") ||
abort("E1001: Failed to update system image.");
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");
show_progress(0.200000, 10);
set_progress(1.000000);
The lines I deleted were these ones:
HTML:
(!less_than_int(1491664861, getprop("ro.build.date.utc"))) || abort("E3003: Can't install this package (Sat Apr 8 23:21:01 CST 2017) over newer build (" + getprop("ro.build.date") + ").");
assert(getprop("ro.product.device") == "ze520kl" || getprop("ro.build.product") == "Z017" || getprop("ro.product.device") == "ASUS_Z017D_1" || getprop("ro.build.product") == "ASUS_Z017D_1" || abort("E3004: This package is for device: Z017,ASUS_Z017D_1; this device is " + getprop("ro.product.device") + ";" +getprop("ro.build.product") "."););
Do you guys have an idea on how to flash it properly?
Or eventually get rid of the error 6?
Post-scriptum: After my first try, I got the phone in a bootloop and TWRP says that there is no OS.
I tried to flash with several ROMs but no one got passed the error 7 or 6 in TWRP.
The version of TWRP I have is 3.0.2-0
Hello!
I faced with this issue too. Can anybody help me to solve? Here is the sricpt:
ui_print("****Enabling F2FS ...****");
ui_print("Extracting flashing tools...");
package_extract_dir("tools", "/tmp");
set_progress(0.2);
ui_print("Enabling F2FS...");
set_metadata_recursive("/tmp/f2fs.sh", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0777);
run_program("/tmp/f2fs.sh");
set_progress(0.6);
ui_print("F2FS enabled!");
set_progress(1.0);
Thanks in advance!
lenovo k5 flash rom 8.0
i am french
i have error 6
i have twrp recovery and custom rom 7.1.2 in external sdcard and i don't have a primary rom
help me please
tristan7700 said:
i am french
i have error 6
i have twrp recovery and custom rom 7.1.2 in external sdcard and i don't have a primary rom
help me please
Click to expand...
Click to collapse
Same for me
Twrp Error 6 (3.0.2.0) Need Urgent Help!!!
ui_print("******************************************");
ui_print("____________Micromax_Q346_Bolt____________");
ui_print("_________Project_Speed_mini_v.0.5 ________");
ui_print("******************************************");
set_progress(1.000000);
show_progress(0.500000, 0);
ui_print("format to partition /system...");
unmount("/system");
format("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/system", "0", "/system");
mount("ext4", "EMMC", "/dev/block/platform/sprd-sdhci.3/by-name/system", "/system");
ui_print("Unpacking system...");
package_extract_dir("system", "/system");
ui_print("Creating symlinks...");
symlink("/data/local/media/vbc_eq", "/system/vendor/firmware/vbc_eq");
symlink("/lib/modules/autotst.ko", "/system/lib/modules/autotst.ko");
symlink("/lib/modules/gator.ko", "/system/lib/modules/gator.ko");
symlink("/lib/modules/mmc_test.ko", "/system/lib/modules/mmc_test.ko");
symlink("/lib/modules/sprdwl.ko", "/system/lib/modules/sprdwl.ko");
symlink("/lib/modules/trout_fm.ko", "/system/lib/modules/trout_fm.ko");
symlink("/system/lib/libbluetooth_jni.so", "/system/app/Bluetooth/lib/arm/libbluetooth_jni.so");
symlink("/system/lib/libdefcontainer_jni.so", "/system/priv-app/DefaultContainerService/lib/arm/libdefcontainer_jni.so");
symlink("/system/lib/libjni_jpegutil.so", "/system/app/Camera2/lib/arm/libjni_jpegutil.so");
symlink("/system/lib/libjni_pacprocessor.so", "/system/app/PacProcessor/lib/arm/libjni_pacprocessor.so");
symlink("/system/lib/libjni_tinyplanet.so", "/system/app/Camera2/lib/arm/libjni_tinyplanet.so");
symlink("/system/lib/libprintspooler_jni.so", "/system/app/PrintSpooler/lib/arm/libprintspooler_jni.so");
symlink("Roboto-Bold.ttf", "/system/fonts/DroidSans-Bold.ttf");
symlink("Roboto-Regular.ttf", "/system/fonts/DroidSans.ttf");
symlink("app_process32", "/system/bin/app_process");
symlink("dalvikvm32", "/system/bin/dalvikvm");
symlink("libGLESv2.so", "/system/lib/libGLESv3.so");
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/prlimit",
"/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");
ui_print("Set permissing...");
set_metadata_recursive("/system", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata_recursive("/system/bin", "uid", 0, "gid", 2000, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/bin/app_process32", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:zygote_exec:s0");
set_metadata("/system/bin/batterysrv", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:batterysrv_exec:s0");
set_metadata("/system/bin/bootanimation", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:bootanim_exec:s0");
set_metadata("/system/bin/clatd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:clatd_exec:s0");
set_metadata("/system/bin/cp_diskserver", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:cp_diskserver_exec:s0");
set_metadata("/system/bin/debuggerd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:debuggerd_exec:s0");
set_metadata("/system/bin/dex2oat", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:dex2oat_exec:s0");
set_metadata("/system/bin/dhcpcd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:dhcp_exec:s0");
set_metadata("/system/bin/dnsmasq", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:dnsmasq_exec:s0");
set_metadata("/system/bin/drmserver", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:drmserver_exec:s0");
set_metadata("/system/bin/dumpstate", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:dumpstate_exec:s0");
set_metadata("/system/bin/engpc", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:engpc_exec:s0");
set_metadata("/system/bin/hostapd", "uid", 0, "gid", 2000, "mode", 0755, "capabilities", 0x0, "selabel", "ubject_r:hostapd_exec:s0");
set_metadata("/system/bin/install-recovery.sh", "uid", 0, "gid", 0, "mode", 0750, "capabilities", 0x0, "selabel", "ubject_r:install_recovery_exec:s0");
Please fix this script.!!!!Thanks in advance.
hi everyone, i know this thread is old but still useful for others who are experiencing same problem today so im gonna share you guys how to fix this one..
make sure to check your updater-script for errors, if you think there is no error then do the ff:
you need:
winrar or zip or 7z or similar...
1.) read the first comment by @mew1033 --- if you are still in trouble, then,
2.) search in the internet for a patch.zip <-- this .zip is usually a bug fix for a certain device. lets say the patch is called fix_fingerprint_goodix_santoni.zip or fpc_fix.zip etc...
open the patch.zip and extract the update-binary (located in META-INF / com / google / android / update-binary)
open your zip (META-INF / com / google / android / * to be exact) and replace it with the one you extracted, then try to flash.
note:
when opening your zip and make some changes to it, be sure to use the default settings of the archiver or else it wont be recognized with your twrp recovery.
Goodluck and happy flashing!
Error 6 /e/ OS
Hello,
excuse me in advance for my English, I use a translator.
I have a problem with the installation of /e/ OS on a Samsung A3 2016 I have the error message 6 that appears, I tried everything that was said, unfortunately nothing has changed ... If you can help me please, here is the code:
this device is " + getprop("ro.product.device") + ".");
ui_print("Target: samsung/lineage_a3xeltexx/a3xeltexx:8.1.0/OPM7.181205.001/a7cf732ec7:userdebug/dev-keys");
ifelse(is_mounted("/system"), unmount("/system");
ui_print(" ");
ui_print(" Thanks for installing ");
ui_print(" Source code available on GitHub : @Exynos7580 ");
ui_print(" ");
ui_print(" --> Maintainer: danwood76 ");
ui_print(" --> Device: Samsung Galaxy A3 2016 ");
ui_print(" ");
package_extract_dir("install", "/tmp/install");
set_metadata_recursive("/tmp/install", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644);
set_metadata_recursive("/tmp/install/bin", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755);
mount("ext4", "EMMC", "/dev/block/platform/13540000.dwmmc0/by-name/SYSTEM", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup");
unmount("/system");
show_progress(0.750000, 0);
ui_print("Patching system image unconditionally...");
block_image_update("/dev/block/platform/13540000.dwmmc0/by-name/SYSTEM", package_extract_file("system.transfer.list"), "system.new.dat.br", "system.patch.dat") ||
abort("E1001: Failed to update system image.");
show_progress(0.020000, 10);
mount("ext4", "EMMC", "/dev/block/platform/13540000.dwmmc0/by-name/SYSTEM", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "restore");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/platform/13540000.dwmmc0/by-name/BOOT");
show_progress(0.200000, 10);
set_progress(1.000000);
Thank you in advance for your help!
Hello,
i got TWRP Error 6
Code:
mount("yaffs2","MTD","system", "/system");
package_extract_dir() {
local entry outfile;
for entry in $(unzip -l "$ZIPFILE" 2>/dev/null | tail -n+4 | grep -v '/$' | grep -o " $1.*$" | cut -c2-); do
outfile="$(echo "$entry" | sed "s|${1}|${2}|")";
mkdir -p "$(dirname "$outfile")";
unzip -o "$ZIPFILE" "$entry" -p > "$outfile";
done;
}
unmount("/system");
ui_print("done");
ui_print("");
ui_print("[email protected]");
can you help me out?
007fred62 said:
Hello,
i got TWRP Error 6
Code:
mount("yaffs2","MTD","system", "/system");
package_extract_dir() {
local entry outfile;
for entry in $(unzip -l "$ZIPFILE" 2>/dev/null | tail -n+4 | grep -v '/$' | grep -o " $1.*$" | cut -c2-); do
outfile="$(echo "$entry" | sed "s|${1}|${2}|")";
mkdir -p "$(dirname "$outfile")";
unzip -o "$ZIPFILE" "$entry" -p > "$outfile";
done;
}
unmount("/system");
ui_print("done");
ui_print("");
ui_print("[email protected]");
can you help me out?
Click to expand...
Click to collapse
Your script is a mix of EDIFY script and SHELL script. That cannot work.
ui_print("#############");
ui_print("####MIUI#####");
ui_print("#############");
ui_print("###DEBLOAT###");
ui_print("#############");
ui_print("###ENGAGE!###");
ui_print("#############");
ui_print(" ");
ui_print("...Mounting System...");
ui_print(" ");
ui_print("------------------");
ui_print("ReMove Dual Apps Data folders v0.0.1");
ui_print("------------------");
run_program("/sbin/busybox", "mount", "/system");
ui_print(" ");
delete_recursive("/system/app/AiAsstVision");
delete_recursive("/system/app/AnalyticsCore");
delete_recursive("/system/app/BTProductionLineTool");
delete_recursive("/system/app/BasicDreams");
delete_recursive("/system/app/BookmarkProvider");
delete_recursive("/system/app/BuiltInPrintService");
delete_recursive("/system/app/Calculator");
delete_recursive("/system/app/CatchLog");
delete_recursive("/system/app/CloudService");
delete_recursive("/system/app/Cit");
delete_recursive("/system/app/CloudPrint2");
delete_recursive("/system/app/EasterEgg");
delete_recursive("/system/app/Email");
delete_recursive("/system/app/FM");
delete_recursive("/system/app/GooglePrintRecommendationService");
delete_recursive("/system/app/GoogleTTS");
delete_recursive("/system/app/GuardProvider");
delete_recursive("/system/app/Health");
delete_recursive("/system/app/HtmlViewer");
delete_recursive("/system/app/Joyose");
delete_recursive("/system/app/KSICibaEngine");
delete_recursive("/system/app/Lens");
delete_recursive("/system/app/mi_connect_service");
delete_recursive("/system/app/MiCloudSync");
delete_recursive("/system/app/MiDrive");
delete_recursive("/system/app/MarkupGoogle");
delete_recursive("/system/app/MiLinkService");
delete_recursive("/system/app/MiPlayClient");
delete_recursive("/system/app/MiRadio");
delete_recursive("/system/app/MiuiBugReport");
delete_recursive("/system/app/MiuiContentCatcher");
delete_recursive("/system/app/MiuiDaemon");
delete_recursive("/system/app/MiuiAccessibility");
delete_recursive("/system/app/MiuiScreenRecorder");
delete_recursive("/system/app/MiuiSuperMarket");
delete_recursive("/system/app/MiuiVideoGlobal");
delete_recursive("/system/app/NextPay");
delete_recursive("/system/app/PartnerBookmarksProvider");
delete_recursive("/system/app/PaymentService");
delete_recursive("/system/app/PrintRecommendationService");
delete_recursive("/system/app/PrintSpooler");
delete_recursive("/system/app/Protips");
delete_recursive("/system/app/slaservice");
delete_recursive("/system/app/SoterService
delete_recursive("/system/app/Stk");
delete_recursive("/system/app/VsimCore
delete_recursive("/system/app/XMCloudEngine");
delete_recursive("/system/app/YellowPage");
delete_recursive("/system/app/YouDaoEngine");
delete_recursive("/system/app/greenguard");
delete_recursive("/system/app/lens");
delete_recursive("/system/app/mi_connect_service");
delete_recursive("/system/app/wps_lite");
delete_recursive("/system/app/Zman");
delete_recursive("/system/data-app/");
delete_recursive("/system/data-app/BaiduIME");
delete_recursive("/system/data-app/Email");
delete_recursive("/system/data-app/MiFinance");
delete_recursive("/system/data-app/MiMobileNoti");
delete_recursive("/system/data-app/MiShop");
delete_recursive("/system/data-app/XiaomiSpeechEngine");
delete_recursive("/system/data-app/cn.wps.moffice_eng");
delete_recursive("/system/data-app/com.eg.android.AlipayGphone");
delete_recursive("/system/data-app/com.taobao.taobao");
delete_recursive("/system/data-app/com.xunmeng.pinduoduo");
delete_recursive("/system/priv-app/BATestApp");
delete_recursive("/system/priv-app/CleanMaster");
delete_recursive("/system/priv-app/DynamicSystemInstallationService");
delete_recursive("/system/priv-app/GoogleFeedback");
delete_recursive("/system/priv-app/GooglePartnerSetup");
delete_recursive("/system/priv-app/HotwordEnrollmentOKGoogleWCD9340");
delete_recursive("/system/priv-app/HotwordEnrollmentXGoogleWCD9340");
delete_recursive("/system/priv-app/MiMoverGlobal");
delete_recursive("/system/priv-app/MiRecycle");
delete_recursive("/system/priv-app/MiService");
delete_recursive("/system/priv-app/MiShare");
delete_recursive("/system/priv-app/PersonalAssistant");
delete_recursive("/system/priv-app/QuickSearchBox");
delete_recursive("/system/priv-app/Updater");
delete_recursive("/system/priv-app/Velvet");
delete_recursive("/system/priv-app/VpnDialogs");
delete_recursive("/system/priv-app/WellbeingPrebuilt");
delete_recursive("/system/priv-app/YellowPage");
delete_recursive("/system/product/app/GoogleLocationHistory");
delete_recursive("/system/product/app/GoogleTTS");
delete_recursive("/system/product/app/SoundPickerPrebuilt");
delete_recursive("/system/product/app/SoundPickerGoogle");
delete_recursive("/system/product/app/TrichomeLibrary");
delete_recursive("/system/product/app/uceShimService");
delete_recursive("/system/product/app/xdivert");
delete_recursive("/system/product/priv-app/AndroidAutoStrub");
delete_recursive("/system/product/priv-app/CarrierServices");
delete_recursive("/system/product/priv-app/GoogleAssistant");
delete_recursive("/system/product/priv-app/GoogleFeedback");
delete_recursive("/system/product/priv-app/HotwordEnrollmentOKGoogleHE");
delete_recursive("/system/product/priv-app/HotwordEnrollmentXGoogleHEX");
delete_recursive("/system/product/priv-app/Launcher3QuickStep");
delete_recursive("/system/product/priv-app/Velvet");
delete_recursive("/system/vendor/app/CneApp");
delete_recursive("/system/vendor/app/aiasst_service");
delete_recursive("/system/vendor/data-app/");
delete_recursive("/system/vendor/data-app/SmartHome");
delete_recursive("/system/vendor/data-app/aiasst_service");
delete_recursive("/system/vendor/data-app/wps-lite");
# Removals COMPLETE
run_program("/sbin/busybox", "umount", "/system");
ui_print("Done!");
Please fix this script.!!!!Thanks in advance.