Notice

NoticeThis blog side in under construction.

7.1.2 Nougat Rom Bug Fix Guide


NOTE:-
1) TO FIX BUGS YOU NEED LOT OF PATIENCE. SO PLEASE BE COOL DONT IRATE. 
DON’T WORRY IF YOUR ROM DOESN’T HAVE SOME FILES. NOT ALL ROMS CONTAIN ALL FILES.
IN MY ROM THERE ARE FEW FILES MISSING. SO THEY WONT BE THERE IN THE IMAGES I HAVE INCLUDED BELOW.
(I have used coolpad note3 lite v007 as a base rom.)


And always replace from stock to port
i)                  Adds
ii)               Audio
iii)            Audio(full sound fix)
iv)            Black screen after logo
v)               Bluetooth
vi)            Boot loop
vii)         Camera
viii)      Finger print
ix)            Finger print advanced method
x)               For cross porting
xi)            Gps
xii)         Hotspot (follow along with wifi)
xiii)      Offline charging
xiv)       Radio fm
xv)          Sd card/memory
xvi)       Sensors
xvii)    Sims (ril)
xviii) To fix camera (sometimes boot loop)
xix)       Touch screen
xx)          Volte
xxi)       Whatsapp media
xxii)    Wifi
I)                 NORMAL BUG FIX

1) ADDs
To fix adds replace hosts.
System>etc> hosts
2) AUDIO
To fix audio please change the below libs one by one. To prevent from boot loop.
system>etc>audio_effects
system>etc>audio_policy
system>lib>libaudio* .so
system>lib(/64)>libaudiocustomparam
system>lib(/64)>libaudiopolicymanager
system>lib(/64)>libaudiopolicyservice
system>lib(/64)>soundfx
 
3) FULL SOUND (audio)
To fix low sound or distrubances please change these libs one by one
System>lib(/64)>hw>audioxxxxxxxxx (audio files)
 
4) BLACK SCREEN AFTER LOGO
Some time you may get black screen after logo. To fix the black screen change these libs from both lib and lib64
System>lib(/64)>Libcam.paramsmgr.so
 
5) BLUETOOTH
To fix Bluetooth connectivity or bluetooh speakers change these libs
system>bin>uim*
system>bin>bluetooth*
system>etc>bluetooth
System>etc>permissions>android.hardware.bluetooth.xml
system>lib(/64)>libbluetooth_mtk.so
system>lib(/64)>libbluetoothem_mtk.so 
 
6) BOOTLOOP
If you stuck at boot logo. Change the libs from both lib and lib64 and also
Recheck boot.img
system>lib(/64)>libandroid_servers.so
system>lib(/64)>libmedia_jni.so

7) CAMERA
Camera is the most time taking bug. If you have cam issues please change the libs one by one. Be patient if any lib cause bootloop replace it with old libs.
system>etc>media_profiles.xml
system>etc>permission\android.hardware.camera.fro nt.xml
system>lib(/64)>libcamera.so
system>lib(/64)>liboemcamera.so
system>lib(/64)>hw>camera.default.so
system>lib(/64)>libcamera_client.so
system>lib(/64)>libcameracustom.so
system>lib(/64)>libcamer aprofile.so
system>lib(/64)>libcameraservice.so
system>lib(/64)>libmhal.so
system>lib(/64)>libmhalcontent.s o
system>lib(/64)>libmhaldrv.so
system>lib(/64)>libmhalmdp.so
system>lib(/64)>libmhalpipe.so
system>lib(/64)>libmhalscenario.so
system>lib(/64)>libmhalutility.so
system>lib(/64)>camalgo
 
8) FINGERPRINT
To fix finger print please change all the libs carefully.
System>etc>permissions>android.hardware.fingerprint.xml
System>lib(/64)>libgatekeeper.so
System>lib(/64)>hw>gatekeeper.mt6735.so
System>lib(/64)>libmcgatekeeper.so
System>lib(/64)>hw>fingerprint.default.so
 
9)  FP ADVANCED FIX ( if usual doesn't work ):-
If the above method doesn’t work . then only use this method. To fix fp in cool pad use the universal patch.
System>bin:-
                   fingerprintd
                   Gx_fpd
                   tee_deamon
Lib64>lib:- ( if any missing leave that)
                  Fpclient
                  Fpalgorithm
                  Fphal
                  FPservice
10) FOR CROSS PORTING:-
For cross porting like mt6735 to 53 or xz use this cross porting method
System>etc>firmware
System>etc>Apnconf
System>etc>spnconf
System>lib(/64)>HW ( full folder)
System>xbin>mnld
System>mddb
 
11) GPS:-
To fix location change these files with stock rom files
system>etc>gps.conf 
system>xbin>libmnlp 
 
12) HOTSPOT:-
To fix hotspot connectivity or thetering follow this guide along with wifi fix
system>bin>netd
13) OFFLINE CHARGING:-
To fix offline charging unpack boot.img and replace healthd.
Open boot.img and replace sbin/ healthd from ramdisk
System>bin:-
Kpoc_charger
System>Lib(/64):-
Showlogo
system>sbin>healthd
 
14) RADIO FM:-
To fix fm change the below bin, etc and libs
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(/64)>libfmcust.so
system>lib(/64)>libfmjni.so
 
15) SD CARD OR MEMORY:-
To fix storage issues do change the below files and repack boot.img properly.
In boot.img > ramdisk> fstab
system>bin>vold
system>bin>pq
system>bin>sdcard

16) SENSORS:-
To fix sensors like gyroscope, proximity change the bins and replace ibs with stock rom contents.
system>bin>akmdXXX
system>bin>servicemanager
system>bin>sensorservice
System>bin>msensord
system>etc>permissions
system>etc>firmware (folder)
system>lib>libsensors.so
system>lib>libms3c_xyz.so ( acc. To device)
android.hardware.sensor.xxxxx.xml

17) SIMS(ril):-
To fix network issues change the below files one by one . if u face boot loop replace with old files.
system>etc>firmware>modem.img
system>etc>permission (RIL)
Try these aswell if  you stuck at Boot logo 
System>bin>mtkrild
System>bin>mtkrildm1
system>bin>stmd
 
18) TO FIX CAMERA:-
To avoid bootloop do change the below files carefully.Some times these will cause bootloop so try changing one by one libs
Go to System/lib & lib64 replace all libs  like this:-
libcamera.mt67xz
     19) TOUCH SCREEN:-
      To fix touch response and sounds while touch change the below file
      system>usr
     system>usr>keylayout>Generic.kl (fix Homebutton)
 
      20) VOLTE:-
     To use volte feature both port rom and base rom should conatain volte.    feature.
    ( Will only work if your Base Rom , Port Rom and Kernel supports VOLTE )
     System Folder:-
     bin>volte_stack
     bin>volte_imcb
     bin>volte_ua
     lib(/64)>volte_imsm

     build.prop ( edit or check the values in the build prop)
    ro.mtk_volte_support =1
    persist.mtk.volte.enable =1

    21) WHATSAPP MEDIA:-
To fix whatsapp bug like video calls and camera. Or whatsapp media change these files.
    from System>bin> replace these files:-
    Media
    mediaserver
    netd
    service
    servicemanager
    surfaceflinger
     22) WIFI:-
To fix wifi or errors in connections like disabling after few minutes change the below files or folders respectively.
     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>etc>wifi (folder)
     system>lib(/64)>libhardwarelegacy.so 
                 
IF U FIND ANY ERRORS OR MISTAKES WITH MY GUIDE PLEASE COMMENT .

WISHING YOU BEST OF LUCK

3 comments:

  1. I ported DotOs 7.1 on my htc desire dual sim n fllowd this to fix bugs on my rom but my phone doent boot.. i cant take logcat bc my phone doesnt recognized by pc..any idea?? Pls help

    ReplyDelete
  2. Pls, where do i replace these files

    ReplyDelete
  3. How about AOSP N7.1 ROM for Infinix Hot4 x557 fingerprint fix?..

    ReplyDelete

Theme images by Dizzo. Powered by Blogger.