FORUMS
Remove All Ads from XDA

 View Poll Results: Is this guide helping you ?

Yes
 
103 Vote(s)
85.12%
No
 
18 Vote(s)
14.88%

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

2,040 posts
Thanks Meter: 2,353
 
Post Reply Email Thread
9th April 2016, 10:55 AM |#281  
Quote:
Originally Posted by nitesh9

How did you take logcat while bootloop? Can you please tell me the method?

in bootloop atleast u need bootanimation to take log. after 10 min of bootanimation connect usb to ur device and type adb logcat > logcat.txt
 
 
9th April 2016, 10:59 AM |#282  
nitesh9's Avatar
Senior Member
Flag Siliguri
Thanks Meter: 158
 
Donate to Me
More
Quote:
Originally Posted by amtra

in bootloop atleast u need bootanimation to take log. after 10 min of bootanimation connect usb to ur device and type adb logcat > logcat.txt

Ok. Thanks. So first we need make the port ROM debuggable and adb secure should be turned off? Did you edite anything regarding this for taking logcat?
9th April 2016, 11:02 AM |#283  
Quote:
Originally Posted by nitesh9

Ok. Thanks. So first we need make the port ROM debuggable and adb secure should be turned off? Did you edite anything regarding this for taking logcat?

i just added this line to buit.prop

ro.secure=0
ro.debuggable=1
persist.service.adb.enable=1
persist.sys.usb.config=mtp,adb
ro.adb.secure=0
The Following User Says Thank You to amtra For This Useful Post: [ View ] Gift amtra Ad-Free
9th April 2016, 11:06 AM |#284  
nitesh9's Avatar
Senior Member
Flag Siliguri
Thanks Meter: 158
 
Donate to Me
More
Quote:
Originally Posted by amtra

i just added this line to buit.prop

ro.secure=0
ro.debuggable=1
persist.service.adb.enable=1
persist.sys.usb.config=mtp,adb
ro.adb.secure=0

Okay. Thanks a lot bro.
9th April 2016, 01:34 PM |#285  
Member
Thanks Meter: 3
 
More
Tried porting cyanogen OS stuck at starting apps
9th May 2016, 08:18 AM |#286  
Senior Member
Flag Hyderabad
Thanks Meter: 202
 
More
Thanks for this post
I ported paranoid rom from yu yureka to redmi 2 ...though Soc was not same it booted...
I used cm11 as base ...it booted but had bugs....i fixed all bugs but by random experiments i came across more bugs and left it...
Felling Lazy to fix them..............
Thanks for this post .Can you port IUNI OS?
9th May 2016, 07:07 PM |#287  
Junior Member
Thanks Meter: 0
 
More
is there a possibility that your phone turn to dead boot when you port a rom and you didn't notice that there is a wrong and you flash it? Please answer me. What would happen?
10th May 2016, 09:31 AM |#288  
Senior Member
Flag Hyderabad
Thanks Meter: 202
 
More
Is it possible
hi guys i want to port a rom which 64 bits files i/e Lib64 folder ..and my device is also 64 bit ..but it didnt get 64 bit sources .so it has only 32 bit roms....So, can i port roms by deleting lib64 and 64 bit files from port rom like dalvikvm64?????
11th May 2016, 03:17 AM |#289  
Senior Member
Flag Hyderabad
Thanks Meter: 202
 
More
this guide is for kitkat and it works...But what about LP/mm ??please share something
22nd May 2016, 02:43 AM |#290  
Senior Member
Flag sydney
Thanks Meter: 74
 
Donate to Me
More
Great.......
7th July 2016, 05:32 PM |#291  
Member
Thanks Meter: 2
 
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...

I really thank you very much. I followed the instructions step by step but after flashing the rom (by the way i am trying to port xperia z5 custom rom) it actually booted and after that i got a message ( Unfortunately, system ui stopped working) then the phone reboot again and so forth. Do you know what is really the problem for this ?
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