[HELP] E:Error when flashing ROM - Android Software Development

I'm a new developer and I am trying to release my next update for the Droid X2 MinimalX. Everything is built and should be, to my knowledge, functioning flawlessly.
When trying to flash the ROM, I run into this error:
Code:
E:Error in /emmc/...[rom name]
(status 6)
I've had this problem previously, and fixed it by correcting issues in my updater-script, but here, I cannot find where the error is occurring.
Any help is greatly appreciated.
updater-script:
Code:
#
# Updater-script for Motorola Droid X2 by c21johnson
#
ui_print(" c21johnson ");
ui_print(" presents ");
ui_print(" _ __ __");
ui_print(" _ __ ___ (_)_ __ \ \/ /");
ui_print("| '_ ` _ \| | '_ \ \ / ");
ui_print("| | | | | | | | | |/ \ ");
ui_print("|_| |_| |_|_|_| |_/_/\_\");
ui_print(" DULCE ");
ui_print(" ");
ui_print("Having sexual intercourse with X2");
ui_print(" aka mounting ");
mount("ext3", "/dev/block/mmcblk0p12", "/system");
mount("ext3", "/dev/block/mmcblk0p16", "/data");
ui_print("Debloat-ify");
format("ext3", "/dev/block/mmcblk0p12", "/system");
format("ext3", "/dev/block/mmcblk0p15", "/cache");
format("ext3", "/dev/block/mmcblk0p17", "/preinstall");
delete_recursive("/data/data/com.android.vending/cache");
delete_recursive("/data/dalvik-cache");
delete("/data/system/batterystats.bin");
ui_print("Installing MinSystem...");
package_extract_dir("system", "/system");
ui_print("...");
package_extract_dir("data", "/data");
ui_print("Complete!");
ui_print("Setting permissions...");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm(0, 1000, 06750, "/system/bin/encryption_test");
set_perm(0, 3003, 02750, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 1001, 04770, "/system/bin/pppd-ril");
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, 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/bin/su");
set_perm(0, 0, 06777, "/system/app/Superuser.apk");
set_perm(0, 0, 06755, "/system/xbin/su");
run_program("/system/bin/busybox", "--install", "/system/xbin");
ui_print("System Minimalized");
ui_print(" ");
ui_print(" ");
unmount("/system");
unmount("/data");
ui_print(" DroidForums.net ");
ui_print(" ");
ui_print(" +=======Minimal X======+ ");
ui_print(" | [email protected] | ");
ui_print(" +======================+ ");
ui_print(" Thanks!!! ");
ui_print(" ");
ui_print("Allow ~5min for intial boot");
Thanks again!

Related

please around help in mine script´s is a mistake

I search an expert to me in my Rom the AROMA script and updater script on mistake can examine.
the works on eu leo and not on the tmous leo.
somewhere there sits a mistake and I cannot find him
here is the rom link:
http://d-h.st/ifW
many thanks
pixelfreak
re
it is so sadly nobody wants to help(assist).
-pixelfreak- said:
it is so sadly nobody wants to help(assist).
Click to expand...
Click to collapse
I guess the main reason why there is no help is none would want to download 400+ MB to see what is the mistake in the script. Posting the script alone, or a zip without the /system and /boot would be easier to check.
Swyped from my HTC HD2 using XDA app
ph03n!x said:
I guess the main reason why there is no help is none would want to download 400+ MB to see what is the mistake in the script. Posting the script alone, or a zip without the /system and /boot would be easier to check.
Swyped from my HTC HD2 using XDA app
Click to expand...
Click to collapse
but only so one can understand exactly the structure of Rom. only scripte will not bring there a lot.
pixelfreak
re
i have 4 kernels in my rom. under magldr can i work with GBLeo. the other kernels have mistake with WIFI. i think the mistake is in the updater script. i clk work all kernels good.
Code:
################# MAGLDR marc
ui_print("@- KERNEL Installation");
if
file_getprop("/tmp/aroma-data/kernel.prop","selected.1") == "1" &&
file_getprop("/tmp/aroma-data/kernelver.prop","selected.1") == "1"
then
ui_print(" ");
ui_print("@- MAGLDR kernel marc1706 0.2.2...");
format("MTD", "boot");
mount("MTD", "boot", "/boot");
package_extract_dir("kernels/kernels_marc/boot", "/boot");
package_extract_dir("systems/system_marc","/system");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 0, 0777, "/system/etc/init.d/01_modules");
set_progress(0.96);
run_program("/system/bin/reboot");
else
ui_print("@- kein MAGLDR kernel marc1706 0.2.2 Installiert...");
endif;
################ MAGLDR GBL
if
file_getprop("/tmp/aroma-data/kernel.prop","selected.1") == "1" &&
file_getprop("/tmp/aroma-data/kernelver.prop","selected.1") == "2"
then
ui_print(" ");
ui_print("@- MAGLDR GBLeoKernel-1.3-TBD+WiFi...");
format("MTD", "boot");
mount("MTD", "boot", "/boot");
package_extract_dir("kernels/kernels_GBLeo/boot", "/boot");
delete("/system/lib/modules");
delete("/system/etc/init.d/01_modules");
package_extract_dir("systems/system_GBLeo","/system");
set_perm(0, 0, 0777, "/system/bin/compcache");
set_perm(0, 0, 0777, "/system/bin/zram_stats");
set_perm(0, 0, 0777, "/system/bin/handle_compcache");
set_perm(0, 0, 0777, "/system/bin/bash");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 0, 0777, "/system/etc/init.d/01_modules");
set_progress(0.96);
run_program("/system/bin/reboot");
else
ui_print("@- kein MAGLDR GBLeoKernel-1.3-TBD+WiFi Installiert...");
endif;
################ MAGLDR WARREN
if
file_getprop("/tmp/aroma-data/kernel.prop","selected.1") == "1" &&
file_getprop("/tmp/aroma-data/kernelver.prop","selected.1") == "3"
then
ui_print(" ");
ui_print("@- MAGLDR Kernel Warren...");
format("MTD", "boot");
mount("MTD", "boot", "/boot");
package_extract_dir("kernels/kernels_warren/boot", "/boot");
delete("/system/lib/modules");
delete("/system/etc/init.d/01_modules");
package_extract_dir("systems/system_warren", "/system");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 0, 0777, "/system/etc/init.d/01_modules");
set_progress(0.96);
run_program("/system/bin/reboot");
else
ui_print("@- kein MAGLDR Warren Kernel Installiert...");
endif;
################ MAGLDR FIKRET
if
file_getprop("/tmp/aroma-data/kernel.prop","selected.1") == "1" &&
file_getprop("/tmp/aroma-data/kernelver.prop","selected.1") == "4"
then
ui_print(" ");
ui_print("@- MAGLDR Kernel Fikret...");
format("MTD", "boot");
mount("MTD", "boot", "/boot");
package_extract_dir("kernels/kernels_fikret/boot", "/boot");
package_extract_dir("systems/system_fikret", "/system");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 0, 0777, "/system/etc/init.d/01_modules");
set_progress(0.96);
run_program("/system/bin/reboot");
else
ui_print("@- kein MAGLDR Fikret Kernel Installiert...");
endif;
############## CLK marc
if
file_getprop("/tmp/aroma-data/kernel.prop","selected.1") == "2" &&
file_getprop("/tmp/aroma-data/kernelver.prop","selected.1") == "1"
then
ui_print(" ");
ui_print("@- CLK kernel marc1706 0.2.2...");
format("MTD", "boot");
assert(package_extract_file("kernels/kernels_marc/boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
package_extract_dir("clk/clk_marc", "/system");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm(0, 0, 0777, "/system/etc/init.d/01_modules");
set_perm_recursive(0, 0, 0755, 0750, "/system/etc/ppp");
set_progress(0.96);
run_program("/system/bin/reboot");
else
ui_print("@- kein CLK kernel marc1706 0.2.2... Installiert");
endif;
############## CLK GBL
if
file_getprop("/tmp/aroma-data/kernel.prop","selected.1") == "2" &&
file_getprop("/tmp/aroma-data/kernelver.prop","selected.1") == "2"
then
ui_print(" ");
ui_print("@- CLK GBLeoKernel-1.3-TBD+WiFi...");
format("MTD", "boot");
assert(package_extract_file("kernels/kernels_GBLeo/boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
delete("/system/lib/modules");
delete("/system/etc/init.d/01_modules");
package_extract_dir("clk/clk_GBLeo", "/system");
package_extract_dir("systems/system_GBLeo","/system");
set_perm(0, 0, 0777, "/system/bin/compcache");
set_perm(0, 0, 0777, "/system/bin/zram_stats");
set_perm(0, 0, 0777, "/system/bin/handle_compcache");
set_perm(0, 0, 0777, "/system/bin/bash");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0750, "/system/etc/ppp");
set_progress(0.96);
run_program("/system/bin/reboot");
else
ui_print("@- kein CLK GBLeoKernel-1.3-TBD+WiFi... installiert...");
endif;
############## CLK WARREN
if
file_getprop("/tmp/aroma-data/kernel.prop","selected.1") == "2" &&
file_getprop("/tmp/aroma-data/kernelver.prop","selected.1") == "3"
then
ui_print(" ");
ui_print("@- CLK Kernel Warren...");
format("MTD", "boot");
assert(package_extract_file("kernels/kernels_warren/boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
delete("/system/lib/modules");
delete("/system/etc/init.d/01_modules");
package_extract_dir("clk/clk_warren", "/system");
package_extract_dir("systems/system_warren","/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0750, "/system/etc/ppp");
set_progress(0.96);
run_program("/system/bin/reboot");
else
ui_print("@- kein CLK Warren Kernel Installiert...");
endif;
############## CLK FIKRET
if
file_getprop("/tmp/aroma-data/kernel.prop","selected.1") == "2" &&
file_getprop("/tmp/aroma-data/kernelver.prop","selected.1") == "4"
then
ui_print(" ");
ui_print("@- CLK Kernel Fikret...");
format("MTD", "boot");
assert(package_extract_file("kernels/kernels_fikret/boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
delete("/system/lib/modules");
delete("/system/etc/init.d/01_modules");
package_extract_dir("clk/clk_fikret", "/system");
package_extract_dir("systems/system_fikret","/system");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");
set_perm_recursive(0, 2000, 0755, 0750, "/system/etc/init.d");
set_perm(0, 0, 0755, "/system/etc/init.d");
set_perm_recursive(0, 0, 0755, 0750, "/system/etc/ppp");
set_progress(0.96);
run_program("/system/bin/reboot");
else
ui_print("@- kein CLK Fikret Kernel Installiert...");
endif;
unmount("/boot");
unmount("/system");
unmount("/data");
unmount("/sd-ext");
ui_print(" ");
ui_print(" ");
ui_print("@FERTIG...");
set_progress(1.0);
here is my meta.inf

[HELP][Q]Own Custom ROM Error- Root Problems

Hello Everyone! I hope somebody can help me.
I'm creating a custom ROM for SGY using DXLF1.
Deodexed and Zipaligned.
I already added the bmlunlock, Busybox and the SuperUser
However, some of the Applications don't detect the SuperUser.
I don't know if the error come's from the Updater Script.
Well, here's the code.
Code:
show_progress(0.1, 0);
format("MTD", "system");
mount("MTD", "system", "/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, 06755, "/system/bin/ip");
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_recursive(1002, 1002, 0755, 0440, "/system/etc/bluez");
set_perm(0, 0, 0755, "/system/etc/bluez");
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, 06755, "/system/bin/su");
symlink("/system/bin/su", "/system/xbin/su");
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, 0644, "/system/vendor");
set_perm_recursive(0, 2000, 0755, 0755, "/system/vendor/bin");
set_perm_recursive(0, 2000, 0755, 0644, "/system/vendor/etc");
set_perm(0, 0, 0644, "/system/vendor/etc/gps.xml");
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/egl");
set_perm(0, 2000, 0755, "/system/vendor/lib/hw");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm(0, 1000, 0755, "/system/xbin/busybox");
symlink("/system/xbin/busybox", "/system/bin/busybox");
package_extract_file("installbusybox", "/tmp/installbusybox");
set_perm(0, 0, 0777, "/tmp/installbusybox");
run_program("/tmp/installbusybox");
show_progress(0.1, 10);
show_progress(0.2, 0);
ui_print("--flashing boot.img");
package_extract_file("bmlunlock", "bmlunlock");
package_extract_file("boot.img", "boot.img");
set_perm(0, 0, 0755, "bmlunlock");
run_program("bmlunlock");
run_program("/system/bin/dd", "if=boot.img", "of=/dev/block/bml7");
show_progress(0.2, 10);
ui_print("Done flashing boot");
show_progress(0.2, 10);
ui_print("Get ready to unmount");
unmount("/data");
unmount("/system");
unmount("/sdcard");
show_progress(5000, 0);
I hope someone can help me.
I am building a ROM that will have Green Themes and some secrets.
I don't have any problems in APKs and other, just this SuperUser

[Q] Problem with patching CM10 with opendroid

I'm now using CM10 by tezet.
When I tried to patch the ROM (CM10-20121228-NIGHTLY-milestone2 http://forum.xda-developers.com/showthread.php?t=1827801) with Auto-Patcher http://forum.xda-developers.com/showthread.php?t=1719408
An ERROR appeared.
Here's the log.
Code:
ROOT= /cygdrive/f/Users/lxdluke/Downloads/Programs/ApGPackages/ap
TOOL= /cygdrive/f/Users/lxdluke/Downloads/Programs/ApGPackages/ap/patch_tools.tgz
ROM= /cygdrive/f/Users/lxdluke/Downloads/Programs/CM10-20121228-NIGHTLY-milestone2.zip
ROMX= F:\Users\lxdluke\DOWNLO~1\Programs\CM10-2~1.ZIP
### verify tools ###
/cygdrive/f/Users/lxdluke/Downloads/Programs/ApGPackages/cygwin/bin/patch
/cygdrive/f/Users/lxdluke/Downloads/Programs/ApGPackages/cygwin/bin/tar
/cygdrive/f/Users/lxdluke/Downloads/Programs/ApGPackages/Java/bin/jar
/cygdrive/f/Users/lxdluke/Downloads/Programs/ApGPackages/Java/bin/java
/cygdrive/f/Users/lxdluke/Downloads/Programs/ApGPackages/cygwin/bin/cpio
### verify ROM ###
### running ./auto_patcher /cygdrive/f/Users/lxdluke/Downloads/Programs/CM10-20121228-NIGHTLY-milestone2.zip openpdroid cm
PATH= /cygdrive/f/Users/lxdluke/Downloads/Programs/ApGPackages/ap/tmp20130610123832:/cygdrive/f/Users/lxdluke/Downloads/Programs/ApGPackages/Java/bin:/cygdrive/f/Users/lxdluke/Downloads/Programs/ApGPackages/cygwin/bin:/cygdrive/f/Users/lxdluke/Downloads/Programs/ApGPackages/cygwin/usr/sbin
### unzip patch tools ###
### unzip patch patches ###
... result of ROM check: RIL= MotoWrigley3GRIL
### probe rom type ###
#### Standard Build Query ####
# VER= v2.9.8
# OS= cygwin 32bit
# VID= 4.1.2
# PID= openpdroid
# MID= cm_milestone2-userdebug
# RID= cm
# ANDR= 4.1
# BDID= 20121229
# DID= milestone2
# BID= 20130201
Patches are openpdroid/4.1/cm/20130201
### DELETE FILES=
### COPY FILES= system/media/PDroid.jpeg
### JAR FILES= system/framework/framework.jar system/framework/core.jar system/framework/services.jar
### APK FILES= system/app/Mms.apk
### IMG FILES=
### TXT FILES=
### unzip rom ###
### create updater script ###
... using Clockworkmod installer ...
# generated updater-script
ui_print("");
ui_print("");
ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
ui_print("* *");
ui_print("* * The Auto-Patcher * *");
ui_print("* * * * * *");
ui_print("* * by mateor * *");
ui_print("* *");
ui_print("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
ui_print("");
ui_print(" Attention");
ui_print(" ************************************");
ui_print("");
ui_print(" There is nothing that can go wrong here");
ui_print(" that reflashing your ROM won't fix.");
ui_print("");
mount("ext3", "EMMC", "/dev/block/mmcblk1p21", "/system");
package_extract_dir("system", "/system");
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 0, 0755, 0755, "/system/addon.d");
set_perm_recursive(0, 0, 0755, 0755, "/system/bootmenu/binary/");
set_perm_recursive(0, 0, 0755, 0755, "/system/bootmenu/script/");
set_perm_recursive(0, 0, 0755, 0755, "/system/bootmenu/recovery/sbin/");
set_perm_recursive(0, 0, 0755, 0755, "/system/bootmenu/2nd-boot/sbin/");
set_perm(0, 0, 0755, "/system/bootmenu/2nd-init/init");
set_perm(0, 0, 0755, "/system/bootmenu/2nd-boot/init");
set_perm_recursive(0, 2000, 0775, 0664, "/system/bootmenu/config/");
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/etc/wifi/hostap_wrapper.sh");
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, 0, 0755, 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_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/su");
set_perm(0, 0, 06755, "/system/xbin/tcpdump");
set_perm(0, 0, 0755, "/system/etc/motorola/comm_drv/commdrv_fs.sh");
ui_print(" .");
ui_print(" .");
ui_print(" done!");
### create restore.zip ###
### decompile system files ###
... decompile framework.jar ...
... extract preloaded-classes ...
���: preloaded-classes
... decompile core.jar ...
... decompile services.jar ...
���: system/framework/framework-res.apk
... installing framework files ...
... decompile Mms.apk ...
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: F:\Users\lxdluke\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
### copy patch openpdroid/4.1/cm/20130201 ###
... copying system/media/PDroid.jpeg ...
... overwriting system/media/PDroid.jpeg from openpdroid ...
`patches/openpdroid/4.1/cm/20130201/system/media/PDroid.jpeg' -> `./system/media/PDroid.jpeg'
### delete patch openpdroid/4.1/cm/20130201 ###
### jar patch openpdroid/4.1/cm/20130201 ###
... apply framework.patch ...
Reversed (or previously applied) patch detected! Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file smali/android/view/ViewGroup.smali.rej
... apply preloaded.patch ...
GARBAGE=
GARBAGE= tmp/system/framework/framework.jar.out/smali/android/view/ViewGroup.smali.rej
... apply core.patch ...
GARBAGE=
GARBAGE=
... apply services.patch ...
142 out of 143 hunks FAILED -- saving rejects to file smali/com/android/server/ServerThread.smali.rej
!!! PATCHING FAILED FOR com/android/server/ServerThread.smali !!!
!!! patch error for com/android/server/ServerThread.smali !!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!! error: failed com/android/server/ServerThread.smali in services.jar cannot be remedied
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Can anyone please tell me how to correct it?
tried it several times some months ago. allways the same error as yours. than i read the first post of opd and autopatcher thread. there you can find the solution. -> "it isn't possible to patch quarx's roms yet". tezets is based on quarx's defy rom.
if you want to use opd, you have to use engle_mars's cm10.1. he patched directly the source, cause autopatcher didn't do this job as well.
lulli1 said:
tried it several times some months ago. allways the same error as yours. than i read the first post of opd and autopatcher thread. there you can find the solution. -> "it isn't possible to patch quarx's roms yet". tezets is based on quarx's defy rom.
if you want to use opd, you have to use engle_mars's cm10.1. he patched directly the source, cause autopatcher didn't do this job as well.
Click to expand...
Click to collapse
you mean autopatcher works with engle_mars's cm10.1 ?
---------------------------------------------------------------
update: I have found PDroid had been intergrated in his ROM. Thx for your help.

updater-script help

So i pulled this script from a debloater zip.
the only command im looking to do is: rm /data/system/locksettings.db
Im a little confused because i dont want the zip to be recurring which it is currently set up like that.
what do i need to change?
EDIT: I think i removed the recursive entry correctly.
Can someone look over this and see if it looks ok?
thanks in advance.
here is the script:
ui_print("******************************************");
ui_print("Pin Fix Script");
ui_print("");
ui_print("******************************************");
show_progress(1, 15);
ui_print("Unmounting system");
run_program("/sbin/busybox", "umount", "/system");
ui_print("->");
ui_print("Mounting system");
run_program("/sbin/busybox", "mount", "/system");
show_progress(1, 15);
ui_print("Initializing...");
ui_print("Fixing PIN now");
delete(
"/data/system/locksettings.db",
);
show_progress(1, 15);
ui_print("--");
ui_print("Copying files");
package_extract_dir("system", "/system");
show_progress(1, 15);
ui_print("Cleaning up and setting metadata");
set_metadata("/system/addon.d", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0755, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
set_metadata("/system/app", "uid", 0, "gid", 0, "dmode", 0755, "fmode", 0644, "capabilities", 0x0, "selabel", "ubject_r:system_file:s0");
ui_print("Unmounting system");
show_progress(1, 15);
ui_print("- - - - - - - - - - - - - - - - - - - - - - - - - -");
run_program("/sbin/busybox", "umount", "/system");
ui_print("Removal complete!");
ui_print(" ");
ui_print(" ");
show_progress(1, 15);
ui_print(" ");
show_progress(1, 15);
ui_print("-made by dtr145r - credit to Gawd");
ui_print(" ");
show_progress(1, 15);
ui_print(" ");
ui_print("Your PIN Code should now work");
ui_print(" ");
ui_print(" Enjoy! ");
Lots of unnecessary code there, plus huge blunders because you're supposed to mount /data, not /system
Removed loads of bloat. Feel free to edit the credits, I just made one that works
Gawd said:
Lots of unnecessary code there, plus huge blunders because you're supposed to mount /data, not /system
Removed loads of bloat. Feel free to edit the credits, I just made one that works
Click to expand...
Click to collapse
Awesome thanks!
I figured there were a lot of mistakes, Its been about 3 years since i tried to mess with scripts. I forgot quite a bit.
I just got the Nexus 6p, I'm still trying to learn the ins and outs of it. Ive had Samsung phones for the past 6 years.
When ever I do a factory reset on the Nexus I have to run '' "/data/system/locksettings.db"'' in adb because the lockscreen pin code changes and locks me out of the phone... Is that common?
Thats why I wanted to create a zip file to do it for me..

error 6 twrp while flashing pixel rom

i'm using moto g4 plus and i want to flash PixelExperience_harpia-9.0-20190604-0631-OFFICIAL rom
it first showed error 7 and then i deleted the assert code
then i flashed and it showed error 6
i had accidentally wiped my whole internal storage along with back up file how do i restore it or how do i fix the error 6????? im using twrp pls tell i dont want my phone to get bricked
this is my current code of updater system.
this device is " + getprop("ro.product.device") + ".");
ui_print("Target: motorola/harpia/harpia:7.1.1/NPIS26.48-36-5/12:user/release-keys");
ifelse(is_mounted("/system"), unmount("/system"));
ui_print("----------------------------------------------");
ui_print(" Pixel Experience");
ui_print(" by jhenrique09");
ui_print("----------------------------------------------");
ui_print(" Android version: 9");
ui_print(" Build id: PQ3A.190605.003");
ui_print(" Build date: 20190604-0631");
ui_print(" Security patch: 2019-06-05");
ui_print(" Device: harpia");
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/bootdevice/by-name/system", "/system", "");
run_program("/tmp/install/bin/backuptool.sh", "backup", "/system");
unmount("/system");
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.br", "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", "/system");
unmount("/system");
show_progress(0.050000, 5);
package_extract_file("boot.img", "/dev/block/bootdevice/by-name/boot");
show_progress(0.200000, 10);
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/system", "/system", "");
mount("ext4", "EMMC", "/dev/block/bootdevice/by-name/modem", "/firmware", "");
ui_print("Extracting modem firmware");
run_program("/sbin/sh", "/tmp/install/bin/extract_firmware.sh");
ui_print("Firmware extracted");
unmount("/firmware");
unmount("/system");
set_progress(1.000000);

Categories

Resources