Free Android Tricks

Friday

Who is this tutorial for?
Quote:
  • Absolute Beginners.
  • People with little or no programming skills.
  • people who really want to learn how to make custom rom's
  • people who want to learn android and don't know where to start.
Tools Required : (Update them manually and report me dead links please)

1- Java JDK FROM HERE OR JAVA.SUN.COM - FOR INSTALLING CYWIGN.
2- Cywign Direct Download- Linux Terminal For Windows
3- Android Kitchen (ROM Development Tool)- For Cooking custom ROM and many more things, Please update this Kitchen to latest version when available.
4- Demo META-INF Folder Download- For Making Flashable zip files and comparing updater script.
5- Custom Booting.zip - for custom boot animation
6- notepad for editing files like build.prop, updaterscript 
7- MOST IMPORTANT TOOL YOUR BRAIN... AND ALSO LOTS OF TIME... [DOWNLOAD LINK NOT        AVAILABLE. ]

Step one: Installing the JAVA JDK, Cygwin and Setting up the Kitchen.

*Before you do anything install the java jdk*

Quote:
Try this Dsixda Kitchen Install Picture Tutor(recommended)

OR

watch this video tutorial by gitagaire for how to setup cygwin and kitchen(recommended)


INSTRUCTIONS

  • Download and extract the cygwin_packages.zip
  • Run the set up(make sure there is no previous cygwin installation)
    Quote:
    NOTE: INSTALL CYGWIN IN ROOT DISK LIKE C:\
    • Follow the kitchen read me txt!!!
    • local package directory *must* be the path to the cygwin_packages folder that you just extracted
  • when it shows all the package names, go to the top and select "all default" until it changes to "all install" (you must click on the arrow

  • Download the kitchen from above. Then, extract the kitchen's .zip file to a folder under your home account. Rename the dsixda-android-kitchen-*** folder to just "kitchen". In Cygwin, this folder would depend on what was set for your Cygwin install directory, e.g. C:\cygwin\home\John\kitchen
    NOTE!! If your user folder contains spaces (e.g. C:\cygwin\home\John Smith\kitchen), then the kitchen will not function properly. Instead, copy it under C:\cygwin\home\kitchen.
  • Now your ready to run the kitchen type:
Step Two: Setting up a working folder


THERE ARE TOW METHODS FOR THIS.
1. WHEN YOU HAVE BASE ROM AVAILABLE.
2. WHEN YOU DON'T HAVE BASE ROM.


FIRST METHOD - 
  • First our folder structure should look like this:
    Code:
  • cygwin folder/home/your user name/kitchen
  • Now we need a rom to work on, for GALAXY ACE PLUS[s7500] users i will recommend this rom by blackburner but you can use any rom.
    Just Place the original rom zip in the original_update folder inside the kitchen.
  • run the cygwin.exe again type:
    Code:
    cd kitchen(enter)
    ./menu(enter)
  • now enter option 1, enter again. You should see your rom listed, choose and enter
    you will be asked about changing the working folders name, at this point it makes no difference so just continue.
  • congratulations you have a working folder!!!
SECOND METHOD - this method is by neroyoung

FIRST MAKE A WORKING FOLDER IN CYGWIN FOLDER
Quote:
IT SHOULD LOOK LIKE THIS
cygwin folder/home/your user name/kitchen/WORKING_(your rom name)


NOTE: FOR THIS MEETHOD WE NEED 3 FILES AND FOLDERS TO BE PLACED IN WORKING FOLDER.
1. META-INF FOLDER - GET THIS FROM DOWNLOAD FILES LIST IN FIRST POST
2. SYSTEM FOLDER - TUTORIAL BELOW
3. BOOT.IMG - TUTORIAL BELOW



2. getting system folder
(NOTE - YOU MUST BE ROOTED FOR THIS MEDHOD)
  • This is universal method and can be done easily using terminal emulator.
    For this simply download Terminal Emulator from Android Market.
    we need freshly flashed device here. OTHERWISE YOU WILL HAVE LOT OF JUNK FILES.
  • Open it and type:
    Quote:
    su
    tar -c system/* >> sdcard/system.tar
    This will copy all your /system folder to your SDcard with name System.tar
    This will take some time to finish so be patient.
  • After it's done you should have a tar file in your /sdcard named system.tar
    You can extract it using Winrar or 7zip software. But yes this will have huge size , as it has other useless folders so you will have to delete them. After extracting this system.tar file you will get following folders (Similar one)

    Quote:
    • /etc
    • /fonts
    • /framework
    • /lib
    • /lost-found
    • /media
    • /sd
    • /semc
    • /usr
    • /xbin
    • build.prop
    • And some other files and folders like ""autorooted,kernel files" etc


    Now simply delete the folders marked in red color and its done.Don't worry if you don't have folders with red colors above,we don't need them.
  • And the final files that we will have in our system folders will be

    Quote:
    • /app
    • /bin
    • /etc
    • /fonts
    • /framework
    • /lib
    • /media
    • /semc
    • /usr
    • /xbin
    • build.prop

    If it dont have semc folder no need to worry.
    NOTE: YOU CAN ALSO GET THIS SYSTEM FOLDER BY USING ANY ROOT BROWSER. JUST FIND THIS FOLDER AND COPY/EXTRACT TO SDCARD
  • NOW COPY THIS system FOLDER TO WORKING FOLDER


3. getting boot.img

Here we have 2 options
1. stock boot.img from stock rom - simple kernel which we get in brand new mobile.
2. custom boot.img from custom kernel - kernel which are modified for overclock or other features


Quote:
1. getting stock boot.img from stock rom.
extract your stock rom with winrar or 7zip. you will see boot.img there. copy it to working folder

2. getting custom boot.img from custom kernel.
  • download any custom kernel which is only for your device. [galaxy ace plus [s7500] users get from here or here]
  • extract it with winrar or 7zip and copy boot.img to working folder
NOTE: many of new devices have kernel.bin and other files instead of boot.img so skip this part if your device don't have it

Step Three :change/modify/update rom

YOU CAN MODIFY YOUR ROM IN TWO STEPS:
  1. MODIFY USING ANDROID KITCHEN - for basic modification.
  2. MODIFY MANUALLY. - for advanced modification.
1. MODIFYING USING ANDROID KITCHEN
Quote:
watch this amazing tutorial by neroyoung on how to editing rom with kitchen
NOTE: DON'T FORGET TO DEODEX YOUR ROM








2. MODIFYING MANUALLY.



FOR ALL ANDROID PHONES (ESPECIALLY FOR GINGERBREAD ROMS) USE THIS GUIDE FOR COOL MODS. like center clock,CRT animation, ics and jelly bean style mods etc... ANOTHER GUIDE BY ME

Step Four: repackage the rom

  • AFTER YOU HAVE DONE ALL CHANGE/MODIFICATION YOU WANTED OPEN CYGWIN AGAIN AND TYPE
    Quote:
    cd kitchen(enter)
    ./menu(enter)

    now convert update script to updater script(in option 23)

  • now lets edit updater script(optional)

    Quote:
    Thanks to user langthang for a great updater-script guide.
    Download it HERE
    the updater-script basically tells CWM what steps to take during the installation(flashing rom).
    If you don't have any experience please don't edit anything other than what is in this simple tutorial.


    TO EDIT UPDATER SCRIPT -
    1.Go to META-INF/com/google/android
    2.Open the updater-scrip file with Notepad++
    3.Any text that would appear during the CWM install should be in this format :

    Code:
    ui_print("Put your text in HERE");
    Add your text start at top and save,
    then replace with new updater-scrip


    IF YOU GET ANY ERROR YOU CAN COMPARE YOUR UPDATER SCRIPT WITH MINE (attached in 1st post)
    NOTE: DO NOT COPY WHOLE UPDATER SCRIPT JUST EDIT PART WHERE YOU GET ANY ERROR...

    most common errors will be in mount, remount part in starting and end and boot.img installing part... so replace only those lines....


    AND AT LAST
  • Now that you have made some changes it's time to pack the rom and test!!

    1. Run the cygwin and type
      Quote:
      cd kitchen(enter)
      ./menu(enter)
    1. enter option 99 - "biuld rom from working folder"
    2. Choose your build option and few more enters
      I recommend that you go with all default options until you get more experience with the kitchen.
    3. When rom is packed and signed it will ask to change rom zip name (type name of your rom)
    4. When its all done you will find a folder inside "cygwin/home/yousername/kitchen" called output_zip
    5. Inside the folder is your new rom ready to be flashed and tested!!!

    IF YOU WANT THAN YOU CAN MAKE CWM FLASH ABLE ZIP'S MANUALLY USE THIS TOOL BY I.AM.H3RO


    congratulations you have build your own rom
  • TROUBLESHOOTING (by hell_lock)
    • If you are facing java related problem with cygwin than refer to this post. and Google search
    • If you get problems in installing a rom then compare your updater-script in META-INF folder with one attached in first post.
    • If you have a rom without kernel then remove these lines:
      Code:
      assert(package_extract_file("boot.img", "/tmp/boot.img"),
             write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p8"),
             delete("/tmp/boot.img"));
      NOTE: mmcblk0p8 can be different with different devices... this works fine with galaxy ace plus...
    • If there is a package error then extract the files of the rom and repack them using any compression software.
    • If rom installed correctly but stuck onto logo screen?? Then remove try removing kernel and flashing rom again.
    • If rom installed correctly but got onto bootloop then there could be many possibilities which could lead to this. If you want accurate cause of it then do a logcat.
    • If there are some apk's which are not working then check if you correctly modded them.
    • For status errors like status error 0, status error 6, status error 7 see this guide by Tha TechnoCrat and for rest go here and type your error.

NOTE: Most of the problems occur because of updater-script problems so before trying any of the troubleshooting try the first tip.

Read More

0 comments:

Recent Comments

click here