Update-script - Android

can someone tell to me all the commands for update-script like delting dalvik while flashing and explain me how to modify it ?

MrNameless said:
can someone tell to me all the commands for update-script like delting dalvik while flashing and explain me how to modify it ?
Click to expand...
Click to collapse
I'm interested in this too.

MrNameless said:
can someone tell to me all the commands for update-script like delting dalvik while flashing and explain me how to modify it ?
Click to expand...
Click to collapse
This is the best guide that I have found -
http://forum.xda-developers.com/showthread.php?t=641223
Also, grab as many ROMs as you can find and look at what's there.
Note that Cyanogen based ROMs use different syntax in their 'updater-script'.

Related

[Ready to DONATE][Q] How to manually deodex Email.apk and Mobileprint.apk

I found many threads of people who can't deodex Email.apk, Mobileprint.apk, even manualy, including every .jar in the baksmali.jar -c: xxxx.
Is there a Dev who could give us the command line to succesfully deodex Email.odex and Mobileprint.odex ?
Thanks
Edit 06/30/2011 : I am ready to donate for the help you could give me
Found the same threads you did.. I am researching this as well.. Will keep you updated if I find anything.
U don't need to deodex the whole rom, though you will need to deodex the whole framework.
mak1 said:
U don't need to deodex the whole rom, though you will need to deodex the whole framework.
Click to expand...
Click to collapse
Ok, thanks for the answer, but what to do with the .odex files (Email and Mobileprint), I'm not going to leave them non deodexed with others deodexeds apk ?
sicopat said:
Ok, thanks for the answer, but what to do with the .odex files (Email and Mobileprint), I'm not going to leave them non deodexed with others deodexeds apk ?
Click to expand...
Click to collapse
i wana know this tooo
If ur not changing anything in the BOOTCLASSPATH files, u can deodex a single file
-app for eg.-, edit it and put it into ur device without deodexing anything else, delete the existing odex file.
u'll need baksmali for that purpose-apktool donot have that feature btw-also u'v to have framework files available (just pull the entire framework directory from the phone) pass it's directory via the -d option. App depends on particular jar files will require that through -c option.
mak1 said:
If ur not changing anything in the BOOTCLASSPATH files, u can deodex a single file
-app for eg.-, edit it and put it into ur device without deodexing anything else, delete the existing odex file.
u'll need baksmali for that purpose-apktool donot have that feature btw-also u'v to have framework files available (just pull the entire framework directory from the phone) pass it's directory via the -d option. App depends on particular jar files will require that through -c option.
Click to expand...
Click to collapse
That's the problem, even with the entire framework directory, I am not able to deodex Email.apk and Mobileprint.apk . Seems like if missing Bootclasspath ...
No problem manualy deodexing every other apks ..
I tried to deodex both of these files with omrij's tool and it was successfull.
http://forum.xda-developers.com/showthread.php?t=1053227
TAEL said:
I tried to deodex both of these files with omrij's tool and it was successfull.
http://forum.xda-developers.com/showthread.php?t=1053227
Click to expand...
Click to collapse
I wonder if it ignores certain errors. If i use baksmali with the -I option, i can get deodexed output, But obviously the APK won't work.
sicopat said:
I found many threads of people who can't deodex Email.apk, Mobileprint.apk, even manualy, including every .jar in the baksmali.jar -c: xxxx.
Is there a Dev who could give us the command line to succesfully deodex Email.odex and Mobileprint.odex ?
Thanks
Click to expand...
Click to collapse
I got it done for u method is a bit complicated though
First of all, Thanks!
Second of all, I'm much more interested on how its done rather than the apps themselves. I'd be very happy if you could share how by any means.
ransagy said:
First of all, Thanks!
Second of all, I'm much more interested on how its done rather than the apps themselves. I'd be very happy if you could share how by any means.
Click to expand...
Click to collapse
same here..i guess we just want to learn so please share
thanks
Deodexing is not my favorite stuff I do it for my personal use at times, I use my own set of scripts on linux with custom bootclasspaths.
Would recommend to have a look here: http://code.google.com/p/smali/wiki/DeodexInstructions
mak1 said:
Deodexing is not my favorite stuff I do it for my personal use at times, I use my own set of scripts on linux with custom bootclasspaths.
Would recommend to have a look here: http://code.google.com/p/smali/wiki/DeodexInstructions
Click to expand...
Click to collapse
thanks already read that
mak1 said:
Deodexing is not my favorite stuff I do it for my personal use at times, I use my own set of scripts on linux with custom bootclasspaths.
Would recommend to have a look here: http://code.google.com/p/smali/wiki/DeodexInstructions
Click to expand...
Click to collapse
I also wrote my own deodexing bash script with baksmali/smali/zip. The thing is, Those two APK request java libraries to deodex (java.awt.* and javax.swing.*). I could't find anywhere to get those dependencies from, So if you could share which boot classes you used for satisfying those requirements, it would be great.
Thanks!
I am ready to make a donation for help.
I would like to be able to do it myself
sicopat said:
I am ready to make a donation for help.
I would like to be able to do it myself
Click to expand...
Click to collapse
I have found out how you do it, by checking my bash logs way back
Just use the -I ignore flag on the command, along with regular bootclasspath.
The errors are not an issue and the apps work fine.
Enjoy.
pulser_g2 said:
I have found out how you do it, by checking my bash logs way back
Just use the -I ignore flag on the command, along with regular bootclasspath.
The errors are not an issue and the apps work fine.
Enjoy.
Click to expand...
Click to collapse
Thanks so much Pulser, I am going to try this.
it's Curious we canno't avoid errors.
As promised : donation done
Big thanks
Hi guys, same here with Email.odex...
I'm not be able to deodex it...
Somebody can help me? Thanks!

Need Help with Porting

Trying to learn how to port and i think i got everything pretty good except for updater-scripts i dont know how to edit the Base's updater-script to be like the Ported's updater-script
Ty113096 said:
Trying to learn how to port and i think i got everything pretty good except for updater-scripts i dont know how to edit the Base's updater-script to be like the Ported's updater-script
Click to expand...
Click to collapse
Learn how to write updater script .. !!
There is a guide

Custom ROMs for ICS on Wave 1 ? If Any ?

Custom ROMs for ICS on Wave 1 ? If Any ? I am not sure how to proceed in this coz my phone doesnt boot in recovery mode
Sent from my Samsung Wave GT-S8500 (ICS 4.0.4) using xda premium
danishprakash said:
Custom ROMs for ICS on Wave 1 ? If Any ? I am not sure how to proceed in this coz my phone doesnt boot in recovery mode
Sent from my Samsung Wave GT-S8500 (ICS 4.0.4) using xda premium
Click to expand...
Click to collapse
No custom rom for the moment. Mike said that he made a recovery mode, let's see what will happen in the next version and if it will be possible at that moment.
Soxix said:
No custom rom for the moment. Mike said that he made a recovery mode, let's see what will happen in the next version and if it will be possible at that moment.
Click to expand...
Click to collapse
In fact, you can mod the current firmware if you know what to do... I activated the software keys on mine (you know, the home, back, applist). You just have to mount the img file, or use adb and you can try to change things.
anghelyi said:
In fact, you can mod the current firmware if you know what to do... I activated the software keys on mine (you know, the home, back, applist). You just have to mount the img file, or use adb and you can try to change things.
Click to expand...
Click to collapse
All are Under ubuntu ? or ..
hero355 said:
All are Under ubuntu ? or ..
Click to expand...
Click to collapse
Mounting the img file needs Linux (you need something like mount -t ext2 -o loop polishblood_Nightlyi1.img ../the_folder_you_created_for_mountpoint) but if you just want to make smaller modifications (eg. replacing one apk, or editing some configfile) adb on Windows is enough. If you use my kernel then you will have write access to /system, too.
As a "proof of concept" I "ported" a firmware from Galaxy S (AOKP). You can experiment with it, just replace the polisblood_Nightly1.img (and preferably replace data.img and cache.img with the original ones.)
Here you are:
http://dl.dropbox.com/u/27419363/polishblood_Nightly1.img
hero355 said:
All are Under ubuntu ? or ..
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1702861
WinHex can open and extract files/folders from *.img ...
https://dms.ospserver.net/v1/device...?pkgID=FW-20120626-14658&service=fumo&wrkID=W
To build... not tested yet... But I think also more Windows Tools exists...
But for starting research WinHex is enough.
Best Regards
Thanks For your Replies
I have mounted polishblood_Nightly1.img using "sudo mount -o loop polishblood_Nightly1.img ../android"
and added some .apk files to the app folder....now how to unmount..???
umount ../android
i have edited polishblood_Nightly1.img .....thx u guys:good:
now some1 plz help me with kernel???
how to edit zImage????
does that need any tools????
Nitesh19 said:
i have edited polishblood_Nightly1.img .....thx u guys:good:
now some1 plz help me with kernel???
how to edit zImage????
does that need any tools????
Click to expand...
Click to collapse
There are no such tools... You can find scripts to extract the initramfs but that's all. You have to compile your kernel to make real changes.
anghelyi said:
There are no such tools... You can find scripts to extract the initramfs but that's all. You have to compile your kernel to make real changes.
Click to expand...
Click to collapse
is there any tut for this???
where to find scripts???
all under ubuntu????
thx :good:
anghelyi said:
In fact, you can mod the current firmware if you know what to do... I activated the software keys on mine (you know, the home, back, applist). You just have to mount the img file, or use adb and you can try to change things.
Click to expand...
Click to collapse
Could you tell me how you did that?

Converting updater scipt to update scirpt Android Kitchen

I am trying to modify a aosp compile build in the Android Ktichen but when I get to the step where i have to convert from updater-script to update-script, it gets stuck at "assert". I have allowed it to run for almost an hour now. how do i resolve this issue?
bump for help..
nexxusdev said:
I am trying to modify a aosp compile build in the Android Ktichen but when I get to the step where i have to convert from updater-script to update-script, it gets stuck at "assert". I have allowed it to run for almost an hour now. how do i resolve this issue?
Click to expand...
Click to collapse
use notepad++ to modify updater script
ICS_XD said:
use notepad++ to modify updater script
Click to expand...
Click to collapse
manually convert? thats gonna take long... anyway, is the update binary still needed after converting?
nexxusdev said:
manually convert? thats gonna take long... anyway, is the update binary still needed after converting?
Click to expand...
Click to collapse
yep
Script. It's spelled "script"!!! j/k
Look up the kitchen on here. It does that as one of the features and does it very well. I believe it was called just "kitchen". I may have the name a little off but hopefully this get you going. Also, it's main purpose is building roms, etc, but it does do the feature you need!
Sent from my Super Galaxy'd SPH-D710

Does Dsixda's ROM Kitchen work with Galaxy S3?

I've been wanting to try the kitchen out to see if I can try deodexing and zipaligning etc on the stock touchwiz ROM I'm running.
Do you think it would work? (despite it being discontinued)
yes it works still, works on ics & jellybean (i use it myself to deodex and zipalign)
Theshawty said:
I've been wanting to try the kitchen out to see if I can try deodexing and zipaligning etc on the stock touchwiz ROM I'm running.
Do you think it would work? (despite it being discontinued)
Click to expand...
Click to collapse
Yes dxixda kitchen works but you will need to add another file with gs3 parameters in the edify_defs folder with name m0..still the updater-script does not work . It gives me errors in the installing boot.img stage.. . Anyways you can use the kitchen to create your rom and then package your rom manually using updater-script and update-binary from some other working rom.. Then sign it..
If you or anyone finds a solution to that problem do let us know..
:thumbup:
Sent from someone in the Milky Way
zoot1 said:
but you will need to add another file with gs3 parameters in the edify_defs folder with name m0
Click to expand...
Click to collapse
Where do I find such file?
zoot1 said:
Yes dxixda kitchen works but you will need to add another file with gs3 parameters in the edify_defs folder with name m0..still the updater-script does not work . It gives me errors in the installing boot.img stage.. . Anyways you can use the kitchen to create your rom and then package your rom manually using updater-script and update-binary from some other working rom.. Then sign it..
If you or anyone finds a solution to that problem do let us know..
:thumbup:
Sent from someone in the Milky Way
Click to expand...
Click to collapse
I have a file for myself will upload it here once I reach home.. On my way back.. Hopefully you can see what is wrong.. I tried to get help from wanam also but we could not find the problem..
Edit: here you go..put the m0 file in the edify_defs folder..check if you can find any problem with it..
Sent from someone in the Milky Way
zoot1 said:
I have a file for myself will upload it here once I reach home.. On my way back.. Hopefully you can see what is wrong.. I tried to get help from wanam also but we could not find the problem..
Edit: here you go..put the m0 file in the edify_defs folder..check if you can find any problem with it..
Sent from someone in the Milky Way
Click to expand...
Click to collapse
I don't know anything about stuff like that
I'm a complete noob and just wanna try to deodex and stuff
Theshawty said:
I don't know anything about stuff like that
I'm a complete noob and just wanna try to deodex and stuff
Click to expand...
Click to collapse
Deodexing will work just fine..no probs..some times you might get an error with one or two apps..just use the option to deodex a single app and you will be good to go..
:good:
Edit:
Most important change the api level to 16 before deodexing..
just make a copy of your zipped rom, drop it into the working folder, deodex the files you want to and then pull those files out of the working folder and drop them into the original rom zip folder (minus the original odexed files)
no need to change anything, no need to drop new files in or mess with update script
as you will use your existing update script/meta inf folder blah blah blah, it means you can say yes to the mods the kitchen wants to make as you will only be taking the deodexed files from there, nothing else
(does that make sense? - im guessing you will ignore this anyway like my previous post))
Darkside Agent said:
just make a copy of your zipped rom, drop it into the working folder, deodex the files you want to and then pull those files out of the working folder and drop them into the original rom zip folder (minus the original odexed files)
no need to change anything, no need to drop new files in or mess with update script
as you will use your existing update script/meta inf folder blah blah blah, it means you can say yes to the mods the kitchen wants to make as you will only be taking the deodexed files from there, nothing else
Click to expand...
Click to collapse
Thanks, will try this.
Darkside Agent said:
(does that make sense? - im guessing you will ignore this anyway like my previous post))
Click to expand...
Click to collapse
Uh, sorry about that. I totally missed your post!
Did you get it all sorted in the end?
Darkside Agent said:
Did you get it all sorted in the end?
Click to expand...
Click to collapse
Nah, I basically said "f*ck it and deleted the whole thing.
Gonna let someone else deal with zipaligning, deodexing and all that.
Theshawty said:
Nah, I basically said "f*ck it and deleted the whole thing.
Gonna let someone else deal with zipaligning, deodexing and all that.
Click to expand...
Click to collapse
You need Patience my friend..
zoot1 said:
You need Patience my friend..
Click to expand...
Click to collapse
One of many things I lack and will probably always lack.
Sorry for dragging out an old thread but I thought I would have a go with this. I have the kitchen installed, I have put I9300XXDLI5_I9300OXADLI5_I9300XXDLI5_BTU.zip in the original_update and have the m0 file in tools/edify_defs
I then try and extract the ROM but I get an error Error: No system folder found!
How can I not even get started? I must be missing something basic here!
Kangburra said:
Sorry for dragging out an old thread but I thought I would have a go with this. I have the kitchen installed, I have put I9300XXDLI5_I9300OXADLI5_I9300XXDLI5_BTU.zip in the original_update and have the m0 file in tools/edify_defs
I then try and extract the ROM but I get an error Error: No system folder found!
How can I not even get started? I must be missing something basic here!
Click to expand...
Click to collapse
IIRC, the archive file must be a tar archive containing at least a system.img.
Sent from my GT-I9300 using Tapatalk 2
Theshawty said:
IIRC, the archive file must be a tar archive containing at least a system.img.
Sent from my GT-I9300 using Tapatalk 2
Click to expand...
Click to collapse
Can't I start with the ODIN file of the leaks? It must have a system image in it? Where do you start with this? I thought a whole flashable ROM would be ideal.
Kangburra said:
Can't I start with the ODIN file of the leaks? It must have a system image in it? Where do you start with this? I thought a whole flashable ROM would be ideal.
Click to expand...
Click to collapse
Extract the tar file and put the system.ext4.img and boot.img in the update folder.. Then Dxixda kitchen will recognize it..
Sent from the iPoop killer ==>>>
Kangburra said:
Can't I start with the ODIN file of the leaks? It must have a system image in it? Where do you start with this? I thought a whole flashable ROM would be ideal.
Click to expand...
Click to collapse
Oh yeah, I forgot, the system.img must be coverted from yaffs img to an ext4 file. I believe the utility is called ext2fs (or something like it)
Dsixda's tool should provide that program anyhow.
Well I unzipped the ROM and untarred the md5 and then it at least got me started. I am now just working out what I can do and what I need to get. Thanks for your help.
[edit]Well I built the ROM and tried both the update and updater scripts but both fail. Will go and re-read the help. [/edit]
Kangburra said:
Well I unzipped the ROM and unatarred the md5 and then it at least got me started. I am now just working out what I can do and what I need to get. Thanks for your help.
[edit]Well I built the ROM and tried both the update and updater scripts but both fail. Will go and re-read the help. [/edit]
Click to expand...
Click to collapse
Well that is the problem which I am not to work out yet.. As Dxixda kitchen does not support s3
Best way it to use meta-inf folder from other rom..
Sent from the iPoop killer ==>>>

Categories

Resources