FORUMS
Remove All Ads from XDA

 View Poll Results: Is this useful

Yes really its useful
 
27 Vote(s)
75.00%
No
 
9 Vote(s)
25.00%

[GUIDE][ULTIMATE][Noobs-friendly]How to fix bugs and bootloop on a ported roms

2,642 posts
Thanks Meter: 6,910
 
Post Reply Email Thread
21st June 2017, 05:52 PM |#41  
Senior Member
Thanks Meter: 15
 
More
Quote:
Originally Posted by adityaupreti

I Think this Guide going to help u lot

With this guide i think u will make a stable rom

So lets Start

1.)For fixing Bootloop when porting rom
Replace :
Code:
/system/lib/libandroid_runtime.so
/system/lib/libandroid_servers.so
/system/lib/libmedia_jni.so
*Repack boot.image
2.)Showing black screen after boot
Replace:
Code:
/system/lib/libMali.so
3.)Fixing Sensors
Replace:
Code:
/system/bin/akmd*
/system/lib/libsensors.so
/system/lib/libms3c_yamaha.so
/system/etc/firmware (folder)
/system/bin/servicemanager
4.)Fixing Bluetooth\Wifi not turning On\Off
Replace:
Code:
/system\lib\module\mtk_stp_wmt
5.) Fixing RadioFM
Replace:
Code:
\system\bin\fmradio
\system\etc\firmware\mt6620_patch_e3_hdr.bin
\system\etc\firmware\mt6620_patch_e6_hdr.bin 
\system\etc\firmware\WMT.CFG 
\system\lib\modules\mtk_fm_drv.ko
\system\lib\libfmcust.so
6.) Fixing Bluetooth
Replace:
Code:
/system/bin/bd_prov
/system/bin/uim*
/system/bin/hcid
/system/bin/bluetooth*
/system/bin/hciattach
/system/bin/sdptool
/system/xbin/hciconfig
/system/bin/brcm_patchram_plus
/system/lib/libbluetooth_mtk.so
/system/lib/libbluetoothem_mtk.so
7.) Fixing Wifi
Replace:
Code:
Wifi :
/system/bin/netcfg
/system/bin/dhcpcd
/system/bin/ifconfig
/system/bin/hostap
/system/bin/hostapd
/system/bin/hostapd_bin
/system/bin/pcscd
/system/bin/wlan*
/system/bin/wpa*
/system/bin/netd -> Fix wifi hotspot
/system/lib/libhardwarelegacy.so -> Fix wifi /system/lib/modules/mtk_stp_wmt.ko/system/lib/modules/mtk_wmt_wifi.ko
/system/etc/wifi (folder)
/system/etc/firmware (folder)
8.) Fixing Camera
Replace :
Code:
system/lib/libfeatureio.so - camera not working
/system/etc/media_profiles.xml
/system/lib/libcamera.so
/system/lib/liboemcamera.so
\system\lib\hw\camera.default.so
\system\lib\libcamera_client.so
\system\lib\libcameracustom.so
\system\lib\libcamer aprofile.so
\system\lib\libcameraservice.so
\system\lib\libmhal.so
\system\lib\libmhalcontent.s o
\system\lib\libmhaldrv.so
\system\lib\libmhalmdp.so
\system\lib\libmhalpipe.so
\system\lib\libmhalscenario.so
\system\lib\libmhalutility.so
\system\etc\permission\android.hardware.camera.front.xml
\system\lib\libOmx*.so -fix camcoder
\system\lib\libfeatureo.so -fix cam focus
# camera not working or force close or any other problem
 copy all libs starting with /libcam*.so
#Camera showing wrong model in pic property?
Change model in build.prop
Still not working? Replace following file from STOCK to PORT
system/lib/libexif.so
9.)Fixing SD card/memory
Replace:
Code:
/system/bin/vold
\system\etc\vold.fstab -> edit file for swap internal and external
\system\etc\vold.fstab.nand
10.)Fixing Storage Not mounting
Replace:
Code:
Decompile framework-res.apk using apktool or apk multitool and replace following file from STOCK framework-res.apk to PORT framework-res.apk
/res/xml/storage_list.xml
11.) Fixing GPS
Replace:
Code:
\system\xbin\libmnlp 
/system/etc/gps.conf
12.) Fixing Touch Screen(Haptic)
Replace :
Code:
/system/usr
/system/usr\keylayout\Generic.kl ->fix HomeKey
13.) Fixing Sim1/2 (RIL)
Replace:
Code:
\system\etc\firmware\modem.img
\system\etc\permission (RIL)
/system/bin/stmd
/system/bin/rild*
/system/etc/rril
14.) Fixing Audio/Sound
Relace:
Code:
\system\lib\libaudio* .so
15.) Fixing Network / 3G Network
Replace:
Code:
/ system / etc / agps_profiles_conf
/ system / etc / APNs-conf
/ system / etc / epo-conf
/ system / etc / spn-conf
/ system / etc / virtual-spn-conf-by-efspn
/ system / etc / virtual-spn-conf-by-IMSI
16.)Fixing Pixalation in video
Replace:
Code:
Replace following file from STOCK to PORT or Port to ur Ported rom
system/lib/libvcodecdrv.so
---------------------------------------------------------------

Note Some file will not be there so dont worry jst skip it

And last thing Dont forget to Press Thanks If this helped .......................

Hi,
Bro, I have done all the things but device still in bootloop.
ROM:CM12.1 (Ker=3.10.54)from gionee m3 to intex aqua speed HD(Ker=3.10.54+)
I use stock boot.img to CM12.1 (By deleting and copying from stock to port)

When device in bootloop, I connect the device to the pc and I run adb devices its showing my device as unauthorised..
Please help me to port the ROM
Thank you
22nd October 2017, 10:41 PM |#42  
eduardvi995's Avatar
Member
Flag Caracas
Thanks Meter: 2
 
More
Hi everyone

i just wanned to ask how can i do if i get a black screen after boot.

i know you said to replace (/system/lib/libmali.so), but this file wasn't in my stock rom, it was not even in the port rom (the rom from where i was doing the port). i tryed to replace these:

/system/lib/libandroid_runtime.so
/system/lib/libandroid_servers.so
/system/lib/libmedia_jni.so

but is still the same. can you help me to make this rom boot fine?
very thank you
2nd December 2017, 10:14 AM |#43  
Senior Member
Thanks Meter: 37
 
More
i have replaced all the files :
/system/lib/libandroid_runtime.so
/system/lib/libandroid_servers.so
/system/lib/libmedia_jni.so
but my ported rom is still in bootloop i am porting redmi 4x rom to my redmi 3s
17th June 2018, 02:06 PM |#44  
dark wiz's Avatar
Senior Member
Thanks Meter: 80
 
More
How to fix process stoped
Rom restarts showing this message
Please help dude
24th June 2018, 09:44 AM |#45  
Junior Member
Thanks Meter: 0
 
More
I have a storage problem so i changed storage_list.xml from my 4.4.2 android version to my ported android version 7.1.2 and stuck on logo
6th September 2018, 04:59 PM |#46  
Junior Member
Flag Latur
Thanks Meter: 2
 
More
My device is in focus turbo 5, MT6737M, 64bit Nougat 3.18.35+ Kernel.
I port many ROM and flash on my device but every port ROM stuck on boot animation. I tried all porting guide available on internet but still I am not successful boot a single custom ROM. Pls guide me.
The Following User Says Thank You to kumardeshpande2005 For This Useful Post: [ View ] Gift kumardeshpande2005 Ad-Free
30th November 2019, 04:41 PM |#47  
Junior Member
Flag Dhaka
Thanks Meter: 0
 
More
Bootloop
Still on boot animation loop
Post Reply Subscribe to Thread

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

Advanced Search
Display Modes