[Q] create Update.zip - Android Q&A, Help & Troubleshooting

Hi
i want to create an update.zip i can install via the recovery console.
i have the framework-res.apk and some of apk ...such as : SystemUI.apk , Settings.apk ... etc .
zipped it and signed it but when i try to flash it needs an update .script how do i create an update script to tell the recover console to replace the app

See if any of these could help: http://forum.xda-developers.com/showthread.php?t=1248486 and: http://forum.xda-developers.com/showthread.php?t=917922.

I get the following error
Installation aborted.
can you help me plz

mraboude12 said:
I get the following error
Installation aborted.
can you help me plz
Click to expand...
Click to collapse
Have you tried again (following all instructions)?

mraboude12 said:
Hi
i want to create an update.zip i can install via the recovery console.
i have the framework-res.apk and some of apk ...such as : SystemUI.apk , Settings.apk ... etc .
zipped it and signed it but when i try to flash it needs an update .script how do i create an update script to tell the recover console to replace the app
Click to expand...
Click to collapse
Are you rooted ?
The simplest way is to root and get and advanced recovery like CWM.

Theonew said:
Have you tried again (following all instructions)?
Click to expand...
Click to collapse
I followed the instructions but I get the same error
gnx_androidoman said:
Are you rooted ?
The simplest way is to root and get and advanced recovery like CWM.
Click to expand...
Click to collapse
yes i`m rooted
Note: my mobile is : HTC Desire hd
recovery : from rom manger
in the attachment , update.zip which I get the error

u can extract custom rom and then change things u want and then create .zip again

droider95 said:
u can extract custom rom and then change things u want and then create .zip again
Click to expand...
Click to collapse
I try to delete files from the Rom.zip and stay only the files that I want ..
But when I install the zip file did not run mobile again .. Htc logo appears so I did the installation of a new Rom ..
plz help to create zip file

I don't know diddly about the desire hd, but you are using an amend format, I think you need an edify format.
You can keep your system folder, but I suggest you download a newer rom and grab some files from there. You will need META-INF/com/google/android/update-binary and META-INF/com/google/android/updater-script Note the big, red "r".
Copy the binary and put it in the appropriate folder.
Your updater-script will look something like this:
Code:
ui_print("Unpacking new files...");
package_extract_dir("system", "/system");
ui_print("Symlinks and permissions...");
set_perm(0, 0, 0644, "/system/app/contacts.apk");
set_perm(0, 0, 0644, "/system/framework/framework-res.apk");
It might be different for your phone, so download some roms and have a look to see if there are any material changes.

gee one said:
I don't know diddly about the desire hd, but you are using an amend format, I think you need an edify format.
You can keep your system folder, but I suggest you download a newer rom and grab some files from there. You will need META-INF/com/google/android/update-binary and META-INF/com/google/android/updater-script Note the big, red "r".
Copy the binary and put it in the appropriate folder.
Your updater-script will look something like this:
Code:
ui_print("Unpacking new files...");
package_extract_dir("system", "/system");
ui_print("Symlinks and permissions...");
set_perm(0, 0, 0644, "/system/app/contacts.apk");
set_perm(0, 0, 0644, "/system/framework/framework-res.apk");
It might be different for your phone, so download some roms and have a look to see if there are any material changes.
Click to expand...
Click to collapse
thank you,,

Related

[Q] Automatic installation of Apps LWW

I want to modify a ROM for my personal use, I want to put all my apps in the ROM zip and it will automatically be installed on my sd card after I flashed it. Is that's possible how will I do that?
Thanks
zcedar said:
I want to modify a ROM for my personal use, I want to put all my apps in the ROM zip and it will automatically be installed on my sd card after I flashed it. Is that's possible how will I do that?
Thanks
Click to expand...
Click to collapse
Use this app to create the flashable zip of your apps
Read the instructions in forum carefully . you need to have java 6+ up and running on your PC.
OR
just put all the apk files u want inside system/app in your ROm.zip file. Open system/app on your winrar and drag all apks into it
MoonBlade said:
Use this app to create the flashable zip of your apps
Read the instructions in forum carefully . you need to have java 6+ up and running on your PC.
OR
just put all the apk files u want inside system/app in your ROm.zip file. Open system/app on your winrar and drag all apks into it
Click to expand...
Click to collapse
I want it on my SD card not in system/app....
what if i put a folder data/app where will it go i flash the rom?
zcedar said:
I want it on my SD card not in system/app....
what if i put a folder data/app where will it go i flash the rom?
Click to expand...
Click to collapse
u said u wanted to include the apks inside the ROM before flashing it Right???
zcedar said:
what if i put a folder data/app where will it go i flash the rom?
Click to expand...
Click to collapse
It will go to internal memory, you need to move them to sd card manually after flashing, and you will need to add this to updater script before flashing:
Code:
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
run_program("/sbin/busybox", "umount", "/data");
coz without it, your added apps will not be copied
PS: be aware of adding too much apps to system/app, then the rom couldn't fit the /system partition and you will not be able to boot it up!
MoonBlade said:
u said u wanted to include the apks inside the ROM before flashing it Right???
Click to expand...
Click to collapse
Yes, but while the flashing it will be installed in my sd card
pcpepik said:
It will go to internal memory, you need to move them to sd card manually after flashing, and you will need to add this to updater script before flashing:
Code:
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
run_program("/sbin/busybox", "umount", "/data");
coz without it, your added apps will not be copied
PS: be aware of adding too much apps to system/app, then the rom couldn't fit the /system partition and you will not be able to boot it up!
Click to expand...
Click to collapse
where should i put this code?
In the zip go to
Code:
META-INF > com > google > android
here you will find the updater-script file, which you need to edit

[Q] CWM recovery doesnt work

Hi guys I am new here and I can write into this topic: http://forum.xda-developers.com/showthread.php?t=1721680
So here is my problem...
I made a zip file following the instructions here. The only difference is I need to put files into data (but there was an answer in the topic how to make it so.. I renamed the folder system to data and changed the script)
My script looks like this
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
ui_print("Enjoy!");
I put the .zip file into mnt/sdcard/clockworkmod/backup and tried to use titanium backup to run it...
But it always crashes when I click the file sample.zip
Whats wrong?Can I use other apps to start it?
LetisXXX said:
Hi guys I am new here and I can write into this topic: http://forum.xda-developers.com/showthread.php?t=1721680
So here is my problem...
I made a zip file following the instructions here. The only difference is I need to put files into data (but there was an answer in the topic how to make it so.. I renamed the folder system to data and changed the script)
My script looks like this
run_program("/sbin/busybox", "mount", "/data");
package_extract_dir("data", "/data");
ui_print("Enjoy!");
I put the .zip file into mnt/sdcard/clockworkmod/backup and tried to use titanium backup to run it...
But it always crashes when I click the file sample.zip
Whats wrong?Can I use other apps to start it?
Click to expand...
Click to collapse
what are you trying to do? Install an app?

[GUIDE] dsixda's Android Kitchen now on P760!!

Hi all guys, finally i've found the way to use this very nice tool on our device!!
I've tested it on my P760 with v20b stock ROM and with some little addon it runs fine
First of all i want to clarify that this guide uses a tool made for the xda comunity by dsixda, so the major credit goes to him.
Dont ask me if it works on other variants, i have the P760 only, so try by yourself and let us know.
What you need:
dsixda's Android Kitchen
dsixda Android Kitchen P760 addon
KDZ file or CWM backup of your stock ROM
...a bit of knowledge on what you are doing
_______
Download and install dsixda Android Kitchen from original thread
Download dsixda_Android_Kitchen_P760_addon and extract the contents somewhere to your pc.
You can see two folder "dsixda_edify_defs" and "brocken_sys_files", copy dsixda_edify_defs content to "\Cygwin\home\YourUserName\Kitchen\tools\edify_defs" folder.
Now we need system and boot from our rom. If you have a CWM backup just copy system.ext4.tar.a and boot.img to "original_update" folder of dsixda kitchen and rename "system.ext4.tar.a" to "system.ext4.tar"
If you want to use KDZ stock ROM please refer to this guide provided by kuma82 on how to extract system.img and boot.img
Now run dsixda Android Kitchen and setup your working folder (detailed info on hawto in the original thread).
When setup completed than copy the "brocken_sys_files" contents located in dsixda_Android_Kitchen_P760_addon.zip to the locations specified in the included readme file. I dont know why but dsixda kitchen doesnt process these files correctly so we have to add them manually. They are taken from V20b but should work on other version too.
Ok,now we are ready to apply our mods and cook!!
I've cooked my own ROM from KDZ file and tested some feature, root, deodex, zipalign, init.d, /data/app, all works fine. I've found only one issue releted to deodexing LG keyboard, just replace it with another one and all should be fine.
NOT tested with CM rom.
I'm NOT responsable of any kind of demage caused by using this method, so use it at your own risk.
@moderators
I dont know if this is the right section where to post this guide, if no than feel free to move it to the right one.
Credits:
dsixda (for Android kitchen)
kuma82 and cmahendra (for KDZ extraction)
___
Thanks for sharing the info, Android kitchen was already working but I had to change the updater-script and update-binary manually.
Lol, I didn't think about changing the CWM backup system .tar.a file to .tar I just used the dd command to extract (my current) system.img to my sdcard
Code:
dd if=/dev/block/mmcblk0p10 of=/sdcard/system.img
Note: my internal and external or swapped, so change accordingly
Another thing, thanks for giving me credit for my guide
@- shifu - thanks man! you have two pm!
@kuma82 how you change it?
format("MTD", "system");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");
....
assert(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
with:
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");
...
package_extract_file("boot.img", "/dev/block/platform/omap/omap_hsmmc.1/by-name/boot");
Yup, to tell you the truth I haven't tried it yet, been to busy, to actually flash it, but if I'm not mistaken @Kid_Ding used it (android kitchen) to port pac rom to the P769
Sent from my LGMS769 using xda app-developers app
kuma82 said:
Thanks for sharing the info, Android kitchen was already working but I had to change the updater-script and update-binary manually.
Click to expand...
Click to collapse
for me it never worked, even changing updater-script.. but i've tried with stock ROM only, maybe with CM just made the changhes you've mentioned.
Anyway with my addon it works out of the box, no need to modify updater-script
Lol, I didn't think about changing the CWM backup system .tar.a file to .tar I just used the dd command to extract (my current) system.img to my sdcard
Code:
dd if=/dev/block/mmcblk0p10 of=/sdcard/system.img
Note: my internal and external or swapped, so change accordingly
Click to expand...
Click to collapse
yep, i've tried and it worked
Another thing, thanks for giving me credit for my guide
Click to expand...
Click to collapse
of nothing colleague
Very Useful.
Very useful Thread. Saved lot of time. Thanks

[Q] flashable zip

Hello there , im trying to make a flashable zip to puch an apk on the system , or replace systemui.apk but it always give me this error
"Finding update package...
Opening update package...
Installing update...
Installation aborted."
i tried a lot of ways like this : http://forum.xda-developers.com/showthread.php?t=2163974 but still the same error
btw my cwm version is 5.0.2.8​
mohabmoka said:
Hello there , im trying to make a flashable zip to puch an apk on the system , or replace systemui.apk but it always give me this error
"Finding update package...
Opening update package...
Installing update...
Installation aborted."
i tried a lot of ways like this : http://forum.xda-developers.com/showthread.php?t=2163974 but still the same error
btw my cwm version is 5.0.2.8​
Click to expand...
Click to collapse
Can you upload that flashable zip? I will check it for errors, I will try to solve errors and give it back to you.
Sent from my GT-I9001 Gadget of Mass Destruction with CM11 using XDA Developers App.
hnkotnis said:
Can you upload that flashable zip? I will check it for errors, I will try to solve errors and give it back to you.
Sent from my GT-I9001 Gadget of Mass Destruction with CM11 using XDA Developers App.
Click to expand...
Click to collapse
oky no problem sure here you are , p.s : i tried to replace META-INF with other that worked ob my mobile before
from the attached zip i want to push this apk to system ik that there is alot of ways but i want to make this way is that possible? and also 3 days ago i wanted to replace my systemui.apk with edited and signed one by me , thanks man for help !!
If you get a chance read through this a bit
http://forum.xda-developers.com/showthread.php?t=2290009
It may help understand the structure and how to use edify. I'm on mobile right now so it may be a bit tough to look at your current .zip but if you don't have an answer by the time I get to a PC I'll have a look
But I will say off hand what youre trying to do will be fairly easy.
Grab a ROM that works for your phone
Extract the contents of the zip
Get rid of everything but the META-INF folder
Go to the updater-script
Erase all and write your own (if on windows use notepad++)
What you will need to do is mount system, then say where to take the app from and where to put it
Then have it fix permissions
The unmount system
Now zip it up with your app
Sign
And your good
Sent from my Nexus 4 using XDA Premium 4 mobile app
demkantor said:
If you get a chance read through this a bit
http://forum.xda-developers.com/showthread.php?t=2290009
It may help understand the structure and how to use edify. I'm on mobile right now so it may be a bit tough to look at your current .zip but if you don't have an answer by the time I get to a PC I'll have a look
But I will say off hand what youre trying to do will be fairly easy.
Grab a ROM that works for your phone
Extract the contents of the zip
Get rid of everything but the META-INF folder
Go to the updater-script
Erase all and write your own (if on windows use notepad++)
What you will need to do is mount system, then say where to take the app from and where to put it
Then have it fix permissions
The unmount system
Now zip it up with your app
Sign
And your good
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
well !! frist of all thanks for you help ! and i will try again and tell you , thanks again
mohabmoka said:
well !! frist of all thanks for you help ! and i will try again and tell you , thanks again
Click to expand...
Click to collapse
See HERE.
so just had a look at you .zip
youre missing your updater script and update-binary
so again, take this from a recent rom from your device and put them in META-INF
so file structure
META-INF/com/google/android and here put those two files
and your updater script should be simple, something like
Code:
ui_print("mounting system");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("fbutton/system", "/system");
ui_print("setting permissions");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
ui_print("unmounting system");
run_program("/sbin/busybox", "umount", "/system");
but feel free to edit in whatever or define the actual system partition, your choice
best of luck!
demkantor said:
so just had a look at you .zip
youre missing your updater script and update-binary
so again, take this from a recent rom from your device and put them in META-INF
so file structure
META-INF/com/google/android and here put those two files
and your updater script should be simple, something like
Code:
ui_print("mounting system");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("fbutton/system", "/system");
ui_print("setting permissions");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
ui_print("unmounting system");
run_program("/sbin/busybox", "umount", "/system");
but feel free to edit in whatever or define the actual system partition, your choice
best of luck!
Click to expand...
Click to collapse
well but i aslo used the meta-inf file which is in my root file (attached ) and root file worked well , i uploaded the root file and the file after edit with meta-inf from root file can you check it out?
XperienceD said:
See HERE.
Click to expand...
Click to collapse
oky thanks i will check it out and reply :] thanks for you help ^_^
XperienceD said:
See HERE.
Click to expand...
Click to collapse
demkantor said:
so just had a look at you .zip
youre missing your updater script and update-binary
so again, take this from a recent rom from your device and put them in META-INF
so file structure
META-INF/com/google/android and here put those two files
and your updater script should be simple, something like
Code:
ui_print("mounting system");
run_program("/sbin/busybox", "mount", "/system");
package_extract_dir("fbutton/system", "/system");
ui_print("setting permissions");
set_perm_recursive(0, 0, 0755, 0644, "/system/app");
ui_print("unmounting system");
run_program("/sbin/busybox", "umount", "/system");
but feel free to edit in whatever or define the actual system partition, your choice
best of luck!
Click to expand...
Click to collapse
well , i edited the updater-script and still the same problem :s i attach the final zip and can anyone of you check it out for me :] , also when i enter cwm i selcet install zip for sd card is that right? or i should do anything else ?
mohabmoka said:
well , i edited the updater-script and still the same problem :s i attach the final zip and can anyone of you check it out for me :] , also when i enter cwm i selcet install zip for sd card is that right? or i should do anything else ?
Click to expand...
Click to collapse
you have an extra folder, META-INF ans system folders should not be inside lite
if you open your zip youll see what i mean
so rezip these two folders, sign then flash through recovery
also you may need to add a chmod for permissions in your updater-script - either just for new app or all of system, either way will work
demkantor said:
you have an extra folder, META-INF ans system folders should not be inside lite
if you open your zip youll see what i mean
so rezip these two folders, sign then flash through recovery
also you may need to add a chmod for permissions in your updater-script - either just for new app or all of system, either way will work
Click to expand...
Click to collapse
Yuup finally ! its worked welll !!! thanks alot man :]
well it said success but when i opened my mobile again i found nothing !
Did you add the set_permissions to the updater-script? If not it won't show up
Sent from my Nexus 4 using XDA Premium 4 mobile app
demkantor said:
Did you add the set_permissions to the updater-script? If not it won't show up
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
this is my updater-script , is that right ?
Depending on your file structure it looks good enough to me, what happens when you flash it now?
Sent from my Nexus 4 using XDA Premium 4 mobile app
demkantor said:
Depending on your file structure it looks good enough to me, what happens when you flash it now?
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
it says install form sd card complete but i found nothing ..
Can you upload the whole zip again and I'll see
Sent from my Nexus 4 using XDA Premium 4 mobile app
demkantor said:
Can you upload the whole zip again and I'll see
Sent from my Nexus 4 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
here you are
mohabmoka said:
here you are
Click to expand...
Click to collapse
just took a look at it, you have it searching for flite/system which does not exist so change this
package_extract_dir("flite/system", "/system");
to
package_extract_dir("system", "/system");
in your updater-script
at this point all should work fine, if not let me know!

[Q] Creating a CWM flashable zip

Can anybody point me out how to create a CWM flashable zip? i did find a lot of topics, but i've noticed that any ZIP package has to be phone specific, at least a glimpse on the updater-script showed me partition names which i am very unfamiliar with.
The simplest method gives you a zip file where all you have to do is put system.img, boot.img and recovery.img on it, and a very basic script (i think):
Code:
ui_print("Starting ...");
ui_print(" ");
ui_print("Boot Partition Writing ...");
package_extract_file("boot.img", "/dev/block/mmcblk0p8");
ui_print("System Partition Writing ... ");
package_extract_file("system.img", "/dev/block/mmcblk0p15");
ui_print("Recovery Partition Writing ... ");
package_extract_file("recovery.img", "/dev/block/mmcblk0p13");
ui_print("Pass");
ui_print("Wipe data & Cache & Dalvik and reboot system ");
however, the code above, i found it on the GT-i9001 threads, so i dont want to risk anything...especially with the partition blocks.
the point of this thread is to convert our odin packages to cwm flshable zips, though the reason behind it is trying to flash a 4.2 rom from a identical device as ours, in fact, it is the same device, for more info check this thread
i think it's already exist now
PlutoDelic said:
Can anybody point me out how to create a CWM flashable zip? i did find a lot of topics, but i've noticed that any ZIP package has to be phone specific, at least a glimpse on the updater-script showed me partition names which i am very unfamiliar with.
The simplest method gives you a zip file where all you have to do is put system.img, boot.img and recovery.img on it, and a very basic script (i think):
Code:
ui_print("Starting ...");
ui_print(" ");
ui_print("Boot Partition Writing ...");
package_extract_file("boot.img", "/dev/block/mmcblk0p8");
ui_print("System Partition Writing ... ");
package_extract_file("system.img", "/dev/block/mmcblk0p15");
ui_print("Recovery Partition Writing ... ");
package_extract_file("recovery.img", "/dev/block/mmcblk0p13");
ui_print("Pass");
ui_print("Wipe data & Cache & Dalvik and reboot system ");
however, the code above, i found it on the GT-i9001 threads, so i dont want to risk anything...especially with the partition blocks.
the point of this thread is to convert our odin packages to cwm flshable zips, though the reason behind it is trying to flash a 4.2 rom from a identical device as ours, in fact, it is the same device, for more info check this thread
Click to expand...
Click to collapse
The below can be used fro CWM. I didn't try it yet, but it was posted in tools and utilities section.
mohamed_fattoh said:
The below can be used fro CWM. I didn't try it yet, but it was posted in tools and utilities section.
Click to expand...
Click to collapse
Oh, you probably misunderstood me. I needed to know how to create a ZIP so i can flash it through CWM. I already have it, exactly what you've pasted , thnx for trying to help btw.
Check this this out. http://pan.baidu.com/s/1qWyNG8O
Might be a flashable i8558 rom. Muamk1
It semms that download links for i8558 custom roms are removed from their sites.
Got that link fromb http://m.romjd.com/Rom/Detail/35720
Another rom here. http://m.romjd.com/Rom/Detail/27609

Categories

Resources