Updater Script problems. - Android Q&A, Help & Troubleshooting

Hi everyone,
I am trying to build a ROM but constantly run into issues with the updater script. I have tried 12 builds so far, with the script changed slightly every time, all varying in status errors, from 0 to 7. I was wondering if anyone could find what the issue is. There is an empty line after the last line, and all of my lines have semicolons at the end.
At the moment, I get:
Code:
Installing '/sdcard/Flashables/zenROMplus_v1.01_RC12.zip'...
Checking for MD5 file...
Skipping MD5 check: no MD5 file found.
line 26 col 12: syntax error, unexpected STRING, expecting $end
line 36 col 17: syntax error, unexpected STRING, expecting $end
line 39 col 20: syntax error, unexpected STRING, expecting $end
3 parse errors
E:Error in /sdcard/Flashables/zenROMplus_v1.01_RC12.zip
(Status 6)
Error flashing zip '/sdcard/Flashables/zenROMplus_v1.01_RC12.zip'
my updater script is here:
http://pastebin.com/uFeLyKZN
line 26, col 12 is right after the m in run_program.
line 36, col 17 is right after the last e in delete_recursive
line 39, col 20 is just after the last r in package_extract_dir.
I cannot see any problems, and was wondering if the issue is with TWRP 2.4.3.0. However, no one else has any problems! Is it just me who is terrible with these? Does anyone know what the problem in my script is?

You forgot add ";" to end line of mount("ext4", "EMMC", "/dev/block/mmcblk0p33", "/system") and mount("ext4", "EMMC", "/dev/block/mmcblk0p35", "/data") and mount("ext4", "EMMC", "/dev/block/mmcblk0p33", "/system")
And also you should change run_program("/xbin/busybox", "mount", "/cache"); to run_program("/sbin/busybox", "mount", "/cache");

forumber2 said:
You forgot add ";" to end line of mount("ext4", "EMMC", "/dev/block/mmcblk0p33", "/system") and mount("ext4", "EMMC", "/dev/block/mmcblk0p35", "/data") and mount("ext4", "EMMC", "/dev/block/mmcblk0p33", "/system")
And also you should change run_program("/xbin/busybox", "mount", "/cache"); to run_program("/sbin/busybox", "mount", "/cache");
Click to expand...
Click to collapse
Your first two were right, thanks
The last one though, busybox is in /system/xbin/, so if I change it to sbin it probably won't work.
Ah. Line 38 also didn't have a semicolon at the end of the line. Thanks, I was pretty sure I had checked it though!

Edit: Now I'm getting
Code:
Created filesystem with 11/106496 inodes and 13971/425983 blocks
error: file_write: write: I/O error
E:Error in /sdcard/Flashables/zenROMplus_v1.01_RC14.zip
(Status 1)

Related

[Q] New rom. Need some help.

Hi all.
I have been building my first custom rom. It is for the acer a501 tablet. I have had varying issuies along the way but i am now stuck and i can not find a way to fix the issue.
With my latest attempt in the clockwork recovery it goes almost all the way through but then i get an error
assert failed: write_raw_image("/tmp/boot.img", "boot")
E:Error in /sdcard/test_5.zip
(Status 7)
Installation aborted
Anybody have anyideas on how i may tackle this issue?
I'd be interested to hear any solutions as I get this error trying to flash a home made rom for my Desire S .... compiled from AOSP source.
Cheers
jonkers71 said:
Hi all.
I have been building my first custom rom. It is for the acer a501 tablet. I have had varying issuies along the way but i am now stuck and i can not find a way to fix the issue.
With my latest attempt in the clockwork recovery it goes almost all the way through but then i get an error
assert failed: write_raw_image("/tmp/boot.img", "boot")
E:Error in /sdcard/test_5.zip
(Status 7)
Installation aborted
Anybody have anyideas on how i may tackle this issue?
Click to expand...
Click to collapse
Change the lines in the updater-script from:
Code:
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
To this:
Code:
package_extract_file("boot.img","/tmp/boot.img");
write_raw_image("/tmp/boot.img", "boot");
delete("/tmp/boot.img");
dastin1015 said:
Change the lines in the updater-script from:
Code:
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));
To this:
Code:
package_extract_file("boot.img","/tmp/boot.img");
write_raw_image("/tmp/boot.img", "boot");
delete("/tmp/boot.img");
Click to expand...
Click to collapse
Still get same error even changing these lines.
Would it make a difference that I am cooking for a device that only supports updater scripts? I have updater-script.orig and update-script in META-INF/com/google/android/ and its updater-script.orig that I am changing.
Thanks for your help.
Peace
Ok, fixed this by changing the updater-script that is produced from dsixda's kitchen during the cooking process. When this prompt appears
PHP:
An updater-script has been created under META-INF/com/google/android of
your working folder. Please review it and make any necessary changes. An
update-binary has also been added.
DO NOT delete any of the files under META-INF/com/google/android.
Proceed with the change (y/n)?
change update-script as above in META_INF/../../ folder, save, then proceed.
However, still have original ROM left on my device... mount point issue?

[Q] buildprop required for WT19i

hi everyone..
While installing custom rom on my WT19i today, I am getting following error message. I've installed custom roms hundreds of times but for the first time got this problem....
assert failed: getprop("ro.product.device") == "WT19i" ||
getprop("ro.build.product") == "WT19i"
E:Error in /sdcard/iuiandroid_WT19i-2.7.13.zip
(status 7)
In my view, build.prop is missing from my phone. Can anyone provide me with one or if there is another problem can provide a solution.
Thanks
c4capricorn said:
hi everyone..
While installing custom rom on my WT19i today, I am getting following error message. I've installed custom roms hundreds of times but for the first time got this problem....
assert failed: getprop("ro.product.device") == "WT19i" ||
getprop("ro.build.product") == "WT19i"
E:Error in /sdcard/iuiandroid_WT19i-2.7.13.zip
(status 7)
In my view, build.prop is missing from my phone. Can anyone provide me with one or if there is another problem can provide a solution.
Thanks
Click to expand...
Click to collapse
extract the rom archive
open the updater script in meta-inf folder
use notepad++
delete 1st 6 lines. save it.
then repack the rom and flash it
sandy7 said:
extract the rom archive
open the updater script in meta-inf folder
use notepad++
delete 1st 6 lines. save it.
then repack the rom and flash it
Click to expand...
Click to collapse
assert(getprop("ro.product.device") == "WT19i" ||
getprop("ro.build.product") == "WT19i");
show_progress(0.500000, 0);
ui_print("Formatting system...");
unmount("/system");
format("yaffs2", "MTD", "system", "0");
these are the 1st 6 lines...delete them??
Yep, delete them
Sent from my MANGO using Tapatalk2
c4capricorn said:
assert(getprop("ro.product.device") == "WT19i" ||
getprop("ro.build.product") == "WT19i");
show_progress(0.500000, 0);
ui_print("Formatting system...");
unmount("/system");
format("yaffs2", "MTD", "system", "0");
these are the 1st 6 lines...delete them??
Click to expand...
Click to collapse
yes delete them..repack the zip and flash them..
It's so funny to see smiles in the lines LOL
Sent from my SK17i using xda app-developers app
Thanks everyone for your help....but the problem is still unresolved...i deleted the lines and repacked the rom.. now when i m trying to install it, it just says intstallation aborted after 2-3 seconds..no error codes or anything...
c4capricorn said:
Thanks everyone for your help....but the problem is still unresolved...i deleted the lines and repacked the rom.. now when i m trying to install it, it just says intstallation aborted after 2-3 seconds..no error codes or anything...
Click to expand...
Click to collapse
Unpack the rom again, open the updater-script and delete only the first 3 lines:
assert(getprop("ro.product.device") == "WT19i" ||
getprop("ro.build.product") == "WT19i");
show_progress(0.500000, 0);
Click to expand...
Click to collapse
and it should work. Because otherwise the command to format system isn't in the script

How can i flash latest cyanogenmod nightly on my TF300TG!

When i flash it display report me this:
Code:
assert failed: getprop("ro.product.device") == "tf300t" || getprop("ro.build.device") == tf300t"
E: error in /sdcard/cm-10-20121012-NIGHTLY-tf300t.zip
(status 7)
Installation aborted
WTF????
runk said:
When i flash it display report me this:
Code:
assert failed: getprop("ro.product.device") == "tf300t" || getprop("ro.build.device") == tf300t"
E: error in /sdcard/cm-10-20121012-NIGHTLY-tf300t.zip
(status 7)
Installation aborted
WTF????
Click to expand...
Click to collapse
Edit build.prop to change the ro.product.device to tf300t or change the line you mention (value from "tf300t" to "tf300tg")
_TB_TB_ said:
Edit build.prop to change the ro.product.device to tf300t or change the line you mention (value from "tf300t" to "tf300tg")
Click to expand...
Click to collapse
Does anybody know why the assertion fails? I got the latest nightly to install by removing the assert line, but I shouldn't have had to do that. The value of both properties in build.prop IS "tf300t" (correct case and all). The assertion shouldn't fail.

[Q] Status 6 Error in CWM

Hi i need help , i tried make a zip for a bootanimation , the zip is signed , my text editor is the Notepad++ , but when i flashing , the following appears:
Code:
--Installing: /sdcard/AOS-281212-signed-lans_98.zip
Finding update package...
Opening update package
Installing update...
E: Error in /sdcard/AOS-281212-signed-lans_98.zip
(Status 6)
Installation aborted.
The code I use is as follows:
Code:
ui_print("Instalando el bootanimation...");
mount("MTD", "system", "/system");
ui_print("Actualizando bootanimation.zip...");
package_extract_dir("system", "/system");
ui_print("Finalizado...!");
unmount("/system");
I need help whit this

hyphenation error

So, i get this error every single time i try to compile any Android ROM, even AOSP.
I'm sure i'm missing a package, but i can't figure out which it is, so i'm asking here for any help on identifying the problem.
Code:
FAILED: /bin/bash -c "frameworks/minikin/tools/mk_hyb_file.py external/hyphenation-patterns/da//hyph-da.pat.txt /home/gee/omni/out/target/product/shieldtablet/obj/ETC/hyph-da_intermediates/hyph-da.hyb"
602 unique nodes, 1676 total
Traceback (most recent call last):
File "frameworks/minikin/tools/mk_hyb_file.py", line 567, in <module>
main()
File "frameworks/minikin/tools/mk_hyb_file.py", line 564, in main
verify_hyb_file(out_fn, pat_fn, chr_fn, hyp_fn)
File "frameworks/minikin/tools/mk_hyb_file.py", line 529, in verify_hyb_file
ch_map, reconstructed_chr = map_to_chr(alphabet_map)
File "frameworks/minikin/tools/mk_hyb_file.py", line 440, in map_to_chr
assert len(lowercase) == 1, 'expected 1 lowercase character'
AssertionError: expected 1 lowercase character
[ 0% 17/2717] Ensure Jack server is installed and started
Jack server already installed in "/home/gee/.jack-server"
Server is already running
[ 0% 17/2717] Build hyb /home/gee/omni/out/target/pr... <- external/hyphenation-patterns/cy//hyph-cy.pat.txt
FAILED: /bin/bash -c "frameworks/minikin/tools/mk_hyb_file.py external/hyphenation-patterns/cy//hyph-cy.pat.txt /home/gee/omni/out/target/product/shieldtablet/obj/ETC/hyph-cy_intermediates/hyph-cy.hyb"
3290 unique nodes, 10601 total
Traceback (most recent call last):
File "frameworks/minikin/tools/mk_hyb_file.py", line 567, in <module>
main()
File "frameworks/minikin/tools/mk_hyb_file.py", line 564, in main
verify_hyb_file(out_fn, pat_fn, chr_fn, hyp_fn)
File "frameworks/minikin/tools/mk_hyb_file.py", line 529, in verify_hyb_file
ch_map, reconstructed_chr = map_to_chr(alphabet_map)
File "frameworks/minikin/tools/mk_hyb_file.py", line 440, in map_to_chr
assert len(lowercase) == 1, 'expected 1 lowercase character'
AssertionError: expected 1 lowercase character
[ 0% 17/2717] build /home/gee/omni/out/target/product/shieldtablet/obj/KERNEL_OBJ/usr
make: Entering directory '/home/gee/omni/kernel/nvidia/shield'
GEN /home/gee/omni/out/target/product/shieldtablet/obj/KERNEL_OBJ/Makefile
drivers/cpufreq/Kconfig:53:warning: choice value used outside its choice group
drivers/cpufreq/Kconfig:61:warning: choice value used outside its choice group
drivers/cpufreq/Kconfig:70:warning: choice value used outside its choice group
drivers/cpufreq/Kconfig:79:warning: choice value used outside its choice group
drivers/cpufreq/Kconfig:91:warning: choice value used outside its choice group
drivers/cpufreq/Kconfig:103:warning: choice value used outside its choice group
drivers/cpuquiet/Kconfig:60:warning: choice value used outside its choice group
drivers/cpuquiet/Kconfig:66:warning: choice value used outside its choice group
drivers/cpuquiet/Kconfig:73:warning: choice value used outside its choice group
#
# configuration written to .config
#
make: Leaving directory '/home/gee/omni/kernel/nvidia/shield'
make: Entering directory '/home/gee/omni/kernel/nvidia/shield'
CHK include/generated/uapi/linux/version.h
make: Leaving directory '/home/gee/omni/kernel/nvidia/shield'
[ 0% 17/2717] Build hyb /home/gee/omni/out/target/pr...xternal/hyphenation-patterns/de//hyph-de-1901.pat.txt
FAILED: /bin/bash -c "frameworks/minikin/tools/mk_hyb_file.py external/hyphenation-patterns/de//hyph-de-1901.pat.txt /home/gee/omni/out/target/product/shieldtablet/obj/ETC/hyph-de-1901_intermediates/hyph-de-1901.hyb"
8858 unique nodes, 29816 total
Traceback (most recent call last):
File "frameworks/minikin/tools/mk_hyb_file.py", line 567, in <module>
main()
File "frameworks/minikin/tools/mk_hyb_file.py", line 564, in main
verify_hyb_file(out_fn, pat_fn, chr_fn, hyp_fn)
File "frameworks/minikin/tools/mk_hyb_file.py", line 529, in verify_hyb_file
ch_map, reconstructed_chr = map_to_chr(alphabet_map)
File "frameworks/minikin/tools/mk_hyb_file.py", line 440, in map_to_chr
assert len(lowercase) == 1, 'expected 1 lowercase character'
AssertionError: expected 1 lowercase character
ninja: build stopped: subcommand failed.
make: *** [build/core/ninja.mk:158: ninja_wrapper] Error 1
The distribution is Void Linux, and yes i'd like to use my distro of choice to compile a ROm instead of having to switch to Ubuntu or Arch, where it obviously works.
I did install hyphen and about 20 other packages i thought could be the missing ones.
Thanks in advance.
Found a fix by using python 3 instead of 2 for hyphenation.
For future reference: https://github.com/CM-Huawei-P8-Development/local_manifests_gra_l09/issues/1
oh wow, same error here building for htc 10, and only started since moving from arch to void... perhaps this is void related. will mention to them.

Categories

Resources