Saturday, 10 January 2015

[GUIDE/TUTORIAL] Making a android custom rom easily using android kitchen

This post contains easy method of creating a first custom rom for your device/s.and it is completely for noobs



CREDITS-

-dsixda- for android kitchen -xda developers and google -All the devs whose threads are used in my post (in the form of link)

NOTE -

           This is a simple guide so i dont cover extreme things


THINGS I COVER HERE
  -Setting up android kitchen on your PC
   -Setting up your stock rom in android kitchen
   -Deodexing the stock rom
   -Theming your rom
   -Adding some tweaks
   -Adding/replacing apps,fonts,bootanimation etc
   -Zipaligning all apks for better ram usage
   -Making a flashable zip of your rom
   -Flashing through custom recovery 


1. SETTING UP ANDROID KITCHEN

      Link to official thread -  CLICK HERE FOR OFFICIAL THREAD



Direct links for required tools

   Link for java -   CLICK HERE
   Link for cygwin with packages - 
              CLICK HERE
   Link for android kitchen - CLICK HERE
   Yes, everyone wont succeed in installing android kitchen for the first time but its not a  hard thing

If you have installed Android kitchen head over to the next step 

2. STEPS TO CREATE WORKING FOLDER

  This is the way that i usually use while making a custom rom

  Things needed
    -System folder of your stock rom :- Copy and paste to your sd card through root explorer
    -boot.img :- Get it from your nandroid backup 
     Now just zip both system folder and boot.img(as a single zip file) and move it to C/Cygwin/home/username(varies according to your system)/kitchen/original_update/here
          After that click on cygwin desktop shortcut and type  "cd kitchen"  and hit enter now type  "./menu"  and hit enter
  You will see the kitchen's main menu here
Type "1" and hit enter to setup your working folder Select the zip you placed in the above step and hit enter now kitchen will automatically make a update script and extracts the rom from the zip file you can find it in  C/cygwin/home/username/kitchen/WORKING_xxxx

  You are now ready to modify your stock rom :D 

3. DEODEXING STOCK ROM 


Steps for Deodexing stock rom

    After setting up working folder open cygwin desktop shortcut and type   "cd kitchen"  hit enter  then type  "./menu"  hit enter  Kitchen main menu will appear  type "0"(zero) and hit enter to goto advanced options, now type "11" hit enter to enter the deodexing menu. now type     "v"  and hit enter Select the correct API level (10 for gingerbread) and for other versions see the kitchen menu that appears after selecting for changing API level type the suitable API level hit enter   now type   "b"   hit enter to deodex both system/app and system/framework
Wait for some time and your rom will be deodexed

4. THEMING YOUR ROM

There are two ways of theming your rom 1. Use 7-zip or winrar to change the pngs (images) of any apk

2. Use Apktool and decompile/recompile the apks to change xmls and pngs of an apk
Using apktool for theming
You wont find a better guide for using apktool- CLICK HERE FOR THE GUIDE

Direct download links

DOWNLOAD APKTOOL - CLICK HERE

So now you are ready to decompile and recompile
NOW SEARCH ON XDA TO THEME Systemui.apk, framework-res.apk etc
HERE ARE SOME OF THE LINKS



5. ADDING TWEAKS 

   Tweaks are used to increase the performance,battery life,gaming performance etc of your android phones. There are tons of tweaks/scripts the best way is to searcch on google or xda-developers
Here is the link of some tweaks-


etc search on google :P

5. ADDING/REPLACING APPS

  This is one of the main thing to be done in your custom rom you can find the apps in C/cygwin/home/username/kitchen/WORKING_xxxx/system/app/here  now delete the unwanted apps,add your favorate apps, etc in this path
Some of the stock app alternatives

Gallery - Quickpic or Gallery ICS or photobowl
Music - Walkman (ported) or Poweramp or Player pro or apollo

Launcher - s4 launcher (ported) or Google home launcher (ported) or Xperia home (ported) or holo launcher

File manager - ES File explorer or Root explorer
and find other good apps yourselves by googling
6. CHANGING FONTS

  Download any font through Rom toolbox app or ifont app and place those fonts in C/cygwin/home/username/kitchen/WORKING_xxxx/system/font here
LINK FOR IFONT APP - PLAYSTORE LINK OF IFONT APP

7.  CHANGING BOOTANIMATION

       Download bootanimation.zip from xda-developers or through romtoolbox app and place the zip in C/cygwin/home/username/kitchen/WORKING_xxxx/system/media/here
LINK FOR ROMTOOLBOX -PLAYSTORE LINK OF ROM TOOLBOX
8.  ZIPALIGNING AND MAKING A FLASHABLE ZIP OF YOUR ROM 

  After modifying your rom the final step is to make a flashable zip of your rom
  Open the cygwin desktop shortcut and type   "cd kitchen" then press  "99" to make a flashable zip of your custom rom now press "2" which will automatically make a updater-script,zipaligns all apks,signs your rom  . After this process finishes you are all ready to flash your custom rom through Custom recovery 
You can find your custom rom in C/cygwin/home/username/kitchen/Output_zip Now copy this to your sdcard and boot into recovery wipe data,cache and dalvik cache and flash your rom.

No comments:

Post a Comment