More than Just Lines on a Map: Best Practices for U.S Bike Routes
[Ultimate guide for dummies] port miui rom to any mt65 xx devices porting team - miui official community
1. Search
Home General Resources Devices Local Downloads OTA Feedback Orange Friday
helloansuman
Credits 10911
Device Others
Online
time
1448 Hours
#185 7 | 12:09, May-04-2014 | Promote | | Go to reply no.
MI
UI
Of
›
General
›
Porting Team
›
[ULTIMATE GUIDE FOR DUMMIES] PORT MIUI ROM TO ANY MT65XX DEVICES
MIUI Porting Team
GOT MY LOVE "THE
MI3"
[Guide] [ULTIMATE GUIDE FOR DUMMIES] PORT MIUI ROM TO ANY
MT65XX DEVICES
This post was edited by helloansuman at 12:59, May-04-2014
NOW EVERYONE BECOME A PORTER.
I CAN'T WRITE A MORE SIMPLEST
TUTORIAL THAN THIS.
HAPPY PORTING!!!
helloansuman Official Website
2. Requirements:
1. Notepad++
2. 7zip
3. Stock ROM (Original Firmware of your device)
4. Port Rom (MIUI ROM you want to port to your device)
5. Android kitchen (Optional)
How to choose a miui rom for porting?
Check the miui rom you choose is similar to your
1. Chipset (If your device is MT6589 choose an miui rom of a same MT6589 device)
2. Display (If your device is QHD choose a QHD, if your device is HD choose QHD or HD, if FHD
choose QHD, HD or FHD MIUI ROM)
Copy/replace the necessary files from Stock rom to
port ROM
1. open stock ROM and port rom in separate window.
2. Delete the folder "firmware" folder from port ROM systemetc" & Copy "firmware"
folderfrom " Stocksystemetc" to "port ROMsystemetc"
3. Copy all files from "systemlibHW" and replace to "port ROMsystemlibHW"
4. Replace libcamalgo.so and libcameracustom.so files from" systemlib" and replace to "
port ROM systemlib"
5. Replace mtk_stp_wmt.ko file from "Stocksystemlibmodules" and replace to "port
romsystemlibmodules"
6. Replace boot.img from stock to port.
3. Change necessary lines from updater-script and
build.prop
In updater-script
1. Open updater-script using notepad++ from "port ROM META-INFcomgoogleandroid"
2. Remove whole lines contain assert word at the beginning of the file like this line
assert(getprop("ro.product.device") == "cancro" || getprop("ro.build.product") ==
"cancro");
3. Verify /system should be mounted in "/dev/block/mmcblk0pS" & /data should be mounted in
"/dev/block/mmcblk0pD"
What is S and D?
S – System Mount Point
D – Data Mount Point
To know these mount point values
- Open MTK Droid Tool after connecting your phone to PC.
- Open Block Maps.
- Check these lines.
4. Change accordingly these lines in updater-script
format("ext4", "EMMC","/dev/block/mmcblk0p5", "0");
mount("ext4", "EMMC","/dev/block/mmcblk0p5", "/system");
mount("ext4", "EMMC","/dev/block/mmcblk0p7", "/data");
In build.prop
buid.prop (founder under /system folder) you can left it as it is or if you can compare with STOCK
ROM change below mentioned lines
ro.product.model=
ro.product.brand=
ro.product.name=
ro.product.board=
ro.product.locale.language=en
ro.product.locale.region=US
FLASHABLE ROM ZIP MAKING:
1. Select “Data (If present), META-INF, System folders and boot.img”
2. Right Click and 7Zip- > add to Archive -> Select zip and compression Method “Store”
3. Make a zip and Flash it.
4. DONE !!!
OPTIONAL STEP: (If phone is in bootloop)
Install Andriod Kitchen to your windows/Linux
Refer :- ( http://forum.xda-developers.com/showthread.php?t=633246 )
- Rename port rom as WORKING_somename (important) and place it in Android-Kitchen folder.
Run Android Kitchen and
1, select "0" and "12" and "w" [it will extract boot.img from port ROM to KitchenBOOT-EXTRACTED ]
5. 2, Now select "a" and then copy the boot.img from "stock rom"
to"Kitchenbootimg_mmddyy_hhmmss"
3, copy zimgage from "Android Kitchenbootimg_mmddyy_hhmmss" & paste to
"AndroidKitchenBOOT-EXTRACTED"
4, compare the init.rc file inside extracted boot.img and find (ctrl+F)“cam”. Copy and replace lines
related to camera from stock boot.img to port ROM boot.img.
5, now select "b" option in andriod kitchen [it will build boot.img from BOOT-EXTRACTED in to
WORKING folder]
6, Then zip the whole and flash.
Here is a small video tutorial for this optional step.
PART-1 PART-2
6. BUG FIXING
After you able to boot into MIUI, you have to check for bugs. Here is few most
encountered bugs after porting and their solutions.
(If you get any more bugs and solutions please let me know. I will add them here. It
will be helpful for all.)
1. FOR NETWORK RELATED ISSUES (3G)
Replace from /etc folder, mddb then replace agps_profiles_conf, apns-conf,epo_conf, spn-conf,
virtual-spn-conf-by-efpnn, virtual-spn-conf-by-efspn, virtual-spn-conf-by-imsi
2. FOR WIFI TOGGLE PROBLEM
Replace wide-dhcpv6, wifi in /etc folder
7. 3. FOR INTERNAL MEMORY NOT MOUNT PROBLEM
Replace vold.fstab from /etc folder
4. FOR HIGH AUDIO VOLUME ISSUE
Replace libcustom_nvram.sofrom /lib
5. FOR CAMERA NOT CONNECTED ISSUE / CAMERA GREEN
Replace first libcamdrv.so and check if not success then replace libcameraservice.so from/lib
6. FOR AUDIO NOT COMING IN LOUDSPEAKER MODE
Replace libaudio.primary.default.sofrom /lib
If still sound related problem:
Replace all libaud*.so
Sometimes replacing all audio files give you a boot loop in that case replace only
libaudio.a2dp.default.so
libaudio.primary.default.so
libaudiocompensationfilter.so
libaudiocustparam.so
libaudiosetting.so
libaudioutils.so
7. FOR FLASH LIGHT NOT COMING FROM CAMERA
Replace libfeatureio.so from /lib
8. FOR FM PROBLEM
Replace from /lib/module folder mtk_fm_drv.ko
9. TO FIX GPS
Replace from/lib/module folder mtk_stp_gps.ko
10. TO FIX COMPASS
Replace libsensorservice.so from /lib
11. TO FIX VIDEO SHOWING PIXELS AND GLITCHES
Replace libvcodecdrv.so from /lib
8. 12. SHOWING WRONG RAM INFO IN TASK MANAGER
Don’t change ro.product.device value from the miui rom you are porting.
13. FOR GREEN CAMERA
Replacelibdpframework.so from lib folder
14. PROBLEM WITH 2G/3G SWITCH
Open Dialer and type *#*#4636#*#*
If a Pop Up appears go to Phone Information and choose your preferred network type.
15. PROBLEM DOWNLOADING EPO
Replace in frameworkfolder
mediatek-common.jar
mediatek-framework.jar
mediatek-op.jar
mediatek-telephony-common.jar
Credits:
1. Atrvscet
2. luminousin
3. fsrazafs
4. MIUI Forum
5. xda Forum
6. meredithhan,
7. Nanana
8. sta-s2z
9. Javajohn
10. gh.rohit
11. Nannu
9. 12. aksingh05
13. karlinux
14. lufisor
15. bernek
16. rxlord
17. Aryanto
18. Jayson Aquino
19. StekpiN
20. DutchKarma
21. Sorry If I forget any names
22. Atlast to all my rom users for their bug reports
This thread was moderated (Timed highlight) by Nanana at 12:16, May-04-2014
Favorite Rate
Rated by 5 people Experience Prestige Reason
AilsaZ + 6 Great!
gh.rohit + 10 + 3 Awesome!
meredithhan + 10 + 2 Fantastic!
Nanana + 6 Awesome!