Hi all,
I've been trying to create a simple update.zip signed folder for my HTC Hero.
I have read all different "how to" but still face the same error message "Syntax error in update script"
I have copy/paste the following into the update-script
show_progress 0.1 0
copy_dir PACKAGE:system SYSTEM:
set_perm_recursive 0 0 0755 0644 SYSTEM:app
show_progress 0.1 10
i have create 2 folders.
1. system/app (here i have placed my APK)
2. META-INF/com/google/android/update-script
Now, i have made a ZIP file including the 2 folders.
I am using the autosign.bat and i manually select the ZIP file i created.
Everything is going ok, but then i get the Syntax error in update script when i try to run this using Amon Ra's bootloader.
Any suggestion or ideas?
I did it!!!
The problem was the extra " " space i had on the last script line!
Now, it works!
Another question. Is there a way to sign zip files on OS X?
Can you point me on the right direction pls?
First of all i apologize for my english, i'm Italian. I open this discussion trying to understand how to cook a ROM (JP5 ITA)
.
Using Ubuntu I was able to extract the file system. I executed Deodex Zipalign and applications then i created the .zip package and i signed it. I'm using DOC script as example but I get error in this lines:
set_perm_recursive 0 0 0777 0777 SYSTEM: etc / init.d
set_perm 0 0 04755 SYSTEM: xbin / on
set_perm 0 0 04755 SYSTEM: xbin / busybox
show_progress 0.2 10
show_progress 0.3 0
symlink / system / xbin / su SYSTEM: bin / su
run_program PACKAGE: installbusybox
run_program PACKAGE: wipe
show_progress 0.3 10
show_progress 0.4 0
CACHE format:
copy_dir PACKAGE: DATE date:
set_perm 1000 1000 0771 DATE: app
copy_dir PACKAGE: updates tmp: / updates
set_perm 0 0755 TMP: / updates / redbend_ua
run_program / tmp / updates / redbend_ua
restore / tmp / updates / modem.bin / dev/block/bml12
run_program / tmp / updates / redbend_ua
restore / tmp / updates / zImage / dev/block/bml7
show_progress 0.4 10
This line's file (eg. init.d redbend_ua etc) doesn't exist.
Where i'm wrong ?
Hi, I'm trying a new rom for the evo 3G (Ava-Froyo Z3 Overhaul) and am running into a problem with apps2sd not working.
When I run a check I get this:
$su
# chka2sd
/system/bin/chka2sd: line 7: $a2sdlf: ambiguous redirect
/system/bin/chka2sd: line 18: ro.build.version.release: command not found
/system/bin/chka2sd: line 41: a2sd.swap: command not found
/system/bin/chka2sd: line 82: echo: write error: Broken pipe
/system/bin/chka2sd: line 87: echo: write error: Broken pipe
/system/bin/chka2sd: line 88: echo: write error: Broken pipe
/system/bin/chka2sd: line 89: echo: write error: Broken pipe
/system/bin/chka2sd: line 90: echo: write error: Broken pipe
/system/bin/chka2sd: line 91: echo: write error: Broken pipe
/system/bin/chka2sd: line 92: echo: write error: Broken pipe
/system/bin/chka2sd: line 93: echo: write error: Broken pipe
/system/bin/chka2sd: line 96: 1: ambiguous redirect
Not sure what's going on. I flashed over the file the op said to, and when I asked in the rom thread it was suggested I ask elsewhere.
Edit: And I just realized I accidentally hit the wrong forum. Hopefully this gets itself moved to where it needs to be. Sorry!
Hi guys,
i just tried to make my own update.zip.
The files inside are like this:
Code:
META-INF/
-com/
-google/
-android/
update-binary
updater-script
system/
-app/
Gallery3D.apk
I took update-binary and updater-script from another update.zip.
Then i modified updater-script to this:
Code:
show_progress 0.1 0
delete SYSTEM:app/Gallery.apk
copy_dir PACKAGE:system SYSTEM:
set_perm_recursive 0 0 0755 0644 SYSTEM:app
show_progress 0.1 10
Unfortunately it doesn't work. This is what i get if i try to apply the .zip:
Code:
-- Install from sdcard...
Finding update package...
Opening update package...
Installing update...
E:Error in /sdcard/update.zip
(Status 6)
Installation aborted.
I just don't get it. Why isn't it working?
luckybk said:
Hi guys,
i just tried to make my own update.zip.
The files inside are like this:
Code:
META-INF/
-com/
-google/
-android/
update-binary
updater-script
system/
-app/
Gallery3D.apk
I took update-binary and updater-script from another update.zip.
Then i modified updater-script to this:
Code:
show_progress 0.1 0
delete SYSTEM:app/Gallery.apk
copy_dir PACKAGE:system SYSTEM:
set_perm_recursive 0 0 0755 0644 SYSTEM:app
show_progress 0.1 10
Unfortunately it doesn't work. This is what i get if i try to apply the .zip:
Code:
-- Install from sdcard...
Finding update package...
Opening update package...
Installing update...
E:Error in /sdcard/update.zip
(Status 6)
Installation aborted.
I just don't get it. Why isn't it working?
Click to expand...
Click to collapse
The syntax you're using if for an "update-script" not an "updateR-script"
Off the top of my head! This should work as an updateR-script...
Code:
show_progress(0.900000, 3);
mount("yaffs2", "MTD", "system", "/system");
delete("/system/app/Gallery.apk");
package_extract_dir("system", "/system");
set_perm(0, 0, 0644, "/system/app/Gallery.apk");
show_progress(0.100000, 1);
unmount("/system");
I ran into this same issue when trying to roll my own zips. I tried both syntaxes without luck. I had to abandon my work for the time being. If I can find it, I'll see about posting up here for reference. I couldn't even get a ONE LINER to work.
Read my sig, look up my Gallery3D mod, it has update-script and updater-script variants.
Phoenix84118 said:
I ran into this same issue when trying to roll my own zips. I tried both syntaxes without luck. I had to abandon my work for the time being. If I can find it, I'll see about posting up here for reference. I couldn't even get a ONE LINER to work.
Click to expand...
Click to collapse
In that case you have the wrong binary included...
Just try a:
Code:
ui_print("Hello world!");
line...
djmcnz said:
The syntax you're using if for an "update-script" not an "updateR-script"
Off the top of my head! This should work as an updateR-script...
Code:
show_progress(0.900000, 3);
mount("yaffs2", "MTD", "system", "/system");
delete("/system/app/Gallery.apk");
package_extract_dir("system", "/system");
set_perm(0, 0, 0644, "/system/app/Gallery.apk");
show_progress(0.100000, 1);
unmount("/system");
Click to expand...
Click to collapse
yeah but my friend except the progress code all the rests i'll do them but i see the same error what can i do in that case?? PLZ help!
paok96 said:
yeah but my friend except the progress code all the rests i'll do them but i see the same error what can i do in that case?? PLZ help!
Click to expand...
Click to collapse
Status 6 is a syntax problem... you need to find it!
Do not use Windows Notepad
Make sure there is a <cr> (carriage return/enter) at the end of the file...
Hello,
I tried changing my system look with uotkitchen. Everything worked fine until I have the update zip for recovery. I try to flash it via xrecovery 0.3 but it says that there is a syntax error in the update script. Perhaps anybody will find the error:
copy_dir PACKAGE:framework SYSTEM:framework
copy_dir PACKAGE:app SYSTEM:app
copy_dir PACKAGE:system SYSTEM:
Click to expand...
Click to collapse
I'm under android 2.3 with the custom rom in my sig.
Greetings