In This Post , We're Going To Tell You How You Can Fix Bugs After Porting Custom Rom !
Preparing :
1. Take Your Stock Rom To Get Some Files To Fix Bug
2. Download And Install QuickEdit/Notepad++ To Edit xml,prop and scripts
3. Clean Up Your Brain
Lets Start :
Fixing Invalid Simcard/No Network :
1. Unpack Your Boot.img
2. Take init.sc8830.rc
3. Search For = cp_diskserver
4. Replace With = nvitemd
5. Do This For All "cp_diskserver" Texts
Fixing No Audio :
1. Replace = system/etc/media_codecs.xml , codec_pga.xml , media_profiles.xml , media_codecs_performance.xml.
Fixing Bluetooth Not Turing On :
1. Replace = system/lib/libeng-bt.so
2. system/vendor/lib/libbtt-vendor.so
Fixing SD Card Corrupted :
1. Unpack Your Stock Boot
2. Compare fstab.xx With Custom fstab.xx
Or
1. Decompile Your framework-res.apk
2. Replace = res/xml/storage_list.xml
Or
1. Unpack Your Stock Boot.img
2. Take init.rc , init.xx.rc And Compare The Storage Lines With custom init.rc And init.xx.rc
Fixing Can't Recieve Calls :
Note : This Is An Odinary Bug , Fixing Ril And Replacing Split_img From Boot Will Fix , If Didn't Comparing Full Boot.imgs .rc Files Or Replacing system/usr/keylaout Will Fix This.
Fixing Wifi Not Turning On :
1. Replace = system/etc/wifi
2. Compare Full init.rc And init.sc8830.rc Or Compare Wifi Line
Fixing Can't Play This Video/Internal Video Decoders Not Working :
1. Replace = system/etc/codec_pda.xml
2. system/etc/media_codecs.xml
3. system/etc/media_profiles.xml
4. system/lib/libomx_avcdec_hw_sprd.so
5. system/lib/libomx_avcdec_sw_sprd.so
6. system/lib/libomx_avcenc_hw_sprd.so
7. system/lib/libomx_m4vh263dec_hw_sprd.so
8. system/lib/libomx_m4vh263dec_sw_sprd.so
9. system/lib/libomx_m4vh263enc_hw_sprd.so
10. system/lib/libomx_mp3dec_sprd.so
11. system/lib/libomx_vpxdec_hw_sprd.so
12. system/lib/libstagefright_omx.so
13. system/lib/libstagefright_soft_mp3dec.so
14. system/lib/libstagefright_soft_mpeg2dec.so
15. system/lib/libstagefright_soft_mpeg4dec.so
16. system/lib/libstagefright_soft_mpeg4enc.so
17. system/lib/libstagefright_soft_vpxdec.so
18. system/lib/libstagefright_soft_vpxenc.so
19. system/lib/libstagefright_sprd_h264dec.so
20. system/lib/libstagefright_sprd_h264enc.so
21. system/lib/libstagefright_sprd_mp3dec.so
22. system/lib/libstagefright_sprd_mpeg4dec.so
23. system/lib/libstagefright_sprd_mpeg4enc.so
24. system/lib/libstagefright_sprd_soft_h264dec.so
25. system/lib/libstagefright_sprd_soft_mpeg4dec.so
26. system/lib/libstagefright_sprd_vpxdec.so
Fixing Battery % Bug :
1.Unpack Your Boot
2. Replace = ramdisk/sbin/healthd If That Didn't Fixed , Use Custom Boots Own healthd
3. Replace = system/bin/batterysrv
Fixing Home , Recent , Back Botton Not Working :
1. Unpack Your Boot.img
2. Replace = ramdisk/split_img (Whole Folder)
Fixing ScreenRecorder Not Working :
This Is An Odinary Bug. Fixing Internal Video Decoders Will Fix That
Fixing Data Connection Not Turning On :
1. Boot Up Your Custom Rom
2. Go To Settings
3. Then Go To System Profiles
4. Click On Gear Icon
5. And Choose Desire Career Option 3G/2G
6. Then Go Back And Goto In Sim Cards
7. Click On Sim 1/2 Settings
8. Click On Apn
9. And Select Your Desire Apn
10. Reboot Your Device After Doing All Settings
11. Then Turn On Your Data
Fixing Large Icons :
1. Get Your Custom Roms Build.prop
2. Search For Density
3. Choose Your Desired Density That Fits Your Device
4. Then Reboot Your Device
Fixing Camera Not Working :
1. Replace = system/lib/hw/camera.sc8830/so
Or
1. Open system/lib/hw/camera.sc8830.so With Notepad++ Or Any Other Text Editors (Recommended PC)
2. Search For Lib Files That Are Mentioned In That
3. Select All Those Libs From system/lib
4. Copy Thos To Your Custom Roms Same Path
5. Paste There , And Click On skip existing files
Thats All For Now.
More Fix Coming Soon..
Stay Stuned