im tring to write my own update script. I have read the few pages that i was able to find on the www but none have answered my questions that i have or maybe not understanding what im reading. so here is what i have:
show_progress 0.1 0
delete_recursive SYSTEM:framework/
delete_recursive SYSTEM:app/
copy_dir PACKAGE:system SYSTEM:
delete_recursive DATA:dalvik-cache/
show_progress 0.1 10
or http://www.4shared.com/file/5Yms6qAg/update-script.html
this was writen w/notepadd++ file saved as all types *.*
when i flash my update zip i get:
Finding update package...
Opening update package....
Installing update...
E:Syntax error in update script
Installation aborted.
if someone can shed a little light if would be a great help.
hope posted in right section. thank you for the help anyone can provide.
EDIT: I used the samsung kitchen to convert the script to an updater-script. That seemed to fix whatever issue there was
Neverfmind. Got it figured out. Thanks for the help that I would have gotten.
U should post what ur findings were, in case someone in the future has the same issue.
Sent from my SPH-D700 using Tapatalk
Read edit in first post for how I fixed the issue.
Thanks decalex your right if I would have found this post I would be wondedring how it was fixed too. Thanks
Sent from my SPH-D700 using XDA Premium App
Related
Hello!
Could some good soul create an update.zip file for me with the following content?
I don't have the time and resources for that so any help would be great!
Thanks!
This should work.
Swiftwork said:
This should work.
Click to expand...
Click to collapse
Thanks but there is an error: E:Can't find update script | Installation aborted
Swiftwork aint you the good samaritan?... a credit to the community.
Arkymedes,... Please post in GENERAL or Q&A next time.
Oops, my bad. You can move the thread if you wish.
I just got too used to see this part of the forums only
about the script, I noticed that the update-script has an TXT extension in the zip file. Is that correct?
Was just about to reply. I believe that is wrong. I will check.
Re-uploaded check again
Thanks again! but...
"E:Syntax error in update script"
Here u go have fun
Can I have the update-script please? I'm on a diving vessel with an ultra snail speed of Internet. I need to know what's in the update-script only
xtcislove said:
Here u go have fun
Click to expand...
Click to collapse
Thanks a lot
Geochelone said:
Can I have the update-script please? I'm on a diving vessel with an ultra snail speed of Internet. I need to know what's in the update-script only
Click to expand...
Click to collapse
Have fun:
Code:
show_progress 0.1 0
copy_dir PACKAGE:data DATA:
show_progress 0.1 10
Nice.
Thanks mate.
I'm not sure if this is the right section for this question, but it made most sense for me to ask here
i found some samsung live wallpapers that i want to install to the system/app directory, so i made an update zip to install them using recovery.
however, when i ran the update zip, none of the wallpapers are showing up in the wallpaper picker.
the structure of the update zip is as follows:
META-INF/com/google/android/update-script
system/app/LiveWallpapersConnection.apk
the update-script is as follows:
show_progress 0.5 0
copy_dir PACKAGE:system SYSTEM:
show_progress 0.5 10
so any help would be really appreciated. cheers
Use Update.zip 2.0 Modifier/Creator (can't paste link, it's in G1 Developement)
Just remember to write partition name in caps (did this error couple of times....)
thanks for the reply and the pointer ...
i found something else in the G1 forum which helped me out
it turns out that i had to set the permissions properly.
so i added the following line in my update-script (in case anyone else is wondering)
set_perm_recursive 0 0 0755 0644 SYSTEM:app
not sure if there are any repercussions to adding that line to the other apps already installed in the system/app directory. so, if anyone else know has better knowledge can correct me, that would be appreciated ... in the meanwhile this does seem to work
Sup I know there is a hack for ext4 on the nexus s but haven't seen anything for the NS4G. Is it the same hack or what? If so it seems a little complicated to get going with the tutorial given. Does anybody have a better tutorial or if there is a different hack for the 4g can you direct me to it please? Much appreciated.
Sent from my Nexus S 4G using xda premium
Joshhayes801 said:
Sup I know there is a hack for ext4 on the nexus s but haven't seen anything for the NS4G. Is it the same hack or what? If so it seems a little complicated to get going with the tutorial given. Does anybody have a better tutorial or if there is a different hack for the 4g can you direct me to it please? Much appreciated.
Sent from my Nexus S 4G using xda premium
Click to expand...
Click to collapse
not sure what "ext4 hack" youre talking about, but there is an ext4 mount script. itll give you a little speed/performance kick overall. but its not really a hack, its a fix. type this in a terminal emulator app..
su(press enter)
mount -o remount,noauto_da_alloc /data /data(press enter)
youll have to type it in after each reboot. or you can use an app to run it after each boot. most custom kernels already include it or some version of it, stock doesnt include it.
Use dsixda's rom kitchen to unpack boot.img: http://forum.xda-developers.com/showthread.php?t=633246
Then do this: http://forum.xda-developers.com/private.php?do=showpm&pmid=4452832 and repack.
snandlal said:
Use dsixda's rom kitchen to unpack boot.img: http://forum.xda-developers.com/showthread.php?t=633246
Then do this: http://forum.xda-developers.com/private.php?do=showpm&pmid=4452832 and repack.
Click to expand...
Click to collapse
That second link seems to not work, it says this "Invalid Private Message specified. If you followed a valid link, please notify the administrator"
Joshhayes801 said:
That second link seems to not work, it says this "Invalid Private Message specified. If you followed a valid link, please notify the administrator"
Click to expand...
Click to collapse
fter unpacking the boot.img go to BOOT_EXTRACTED/ramdisk and open the file init.herring.rc and add the following in green to the following to lines and save:
Code:
mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/system /system wait ro noauto_da_alloc
mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/userdata /data wait noatime nosuid nodev noauto_da_alloc
Sorry bout that
Sweet. Thanks. I'll be doing this later after I run errands.
Sent from my Nexus S 4G using xda premium
snandlal said:
fter unpacking the boot.img go to BOOT_EXTRACTED/ramdisk and open the file init.herring.rc and add the following in green to the following to lines and save:
Code:
mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/system /system wait ro noauto_da_alloc
mount ext4 /dev/block/platform/s3c-sdhci.0/by-name/userdata /data wait noatime nosuid nodev noauto_da_alloc
Click to expand...
Click to collapse
I think I've done everything right and getting ready to flash soon. How will I know if it worked?
So I did everything you said, repacked (no errors, everything worked fine) now when trying to flash it gives me this "error in/tmp/sideload/package.zip (status 6)" Do you have any clue why this would happen?
EDIT: NVM I fixed it.
I don't understand why people want to make it harder on themselves. just run the script, it does the same thing.
simms22 said:
I don't understand why people want to make it harder on themselves. just run the script, it does the same thing.
Click to expand...
Click to collapse
It's not really hard...it's actually kind of easy with that particular kitchen. Plus I am willing to do it all because I like learning.
Joshhayes801 said:
It's not really hard...it's actually kind of easy with that particular kitchen. Plus I am willing to do it all because I like learning.
Click to expand...
Click to collapse
good answer
Hmm
Tried to flash the repacked rom and got stuck in a bootloop. Really can't find anything on why this happened or how to fix. Restoring nandroid as we speak.
simms22 said:
good answer
Click to expand...
Click to collapse
Lol. yeah well we all gotta start somewhere. I practically live on xda as it is, so I may as well learn as much as I can and hopefully become a contributor in some way. It started as just wanting to dink sound with my own device but now that I know that I CAN do it. I want to go further with it.
Sent from my Nexus S 4G using xda premium
Right, so, through a bit of trial and error using guidance from the forums, this is how I updated to JB and kept root for WW after the update originally failed.
download BOTH files from here (massive thanks to ch3mn3y):
http://www25.zippyshare.com/v/91334594/file.html
http://www1.zippyshare.com/v/96461494/file.html
then extract the .zip file.
download the command file from here (massive thanks to krabappel2548):
http://www.mediafire.com/?yq1bt16mnm7tc8d
extract it.
place the dlpkgfile and command file, both unzipped onto your tab. Use a root explorer to paste the command file into /cache/recovery and the dlpkgfile (the actual file, not the folder) to /cache.
go to Voodoo OTA Rootkeeper and temp unroot.
turn off the tab.
boot into recovery with Vol - and power, then when it says to press volume up to boot into RCK, do it.
You'll see the android with the blue wires and it will go through the install process if you have done it right. let it do its thing.
obviously, when it has settled, restore root with Voodoo.
If you get the android with red exclamation mark, i reccomend downloading the ICS zip of your current firmware and SKU and sticking it on a micro SD card, and letting it restore any programmes you've deleted.
rickykemp said:
Right, so, through a bit of trial and error using guidance from the forums, this is how I updated to JB and kept root for WW after the update originally failed.
download BOTH files from here (massive thanks to ch3mn3y):
http://www25.zippyshare.com/v/91334594/file.html
http://www1.zippyshare.com/v/96461494/file.html
then extract the .zip file.
download the command file from here (massive thanks to krabappel2548):
http://www.mediafire.com/?yq1bt16mnm7tc8d
extract it.
place the dlpkgfile and command file, both unzipped onto your tab. Use a root explorer to paste the command file into /cache/recovery and the dlpkgfile (the actual file, not the folder) to /cache.
go to Voodoo OTA Rootkeeper and temp unroot.
turn off the tab.
boot into recovery with Vol - and power, then when it says to press volume up to boot into RCK, do it.
You'll see the android with the blue wires and it will go through the install process if you have done it right. let it do its thing.
obviously, when it has settled, restore root with Voodoo.
If you get the android with red exclamation mark, i reccomend downloading the ICS zip of your current firmware and SKU and sticking it on a micro SD card, and letting it restore any programmes you've deleted.
Click to expand...
Click to collapse
Will your last line lose root on us, or will voodoo root keeper save it via that or does it wipe/reset the entire system?
Ashcunak said:
Will your last line lose root on us, or will voodoo root keeper save it via that or does it wipe/reset the entire system?
Click to expand...
Click to collapse
When i ran ran the zip of .30 i did lose root, but it was easily restored using 1 click transformer root.
I tried it twice but it always failed at about 1/3 of the process... Hopefully I can reboot w/ any damage...
WHY!?? :'(
Btw here's the part of the log where it shows the failure in installation:
I:Enable RSA key verification.
Installing update...
Finding update package...
I:Update location: /cache/dlpkgfile
Opening update package...
I:1 key(s) loaded from /res/keys
Verifying update package...
I:comment is 1682 bytes; signature 1664 bytes from end
I:whole-file signature verified against key 0
I:verify_file returned 0
Installing update...
Check : blob size = 13104069
Verifying current system...
file "/system/lib/libGLESv1_CM.so" doesn't have any of expected sha1 sums; checking cache
failed to stat "/cache/saved.file": No such file or directory
failed to load cache file
script aborted: assert failed: apply_patch_check("/system/lib/libGLESv1_CM.so", "ed4c7834196831836c73d0374529a0278c2fa91c", "a52756f5a63c9827632587d025ee28f67739bd97")
assert failed: apply_patch_check("/system/lib/libGLESv1_CM.so", "ed4c7834196831836c73d0374529a0278c2fa91c", "a52756f5a63c9827632587d025ee28f67739bd97")
E:Error in /cache/dlpkgfile
(Status 7)
Installation aborted.
I:result_code: 410
Check and format /storage to vfat if needed...
Mount /btmac successfully
Done
Btw the command file is just a file with content --update_package=/cache/dlpkgfile in it.
You can create it with notepad, save as .txt, and remove the .txt
rickykemp said:
When i ran ran the zip of .30 i did lose root, but it was easily restored using 1 click transformer root.
Click to expand...
Click to collapse
OH, wow, im so outa date thanks, i rooted on the first revision that came out and havent really watched whats out there for root options. i see this now thanks so much i was worried id have to all sorts of downgrading. link for anyone else whos "outa it" like me http://forum.xda-developers.com/showthread.php?p=26918790
WIIstpM said:
file "/system/app/Music2.apk" doesn't have any of expected sha1 sums; checking cache
failed to stat "/cache/saved.file": No such file or directory
failed to load cache file
script aborted: assert failed: apply_patch_check("/system/app/Music2.apk", "c9bc168a88b5106e0e04f8e70023a4c33009021b", "cbb199983ab1cb9beee6b20ec4db659ccd49d757")
assert failed: apply_patch_check("/system/app/Music2.apk", "c9bc168a88b5106e0e04f8e70023a4c33009021b", "cbb199983ab1cb9beee6b20ec4db659ccd49d757")
Click to expand...
Click to collapse
Maybe u delete or freeze Music2.apk? First time when i forget to unfreeze /system apps my update failed too (but i dont remember when).
ch3mn3y said:
Maybe u delete or freeze Music2.apk? First time when i forget to unfreeze /system apps my update failed too (but i dont remember when).
Click to expand...
Click to collapse
I think I found the problem: I remember I pushed jelly bean's music2.apk in system/app! Restored the original music app.
Gonna try update again!
Now it the turn of libGLESv1_CM.so ...
Going to give it a try.
Just to make sure, is this for WW version, right?
ch3mn3y said:
Maybe u delete or freeze Music2.apk? First time when i forget to unfreeze /system apps my update failed too (but i dont remember when).
Click to expand...
Click to collapse
MM the Music app problem is resolved.. but now the same thing happens but with "/system/lib/libGLESv1_CM.so"
...
Tequila.CZ said:
Going to give it a try.
Just to make sure, is this for WW version, right?
Click to expand...
Click to collapse
Yep.
Thanks.
Looking good., but got this error:
file "/system/app/EmailWidget.apk" doesn't have any of expected sha1 sums; checking cache
failed to stat "/cache/saved.file": No such file or directory
failed to load cache file
script aborted: assert failed: apply_patch_check("/system/app/EmailWidget.apk", "5655101db862ccc0b2e60bd8ee276192f80e0ac7", "25adaa94e23e2aa87a7dd7f01956ccbabbb960fc")
assert failed: apply_patch_check("/system/app/EmailWidget.apk", "5655101db862ccc0b2e60bd8ee276192f80e0ac7", "25adaa94e23e2aa87a7dd7f01956ccbabbb960fc")
E:Error in /cache/dlpkgfile
Already got this before my update notification stopped working.
I deleted Email app, returned it back to system but seems I dont have the right version. (found in someones dropbox posted here)
Also reflashed Ww. 30 hoping this would overwrite the widget with correct version. Obviously it did not...
Would be glad for any help.
As it is MY dlpkgfile it can need MY files. I could upload /system, but first its strange to copy/paste whole android and second it is 624mb and third it will work only for rooted and at least fourth i updated my pad.
If it helps my pad was reflashed to .30 using wolfs method cos i had screen issue.
Sent using tf300t - stock JellyBean (rooted)
ch3mn3y said:
As it is MY dlpkgfile it can need MY files. I could upload /system, but first its strange to copy/paste whole android and second it is 624mb and third it will work only for rooted and at least fourth i updated my pad.
If it helps my pad was reflashed to .30 using wolfs method cos i had screen issue.
Sent using tf300t - stock JellyBean (rooted)
Click to expand...
Click to collapse
Could you please try to upload just the EmailWidget?
When I tried using OTA I got an error on Email.apk first. Then I downloaded it from dropbox and it passed. But EmailWidget did unfortunately not.
Also trying to find a tool that could extract the .30blob file. I guess the apps should be there. Found something but probably Linux only so no go for me.
You guys made my day! I had the red triangle and couldn`t get the update anymore. Tried everything, nothing worked.
Now I just followed your guide, dl. your files and all went fine.
So sad I was ony able to hit the Tanks-button once. Thank you thousand times!
Sent from my ASUS Transformer Pad TF300T using Tapatalk 2
Here is emailwidget .apk and .odex but from jb not ics cos i didnt made a backup. But i think that it wasnt changed.
http://db.tt/cYSWYcXo
Sent using tf300t - stock JellyBean (rooted)
ch3mn3y said:
Here is emailwidget .apk and .odex but from jb not ics cos i didnt made a backup. But i think that it wasnt changed.
http://db.tt/cYSWYcXo
Sent using tf300t - stock JellyBean (rooted)
Click to expand...
Click to collapse
Oh man. I love you. Here I come on JB!
The EmailWidget was the missing piece.
Big thanks to rickykem, ch3mn3y and overyone who helped to create this workaround!
y17dt said:
You guys made my day! I had the red triangle and couldn`t get the update anymore. Tried everything, nothing worked.
Now I just followed your guide, dl. your files and all went fine.
So sad I was ony able to hit the Tanks-button once. Thank you thousand times!
Sent from my ASUS Transformer Pad TF300T using Tapatalk 2
Click to expand...
Click to collapse
+1:good:
Can someone post the original /system/lib/libGLESv1_CM.so pleeease...
Sent from my LG-P970 using xda premium
WIIstpM said:
Can someone post the original /system/lib/libGLESv1_CM.so pleeease...
Sent from my LG-P970 using xda premium
Click to expand...
Click to collapse
I only have it from JB. Unfortunately it seems the file was updated together with the system so it will most probably be useless.
Don't have a libs backup from WW.30
WIIstpM said:
Can someone post the original /system/lib/libGLESv1_CM.so pleeease...
Sent from my LG-P970 using xda premium
Click to expand...
Click to collapse
Here you go, from ICS:
http://db.tt/z5B5Q3jL
Trimis de pe ASUS Transformer Pad TF300T
I am having an issue applying the JWR66Y update to my nexus 7. I get the following when applying in sideload
assert failed: apply_patch_check("/system/bin/debuggerd", "d8ee8b6a18f902e8842a0bf706a35f4359ef73d8", "led6fc2f1287d0dccdaa4e50b917c0cd3dfa6a")
Thanks for any help
Bumped to keep on main page
Check your private messages.
Groid said:
Check your private messages.
Click to expand...
Click to collapse
I'm having the same problem, and I had to register to ask you to please share
Same hash values in the updater script.
EDIT: I have fixed it myself. I figured out how to use simg2img to unzip and mount the system.img from the factory image download, and from that I was able to grab the original file. Update successful!
Guys this is all well and good, but would it be possible to give a bit more info on how to fix the issue? Pretty please?
I don't have enough post's, so cant post a link.
Search for member AndDiSa and go to his blog, which has a link in his sig.
He has instructions to for extracting a factory image and installing with fastboot.
Has worked for me on the last two updates.
Or just Google for debuggerd, Nexus 7, android 4.3 and xda; there's a thread somewhere here where someone posted a copy. It's how I fixed mine when I upgraded.
Just download it and copy it to /system/bin. Easiest if you can do it in recovery, as Chainfire used that file for some of his software hacks for either Super SU or Stickmount and unfortunately it can get copied over again on boot or reboot.
Sent from my GT-N5110 using Tapatalk 2