This is a simple guide to make your own custom rom……..(the other parts will be written…as soon as I become bothered to type for hours again)
PART 1:setup the kitchen and rom
1.Download java(java.com) and install the java JDK(www.oracle.com/technetwork/java/javase/downloads/index.html)
2.Download the kitchen(http://forum.xda-developers.com/showthread.php?t=633246) (thankyou DSIXDA for your amazing kitchen)
3.Download Cygwin(Cygwin.com)
3.extract the cygwin file(using winzip or winrar) in C drive only….dont put it into any folders
a.Enter a file called Cygwin(setup file)
b.click next>install from local directory
c.now it will ask you where to put the program….leave everything as default
d.now It will ask you where the location of the packages are so>click browse>click my computer >go to drive C>and you will fin the folder Cygwin-packages>so select that folder and click ok>next.
e.now it will extract the folders>a promt is going to pop up..>click ok
f.now you will see a list>go to the first line and you will see next to the word ALL ,two arrows>click on them so all files can be installed.
g.now it will install the program whick take from 5-10min.
h.when its done …select finish.
i.you can now delete the setup file and Cygwin-packages folder.
j.now enter the Cygwin program and it will create some files..>when its done exit the program….
Now Cygwin program is done installing .
3.To use the kitchen:
a.Enter Cygwin folder>home>your user name>so you will find 3 files
b.in the same folder>extract the kitchen zip file(Android-Kitchen-master.zip)
c.now enter the kitchen folder>you will find a folder called>put rom here.
d.so in that folder>either put a rom.zip file or put a system.img file if you want complete stock…..(which you get from the ruu of your phone)
e.now enter tools folder>edifly_......(something like that) and see if you mount points are in it…
f.to know go to your build.prop file>check ro.product.device>and if you see a txt file under the name of your device …..your device is supported…
g.if NOT,go to the original thread …where the dev has stated a way on how to add your device…..
Now we are done from the setup of the kitchen…..
To use the kitchen:
1.Enter Cygwin
2.type
a.cd kitchen>press enter
b. ./menu>press enter
Now a list of options will come infront of you ……
3.go to the option>setup working folder>enter its number and press enter…
4.now if you go to Cygwin folder >enter home>user name>kitchen.
5.you will find a folder called(working folder_8254897)
NOW YOU ARE DONE WITH SETTING UP THE KITCHEN……AND YOU CAN START PLAYING WITH THE ROM
PART 2:Clearing up the options
Explanation for each option:
1.creates you a working folder,which extracts the rom for you.
2. It gives you super user access aka SU, Some apps require root to work properly….so if your rom isn’t rooted … it’ll be useless.
3. Busy Box is something that you install on your phone to give you some additional handy LINUX / UNIX based commands. You need Busy Box installed because some commands are not available to you and you made need them for some root level tasks.
4.To disable sounds while phone is booting
5.To add you a tethering app…..and allow you do wireless tethering
6. Zipalign is an archive alignment tool. It optimizes the way an app is packaged. Doing so enables the operating system to interact with the application more efficiently, and has the potential to make the application and overall the whole system much faster. Execution time is minimized for zipaligned applications, resulting in a lower amount of RAM consumption when running the app.
7.If you want the rom to do a FULL WIPE while installing the rom
8.To change the name of the rom
9.Checks if the update script contains any errors….because if it did the rom wont be installed correctly,which may lead to a brick
10.To see all information about your rom..ex: if you have root access/if you aren’t using stock kernel/if you have app2sd support etc..
11. Apk files have respective odexes that devs use to supposedly save space. Deodexing means you convert it back to a .dex file and put it back inside the apk. This allows you to easily replace files (not having to worry about odexes), but the main point was to deodex services.jar so that you can change all text to different colors (such as the clock color to white) and to deodex services.jar, you need to deodex everything.
12.To add a task killer….which closes applications to free RAM
13.To add a /data/app folder so applications could be installed their rather than getting installed in system/app
14.To add text editor…for ex.if you want to edit build.prop or any txt file which is in system.
15.To add a command shell which allows you to use in in the terminal
16.To give the option of moving applications to sd card
17. To add /etc/init.d scripts support ….which allow you to add tweaks and stuff for the phone
18.To allow user to put the boot-animation that he desires.
19.To be able to extract the boot.img(kernel)
20.To extract data.img (which I don’t know what it is )
21.check this (http://developer.android.com/tools/publishing/app-signing.html)
22.To covert update script to updater script which is a must before you build the rom.
99.To build the rom when you finish editing and modding.
PART 3:How to mod apks
OK SO NOW SINCE YOU KNOW WHAT EACH OPTION DOES…..LETS START MODDING,and to start customizing,you have to use an apk extractor and zipper because the apks contain all the treasure …..for example:SystemUI.apk(contains battery icons ,signal icons, the location of the clock and many many more things)
So what were gonna use is apk manager,which is an very easy program to use,and helps a lot in apk extracting and zipping and signing.
Here are the steps to use it:
1.Extract the zip file(apk manager)
2.youll find a file called setup>enter it and select option 3 and press enter.
3.folders will be created
4.so to extract an apk>select an apk file and drop it into the folder (put apk here)
5.go into script file>press enter file>and after you’ve put the apk file in the specified folder>select option 2 >so the apk will be extracted
6.after you extract it you will find the extracted files it in the same folder(put apk here) in a new folder under the name of the apk file.
7.edit whatever you want
8.When you finish >select option 3>press enter.
9.then select option 5 and 6 to sign and zipalign the apk…..
And your done ,but to find the modded apk…..go into place apk here for signing and you will find it there.
.........................
RESERVVED
Reserved45
RESE8VED
Hayde reserved yaben 3amme
W hayde kamen yaben 5alte....................reserved
Sorry need help....
donhashem.dh said:
.........................
Click to expand...
Click to collapse
Hey dude/*****.....
Me again and loving yr tutorial. But do have a couple of questions that I hope you can help with.
Firstly the update version of Cygwin menu is not exactly as yours in the tutorial. Why is the allow Tethering function not there and could this be a problem.
Secondly i am nooooooB and are unsure on how to add remove system apk's from rom. Do I just dig in and delete them from windows. And can I pull apk's from another rom to put into the data app folder which was created using Cygwin.
I was wanting to add aroma installer as well but another story....
Really appreciate if you can advise. If I sound to noooobish then understrand that I am to much work.
veroby said:
Hey dude/*****.....
Me again and loving yr tutorial. But do have a couple of questions that I hope you can help with.
Firstly the update version of Cygwin menu is not exactly as yours in the tutorial. Why is the allow Tethering function not there and could this be a problem.
Secondly i am nooooooB and are unsure on how to add remove system apk's from rom. Do I just dig in and delete them from windows. And can I pull apk's from another rom to put into the data app folder which was created using Cygwin.
I was wanting to add aroma installer as well but another story....
Really appreciate if you can advise. If I sound to noooobish then understrand that I am to much work.
Click to expand...
Click to collapse
Ayyy take it easy cun*
I'll update the tutorial because I made it from a long time and posted it now
For the apks you just enter the rom.zip system>app and you'll find all the apks there..
The data folder cygwin creates is that when you use the Rom ..the apps won't be installed in system>app anymore,they will be installed the folder the kitchen created data
And for the aroma installer,leave it for later ...your still not ready for it ...
no signature....problem ?!?!?!
donhashem.dh said:
Ayyy take it easy cun*
I'll update the tutorial because I made it from a long time and posted it now
For the apks you just enter the rom.zip system>app and you'll find all the apks there..
The data folder cygwin creates is that when you use the Rom ..the apps won't be installed in system>app anymore,they will be installed the folder the kitchen created data
And for the aroma installer,leave it for later ...your still not ready for it ...
no signature....problem ?!?!?!
Click to expand...
Click to collapse
I was going to ask you about signature but didnt want to over do it. I am guessing you need to sign it after the 99 - Build ROM from working folder?
I have proceed with the Build rom and are at the recomend to sign rom stage. Its some thing I dont understand. Is it ok to proceed without?
Cool I have noticed the roms produced by dev's here xda are not signed so doesnt seem to matter for this purpose. I have hit thx ***** 5 or 6 times.
I will hit 500 s****y if you give share some knowledge in installing arroma installer. or do you recomend just trying things....cheers anyway its been awsome.....:good:
Related
I've tried using SVN multiple times, each time with the same result (failure). Can anybody tell me what I'm doing wrong?
I'm trying to download the Bliss rom. Each time, I use my Mac client and click "export" to a folder on my desktop. Next, I zip the folder up into a file called "bliss.zip" and push it with ADB to the phone. When I try to flash with CWM, I get Installation Aborted shortly after starting the install.
I use a Mac as well. Do this, download the application called SmartSVN (just Google it), set up the repo using that. Download it (the SVN files from http://code.google.com/p/bliss-sense) to a folder in your Macintosh HD (I named mine bliss-sense), then download and install dsixda's kitchen. Just follow his instructions in his thread (here: http://forum.xda-developers.com/showthread.php?t=633246). Drag the fully downloaded boot.img, data, META-INF, and system folders into a folder that you create inside the Disk.img you made for the kitchen, naming the folder WORKING_BlissSense. Open up terminal, cd into the mounted Disk.img you made with your kitchen in, run "./menu" without quotes to load the Kitchen's menu. Select option 99 "Build ROM from Working Folder" and do interactive mode (option 1). Do Y for zipalign, Y for signing the ROM, and rename if you want. Then mount your phone to the computer and drag the new ROM zip from the OUTPUT_ZIP folder in the kitchen where your ROM is after building to your SD Card. Flash in CWM and reboot. There you go. Hope it works.
Oh, you have to use the kitchen?
...
derp
Yes you have to use the Android Kitchen.
Sent from my ADR6300 using XDA App
guys how can i put a bunch of applications in a zip folder a flash it by recovery.Ive tried putting 3 apps in a zip folder and flshing it via recovery but it says failed..
I tried that a while ago on the g1 with mixed results.
You have to put them in the data/app/ folder the same way they appear on your phone. If you are feeling ambitious, you can also grab the corresponding folder in data/data. You'll have to look for the java package name, not the app name. Lastly, you have to adjust the updater-script in META-INF/com/google/android/ to mount and flash the data folder, not system and then clean out the extra cruft.
You might have to resign the zip or just toggle sig checks.
Other options include using recovery to restore the data partition, but this will be everything, not just your 3 favorite apps. Alternatively, you could write a script that runs from your PC while your phone is in recovery and use the "adb install" command. I think there are also apps that do that for you, such as Titanium backup.
Gee one thanks for the reply but can you plz reexplain "If you are feeling ambitious, you can also grab the corresponding folder in data/data. You'll have to look for the java package name, not the app name. Lastly, you have to adjust the updater-script in META-INF/com/google/android/ to mount and flash the data folder, not system and then clean out the extra cruft.
You might have to resign the zip or just toggle sig checks."
Your phone stores the app in data/app/some.java.name.here so if you use flash those files, your apps will be installed. The app itself stores settings, history, etc in data/data/some.java.name.here If you flash the corresponding folder in data/data, you'll also get all your settings and won't have to bother setting it all up from scratch.
If you use adb or a file explorer to poke around in your data/data and data/app folders, you'll see what I mean.
In order to get the zip to flash, you have to include "instructions" that tell the recovery what to do with the zip. Unzip one of the flashable roms and look in the META-INF/com/google/android folder. There should be two files there. You want to edit the updater-script so that it flashes your data. Most likely, it is set up to flash a custom rom to your system folder. You'll have to do some editing and some trial and error to figure it out, but if you are just flashing the data partition, most of the commands in updater-script will be superfluous.
Lastly, and this the part that everyone hates (second only to adding adb to your path), you either have to sign the zip with jarsigner, signapk, or something similar, or turn off signature checking in your recovery. Signing the zip is essentially adding a digital signature so that your phone knows that the zip is intact. Clockworkmod recovery will let you toggle the signature checks in one of the options- poke around and get familiar with your recovery. It's probably in there somewhere.
I think Titanium backup will let you freeze/unfreeze apps- you might want to consider it.
Thanks
Sent from my HTC Vision using xda premium
Did this work? Like to buy a beer for someone who wants to upload a zip with a file explorer all for a project I have that has no play store or file explorer on it. Thank you
I dont really know where this belongs, Original Android Development, Android Development or Themes and Apps. I use it for themes so ill put here.
Hopefully some of the people around here will find this as useful as i have.
First things first, credit and thanks to Brut.all for his awesome tool.
Basically i couldn't find anything like this so I created a very simple little reg edit to enable right click de-compiling on apks and right click builds on folders.
I've been using this since Jaunuary 2011(over a year!!) with no problems and it's great for those quick .9 or xml edits.
DISCLAIMER:
This was made for the Windows XP operating system! .so im not sure if it will work on other Window OS, feel free to try but im not responsible for your computers well being so use at your own risk.
After a little research it seems the registry tree is the same for "Vista" and "7" so it should work on them also
To use this you must have apktool working correctly.
Only works if your path variable is set to C:\sdk\tools\
If your Path variable is set differently you have 2 options:
1-let me know where and i'll attatch appropiate reg-edit.
2-Easy option, create a folder on your C:\ named "sdk", inside the sdk folder create another folder named "tools,
now copy the contents from your original tools folder into your newly created tools and add the path in enviromental variables. Simple.
RECOMMENDED:
It is highly recommended to backup your registry prior to installing, just follow the simple instructions included in the download zip.
To install:
Simply extract .reg file from the zip, double click and answer yes.
That's it!!!!
Now your ready to become a de-compiling/building whirlwind.
Useage
*I simply right click an apk, "empty.apk" for example, choose decompile (you recieve a folder with the apk's name), navigate into the res\drawable* folder and drop in my .9.png's.
*Backout of folder, right click "empty" folder and choose build.
*The built images are in are located in "empty\build\apk\res\drawable*".
*The built apk is located in "empty\dist".
I've included an empty.apk for quick .9.png edits, this saves hunting through endless amounts of images for your newly created .9.
If the tool fails it could be something simple-
Problem: solution:
-Folder already exits -Delete or rename
-.9.png's not properley edited -Fix using draw 9 tool
-Required framework not installed -Open cmd and type "apktool if FILE LOCATION\framework-res.apk"
Remember this is a simple tool, for more advanced useage and logs use apk-manager
Final Note:
If Brut.all has any reason for me to remove this please let me know and it will disappear ASAP.
Thank you.
Link and Contents::
ApkTool_reg_edit.zip(contianing reg-edit)
reg_backup_restore.txt
empty.apk
>>>CLICK ME TO DOWNLOAD<<<
If for some reason you lose the ability to create new folders here is a fix:
>>Here<<
Just extract and double click, it might say "cannot import all data", just ignore it, it will restore your create new folder option.
Hello everyone. This is my second attempt at making a useful thread for the community so if it isn't formatted correctly or isn't right in anyway please PM me and I will fix it., it might be helpful to me to leave instructions on how to fix it as well. If something like this already exists, I am sorry please notify me of that and I will take this down.
This is a thread to instruct you on how to make custom s-pen sounds and install them as well as how to install custom s-pen pointers on any TW based rom including stock ( this is just install, I don't know how to make custom pointers yet). There are two requirements YOU MUST BE ROOTED AND RUNNING STOCK OR TW BASED ROM. This is my method, I am not saying that there aren't better ways just that this is how I do it and I know it works. I am not responsible for things going wrong and you being left with a device that doesn't work. You do this because you choose to and understand the risk involved. Also, please make back ups of all the files you want to change so that you have all the original files.
For Sounds: (You can use any sound you have or even the voice record app to make the sound you'd like)
1. Make sure you're rooted
2. Have some sort of root permission file explorer installed (I use Rom Toolbox)
3. Find or record the sounds you want to use as your s-pen attach and detech sounds If they aren't in the .ogg format then convert it to .ogg (I use wavepad for this step)
4. Decide if you want the sound to be sound 1,2 or 3
5. Once you have your sound the way want it rename the file for attach to Pen_att_noti1 (the number can also be a 2 or 3 depending on where you want the sound) and the sound for detach to Pen_det_noti1 (again the number can be different)
6. Place the files on your phone where you can locate them with the file explorer you have installed.
7. Locate the file(s) you want to use and using your explorer navigate to the directory system\ media\ audio\ ui and paste the sounds there. (You might be asked to overwrite whats there. If you want to save the original sounds simply find the file with the same name before you paste and rename to (thefilenamehere.ogg.bak)
8. Restart your phone
9. Once rebooted navigate to your spen sound selector and choose the sound want.
Thanks to my friend TheGrammerFreak for this nexxt bit
For Pointers:
(I don't know how to make pointers. This is assuming you have a file that you know can be used as the pointer. i am trying to learn and when/if I do I will add that to this thread)
1. Make sure you're rooted
2. Make sure you have some root permission file explorer installed.
3. Make sure you have a program that can open .apk files on you PC (I use 7-Zip)
4. Using the explorer you have navigate to the directory system\ framework and copy the file framework-res.apk to a place that you can access via the pc (I used my extsdcard)
5. Attach your phone to the computer
6. Find the framework-res.apk and move it onto your computer
7. Take the file you want to use and reaname it to tw_pointer_spot_hovering_spen
8. Open (not to be confused with unzip. Right click the apk and select "open with") the framework-res.apk with a program that will open it
9. Once open navigate to res\ drawable-xhdpi and find the file named tw_pointer_spot_hovering_spen delete that file and take the file you made/have of the same name and paste it directly into that directory. exit the program after doing so.
10 Take the framework-res.apk file that you edited and place onto your phone where you can locate it.
11. Detach your device from the computer
12. Using your explorer on your phone navigate to the edited framework-res.apk[ and select to copy it.
13. Navigate with your explorer to the directory system\ framework and paste the file there. WARNING: You might get several errors and force closes, don't worry this is normal.
14. Either restart your phone or pull your battery and boot up and you will now see your new pointer. Enjoy!
NOTE: If you want a different pointer for your files that air view capable or if you want your new pointer to be used as your air view pointer follow the same instructions except that the file you are wanting to use and the one you replace are both named tw_pointer_spot_hovering_spen_more and these files can be the same as your normal pointer if you choose.
Hi everyone
This is my first thread, so I decide to make it useful to everyone
Let's GO !
What You Want :
ES File Explorer File Manager (OR any file explorer supports zip extracting)
Rooted Phone
Nandroid Backup (You don't know how important it is)
1- enable root explorer and set permission to r/w (read & write)
2- extract the flashable zip to your memory
3- go to the existing folder
4- copy everything except META-INF folder to the root of your phone
5- "Must" show replace confirmation select confirm
6- After the copy operation is finished, reboot your device
7- Done, Congratulations
PLEAS NOTE THAT I AM NOT RESPONSIBLE ABOUT YOUR DEVICE IF YOU BREAK IT RESTORE THE NANDROID BACKUP
note if its a new file you need to set permissions of the file
most files in app are rw-w-w however some may vary depending on what file it is
at the end of the day if you have a flashable zip its much better to flash certain things than push to system so if the flashable zip has already been made for you than you might as well use it
One doubt please
Ahmad YH said:
Hi everyone
This is my first thread, so I decide to make it useful to everyone
Let's GO !
What You Want :
ES File Explorer File Manager (OR any file explorer supports zip extracting)
Rooted Phone
Nandroid Backup (You don't know how important it is)
1- enable root explorer and set permission to r/w (read & write)
2- extract the flashable zip to your memory
3- go to the existing folder
4- copy everything except META-INF folder to the root of your phone
5- "Must" show replace confirmation select confirm
6- After the copy operation is finished, reboot your device
7- Done, Congratulations
PLEAS NOTE THAT I AM NOT RESPONSIBLE ABOUT YOUR DEVICE IF YOU BREAK IT RESTORE THE NANDROID BACKUP
Click to expand...
Click to collapse
I think this method only for apk files. "my doubt is this method is posible to replace frameworks files..?"
krsharjun said:
I think this method only for apk files. "my doubt is this method is posible to replace frameworks files..?"
Click to expand...
Click to collapse
yes just push to system and set permissions - normally rw-r-r
although I dont know why you would want to do this as its always better to flash the file and since you have a flashable zip why not just flash it
Just a confuse
marcussmith2626 said:
yes just push to system and set permissions - normally rw-r-r
although I dont know why you would want to do this as its always better to flash the file and since you have a flashable zip why not just flash it
Click to expand...
Click to collapse
as by my knowlege While replacing framework files means it will stuck the mobile then how can we set permission.. ? please help me.. and yes u said is correct but creating update.zip which need an a computer i am so lazy
krsharjun said:
as by my knowlege While replacing framework files means it will stuck the mobile then how can we set permission.. ? please help me.. and yes u said is correct but creating update.zip which need an a computer i am so lazy
Click to expand...
Click to collapse
with root browser you can set permissions of any file - please search how
it depends what framework files you are replacing - you cant just replace with any old file from a different rom - it wont work
if its been designed for your rom or you are modding your own files then thats fine
and a flashable zip takes two secs - you dont need a pc - and iv posted a template loads of times
here is it again - just add any files you want to flash to framework in the framework folder
if you want files to go to the app folder just create a folder in system in the zip called app and put files there
same for any other folder in system
http://d-h.st/sr9