Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,804,641 Members 43,785 Now Online
XDA Developers Android and Mobile Development Forum
View Poll Results: Is this guide helping you ?
Yes 36 87.80%
No 5 12.20%
Voters: 41. You may not vote on this poll

[GUIDE]Porting Any Custom Roms[Fastest method][Update for porting MIUI Kitkat]

Tip us?
 
Nasheich Xfiles
Old
(Last edited by Nasheich Xfiles; 14th August 2014 at 08:22 PM.)
#1  
Nasheich Xfiles's Avatar
Recognized Contributor - OP
Thanks Meter 1,940
Posts: 1,889
Join Date: Aug 2012
Location: Jakarta Utara

 
DONATE TO ME
Tutorial [GUIDE]Porting Any Custom Roms[Fastest method][Update for porting MIUI Kitkat]

[B]
Hello XDA members, in this guide, i'll give you the easiest way to porting rom for your device, i've broken my porting record by ported 5 roms in less than 1 hour using this method, have enjoy and hope it'll works for you too




What you need ?
- Rom base (CM or AOSP)
- Rom port (any roms that you like to port)
- Apktool (for compiling .apk and .jar files)
- Note++ (for editing .txt and .xml files)
- Winrar or 7zip (for extracting and repacking rom)
- dsixda's Android Kitchen, you really need this to Port MIUI, PAC, and Slimrom
- Open mind and never give up to trying




Rules
1. Find the rom port with similar CPU like your device, clock speed doesn't matter here, the important is the number of CPU Cores, if your device is single core, find the single core rom, dual-core with dual-core, etc
2. Forget about screen sizes(4, 5, or 7 inci), the important is screen DPI(pixels destiny) you can port rom from tablet or devices that have bigger/smaller screen sizes
example
> LDPI & LDPI
> MDPI & MDPI
> HDPI & HDPI
> xHDPI & xHDPI
> etc
3. Same Android SDK version(Check in build.prop)
Example, you can port Android 4.4.3 using Android 4.4.2
4. GSM and GSM, CDMA and CDMA




Step by step
Extract booth of the roms(rom base and rom port)


> In rom port folder <

1. Delete all files and folders except "system" folder




2. Delete these folders and files in system
> tts
> usr
> vendor
> build.prop



3. Delete these folders in system/etc
> Bluetooth
> Firmware (if exist)
> Wifi



4. Delete these folders in system/lib
> hw
> modules



5. Go to system/framework
> Open framework-res.apk
> Go to res/xml
> Replace storage-list.xml with your rom base







> In rom base folder <

1. Copy all files and folders except "system" to rom port folder





2. Copy these folders and files in system folder to rom port system folder
> tts
> usr
> vendor
> build.prop





3. Copy these folders in system/etc to rom port system/etc
> Bluetooth
> Firmware (if exist)
> Wifi



4. Copy these folders in system/lib to rom port system/lib
> hw
> modules





Repack the rom then flash it in the recovery





Now the rom port should booted(to menu) now, not stuck on bootanimation anymore



if you still stuck on bootanimation, check bootclasspath in boot.img, unpack it, and check in "init.environ.rc", use note++ to edit it, there's must be something miss there


If the rom doesn't boot to menu or stuck on manufacturer logo(LG, Sony, Samsung, etc), find the same rom port from other devices. I've this experience while porting Liquid Smooth, then i used other devices and it's booted



Feel free to pm me if i didn't answer your question(s) in this thread




Notes :
If you successful ported the rom, please do these before your releasing your ROM
> Ask the permission from the developers of the rom base and rom port
> Give credit for them
> And give credit for me too if you using this guide
> And don't forget to hit THANKS button



For porting MIUI Kitkat, you need to unpack boot.img from both roms, then do these
- Copy paste init.miui.rc from rom port to rom base ramdisk folder
- Open init.rc from both roms, then compare it, there's some line you need to be edited...




Indonesian Developer

From Indonesia, to peoples around the world..

Follow my
Facebook | Twitter | Google+ | Instragram | Blog

My Contributions on XDA
Roms, Guides, Apps, etc
The Following 36 Users Say Thank You to Nasheich Xfiles For This Useful Post: [ Click to Expand ]
 
Nasheich Xfiles
Old
(Last edited by Nasheich Xfiles; 15th June 2014 at 08:36 PM.)
#2  
Nasheich Xfiles's Avatar
Recognized Contributor - OP
Thanks Meter 1,940
Posts: 1,889
Join Date: Aug 2012
Location: Jakarta Utara

 
DONATE TO ME
Info 2 Troubleshooting

Now, to fix some issues in rom port, do these...

1. Information about rom
Open build.prop from booth of the rom then edit information just like the rom port
You can edit these lines in build.prop

# begin build properties
# autogenerated by buildinfo.sh
ro.build.display.id=
ro.build.date=
ro.build.user=
ro.build.host=
ro.product.name=
ro.product.locale.language=
ro.product.locale.region=
ro.cm.device=
# end build properties


#
# ADDITIONAL_BUILD_PROPERTIES
#
persist.sys.root_access=
ro.modversion= > replace with rom port
ro.cm.version= > you can delete this
ro.config.ringtone=
ro.config.notification_sound=
ro.config.alarm_alert=
ro.sf.lcd_density=

and the other lines relating information about rom

2. RIL
Replace these files in rom port with your rom base files
system/bin/rild
system/lib/libreference-ril.so
system/lib/libril.so
system/lib/librilutils.so
system/lib/libsec-ril.so
system/lib/libsecril-client.so

And add any files with "ril" in the name of file



3. Sensor
Replace these files in rom port with your rom base files
system/bin/sensord
system/bin/sensorservice
system/lib/libsensorservice.so
system/lib/libhardware.so
system/lib/libhardware_legacy.so



4. WiFi
Replace these files in rom port with your rom base files
system/bin/wifimac
system/bin/wpa_cli
system/bin/wpa_supplicant
system/lib/libwpa_client.so


5. Missing files
You have to copy the rest of files in base rom to port rom to make rom better, but don't replace it if the files/folders was exist



6. Files can be replace in your ported rom using files from base rom


Bin
>adb
>dalvikvm
>debuggerd
>dhcpcd
>dnsmasq
>drmserver
>gdbserver
>glgps
>hostapd
>hostapd_cli
>ime
>ip
>ip6tables
>iptables
>logcat
>logwrapper
>media
>mediaserver
>mtpd
>ndc
>netcfg
>netd
>ntfs-3g
>ping
>ping6
>pppd
>radiooptions
>rild
>screenshot
>sdcard
>sensord
>sensorservice
>service
>servicemanager
>toolbox
>vdc
>vold
>wifimac
>wpa_cli
>wpa_supplicant


Lib
>lge-ril.so (for LG devices)
>libbluetooth_jni.so
>libbt-hci.so
>libbt-utils.so
>libhardware.so
>libhardware_legacy.so
>liblgehdmi.so
>libnfc.so
>libnfc_jni.so
>libnfc_ndef.so
>libreference-ril.so
>libril.so
>librilutils.so
>libsensorservice.so
>libwpa_client.so
>
>


7. Video streaming
> libstagefright.so
and all libs with "libstagefright" of the lib's name



Indonesian Developer

From Indonesia, to peoples around the world..

Follow my
Facebook | Twitter | Google+ | Instragram | Blog

My Contributions on XDA
Roms, Guides, Apps, etc
The Following 12 Users Say Thank You to Nasheich Xfiles For This Useful Post: [ Click to Expand ]
 
Nasheich Xfiles
Old
(Last edited by Nasheich Xfiles; 26th July 2014 at 03:55 PM.)
#3  
Nasheich Xfiles's Avatar
Recognized Contributor - OP
Thanks Meter 1,940
Posts: 1,889
Join Date: Aug 2012
Location: Jakarta Utara

 
DONATE TO ME
Default Rom that can be ported

What roms can be ported using this guide ?

This guide should can port any costum roms base on AOSP or CM, not manufacturer roms, not yet...

My experience, I've ported these roms
Mokee Open Source Project
Carbon Rom
Paranoid Android
Xperience
SDK NX v1
AOKP
Hellfire
Codename Lungo
AOSB Project
OMNI Rom
SlimKat
PAC man
SOKP
AICP
MIUI V5 Kitkat



Rom ported by XDA Members using this guide
- Liquid Smooth



Indonesian Developer

From Indonesia, to peoples around the world..

Follow my
Facebook | Twitter | Google+ | Instragram | Blog

My Contributions on XDA
Roms, Guides, Apps, etc
The Following 8 Users Say Thank You to Nasheich Xfiles For This Useful Post: [ Click to Expand ]
 
Nasheich Xfiles
Old
(Last edited by Nasheich Xfiles; 1st August 2014 at 11:17 AM.)
#4  
Nasheich Xfiles's Avatar
Recognized Contributor - OP
Thanks Meter 1,940
Posts: 1,889
Join Date: Aug 2012
Location: Jakarta Utara

 
DONATE TO ME
Credits
- Nasheich Xfiles
- JulianJenner
- ZduneX25




If this guide helping you, please do these


> Donate to me
> Hit my THANKS button
> Rate the thread
> Poll the thread
> Hit "Tip us" ? to make this thread on portal, so many people will know it the easiest way to porting any costum rom
> Mention me (@nasheich) at your rom thread
> Keep this thread at first page by posting




Best Regards



Nasheich



Indonesian Developer

From Indonesia, to peoples around the world..

Follow my
Facebook | Twitter | Google+ | Instragram | Blog

My Contributions on XDA
Roms, Guides, Apps, etc
The Following 5 Users Say Thank You to Nasheich Xfiles For This Useful Post: [ Click to Expand ]
 
Jagdish2011jat
Old
#5  
Junior Member
Thanks Meter 0
Posts: 1
Join Date: May 2014
Location: Jaipur
Default Thanks a lot

There is a doubt in my mind....

Can we port mtk6589 roms to mtk6582 using this tutorial...
 
wahyuwidi
Old
#6  
Member
Thanks Meter 4
Posts: 63
Join Date: Mar 2011
thanks bro,. will try this ,.. semoga berhasil di ascend p6 ane gan,.
 
lock.in
Old
#7  
lock.in's Avatar
Junior Member
Thanks Meter 4
Posts: 7
Join Date: Oct 2012
Location: Jogja
thanx bro, i'll try
 
amrinal
Old
#8  
amrinal's Avatar
Senior Member
Thanks Meter 36
Posts: 171
Join Date: Feb 2014

 
DONATE TO ME
found it from fb,,, thx, gonna try it


salam kenal bro

[Rom] [ONLINE][31.08.2014] X-NOTE build 20.0 (N9005 NG1)
[Kernel] CivZ-KK-Xplorer-Rev1.8
[Mod] 3Minit Battery Mod v2.0 not modifying yet



===[Merah Darahku, Putih Tulangku]===
* * * * *
 
Nasheich Xfiles
Old
#9  
Nasheich Xfiles's Avatar
Recognized Contributor - OP
Thanks Meter 1,940
Posts: 1,889
Join Date: Aug 2012
Location: Jakarta Utara

 
DONATE TO ME
Quote:
Originally Posted by Jagdish2011jat View Post
There is a doubt in my mind....

Can we port mtk6589 roms to mtk6582 using this tutorial...
Just try it, make sure you have the cm/aosp as a base rom


Quote:
Originally Posted by wahyuwidi View Post
thanks bro,. will try this ,.. semoga berhasil di ascend p6 ane gan,.
Quote:
Originally Posted by lock.in View Post
thanx bro, i'll try
Quote:
Originally Posted by amrinal View Post
found it from fb,,, thx, gonna try it


salam kenal bro
Good luck to you all,

Don't forget to give me credit at your rom thread if you have success port the rom you like using this guide

And don't forget to press THANKS button too


I'll update the thread to fix the issues asap...



Indonesian Developer

From Indonesia, to peoples around the world..

Follow my
Facebook | Twitter | Google+ | Instragram | Blog

My Contributions on XDA
Roms, Guides, Apps, etc
The Following 2 Users Say Thank You to Nasheich Xfiles For This Useful Post: [ Click to Expand ]
 
Mister-v
Old
#10  
Mister-v's Avatar
Member
Thanks Meter 21
Posts: 64
Join Date: Dec 2012
Quote:
Originally Posted by nasheich View Post
What roms can be ported using this guide ?

This guide should can port any roms, costum rom or manufacturer rom.

My experience, I've ported these roms
- Mokee Open Source
- Carbon Rom
- AOSPA
- Xperience
- AOSB Project
- AOKP
- OMNI
- SlimKat
- Liquid Smooth
- Codename Lungo
I followed your guide but I'm stuck in a bootloop.
I'm trying to port the Pacman rom from umts_spyder


My work:

Phones:
  • Raspberry pi model B
  • Lg p350 (old)
  • Blu DASH 4.5 (mt6589m proccesor)
  • Lg p760

Tags
porting miui, porting mokee open source project, porting pac slimkat sokp aokp aosb carbon aospa, porting rom
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes