TEMPLATE ERROR: Unknown runtime binding: includable in widget ANDROIDTWEAK.TK: CREATE OWN ROM FOR ANY ANDROID DEVICE

Friday, September 13, 2013

CREATE OWN ROM FOR ANY ANDROID DEVICE

Default [GUIDE] [how to] CREATE OWN ROM [FOR ANY ANDROID DEVICE] [FOR N00B] [EASIEST METHODS]

Quote:
NOTE: THIS GUIDE WILL WORK ANY ANDROID DEVICE BUT HAS FEW EXTRA PRE-SUGGESTED LINKS FOR GALAXY ACE PLUS USERS.

Special Thanks to -
Quote:
  • dsixda for his awesome kitchen. Please Hit Thanks button for him.
  • inspired by isidromxz's thread.
  • Please kindly remind me if i have forgotten to write any name in thanks section, i have collected all things from many many sources and with modification.
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)
Quote:

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

*Before you do anything install the java jdk*

Quote:
)

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 arrows)
    Quote:
  • 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:
    Quote:
    those who have their kitchen like this C:\cygwin\home\John\kitchen use these commands given below.
    Quote:
    cd kitchen(enter)
    ./menu(enter)
    those who have their kitchen like this C:\cygwin\home\kitchen use these commands given below.
    Quote:
    cd ../kitchen(enter)
    ./menu(enter)
    Quote:
    If you did things right you should see this:

    congratulations!!
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
  • Inside the kitchen it should look like this:
  • Now we need a rom to work on, for GALAXY ACE PLUS[s7500] users i will recommend this rom by 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
  • Adding/removing applications
    1. Go to the working folder where you extracted your rom, inside you will find:
    OR
    2. Then go to "system/app" inside this folder you will find all the rom applications(apks) you may also find some in the data folder if your rom has this folder.
    3. Copy, replace, and change any app(apk) be carefull if you dont know what the apk is do not delete!!
    LIST OF APPS YOU CAN DELETE - HERE OR HERE
    If you can not find some apps in this guide then try opening all those app in your phone and see app name and icon or move those apps from system/app to sdcard and see what is not working...

  • Adding new boot animation
    android kitchen doesn't works for this in Samsung phones. So we need a different method.
    1) Download and extract the bootanimation and samsungani file from Custom Booting.zip attached in first post.
    2) Put them in the /system/bin folder and replace the existing files there
    3) Now download any boot animation, and rename the bootanimation to “sanim.zip”.
    4) Now, navigate to /system/media and replace the “ODEanim” with “sanim.zip”
    You are done with the bootanimation change

  • customizing the theme
    1. replace stock launcher with launchers like nova launcher
    2. theming using uot kitchen (fonts, status bar, batery and other icons etc
    Quote:

    watch this amazing toutorial by jdlogan151

  • Edit the gps script for your country/location
    1. In the workingfolder/system/etc/ you will find a file named gps.conf, you can
    edit this file with notepad++ or even word.
    2. using the right gps script in this file can speed up gps lock, you can
    find some from angeldeath, download extract and replace the gps.conf.

  • Adding ringtones :
    • Take your ringtone file...it should be in .ogg format..If not then convert it to .ogg..
    • Locate to the folder system>media>audio>ringtones>
    • Copy and paste your .ogg files here in ringtones folder..
    • You can also change notifications, alarm and UI tones like this..

  • Changing the Fonts :
    • Take your desired font.ttf file and rename it as DroidSans.ttf..
    • Locate to the folder system>fonts>
    • Now, replace the file DroidSans.ttf with your desired DoridSans.ttf...
    • To change the lock screen clock font...replace the Clocktopia.ttf with your desired one..(rename first)..

  • build.prop tweaks!!
    check this or this or this post for build.prop
    NOTE: EDIT BUILD.PROP WITH NOTEPAD++. SIMPLE NOTEPAD WILL CORRUPT THE FILE.







  • MORE WILL BE ADDED SOON...
  • Default [GUIDE] [how to] CREATE OWN ROM [FOR ANY ANDROID DEVICE] [FOR N00B] [EASIEST METHODS]

    Quote:
    NOTE: THIS GUIDE WILL WORK ANY ANDROID DEVICE BUT HAS FEW EXTRA PRE-SUGGESTED LINKS FOR GALAXY ACE PLUS USERS.

    Special Thanks to -
    Quote:
    • dsixda for his awesome kitchen. Please Hit Thanks button for him.
    • inspired by isidromxz's thread.
    • Please kindly remind me if i have forgotten to write any name in thanks section, i have collected all things from many many sources and with modification.
    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)
    Quote:

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

    *Before you do anything install the java jdk*

    Quote:
    )

    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 arrows)
      Quote:
    • 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:
      Quote:
      those who have their kitchen like this C:\cygwin\home\John\kitchen use these commands given below.
      Quote:
      cd kitchen(enter)
      ./menu(enter)
      those who have their kitchen like this C:\cygwin\home\kitchen use these commands given below.
      Quote:
      cd ../kitchen(enter)
      ./menu(enter)
      Quote:
      If you did things right you should see this:

      congratulations!!
    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
    • Inside the kitchen it should look like this:
    • Now we need a rom to work on, for GALAXY ACE PLUS[s7500] users i will recommend this rom by 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
    • Adding/removing applications
      1. Go to the working folder where you extracted your rom, inside you will find:
      OR
      2. Then go to "system/app" inside this folder you will find all the rom applications(apks) you may also find some in the data folder if your rom has this folder.
      3. Copy, replace, and change any app(apk) be carefull if you dont know what the apk is do not delete!!
      LIST OF APPS YOU CAN DELETE - HERE OR HERE
      If you can not find some apps in this guide then try opening all those app in your phone and see app name and icon or move those apps from system/app to sdcard and see what is not working...

    • Adding new boot animation
      android kitchen doesn't works for this in Samsung phones. So we need a different method.
      1) Download and extract the bootanimation and samsungani file from Custom Booting.zip attached in first post.
      2) Put them in the /system/bin folder and replace the existing files there
      3) Now download any boot animation, and rename the bootanimation to “sanim.zip”.
      4) Now, navigate to /system/media and replace the “ODEanim” with “sanim.zip”
      You are done with the bootanimation change

    • customizing the theme
      1. replace stock launcher with launchers like nova launcher
      2. theming using uot kitchen (fonts, status bar, batery and other icons etc
      Quote:

      watch this amazing toutorial by jdlogan151

    • Edit the gps script for your country/location
      1. In the workingfolder/system/etc/ you will find a file named gps.conf, you can
      edit this file with notepad++ or even word.
      2. using the right gps script in this file can speed up gps lock, you can
      find some from angeldeath, download extract and replace the gps.conf.

    • Adding ringtones :
      • Take your ringtone file...it should be in .ogg format..If not then convert it to .ogg..
      • Locate to the folder system>media>audio>ringtones>
      • Copy and paste your .ogg files here in ringtones folder..
      • You can also change notifications, alarm and UI tones like this..

    • Changing the Fonts :
      • Take your desired font.ttf file and rename it as DroidSans.ttf..
      • Locate to the folder system>fonts>
      • Now, replace the file DroidSans.ttf with your desired DoridSans.ttf...
      • To change the lock screen clock font...replace the Clocktopia.ttf with your desired one..(rename first)..

    • build.prop tweaks!!
      check this or this or this post for build.prop
      NOTE: EDIT BUILD.PROP WITH NOTEPAD++. SIMPLE NOTEPAD WILL CORRUPT THE FILE.







  • MORE WILL BE ADDED SOON...


  • 2 comments:

    TEMPLATE ERROR: Unknown runtime binding: includable in widget