FORUMS

Top Forum Discussions

 View Poll Results: Is this guide helping you ?

Yes
 
71 Vote(s)
86.59%
No
 
11 Vote(s)
13.41%

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

1,937 posts
Thanks Meter: 2,088
 
Post Reply Subscribe to Thread Email Thread
27th July 2015, 11:22 AM |#231  
ToXiC's Avatar
Member
Flag Rawalpindi
Thanks Meter: 3
 
More
Quote:
Originally Posted by Nasheich Xfiles

[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






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...

sorry but my stock rom backup does not contain meta inf folder. My stock rom is SP flash tool backup.
so what to do?
How to get meta inf folder in stock rom? (how to extract stock rom?)
 
 
11th August 2015, 04:34 PM |#232  
Member
Thanks Meter: 2
 
More
need some help i ported a miui rom boots up everthing is work justed i get unknow baseband no data no imei.......any clue how to fix?????
14th August 2015, 01:15 AM |#233  
Junior Member
Thanks Meter: 0
 
More
Unhappy Unable to turn on my mobile
I went through the instruction for increasing internal app storage given above and make it 2.5 gb.. But after wipe cache and dalvik cache my mobile does not turning on.. Only the Micromax logo appears.. & in the recovery when I tried to mount emmc it shows can't mount emmc.. I also can't format emmc.. What to do now.. Plz suggest me soon..
15th August 2015, 06:21 AM |#234  
darko150's Avatar
Senior Member
Thanks Meter: 17
 
More
Is it MTK Chipset?
If it is, just make flash Rom (original or backup) with SP_Flash_Tool
All the details have here at XDA
16th August 2015, 02:36 PM |#235  
Quote:
Originally Posted by ToXiC

sorry but my stock rom backup does not contain meta inf folder. My stock rom is SP flash tool backup.
so what to do?
How to get meta inf folder in stock rom? (how to extract stock rom?)

try to use Android kitchen to make it flashable.


Quote:
Originally Posted by Lanc-City

need some help i ported a miui rom boots up everthing is work justed i get unknow baseband no data no imei.......any clue how to fix?????

do something with telephony jar in framework's folder
The Following User Says Thank You to Nasheich Xfiles For This Useful Post: [ View ]
1st September 2015, 08:21 AM |#236  
Junior Member
Thanks Meter: 0
 
More
Unhappy I ported cm12.1 but have bug
1. AFTER OPTIMIZING/FINISH BOOT }:confused
:SYSTEM UI STOPPED AND COM.ANDROID.PHONE STOPPED.
Post Reply Subscribe to Thread

Tags
porting miui, porting mokee open source project, porting pac slimkat sokp aokp aosb carbon aospa, porting rom

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes