Old cooker want to cook something - Desire Android Development

After many many tweaking and cooking ROMs for WinMo I want to do same with Android. The reason I cooked for WinMo was speed, but since it is not an issue with mine Desire(but it can be better I want to customize ROM a little bit, so remove some stuff and later maybe add few apps. If this want be a problem I will try to tweak too.
However in WinMo I have always have served kitchen, I just tweaked removed and add few things and job done but here there are no kitchens..yet(I hope somebody will sooner or later post it
So is there anybody who can help to set up kitchen so that I can cook few roms for me and this community?
So if I understanded correctly I need following to start cooking
android sdk
java jdk
signing tool
stock ROM
I have downloaded them all, extracted SDK in D:\HTC Desire\Android SDK, installed Java JDK in C:\Program Files (x86)\Java and I don't know what to do next?
Extract ROM, where(?), extract system.img which is in rom.zip if yes how and where?
Thanks for your help

Benko, you can extract the ROM anywhere you want. But, you don't want images. You should look at Pauls rootedupdate.zip as a starting point. Unzip that.

eViL D: said:
Benko, you can extract the ROM anywhere you want. But, you don't want images. You should look at Pauls rootedupdate.zip as a starting point. Unzip that.
Click to expand...
Click to collapse
Ok extracted that rootedupdate.zip and found a lot of apks and obexes so after I delete those files that I dont want how to put that all back together to file that is flashable?

You'll have to resign the zip after removing stuff, otherwise it will give verification errors when trying to flash.
You need to remove the current certificates from the file, there are three files in the META-INF folder - delete those, but keep the update script (the COM folder inside), it's needed for flashing.
I use this little thingy for signatures: http://android-dls.com/wiki/index.php?title=Generating_Keys
Hope this helps!
PS-beware of any dependencies between the various apk's and any framework modding that might be needed, otherwise you'll get more fc's than you can carry; I know I did
PS2- if you want a served kitchen, you'll find one over at Modaco, for a CyanogenMod port (a link is posted in a thread here) - see if that suits you're needs.
PS3- check out the Chef Central sticky here, too - it should be easier to get quicker/more accurate info from the seasoned cooks there

benko286 said:
Ok extracted that rootedupdate.zip and found a lot of apks and obexes so after I delete those files that I dont want how to put that all back together to file that is flashable?
Click to expand...
Click to collapse
Rezip the folders: meta, system & boot.img.
Then resign them. You can then transfer it to sd and try to flash. If it doesn't boot, then you have to troubleshoot.

May I know that how to change layout of the home screen?
e.g. HTC sense has news/mail widget where first installed and booted.
Where can I change these settings?
Also , I want to know if I made my own rom, and updated to my desire.
If it doesn't boot or anything, can I updated the rootedupdate.zip from Paul to get the desire back working?
Thanks

eViL D: said:
Rezip the folders: meta, system & boot.img.
Then resign them. You can then transfer it to sd and try to flash. If it doesn't boot, then you have to troubleshoot.
Click to expand...
Click to collapse
kevin612 said:
May I know that how to change layout of the home screen?
e.g. HTC sense has news/mail widget where first installed and booted.
Where can I change these settings?
Also , I want to know if I made my own rom, and updated to my desire.
If it doesn't boot or anything, can I updated the rootedupdate.zip from Paul to get the desire back working?
Thanks
Click to expand...
Click to collapse
Ok zipped those folders(META-INF, system, boot.img) in rootedupdate.zip, used autosign.bat to manually sign that .zip and now it should be flashable?
@Kevin-yes if it is not bootable you can flash Pauls rom again

benko286 said:
Ok zipped those folders(META-INF, system, boot.img) in rootedupdate.zip, used autosign.bat to manually sign that .zip and now it should be flashable?
@Kevin-yes if it is not bootable you can flash Pauls rom again
Click to expand...
Click to collapse
Hopefully. After a few hundred times you'll get the hang of it. ;P
If it boot loops, it won't boot. Try again. Always remember what you're adding and subtracting. Maybe start out with only a couple things.

eViL D: said:
Hopefully. After a few hundred times you'll get the hang of it. ;P
Click to expand...
Click to collapse
OK Since I returned my device to my store because of warranty can you try that ROM, I will upload it for you ?

benko286 said:
OK Since I returned my device to my store because of warranty can you try that ROM, I will upload it for you ?
Click to expand...
Click to collapse
Sure, why did you return it?

Uploading it now
Some very very bad battery leaking...80% in one night and sync was off!
Thank you so much eViL D: and everybody else for help

Ok I also want to create my own rom but I don't know how to sign it..
Any help would be most appreciated.

ROM Link here
http://www.mediafire.com/?zt4ymz42jzj
I hope it works
So for now I even don't need Android SDK?

I downloaded the rom kitchen from Chef Central...Does the rom need to be sign after I built them out in Linux?
Also there are some folders I not understand yet....
Inside system folder - customize, etc, framework, usr and xbin I dont understand yet.
Cause looking at eVil D:'s rom and paul's rom is very different in those. And even paul's rom doesnt have customize folder.
Would like to understand all and see if I can make a rom out.
Thanks

Anybody tried my ROM ?

benko286 said:
Anybody tried my ROM ?
Click to expand...
Click to collapse
Got corrupted DL. Will have to try again.

kevin612 said:
I downloaded the rom kitchen from Chef Central...Does the rom need to be sign after I built them out in Linux?
Also there are some folders I not understand yet....
Inside system folder - customize, etc, framework, usr and xbin I dont understand yet.
Cause looking at eVil D:'s rom and paul's rom is very different in those. And even paul's rom doesnt have customize folder.
Would like to understand all and see if I can make a rom out.
Thanks
Click to expand...
Click to collapse
the kitchen signs the rom automatically. run the menu from terminal ( using linux) and u will see all the what the kitchen is doing.
do not try to compare custom roms ... they are different. some have extrafiles & folders depending on their customisations.
best thing is to compare with an original rom for the desire. and u see what has been added to get X and Y. involves a lot of trials and errors.

eViL D: said:
Got corrupted DL. Will have to try again.
Click to expand...
Click to collapse
I will try downloading too, if it wont work I will reupload it
I know that this can sound wierd but can anybody of you upload his kitchen?
Thank you all for help!
EDIT: File is corrupted, uploading again!

Reuploaded and tested, RAR file is ok
http://www.mediafire.com/?w5wommomzmk
Please somebody try ROM
Thanks

benko286 said:
Reuploaded and tested, RAR file is ok
http://www.mediafire.com/?w5wommomzmk
Please somebody try ROM
Thanks
Click to expand...
Click to collapse
Anybody tried ROM ?
P.S anybody has link to CyanogenMod port, anybody uses that kitchen?

Related

Building android: noob warning

Howdy,
I just built and installed android 1.1 on my dev w/o major problems. But how do you create an update.zip? I tried dumping system.img,userdata.img and root.img into a zip file, but it failed to verify with a signature error.
Thanks for any help!
Might sound like a silly question, but did you sign the update.zip?
Meltus said:
Might sound like a silly question, but did you sign the update.zip?
Click to expand...
Click to collapse
Nope. Is there a tutorial on how to sign? (btw, I'm on either OS X or Linux).
Thanks!
all u had to do is take a look over at the theme subforum and u would have found this:
http://forum.xda-developers.com/showthread.php?t=471586
it has apk signer and .zip signer as well
Thanks! I appreciate it
haitiankid4lyf said:
all u had to do is take a look over at the theme subforum and u would have found this:
http://forum.xda-developers.com/showthread.php?t=471586
it has apk signer and .zip signer as well
Click to expand...
Click to collapse
Ocalap2p said:
Nope. Is there a tutorial on how to sign? (btw, I'm on either OS X or Linux).
Click to expand...
Click to collapse
Never mind. It looks like the sdk has the java tools I'll need
reviving old thread, i searched and this is all i could find related to what i'm asking. I downloaded a system.img and boot.img that are very, very, very bare. They're almost stock android (nothing but the system, phone, camera, settings, calendar, calculator, and alarm). there aren't even any ringtones, notifications, ui sounds, or alarms. nothing. the thing is bare, i think even the drivers are broken because i can't end calls. anyway, this is perfect for me because i want to use it to study android and get more acquainted with it before i start actually building from source. I pretty much want to know what every single file does and what files apks depend on. Anyway, this rom is good for study, but i want to be able to make an update out of it once i start adding things, but how do i go about extracting all files from the system and boot imgs?

ROM Image Editor

I have got the ROM Image Editor. I edit the nbh file of the ROM. I need to know how to add my cab files to the ROM so it gets installed automatically as I flash the ROM. This will help get things up running promptly with each new ROM I install.
Anyone can help ?
SASHIMI check my ROM thread for download if can't find....
already use Sashimi
I already have Sashimi 8.0 & I use it. But I see building the cabs within a new ROM in way that gets them all installed as I flash the ROM, would be great & fast.
I have the ROM Image Editor but I just don't know where to add the cabs within the ROM folders to reach the target.
Is there anyone who can help on this ?
Cooking
You're going to have to cook them into your ROM, which won't be in the form of .cab's any more. They'll be in EXT. And everytime you change roms, you'll have to extract whichever rom you dl, and recook it with the programs you want in there. SASHIMI is probably your best bet unless you feel like spending a lot of time on each and every ROM just so that when you flash it the programs are already in there.
Anyone feel free to correct me if I'm off base here, but it's probably not worth it for speed and ease issues.
Happy Flashing!
drumboy03
yassero said:
Is there anyone who can help on this ?
Click to expand...
Click to collapse
What ROM editor are you using? Perhaps htcRIE_0.5.0.12 from http://forum.xda-developers.com/showthread.php?t=377514 ?
If that´s the one you are using I don´t think is capable to do what you want, as drumboy said: Cooking is the way
luiggi said:
What ROM editor are you using? Perhaps htcRIE_0.5.0.12 from http://forum.xda-developers.com/showthread.php?t=377514 ?
If that´s the one you are using I don´t think is capable to do what you want, as drumboy said: Cooking is the way
Click to expand...
Click to collapse
Yes it is htcRIE_0.5.0.12. Do you know how to install the cabs in a ROM ?
Usually after a ROM is installed & during customization, some cabs appear in folder Volatile & are then installed. Can I place my cabs along those ?
yassero said:
Yes it is htcRIE_0.5.0.12. Do you know how to install the cabs in a ROM ?
Usually after a ROM is installed & during customization, some cabs appear in folder Volatile & are then installed. Can I place my cabs along those ?
Click to expand...
Click to collapse
Ok if you want to install it after flash, then you can do it a few different ways, like UC, XDA_UC or tom's autoinstall. But for all those you need to cook them in the ROM.
If you dont have it cooked in, then shashmi or programs similar to those will help.
You cant edit a ROM using htcRIE, in the sense add cabs and stuff, and recompile it to make it bootable in my opinion.
You can play with it and see! If the ROM is using runCC, then you need to add cabs, and mofify config_operator.txt file to add those cabs to execute in first boot.
Hope this helps.

[TOOL] RegawMOD Zip Signer v1.0 | 9-28-2010

Description:
RegawMOD Zip Signer is a tool for Windows that allows one to sign an unsigned zip (ie: a complete ROM zip, a theme zip, or any update zip) to enable flashing from a custom recovery on your Android device.
Usage:
To use, just drag the zip that you want signed onto the program's icon and it will sign it for you. All you do is drag and drop, and it signs it! Can be run from anywhere on the computer
Screenshots
Screenshots
Changelog
Version 1.0 | 09-18-2010:
Initial Release
Latest Release
Version 1.0
Download Info
MD5: b4dba6950d3c8a1423c88985e0293f23
Virus Total Report
Source Code Available By Request Only
Please post here with feedback so I can make it better, if necessary
Awesome, thank you sir. I would test it out, but I just switched my laptop over to Linux (don't ask why because I am questioning myself right now.)
But I will add a mirror for you because I know some people have issues with 4Shared.
MegaUpload Mirror
exactly what I was waiting for! Thanks for another great tool!!!!
thank you sir.
would we still need to delete the three files: CERT.RSA, CERT.SF, MANIFEST.MF prior to zipping and then drag/drop, or is it not necessary to do so?? Thanks in advance.
edit: looks like deleting those files and then signing them re-adds those files into the zip
Thanks regaw. I have been trying to find a way to sign my zip file.
heyman123 said:
would we still need to delete the three files: CERT.RSA, CERT.SF, MANIFEST.MF prior to zipping and then drag/drop, or is it not necessary to do so?? Thanks in advance.
edit: looks like deleting those files and then signing them re-adds those files into the zip
Click to expand...
Click to collapse
Not sure about that, I usually just go ahead and do that anyways.. I in fact have never tested it without deleting those 3 cert files, so I wouldn't know. I'll test it tonight.
joshhunt said:
Thanks regaw. I have been trying to find a way to sign my zip file.
Click to expand...
Click to collapse
Awesome, this should be a great way to sign it easily
heyman123 said:
exactly what I was waiting for! Thanks for another great tool!!!!
Click to expand...
Click to collapse
No prob Hopefully more coming soon!
I am uploading it to a real server now, no more 4shared
Awesome. I am going to be starting my themeing project this week and this will save me a step. Great job.
If you like this, check out a cool program I just made for Omegasuns BareBone App and Sense Removal Script! Allows full editing of the zip's script without having to resign it afterward.
HERE
http://forum.xda-developers.com/showpost.php?p=8363452&postcount=52
Thanks! I'll be saving this for when I flash new roms.
link is down? or am i down?
Hmmm, that's odd, the entire server is down... I'm contacting the owner right now to see what's up.. all of my files are down for right now...
Download worked fine. Script worked like a charm.
Thanks
Is there a reason why it just sits on "Checking zip...." for 10mins and doesn't do anything? I've done this several times.
I can't get this to work
This thing is awesome. Fyi.
Thanks a lot for the program. Do I have to follow any special procedures if I want to sign a rom, or is it really as simple as removing the apks I dont want, adding the ones I do want, changing the boot animation and dragging and dropping the changed rom? Most roms come with programs that I would rather remove before flashing and there are a lot of little things I like to add before flashing--saves me the trouble of removing them w/ TI.
Cheers!
nice work, glad to see you in the evo forums
I can't seem to get this to work. Says it has created a new .zip file but it's not listed. any help??
re2gie01 said:
I can't seem to get this to work. Says it has created a new .zip file but it's not listed. any help??
Click to expand...
Click to collapse
Try searching for the file. Whenever I use it, it says it created the signed file in the same directory as the original file, BUT it was actually in C:\documents and settings\user.

PC script to auto remove apk's

Hey everyone!
On the rom I currently use there are about 20 apk's I have no need for. What I do is download the rom, and individually delete the apk's before flashing the rom. The thing is I flash quite often (cheeky, I know ) and this is getting quite frustrating.
Ideally I want a script that does this all for me. I found one but it seems be for running on the phone, after the apk's have been installed. Does anyone know how I can create a script for the PC that does this before I even install the rom?
Thank you for any suggestions.
Oh and here's the thread I found that looked relevant...
http://forum.xda-developers.com/showthread.php?t=674357
edcoppen said:
Hey everyone!
On the rom I currently use there are about 20 apk's I have no need for. What I do is download the rom, and individually delete the apk's before flashing the rom. The thing is I flash quite often (cheeky, I know ) and this is getting quite frustrating.
Ideally I want a script that does this all for me. I found one but it seems be for running on the phone, after the apk's have been installed. Does anyone know how I can create a script for the PC that does this before I even install the rom?
Thank you for any suggestions.
Oh and here's the thread I found that looked relevant...
http://forum.xda-developers.com/showthread.php?t=674357
Click to expand...
Click to collapse
Over what OS?
If in Windows (or any M$ OS, incl. DOS) you can make a batch file.
My file is adjunted as example (modify as you like, put in the root dir -obviously to the unzipped ROM- and run. Rezip and maybe re-sign)
salu2
Thank you. This is exactly the kind of thing I am after. If I had of been born just a few years earlier I would probably know all about batch scripts. Fortunately, I just missed the DOS days!
Anyway, I puzzled out / looked up the commands in the script you posted. Based on that I extracted the rom, then placed the batch file within it, so that the cd (current directory) command runs correctly.
Unfortunately this mucks up the signing on the rom. Do you re-sign your CM7 roms every time you do this or is there an easier way?
Edit: My PC is Win 7, 64bit, soon to be Win 8 Consumer Preview.
Edit: The roms do not need resigning.
I don't re-sign the ROM, simply flash again over Clockworkmod Recovery.. and work.
But, you can:
1) sign using Auto-Sign....
2) Click [Thanks]...
Salu2
__________________________________________________________________
I know, I know.... my english is ****ty... but my spanish is much better... ;-)
Big thank you. That's solved that one nicely for me!
You're welcome.
Updated zip in my first Post.
Salu2
Hey again. I was hoping to build on the script you kindly provided. At the moment I am using various alpha roms where the exact apk's present changes fairly often. It would be great if I could see the outcome of each action. This way I would know if the apk has had it's name changed or been removed. How would I enable this?

[Q] disappeared Lock-Screen Ring & Home

I was playing with System/app/...
after checking some useless apps and removing them, this happened to me .
I am wonder what did i choose by mistake, and what was that?
check attachments for screen shots please.
I am not sure about Fusion.apk
If yes that's the problem, may some one provide a copy for me.
Thanks.
Actually they are there, and i can use them, but not visible.
Desire S
ICS 4.0.4
Sense 3.6
fusion.apk is part of htc sense framework, just open rom zip and copy that file to /system/app and reboot
441Excelsior said:
fusion.apk is part of htc sense framework, just open rom zip and copy that file to /system/app and reboot
Click to expand...
Click to collapse
Hi
Dude i ca'not , thats official RUU rom (exe) cant be extract.
then ask someone who use stock rom if he can upload that file for you
441Excelsior said:
then ask someone who use stock rom if he can upload that file for you
Click to expand...
Click to collapse
LooL Thank BTW.
Haven't played with RUU for a very long time. but if I remember correctly, when you run exe it extracts rom zip file to a temp folder somewhere on your c drive, keep it open and do a search you should be able to find the zip.
A good example of why it's a good idea to make a nandroid backup before playing with the system...
ContactFront said:
Haven't played with RUU for a very long time. but if I remember correctly, when you run exe it extracts rom zip file to a temp folder somewhere on your c drive, keep it open and do a search you should be able to find the zip.
Click to expand...
Click to collapse
Yep, OP just needs to search and read. This is exactly the method we used to get the .zip originally when the ICS RUU was released by HTC.
SimonTS said:
Yep, OP just needs to search and read. This is exactly the method we used to get the .zip originally when the ICS RUU was released by HTC.
Click to expand...
Click to collapse
IDC i always relock - install RUU - unlock - root.
THATS ALWAYS BETTER TO HAVE A CLEAR INSTALLATION OF SOME THING RATHER THAN PACK INSTALLATION.
ContactFront said:
Haven't played with RUU for a very long time. but if I remember correctly, when you run exe it extracts rom zip file to a temp folder somewhere on your c drive, keep it open and do a search you should be able to find the zip.
Click to expand...
Click to collapse
That's really nice if it does some thing like that. i did search in %temp% and %user%/app/data
but no trace .
and i am not sure that you are able to use UniExtractor to extract this new type of protected EXE file.
by using CMD, n does command you would get a pack from that EXE file, included a CAB file which is included all data in,
Is there to open a protected CAB?
usualy windows Cabinet files may extract via Winrar, Cabex, Cabextractor, etc ...
SimonTS said:
Yep, OP just needs to search and read. This is exactly the method we used to get the .zip originally when the ICS RUU was released by HTC.
Click to expand...
Click to collapse
2- And there is no big deal with Root n non-rooted device.
3- whats your problem with me?
why you always search for some thing in my topics to say some thing against me?
4-I see that you have lots of thanks
i am wounder that you have ever gained a thanks to solve a problem?????(or just talking off topics, make some one mad, blah blah blah...)
azithro said:
2- And there is no big deal with Root n non-rooted device.
3- whats your problem with me?
why you always search for some thing in my topics to say some thing against me?
4-I see that you have lots of thanks
i am wounder that you have ever gained a thanks to solve a problem?????(or just talking off topics, make some one mad, blah blah blah...)
Click to expand...
Click to collapse
No, there is no problem whether you are rooted or not as you said you need the Fusion.apk - which you just need to pull from the extracted .zip file after the first stage of running the RUU on your PC.
I don't have a problem with you - other than the fact that you seem to want to argue with anyone who gives you advice. You asked for a .apk file - you were suggested to extract it yourself from the RUU and then you decide to argue and find reasons why you can't do it. If you want help then read the answers from knowledgeable people and try what they suggest - otherwise what is the point in asking?
As for my 'Thanks' - who cares? I know less than many of the people on here, and you don't get 'Thanks' in Off-Topic, and I am almost never in OT, and it's none of your damn business why people have thanked me in the past.
You seem to have a real attitude of assuming you have a right to be supported. XDA is not, and never has been, a helpdesk for noobs - you need to get that into your head and deal with it.
Edit on this as I wanted to be sure of what I was saying. If you run the RUU then it will extract various info, including ROM.zip, into a temp folder, but this .zip is only useful as an image to flash from recovery, not to extract individual files from. On that basis, look for one of the ROMs that were based on the official RUU - there was a de-odexed, pre-rooted one released fairly shortly after the RUU - and pull fusion.apk from there.
And don't take your rookie mistake and frustration at yourself out on other members of XDA.
azithro said:
That's really nice if it does some thing like that. i did search in %temp% and %user%/app/data
but no trace .
and i am not sure that you are able to use UniExtractor to extract this new type of protected EXE file.
by using CMD, n does command you would get a pack from that EXE file, included a CAB file which is included all data in,
Is there to open a protected CAB?
usualy windows Cabinet files may extract via Winrar, Cabex, Cabextractor, etc ...
Click to expand...
Click to collapse
It indeed does somthing like this
Look into your C:\Users\YOURUSERNAME\AppData\Local\Temp
SimonTS said:
No, there is no problem whether you are rooted or not as you said you need the Fusion.apk - which you just need to pull from the extracted .zip file after the first stage of running the RUU on your PC.
I don't have a problem with you - other than the fact that you seem to want to argue with anyone who gives you advice. You asked for a .apk file - you were suggested to extract it yourself from the RUU and then you decide to argue and find reasons why you can't do it. If you want help then read the answers from knowledgeable people and try what they suggest - otherwise what is the point in asking?
As for my 'Thanks' - who cares? I know less than many of the people on here, and you don't get 'Thanks' in Off-Topic, and I am almost never in OT, and it's none of your damn business why people have thanked me in the past.
You seem to have a real attitude of assuming you have a right to be supported. XDA is not, and never has been, a helpdesk for noobs - you need to get that into your head and deal with it.
Edit on this as I wanted to be sure of what I was saying. If you run the RUU then it will extract various info, including ROM.zip, into a temp folder, but this .zip is only useful as an image to flash from recovery, not to extract individual files from. On that basis, look for one of the ROMs that were based on the official RUU - there was a de-odexed, pre-rooted one released fairly shortly after the RUU - and pull fusion.apk from there.
And don't take your rookie mistake and frustration at yourself out on other members of XDA.
Click to expand...
Click to collapse
Thanks Bro, Cheers man :highfive:
ContactFront said:
It indeed does somthing like this
Look into your C:\Users\YOURUSERNAME\AppData\Local\Temp
Click to expand...
Click to collapse
Thank you 2 bro. GJ
ContactFront said:
Haven't played with RUU for a very long time. but if I remember correctly, when you run exe it extracts rom zip file to a temp folder somewhere on your c drive, keep it open and do a search you should be able to find the zip.
Click to expand...
Click to collapse
My Desire s is running MIUI v5 android 4.1.2 rom about 4 months and it runs Perfect , the best ROM I have ever used, BTW I bought Lumia 920, and I Love it, do not want to go back to android again.

Categories

Resources