Sunday, 2 August 2015
Many of want to port rom to their device.If you are that kind.
Here is a tutorial for you.
Note that the tutorial is based upon kitkat.
Remember not all ROM can be ported.
it is just the basic in porting a rom
That needs to prepare:
1) Stock ROM or ROM without bugs
2) ROM you wish to port
3) Notepad ++ (To edit xml)
4) 7zip or Winrar (or any other application that can extract and create Zip)
winrar or 7zip is not recomended but it can be used
5) Apktool
6) A working brain
Terms:
port ROM must be in
1. similar Specifications of CPU
for example Dual Core Processor with Dual Core, or
Quad Core with Quad Core, or octa core with octa core
2. The size of its DPI
should match like the following
* LDPI & LDPI
* MDPI & MDPI
* HDPI & HDPI
* XHDPI & xHDPI
* Etc
3. Having the same version of the Android SDK (can check in build.prop)
* Android 4.4.3 can be ported with the Android 4.4.2
4. And no less important is the network.
* GSM - GSM
* CDMA - CDMA
* CDMA - GSM
* Care should be taken in order to get a smooth network
5. same chipset. eg mtk to mtk or snapdragon to snapdragon
Well, now we can start porting roms
1. Extract both ROM (base and port)
Extract stock rom and rename it as Base rom
Extract port rom and rename it as Port rom
2. Go to the folder Port ROM
a) Delete all the files except "system" and logo.bin from port rom folder
note that all roms does not have logo.bin
b) In the system folder of the Port rom, delete the following folders
- Tts
- Usr
- Vendor
c) Open the path "system /etc" in Port ROM and delete the following folders(don't worry if the folders does'nt exist)
- Bluetooth
- Firmware
- Wifi
d) Open the path "system /lib" in Port ROM, and delete the following folders
- Hw
- Modules
e) Now Open the path "system/framework" in Port ROM
- Decompiled framework-res.apk (if you don't know how to decompile or recompile a apk file,it will be explained in the next post)
- Go to the path "res/xml" inside the framework-res folder
- Replace storage-list.xml with Stock / Base ROM 's framework-res.apk
- Then recompile framework-res.apk
3. Now navigate to Base ROM
a) Copy the files in the Base rom folder to port rom except "system" folder.
i.e boot.img
Meta-inf folder....etc
b) Go to the system folder in Base ROM
Copy the listed folders to the system folder of your Port ROM. (don't worry if the folders does'nt exist)
- Tts
- Usr
- Vendor
c) Copy the listed folders from the path "system/etc"of Base rom to Port ROM
- Bluetooth
- Firmware
- Wifi
d) Copy the folder and files from the path "system/lib" of the Base ROM to the path "system/lib" of Port ROM
- Hw (folder)
- Modules (folder)
- Libreference-ril.so
- Libril.so
- Librilutils.so
- Libsec-ril.so
- Libsecril-client.so
- Libsensorservice.so
- Libhardware.so
- Libhardware_legacy.so
- Libwpa_client.so
- Libbluetooth_jni.so
- Libbt-hci.so
- Libbt-utils.so
- Liblgehdmi.so
- Libnfc.so
- Libnfc_jni.so
- Libnfc_ndef.so
- Libstagefright.so
- And all the lib file that exist in related with "libstagefright"
e) Copy all files from the path "system/xbin" of Base ROM to "system/xbin" of Port ROM
f) Copy the listed files from the path "system/bin" of the Base ROM to the path "system/bin" of Port ROM (overwrite if neccessery)
- Rild
- Debuggerd
- Sensord
- Sensorservice
- Wifimac
- Wpa_cli
- Wpa_supplicant
- Bmc150d
4. Now go back into the system folder of Port ROM and edit "build.prop" file using Notepad ++
a) Find the line
"ro.sf.hwrotation = 180" and change it to "ro.sf.hwrotation = 0"
b) Find the line
"ro.sf.lcd_density = xxx" change it in accordance with the desired dpi value. (xxx- dpi value)
5. The final step is to pack the rom using 7-zip or Winrar (or) with android kitchen
6. Congratulations you have ported a rom.flash it in cwm or any other custom recovery to test it
Here is a tutorial for you.
Note that the tutorial is based upon kitkat.
Remember not all ROM can be ported.
it is just the basic in porting a rom
That needs to prepare:
1) Stock ROM or ROM without bugs
2) ROM you wish to port
3) Notepad ++ (To edit xml)
4) 7zip or Winrar (or any other application that can extract and create Zip)
winrar or 7zip is not recomended but it can be used
5) Apktool
6) A working brain
Terms:
port ROM must be in
1. similar Specifications of CPU
for example Dual Core Processor with Dual Core, or
Quad Core with Quad Core, or octa core with octa core
2. The size of its DPI
should match like the following
* LDPI & LDPI
* MDPI & MDPI
* HDPI & HDPI
* XHDPI & xHDPI
* Etc
3. Having the same version of the Android SDK (can check in build.prop)
* Android 4.4.3 can be ported with the Android 4.4.2
4. And no less important is the network.
* GSM - GSM
* CDMA - CDMA
* CDMA - GSM
* Care should be taken in order to get a smooth network
5. same chipset. eg mtk to mtk or snapdragon to snapdragon
Well, now we can start porting roms
1. Extract both ROM (base and port)
Extract stock rom and rename it as Base rom
Extract port rom and rename it as Port rom
2. Go to the folder Port ROM
a) Delete all the files except "system" and logo.bin from port rom folder
note that all roms does not have logo.bin
b) In the system folder of the Port rom, delete the following folders
- Tts
- Usr
- Vendor
c) Open the path "system /etc" in Port ROM and delete the following folders(don't worry if the folders does'nt exist)
- Bluetooth
- Firmware
- Wifi
d) Open the path "system /lib" in Port ROM, and delete the following folders
- Hw
- Modules
e) Now Open the path "system/framework" in Port ROM
- Decompiled framework-res.apk (if you don't know how to decompile or recompile a apk file,it will be explained in the next post)
- Go to the path "res/xml" inside the framework-res folder
- Replace storage-list.xml with Stock / Base ROM 's framework-res.apk
- Then recompile framework-res.apk
3. Now navigate to Base ROM
a) Copy the files in the Base rom folder to port rom except "system" folder.
i.e boot.img
Meta-inf folder....etc
b) Go to the system folder in Base ROM
Copy the listed folders to the system folder of your Port ROM. (don't worry if the folders does'nt exist)
- Tts
- Usr
- Vendor
c) Copy the listed folders from the path "system/etc"of Base rom to Port ROM
- Bluetooth
- Firmware
- Wifi
d) Copy the folder and files from the path "system/lib" of the Base ROM to the path "system/lib" of Port ROM
- Hw (folder)
- Modules (folder)
- Libreference-ril.so
- Libril.so
- Librilutils.so
- Libsec-ril.so
- Libsecril-client.so
- Libsensorservice.so
- Libhardware.so
- Libhardware_legacy.so
- Libwpa_client.so
- Libbluetooth_jni.so
- Libbt-hci.so
- Libbt-utils.so
- Liblgehdmi.so
- Libnfc.so
- Libnfc_jni.so
- Libnfc_ndef.so
- Libstagefright.so
- And all the lib file that exist in related with "libstagefright"
e) Copy all files from the path "system/xbin" of Base ROM to "system/xbin" of Port ROM
f) Copy the listed files from the path "system/bin" of the Base ROM to the path "system/bin" of Port ROM (overwrite if neccessery)
- Rild
- Debuggerd
- Sensord
- Sensorservice
- Wifimac
- Wpa_cli
- Wpa_supplicant
- Bmc150d
4. Now go back into the system folder of Port ROM and edit "build.prop" file using Notepad ++
a) Find the line
"ro.sf.hwrotation = 180" and change it to "ro.sf.hwrotation = 0"
b) Find the line
"ro.sf.lcd_density = xxx" change it in accordance with the desired dpi value. (xxx- dpi value)
5. The final step is to pack the rom using 7-zip or Winrar (or) with android kitchen
6. Congratulations you have ported a rom.flash it in cwm or any other custom recovery to test it
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment