[Q] Searching for an automated way to deodex and zipalign - Galaxy S I9000 Q&A, Help & Troubleshooting

There are some ROMs around that are deodexed and zipaligned. The ROMs around here unfortnately are themed (not to my taste) and/or have removed Samsung stuff that i use. I want a nearly untouched FW (i remove a few Samsung apps on my own).
So i'm searching for an automated method (that can also be used for future FWs) to deodex and zipalign the files of my phone (maybe only some binaries or java applications and a batch file).
I can manage to pull/push all files from/to /system/app and /system/framework but i'm not able to do the rest...

Also very interested in this. Or a clean kitchen or a how to on making a kitchen to mod our roms.

dutchcow said:
Also very interested in this. Or a clean kitchen or a how to on making a kitchen to mod our roms.
Click to expand...
Click to collapse
I just wanted to create a thread about MODIFYING / CREATING CUSTOM ROMS FOR THE i9000.
Does anyone know how to modify (for example, Tayutama's JPM Full ROM) ROMs?
I googled and just found some HTC ROM HowTo's.

Check my signature for all the tools u shud need in terms of deodexing, editing apks, creating signed update.zip. Thats all you really need i think :\

A zipaligner is missing.

yes that'd be perfect! trying to optimize my device myself here too.
if there's no automated way could someone be so kind to post some instructions as to how?
found some stuff on the g1 forums but i'm not sure if it'll work...

Adevem said:
yes that'd be perfect! trying to optimize my device myself here too.
if there's no automated way could someone be so kind to post some instructions as to how?
found some stuff on the g1 forums but i'm not sure if it'll work...
Click to expand...
Click to collapse
+1, i want to do this myself too , and let devs do more imporant things

Could someone with more knowledge help us out with the basics?

+1 for me!! Now one has reply since last year, but proably there is some app that came out that does all this or nobody whant to doit any more...
So?? How to deodex/zipalign proper hand made roms??

PIRATA! said:
+1 for me!! Now one has reply since last year, but proably there is some app that came out that does all this or nobody whant to doit any more...
So?? How to deodex/zipalign proper hand made roms??
Click to expand...
Click to collapse
Quite an old topic, you'd be better off just creating a new thread.
Use this: http://forum.xda-developers.com/showthread.php?t=633246

Related

what do u want in a how to make rom

I am going to make a how to make a rom tread. What do u guys want to see in it
I am going to show u how to get ubunbu running on windows and how to make a rom. So list other stuffs I could do
mohsinkhan47 said:
I am going to make a how to make a rom tread. What do u guys want to see in it
I am going to show u how to get ubunbu running on windows and how to make a rom. So list other stuffs I could do
Click to expand...
Click to collapse
I'd like it to be proof-read by somebody else. Not meaning to be disparaging to your possible skill, but a guide written with the same rampant disregard of English shown here is likely to lead to confusion. Guides and tutorials should be written mindful of the fact that exactness and clarity is required.
I would really like to know how to sign a ROM... mainly because I'd like to be able to modify existing ROMs with different apps and ringtones prior to flashing, which would be MUCH easier than having to do everything through Terminal after flashing.
It would help if there was a list of hero apps that would work when creating a normal G1 rom (not hero).
uansari1 said:
I would really like to know how to sign a ROM... mainly because I'd like to be able to modify existing ROMs with different apps and ringtones prior to flashing, which would be MUCH easier than having to do everything through Terminal after flashing.
Click to expand...
Click to collapse
Look in the theme forum for stericson's auto-signing tool. You can sign roms with it. Its reallyeasy to set up and you can use it to sign .zip files. Its what i use with all my themes and it works great
I am at work on my phone right now but when i get home i will edit this post with a link to it if i remember
david1171 said:
Look in the theme forum for stericson's auto-signing tool. You can sign roms with it. Its reallyeasy to set up and you can use it to sign .zip files. Its what i use with all my themes and it works great
I am at work on my phone right now but when i get home i will edit this post with a link to it if i remember
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=473580
That link? Can you post a how-to, or just PM me the directions? I have no experience with how to do any of that stuff... What's the SDK?
uansari1 said:
http://forum.xda-developers.com/showthread.php?t=473580
That link? Can you post a how-to, or just PM me the directions? I have no experience with how to do any of that stuff... What's the SDK?
Click to expand...
Click to collapse
I can help you when i get home tonight. Will you still be up or on in like 3 hours or so? I will be able sometime around that (its 9:10pm where i am)
uansari1 said:
I would really like to know how to sign a ROM... mainly because I'd like to be able to modify existing ROMs with different apps and ringtones prior to flashing, which would be MUCH easier than having to do everything through Terminal after flashing.
Click to expand...
Click to collapse
here you go:
http://forum.xda-developers.com/showpost.php?p=3786249&postcount=181
I'd like a section dealing with modifying-upgrading the kernel, ramdisk, and really anything dealing with the boot and recovery images (since I've already learned most of the workings of the system partition)
Ssantos6981 said:
It would help if there was a list of hero apps that would work when creating a normal G1 rom (not hero).
Click to expand...
Click to collapse
We have HTC Music......there's your list
The HTC camera from the HTC Magic/Sapphire has also been ported.

?? how to modify an OEM package (i guess) on a ROM ??

Hi! I'd like to know if it is possible to modify an OEM package on a rom. I'm not sure this is how it's called. What I mean is that i'd like to remove some programs that are automatically installed after a new rom is installed (when winmo launches for the first time).. like the custom taskbar or the 4 rows in the start menu..
Actually, i already dumped some roms but then i don't really know how to recombine the files, also don't know nothing about signing, unsigning them and can't qite figure why some programs are asking for bin files instead of nbh (or nbf)
Thanks in advance for your time
id also like to know please :].
maybe someone can create a video? that would be a good way to help others with clarity..
well, seems to be quite a difficult task.. i figured the cook has to provide his ERV file for us to be able to modify his rom (even for a slight modification...) tough luck it is :s
There are quite a few kitchen thread for rhodium! Have you searched and looked? I dont think I understand what you say anyways!!
Look for the kitchen here, and read the thread. Most of your questions has been answered in this forum oneway or the other.
Are you using a kitchen now? If so, what is it? And why not ask for help in the kitchen thread?

Make a Rom?

I've spent the better part of 5 hours trying to come across information on ROM development.
My question is two part. What resources are there available to learn about creating a rom from scratch or editing an existing (including making the update.zip and signing)
Also, I assume the emulator is involved or at least could be. How do you create the system images that you need to create a custom avd from the zip's that you find roms in?
I have a feeling there's a lot I don't know. Perhaps the answer is in front of my face, but I've been looking for a long time and definitely have tried so please don't just say "use the search fuction" or "google it"
Devs normally don't like to share the info but there's a guide here:
http://ctso.me/2010/02/building-an-android-rom-–-part-1-5/
But the info is in other places to the google-android page might have some info to. You must be using a linux OS to actually build anything, windows is a no-go...
Quick and helpful, thanks!
Luckily I did just put the latest ubuntu on my laptop.
If anyone else wants to chime in with some helpful resources please do!
If some annoying little 14 year old made a hero rom, it can't be all that complicated.
halfmonty said:
If some annoying little 14 year old made a hero rom, it can't be all that complicated.
Click to expand...
Click to collapse
He was just lying, he spammed various threads while talking about other devs.
Ace42 said:
He was just lying, he spammed various threads while talking about other devs.
Click to expand...
Click to collapse
first he's 14 then he's 12...next he'll be a spoiled 8 year old. you just watch.
I'm glad I checked this post. I was curious about ROM developing myself. Thanks for the post.
Is it me, or does that guy have more then one account...
At the risk of taking this further off topic... what guy?
But really my main concern is how to make a rom so, any other help from anyone would be good. Thanks!
Bump?
I'm sure somebody knows something
What resources are there available to learn about creating a rom from scratch or editing an existing (including making the update.zip and signing)
Click to expand...
Click to collapse
If you would like to compile android source code (create a rom from scratch) the best place to start would be:
http://forum.androidspin.com/showthread.php?t=2004
or
Chris Soyars' blog: http://ctso.me/2010/01/building-an-android-rom-part-1/
OpenEclair github readme: http://github.com/openeclair/android
Official AOSP Guide: http://source.android.com/download, http://source.android.com/download/using-repo, http://source.android.com/documentat...ding-for-dream
Instructions on creating and signing update.zip files can be in a few places herre on xda. Check the themes section I'm pretty sure I saw a few there.
Also, I assume the emulator is involved or at least could be. How do you create the system images that you need to create a custom avd from the zip's that you find roms in?
Click to expand...
Click to collapse
Install the rom on a handset & do a nandroid backup. It will produce the img files you will need for the AVD
Dude, you're awesome, thanks!

Request Stock unmodified framework-res.apk

Hy guys. I'm trying to create a theme for my phone and wondered could anyone upload the nexus 1's stock unmodified framework-res.apk?
Thanks in advance.
Tryed allready the search button and google to no avail.
How about starting with the fact that there is no "stock", you need to define the OS version / build? Specifically, it was originally shipped with ERD79, upgraded to ERE27, then Froyo came and it was FRF91, and now it's 2.2.1, FRG83. What is "stock"?
When you answer that question, why don't you visit my signature, download ROM of your choice from there, and extract the framework-res.apk out of it? It might take less time than waiting for someone to do it, especially that most people that are capable of doing it and have their phone rooted, run custom ROMs...
Alternatively, you could just get it from your phone.....
adb pull /system/framework/framework-res.apk
Sent from my Nexus One
Jack_R1 said:
When you answer that question, why don't you visit my signature, download ROM of your choice from there, and extract the framework-res.apk out of it? It might take less time than waiting for someone to do it, especially that most people that are capable of doing it and have their phone rooted, run custom ROMs...
Click to expand...
Click to collapse
Touche
Sent from my Nexus One using XDA App
First off thank you for answering. Second why all the "attack".
I'll refrase my question:
I would like, if I don't disturb you, an unmodified froyo stock version framework-res.apk.
Any version would do.
The reason that I don't extract mine is that I don't own a nexus 1. As visible in my signature I own a galaxy S. And yes mine is rooted also, and yes it's modified mutch like yours, and I would like to modifie it some more, hense the request for framework-res.apk.
I'm sorry to say that I'm not sure how to extract it from a rom that is not flashed in a phone.
Yes I'm a little newbie in some things but I came here to learn and to try things. I didn't ask either of you to build me a rom or make me anything, thats what I'm trying to do myself, and not bother anyone whit my wishes.
A bit off topic. Sorry for that. If you can't or won't upload thats fine to.
PS You don't have to be mean.
I've uploaded for you framework-res.apk from old Enomther's build, which is somewhat resembling stock. I really don't want to download 80MB of a stock ROM only to extract a file from there and put it here. And as I said, most people that are rooted and run stock ROMs aren't able to help you, having no idea what to do because they rooted the phone without any understanding, and those that are, mostly run custom ROMs and don't have stock ROM available. My current framework-res won't help you either, because it's modified.
Nexus ROM is a simple ZIP file, packed with exactly the same directories as the ROM, and all the files in them. In the /system/app, you find framework-res. Extracting the file from there is as simple as extracting the file from any ZIP archive.
This wasn't an attack, but an explanation and suggestion to do something yourself. Obviously it didn't work.
Jack_R1 said:
This wasn't an attack, but an explanation and suggestion to do something yourself. Obviously it didn't work.
Click to expand...
Click to collapse
Thank you. And your wrong it did work. It made my keep reading and managed to extract from a stock rom I downloaded. So I have to thank you because you made me work harder and now I know how to extract files from an .img.
PS I still think you were talking a little bit like you are superior to others.
No offense of course that is just my opinion and it might be very wrong.
Again thank you for your help and I mean that sincerely.
Well, I was maybe a bit sarcastic, but I didn't mean to offend you at all. Sorry if it sounded harsh.
P.S. I completely forgot that stock ROM doesn't look like custom ROMs, and contains complete IMGs. There is an easy way to extract them - using unyaffs - but you already know it, since you did it. I'm really sorry for forgetting that part, if I'd remember that - I'd point you to the relevant guide to begin with. My bad.

Tutorial

Can anyone point me in the right direction where I can find a tutorial for how to make roms for the Samsung galaxy s6.I'm a beginner so I need to know which files as well as how to use them. Any help is greatly appreciated.
jimmydee62 said:
Can anyone point me in the right direction where I can find a tutorial for how to make roms for the Samsung galaxy s6.I'm a beginner so I need to know which files as well as how to use them. Any help is greatly appreciated.
Click to expand...
Click to collapse
It depends, stock or aosp? With a stock rom just download one already made and a untouched stock system then figure out how the developer did what he did then make your own with the knowledge you gained. You will probably need a kitchen to make the installer script because that is a pain to do yourself. Aosp is a whole different bag of marbles but cyanogenmod has a good tutorial on how to do it and that knowledge will transfer to non cyanogenmod builds as well. If you are not competent with Linux learn that first. I would suggest arch Linux because it will force you to learn the command line. cygwin won't compile aosp so don't even think about trying that shortcut.
ThePagel said:
It depends, stock or aosp? With a stock rom just download one already made and a untouched stock system then figure out how the developer did what he did then make your own with the knowledge you gained. You will probably need a kitchen to make the installer script because that is a pain to do yourself. Aosp is a whole different bag of marbles but cyanogenmod has a good tutorial on how to do it and that knowledge will transfer to non cyanogenmod builds as well. If you are not competent with Linux learn that first. I would suggest arch Linux because it will force you to learn the command line. cygwin won't compile aosp so don't even think about trying that shortcut.
Click to expand...
Click to collapse
I appreciate your feed back and I want to start with stock and go from there. I've programmed before which was done by writing all the code just not android. That is why I'm asking for tutorial to show me what, where, and when. It is not something just because I'm curious I really want to get involved and see if it is worth my time. So I need to know as much up front as possible which once I understand that then I can go forward.
jimmydee62 said:
I appreciate your feed back and I want to start with stock and go from there. I've programmed before which was done by writing all the code just not android. That is why I'm asking for tutorial to show me what, where, and when. It is not something just because I'm curious I really want to get involved and see if it is worth my time. So I need to know as much up front as possible which once I understand that then I can go forward.
Click to expand...
Click to collapse
Not much coding in stock, more like shuffling stuff around. The closest thing to programming with custom stock roms is the edify script (installer script).
ThePagel said:
Not much coding in stock, more like shuffling stuff around. The closest thing to programming with custom stock roms is the edify script (installer script).
Click to expand...
Click to collapse
What I mean is command line will not be a problem for me since I have written code before which uses a type of command line. I'm looking for the tools needed to do the roms you say something about kitchen and what else? Maybe I'm just making this harder then I need to but I'm just trying to learn how to make roms of my own and need a place to start.
jimmydee62 said:
What I mean is command line will not be a problem for me since I have written code before which uses a type of command line. I'm looking for the tools needed to do the roms you say something about kitchen and what else? Maybe I'm just making this harder then I need to but I'm just trying to learn how to make roms of my own and need a place to start.
Click to expand...
Click to collapse
Yeah I don't know of any tutorials, other than what I suggested in my first post your best bet is to just jump in head first and use google when you get stuck.
If you go to infamous rom developments webpage which I can't post here because I will get in trouble. He has a full step by step guide how to do everything from stock roms to aosp and even kernels.
jimmydee62 said:
Can anyone point me in the right direction where I can find a tutorial for how to make roms for the Samsung galaxy s6.I'm a beginner so I need to know which files as well as how to use them. Any help is greatly appreciated.
Click to expand...
Click to collapse
^^^^^^^ check it out.
jonahtriangle said:
^^^^^^^ check it out.
Click to expand...
Click to collapse
Thank will check it out.
jonahtriangle said:
^^^^^^^ check it out.
Click to expand...
Click to collapse
jimmydee62 said:
Thank will check it out.
Click to expand...
Click to collapse
I went to check out that guide to make sure you are going in the correct direction and found it wants you to use the old dsixda kitchen which has been abandoned. Use archi kitchen instead http://forum.xda-developers.com/showthread.php?t=2597220
Try to use the kitchen for compiling the installer script only, you'll figure stuff out faster that way.
ThePagel said:
I went to check out that guide to make sure you are going in the correct direction and found it wants you to use the old dsixda kitchen which has been abandoned. Use archi kitchen instead http://forum.xda-developers.com/showthread.php?t=2597220
Try to use the kitchen for compiling the installer script only, you'll figure stuff out faster that way.
Click to expand...
Click to collapse
Thanks for the update have downloaded it and will try it out tomorrow.
Good info in here.
Sent from my SM-G920T using Tapatalk
This is a basic question, but for the life of me I can't find a tutorial in how to deodex system files for the S6 that actually work. Tried a few but afterwords when decompiled they don't show smali files. Anyone have a way to do this?

Categories

Resources