THIS ONLY WORKS FOR MIUIV4, I WILL GET A GUIDE TOGETHER ON HOW TO PORT MIUIV5 WHEN I HAVE TIME
Out of popular request, I have made this guide on how to port yourself.
Credit for this goes to @mirGantrophy and @AdhvanIt. If it wasn't for either of them, I wouldn't know as much as I do.
Any and all questions, please post in the thread. You're also more than welcome to PM me and I'll help as much as possible.
Now, let's explain what porting is.
What you'll need:
Before we start getting into the thick. Let me explain how this will be set up. Our BASE ROM will be from our device(Evita). Our PORT ROM will be from another device other than Evita. I personally like to use Crespo(Nexus S) but this can be done wil any other phone.
Also, let's make sure we aren't trying to port TouchWiz/Sense onto AOSP/AOKP that just won't work. As much as you try, it won't.. And I will probably laugh at you if I find out you tried doing that... Make sure your porting Sense/Sense, AOSP/AOSP, AOKP/AOKP.
STEP ONE
STEP TWO
STEP THREE
STEP FOUR
STEP FIVE
STEP SIX
STEP SEVEN
STEP EIGHT
at the top, it will have something like
copy those lines from your PORT ROM to your BASE ROM
STEP NINE
You know those fancy little titles and catch phrases you see in TWRP when flashing.. yeah, this is where you can do that. But I won't explain how to do that. You want to know, ask.
Credit for this goes to @mirGantrophy and @AdhvanIt. If it wasn't for either of them, I wouldn't know as much as I do.
Code:
[COLOR="Red"]First off, this will be made as noob friendly as possible
but we all know that there will be things that just can't be made noob friendly.
Don't ask for a "one click" for this it will never happen because
It's a manual process you have to do yourself.
I am not in any way, responsible if you brick.
You should have some knowledge as to what you're doing.
If you're not confident/comfortable doing this...
[B][I][U]DON'T EVEN THINK ABOUT IT!!![/U][/I][/B][/COLOR]
Any and all questions, please post in the thread. You're also more than welcome to PM me and I'll help as much as possible.
Now, let's explain what porting is.
In the easiest terms I can put it.. It's just taking a ROM from your device as your BASE ROM, then finding a ROM on a different device that's the same build number. As in, 4.1.X won't work with 4.2.X. You delete certain system files in you base, and copy those same files you deleted from your PORT ROM. Compile, test, decompile, fix: repeat.
What you'll need:
Code:
[B][I][U]PATIENCE[/U][/I][/B] - this is most important because it won't always work the way you want it too.
a working computer
apktool
smali/baksmali
Android Kitchen - I use dsixda's kitchen in the dev/hacking forum
a diff tool - I use Meld as it's the easiest to use
Android SDK or just ADB/Fastboot
Before we start getting into the thick. Let me explain how this will be set up. Our BASE ROM will be from our device(Evita). Our PORT ROM will be from another device other than Evita. I personally like to use Crespo(Nexus S) but this can be done wil any other phone.
Also, let's make sure we aren't trying to port TouchWiz/Sense onto AOSP/AOKP that just won't work. As much as you try, it won't.. And I will probably laugh at you if I find out you tried doing that... Make sure your porting Sense/Sense, AOSP/AOSP, AOKP/AOKP.
STEP ONE
Code:
Download your BASE ROM of choice
STEP TWO
Code:
Download your PORT ROM of choice
STEP THREE
Code:
Use your android kitchen to set up a WORKING_Folder for your BASE ROM
STEP FOUR
Code:
Repeat step three for your PORT ROM, be careful here...
It might explode into bright rainbow confetti. ;)
Code:
take your BASE ROM WORKING_folder, open it and navigate to /system
DELETE:
/app
/fonts
/framework
/media
STEP SIX
Code:
The files you just deleted from your BASE ROM, yeah.
Let's take those from your PORT ROM and put them in your BASE ROM.
STEP SEVEN
Code:
Open build.prop from BASE ROM and PORT ROM
compare them side by side
STEP EIGHT
at the top, it will have something like
Code:
ro.build.id=
ro.build.display.id=
ro.build.version.incremental=
copy those lines from your PORT ROM to your BASE ROM
STEP NINE
Code:
Find your updater-scripts from both ROMS
/meta-inf/com/google/android
You know those fancy little titles and catch phrases you see in TWRP when flashing.. yeah, this is where you can do that. But I won't explain how to do that. You want to know, ask.
Code:
compare these files side by side and make any necessary changes.
[B][I][U][COLOR="Red"]DON'T TOUCH THE SYMLINKS, ACT LIKE THEY AREN'T THERE.[/COLOR][/U][/I][/B]
Last edited: