[FIX BUG] Fixing bugs when porting a Lollipop Cyanogenmod 12 Custom ROMs For Mediatek MT65xx device!

23:18 Alex 166 Comments


Things you need to keep in mind. If you are doing any of the following you have to get back and start again.

1.     You cannot port any Lollipop ROM which is for MT6582 to my MT65xx device. Only MT6582 to MT6582, MT6592 to MT6592 etc.
2.     You cannot port any Lollipop ROM if you are using android 4.2.2.
   You can only port for 4.4.2 or 4.4.4.
3.     You cannot port any Lollipop ROM from different kernel version. You can only port for same kernel version like Kernel ver 3.4.67 to 3.4.67.
   Not 3.4.xx to 3.10.xx or vice versa.
4.     Before porting a rom read the rom’s details what bugs it has. If the port rom has bugs you probably won’t be able to solve them.
5.     Always research before you asks someone for help. If you ask simple questions which have already been answered annoys developers and then he will not going to reply ever. If   you can’t help yourself No one can.
Bug’s & Fixes

Bug. -  Stuck on Android is Upgrading
Fix. -  First of all Wipe Data/Factory reset your device. It is suggested that you use the            latest KitKat supported PhilZ or TWRP recovery. CWM will not work. Then flash           this ROM reboot if still stuck there. Reflash this ROM without wiping data and               then reboot.

Bug. - Fix Bootloop
Fix. -  - libandroid_runtime.so
          - libandroid_servers.so
          - libmedia_jni.so
          - Repack boot.image

Bug. -
Wifi, Bluetooth, SIM still not working
Fix. -  Replace from stock to port : /etc/firmware,security,wifi,Bluetooth.
           - \system\lib\libbluetooth_mtk.so
           - \system\lib\libbluetoothem_mtk.so
          - \system\lib\modules\mtk_stp_wmt.ko
          - \system\lib\modules\mtk_wmt_wifi.ko

Bug. - Camera is green or Camera isn't working at all ?
Fix. -   Replace from stock to port :
-          libcameracustom.so
-          libfeatureio.so
-          libjpeg.so
-          libdpframework.so
-          For mt6572 replacing this:
system/lib/libimageio.so
system/lib/libcameradrv.so

Bug. - Google Sync Problem. (This problem is uncertain because users download                  gapps from different sources. So no sure shot fix still you can try this).
Fix. -   a) Install other Gaps
           b)  Turn off location in SETTINGS, reboot your phone.
           c)  Turn off gps and then reboot.

Bug. - Inverted touch
Fix. -  Replace from libinput.so from stock to port.

Bug. - GPS is not working
Fix. -  Replace libmnlp and gps.conf

Bug. - 3G is not working ?
Fix. -  Replace (don't delete) /etc/firmware folder from stock to port.

Bug. - No Audio ?
Fix. -  Replace libaudio.primary.default.so


Bug. - To fix radio and no signal.
Fix. -   - \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

Bug. - Sensors not working ?
Fix. -   Replace sensor.default.so and rename it to sensor.mt65xx.so and replace from             stock to CM based ROM.
            replace xx with 82 or 92 depending on your chipset           
             - /system/bin/akmd*
            - /system/bin/servicemanager
            - /system/lib/libsensors- so
            - /system/etc/firmware (whole folder)
            
            - /system/lib/libms3c_yamaha- so.

Bug. - Microphone not working in Google now ?
Fix. -  Replace  audio_policy.conf

Bug. - Network started dropping suddenly while making calls? (This is completely                  rare to happen)
Fix. -  Replace :    /etc/apns-conf.xml

Bug. - Fix Camera Resolution/Pixels
Fix. -  Replace from stock to port, It would be much better if your replace these files               from a CyanogenMod 12.1 ROM in which correct Resolution/Pixels are being                 shown.
-          libcamdrv.so
-          camera.default.so
-          libcam.exif.so
-          libcamalgo.so
-          libimageio.so
-          libfeatureio.so
-          libcameracustom.so
-          libcam.camadapter.so
-          libimageio_plat_drv.so
-          libcam.paramsmgr.so
-\system\lib\hw\camera.default.so
- libcamera_client.so
- libcameracustom.so
- libcameraprofile.so
- libcameraservice.so
- libmhal.so
- libmhalcontent.so
- libmhaldrv.so
- libmhalmdp.so
- libmhalpipe.so
- libmhalscenario.so
- libmhalutility.so
- \system\etc\permission\android.hardware.camera.front.xml
- \system\etc\permission\android.hardware.camera.xml 


Bug. - Camera not working even after using the above camera fix.
Fix. -  From a CM 12.1 ROM or CM 12.1 based ROM or STOCK ROM in which camera              is working copy all files which have the word "libcam" and replace. Make sure              you re-flash the whole ROM again.

Bug. - Followed the above No SIM fix and yet no IMEI/Baseband?
Fix. -  Follow these fix, these fix is for the worst case scenario. Follow these guide
           1. Permanently IMEI Fix for MTK Device [Updated SP tool method]
           2. IMEI/NVRAM BACKUP AND RESTORE with MTK DROID TOOLS

Bug. - Storage Bug
Fix. -  Decompile the framework-res.apk,
           go to res/xm/storage_list.xml and edit it like the storage_list.xml
           from framework-res.apk of your Kitkat ROM,
           Replace:

Bug. - Sdcard not work or internal storage?
Fix. -    system/bin/vold
·                        system/bin/sdcard
·         
                                                                              
All major bugs have been covered if you are facing any bug or
if you have any more questions comment down below I will try to fix them. But I cannot guaranty to fix. And please do not report about any bugs that are already covered in this guide. I already try to fix them and gave the solutions.


See Also:
Fixing bugs when porting a KitKat MTK Custom ROMs 

166 comments:

  1. I have ported cm13 to my device succesfully but the screen become grey please help

    ReplyDelete
    Replies
    1. Never heard of such issue. can you explain more. what is your sources of port and base roms.
      Use below guide to port CM12/CM13 roms to your device.
      Port Lollipop/Marshmallow ROMs for MTK

      Delete
  2. Lollipop builds are different from kk stock. if stock rom dont have gps.conf then leave it.
    And also Let me tell you that in lollipop/marshmallow roms GPS dont work properly in mediatek devices for now. It is a source bug so you cant do much to fix it. If it works its your luck if dont probably it will never.

    ReplyDelete
  3. hello. i have port resurection remix 5.1.1,all other bug had been fix except it show dual sim but my phone only had 1 sim slot and the other bug is cant connect to camera. i had try this fix but its not work ,can u help me please

    ReplyDelete
    Replies
    1. The rom is originally made for dual sim mobiles so thats why it have two sims. You can turn off second sim from settings. I dont think that is a major problem. For camera have you replaced all libcam* ? also try to replace "\system\app\Camera2" folder from a working build.

      Delete
  4. stock video player not working :(

    ReplyDelete
  5. camera doesnot yet work cm13 aicp 11 mtk 6582

    ReplyDelete
    Replies
    1. Did you replaced all libs starting with "libcam".
      And camera lines under
      #Camera
      from stock boot.img init.rc to init.mt6582_common.rc.
      Also try to replace Camera2 folder from a working cm build.

      Delete
  6. on my note 5 rom data connection dropping and sim 2 not showing.How to fix it?

    ReplyDelete
    Replies
    1. About data connection dropping does that happen with calls too?
      Check your APN.
      Replace etc/firmware folder.
      Is sim1 working perfectly?
      Check if the rom itself support dual sim's many samsung rom's don't support dual sim mode.

      Delete
  7. hello

    my smartphone stops on starting apps. i wait +30min it the same. it stops on BlissPop is starting..
    powred by team bliss
    starting apps.
    please wait for the optimization process to finish

    i have gionee elife s5.5 mtk6592

    ReplyDelete
    Replies
    1. Sometimes a factory reset do wonders.
      Flash your rom > reboot > let it stuck on optimization for sometime > Reboot to recovery and do a factory reset > reboot.
      If that dosent work and you are still stuck at starting apps or Android is upgrading then replace these files from stock to port. :-
      - /framework-res.apk/res/xml/storage_list.xml
      - /bin/vold
      - /bin/sdcard

      Delete
  8. Note5 rom support one sim,but how to fix data connection drop? network not dropping on call

    ReplyDelete
  9. Note5 rom support one sim,but how to fix data connection drop? network not dropping on call

    ReplyDelete
    Replies
    1. Did you tried to replace firmware folder. if it dint work.
      replace these files. these are all related to network and modem.

      \system\bin\rild
      \system\bin\rildmd2

      \system\etc\firmware [whole folder]
      \system\etc\ril\oper.lis
      \system\etc\agps_profiles_conf.xml
      \system\etc\apns-conf.xml

      \system\lib\libreference-ril.so
      \system\lib\libril.so
      \system\lib\librilmtk.so
      \system\lib\librilmtkmd2.so
      \system\lib\librilutils.so
      \system\lib\mtk-ril.so
      \system\lib\mtk-rilmd2.so

      Delete

  10. I followed the steps you had given me, but its still not working.
    I tried using wave custom rom (BlissPOP, Exdous, AICP) but I have the same problem
    ps:
    I tried this rom https://drive.google.com/file/d/0ByljROYR7pHYYk5ERTZDb3FuUk0/view
    She is istaled very well. The problem nothing works camera, wifi, Bluetooth, SIM


    re:
    Sometimes a factory reset do wonders.
    Flash your rom > reboot > let it stuck on optimization for sometime > Reboot to recovery and do a factory reset > reboot.
    If that dosent work and you are still stuck at starting apps or Android is upgrading then replace these files from stock to port.
    - /framework-res.apk/res/xml/storage_list.xml
    - /bin/vold
    - /bin/sdcard

    ReplyDelete
  11. Replies
    1. No problem buddy i can copy paste from anywhere. Actually some people copying contents from hear and posting on there blogs so had to disable it.

      So back to your issue.
      can you give more information about
      your base and port rome. and which chipset?

      Delete
  12. This comment has been removed by the author.

    ReplyDelete
  13. thank you very much my friend.

    I have gionee elife s5.5 (condor c8s, blu vivo IV)
    Chipset: mtk6592
    CPU : 1.7GHz octa-core
    Android : 4.4.2
    I want to upgrade it to any android lollipop custom rom

    ReplyDelete
    Replies
    1. Do you have any lollipop build ported for your device which is working perfectly. The link you have given is the rom for gionee s5.5. but from your previous comment it looks like many things are not working in that. rite?

      To port LP/MM roms main magic is in boot.img, if you port boot.img correctly there are 80% chances that your rom will boot and work properly.
      If nothing is working as you expected my advice is to start from the beginning with a fresh mind.
      You can try to portTHIS rom.
      And THIS PORTING GUIDE
      if you follow the instructions properly, i am sure that you will get succeed.

      Delete
  14. Sir!Don't be angry
    I ported these lolipop using your guide:
    1)Blispop(Some Bugs)
    2)Cm12 Beta 5(Some Bugs)
    3)Exodus(Bugless)
    After flash in these rom,audio not working.In earphone audio working. After I replaced audio.primary.default.so
    But not working and in cm audio droping.After i get back to other rom,in other rom audio working
    Please help me

    ReplyDelete
    Replies
    1. Why would anyone be angry. There is nothing wrong in asking questions. We are all hear to help eachother.
      -If you have already tried to replace "libaudio.primary.default.so" and it dint work then
      -Try All Files starting With libaudio*
      -Replacing All Files Sometimes Cause Bootloop, If you got bootloop in That Case Replace Only
      -libaudio.a2dp.default.so
      -libaudio.primary.default.so
      -libaudiocompensationfilter.so
      -libaudiocustparam.so
      -libaudiosetting.so
      -libaudioutils.so

      Delete
  15. Hello how to fix USB connet no work on resurrection remix M

    ReplyDelete
    Replies
    1. Install proper drivers.
      Enable the dev mode.
      Enable usb debugging.
      Then go to storage > usb computer connection.

      Delete
  16. How to replace ? ( Step by step )

    ReplyDelete
    Replies
    1. What you want to replace???
      Open port and stock roms zip with winrar/7zip.
      Copy the files you want to replace from stock rom then paste them in port rom.
      zip again. Flash new zip.

      Delete
  17. I have a problem. I have ported Ressrueection remix from Mtkroms.com and when i try to turn on wifi it turns off again, and i cannot press the button again. I have Thl T11 Mt6592 and the rom is based on MM

    ReplyDelete
  18. How to fix no vibration on cm12.1 mtk6572 ported roms?

    ReplyDelete
  19. Sir I want to port cm 12.1 based resurrection remix to my mtk 6582 having kernel version 3.10.54 I have found one rom for this kernel
    version but system is in dat fileextinction how to port this rom and how to edit updater script of it

    ReplyDelete
    Replies
    1. First make sure the rom you are porting also have same kernel version [ie. 3.10.54]
      Second You have to extract the system.dat to view files in it and to get proper folder structure for porting
      here are some guides you can try.
      1. Lollipop/Marshmallow DAT files|Compression and Decompression
      2. [Direct link]Tool Unpack Repack System.new.dat.zip
      3. Extract System.new.dat

      I've never tried these tools so i am not 100% sure but these methods should work.

      And about updater.script its in META-INF folder. you can compare both port and stock roms updater.scripts
      and edit them with Notepad++.

      Delete
  20. I am facing a strange problem bro camera is not taking focus and when I turn on flashlight it turns off immediately means it blinks once but the icon still remains on

    ReplyDelete
    Replies
    1. Replace

      \system\lib\libfeatureo.so

      Or

      all libs starting with "libcam"

      Delete
  21. Tried bro it worsens the problem.. After replacing libfeatureo and other camera libs the camera becomes black

    ReplyDelete
  22. I ported a rom of cm12.1 but the only major bug is that the storage gets filled up to the maximum showing excessive storage warning after sometime without any reason. Some guys ported other cm12.1 based roms but the bug is in all roms. What to do?

    ReplyDelete
  23. I've ported a cm based ROM, aicp. In this ROM, video is lagging. The video gets stucked but the audio keeps playing.

    ReplyDelete
  24. Bro I have a problem. I succesfully ported cm 12.1 to my mtk6572 device, it starts and everything. But audio and camera doesnt function, already tried to replace all the lib files in the same zip that boots(even create new zips) but when trying to boot nothing happens. Only with the stock lib archives.

    ReplyDelete
  25. Bro I have a problem. I succesfully ported cm 12.1 to my mtk6572 device, it starts and everything. But audio and camera doesnt function, already tried to replace all the lib files in the same zip that boots(even create new zips) but when trying to boot nothing happens. Only with the stock lib archives.

    ReplyDelete
    Replies
    1. To just replace the libs and other files make a copy of the working zip and
      open it with 7zip (dont extract just double click and open) or whichever program you are using. and browse to the directory of the files you want to replace and then just drag and prop the new files.
      Try to solve one bug at a time so you wont get confused.

      About camera not working :
      replace all libs starting with libcam.so
      if that to doesnt work the also replace Camera2 folder in system > apps

      Delete
    2. I did exactly what you said, without extracting the rom I just replace inside the libaudio files (libaudio.primary.default.so, libaudiocompensationfilter.so, libaudiocustparam.so, libaudiosetting.so, and libaudioutils.so). In recovery make all wipes and install succes but when rebooting i get a bootloop. One of the .so files is causing it.

      Delete
  26. Is there any way to port rom of kernel 3.10xx to the kernel 3.4.67

    ReplyDelete
  27. Try replacing kernel and ueventd.rc from stock to port boot.img.

    ReplyDelete
  28. How to fix no vibration at all on MT6572 kitkat. Galaxy J1 Ace rom

    ReplyDelete
  29. Hi bro I installed that customs ROM now I have problems with all video editing app like kine master & power editor ....ex , when I edit a video with any app & when video render is complete I get a green screen instead of the edited video it happened all the time

    ReplyDelete
    Replies
    1. replace video codecs from stock rom.

      Delete
    2. How can i do it where is the video codecs ?

      Delete
    3. Look in system\etc\ folder

      Delete
  30. Can u plz give me any cm ROM for Alcatel one touch pop c9 7047d kernel 3.4.5 android 4.2.2 or any lollipop ROM plz

    ReplyDelete
    Replies
    1. The kernel is quite old for a fully stable lollipop or newer rom.
      but there are some roms that you can try.
      These links might help you. sadly the links for the roms i found are dead.


      Alcatel OneTouch 7047D POP C9 - 4pda

      Custom roms for alcatel one touch pop c9 - XDA

      Delete
  31. bro i port a rom but it stuck on boot animation
    what i have to do for fix it ????

    same karnel and same cheapset and same lolipop version
    but still stuck on boot loop

    ReplyDelete
    Replies
    1. Try the fixes mentioned in above guide. and port boot image again.
      generally boot loops caused because of faulty boot.img.

      Delete
  32. My sim is not working n no show sim n imei number is not showing what is do....

    ReplyDelete
  33. Auto Rotation not working, accelerator not working. I am on sc7731

    ReplyDelete
    Replies
    1. Its already mentioned in the guide above. please read before requesting
      by the way this if the fix.

      Replace sensor.default.so and rename it to sensor.mt65xx.so and replace from stock to port ROM.
      replace xx with 82 or 92 depending on your chipset.
      and also replace
      - /system/bin/akmd*
      - /system/bin/servicemanager
      - /system/lib/libsensors- so
      - /system/etc/firmware (whole folder)
      - /system/lib/libms3c_yamaha- so

      Delete
    2. I have already read... I said I am on sc7731 chipset, not mediatek. Do you have any idea how to fix it on spreadtrum chipset ?

      Delete
    3. Ohh sorry i missed that. well i have no experience in spreadtrum.
      still you can try to replace all libs and files related to sensors.
      if still not work send me logcat.

      Delete
    4. https://drive.google.com/file/d/0B377TLFOgWdsRUd4UnBuQlpTaWM/view?usp=drivesdk

      Logcat is here...

      Delete
    5. there is some problem with your permissions. system is not able to get correct permissions to access sensors and some modules are missing.
      check your stock rom again.

      Delete
  34. bro i had mtk6582 kernal3.10.54+ device ported cm12.1 but i try to port flyme it stucks at bootloop shows appps upgradeing but still in bootloop

    ReplyDelete
    Replies
    1. First try the fixes mentioned in above guide if it dont work then re-port boot.img.
      Boot image is the main part in cm12.1 porting.
      Use other methods/tools to extract and repack boot image.(android kitchen is best tool to do this)
      sometimes its the fault of the tools that your use and sometimes it just dont work for no reason. If you have a working cm12.1 boot image then you can use that too.

      Delete
  35. I ported cm12.1 successfully but i amtry to port flyme cm12.1 based rom

    ReplyDelete
    Replies
    1. To fix bootloop all you can do is
      1. check mountpoints in updater script.
      2. port boot.image again from start.
      3. replace storage.xml in 'system\framework\framework-res.apk\res\xml\' (open framework-res.apk with 7zip or winrar and drag drop replace file)
      4. replace 'vold' and 'sdcard' in "system\bin\"
      5. replace libs
      -libandroid_runtime.so
      - libandroid_servers.so
      - libmedia_jni.so
      6. Factory reset > flash zip > boot > if stuck in bootloop > reboot to recovery > factory reset again then boot.

      Delete
  36. still my device stuck at bootloop

    ReplyDelete
  37. how to make logcat bootlooped devices

    ReplyDelete
  38. https://drive.google.com/open?id=0B3dQa6kGOGjkWDZUV1Y4UThYSnM

    ReplyDelete
  39. https://drive.google.com/file/d/0B3dQa6kGOGjkeTI1MS1CQ1JNY3c/view?usp=sharing

    ReplyDelete
    Replies
    1. There are some files missing from etc and bin folders.
      so check those folders again. dont delete any file in the folder. just copy from stock then paste and replace.

      Delete
  40. replace these lib's and folders
    \system/etc/firmware,
    \system/etc/security,
    \system/etc/wifi,
    \system/etc/Bluetooth.
    \system\lib\libbluetooth_mtk.so
    \system\lib\libbluetoothem_mtk.so
    \system\lib\modules\mtk_stp_wmt.ko
    \system\lib\modules\mtk_wmt_wifi.ko

    ReplyDelete
  41. bro I used cm12.1 based temasek, Sim cards not detected I try above things but still Sims not working

    ReplyDelete
    Replies
    1. Check your IMEI (*#06#) if it shows null then restore it with following method.
      Permanently Fix IMEI for MTK Device

      Delete
  42. I'm trying to port a CM13 rom to my Elephone S3 MT6573 Kernel3.18.19, but when I start the rom for the first time it stucks at the brand logo screen and then it reboots by itself. Can someone help me with this bug?

    ReplyDelete
    Replies
    1. Have you tried the fixes from above guide?
      there could be many reasons for a bootloop.
      But seance it is stuck on boot.logo i suggest you to re-port boot.img.

      Delete
    2. This comment has been removed by the author.

      Delete
    3. Tried everything you suggested me, but still having the problem. I already tried to get catlog, but adb doesn't find my device. Do you know what can cause the problem?

      Delete
    4. To take catlog you need to install all Adb and mtk vcom drivers(including your device drivers) and revoke usb debugging.
      Download drivers from Adb and mtk vcom drivers

      Delete
    5. Adb can find my device when I'm on the stock rom, but when I flash my ported rom not. I think that's because my phone stucks on the boot logo. So I want to know if there is a way to solve the bootloop? Or can I a make a catlog from it when it's in bootloop?

      Delete
    6. You can take logcat when device is in bootloop.
      Read this topic on XDA - How to get & read a logcat (3rd post)

      Delete
    7. I succeeded to make a catlog, but I'm not capable of reading that. Can someone find the bug? I will post it on mega: https://mega.nz/#!OwB1zYAC!aZWZKnugZxla4p08NGoDB1xpDSwgQ6ov4LdptxeGuXk

      Thank you very much by advance!

      Delete
    8. Are you sure the rom you are trying to port is of same chipset and kernel version?
      there are errors in firmware and lots of wrong permissions.
      i will suggest you to find some other rom with correct chipset and kernel version.

      Delete
    9. I think I used a correct rom. Do you know if there is a difference between kernel 3.18.19 and 3.18.19+? Maybe that's the problem.

      Delete
    10. No, 3.18.19 roms should work on 3.18.19+.
      do check if the chipset is same because most of the roms available for 3.18.19 kernel uses mt6580

      Delete
  43. Hi, i ported CM12.1 for MT6582 3.4.67 kernel. Everything is working except Sim contacts not showing up and on sim card option it says CARD 1 "No Number Assigned" and Settings > About Phone > Status > SIM Status > My Phone Number is empty. I have network i can make calls. It is not imei related. Thanks for your efforts.

    ReplyDelete
    Replies
    1. You do know your phone number right? :/ You dont need any stupid box to tell you, your own phone number. :p

      Well jokes apart, No Number Assigned and empty Phone Number is completely normal.
      Generally all roms/devices are not capable to read sim card number stored on it.
      so no number assigned is ok. check if you can write your number there manually.

      Now about sim contacts not showing up, Do check if you have enabled it in settings.
      Go to 'Contacts > Contact Settings > Contacts to display > and there choose show all or sim contacts.
      And remember that you can not store new contacts on sim card anymore; in CM.

      Delete
  44. Thank you for your quick reply.
    Of course i know my own number:)

    I thought that "no number assigned" problem and "no sim contacts" problem are related.

    It says "No contacts on your SIM Card" when i try to import contacts to local phone memory.But Google contacts shows up.

    No problem. I will use it this way.

    Thank you.

    ReplyDelete
  45. I have a unite 2 with mt6582 and a unite 3 with mt6583m SoC.
    Now what that "m" stands for ?
    Well, Unite 2 has kernel sources released, so it's running 6.0 and unite 3 is stucked at 5.0 with kernel sources unreleased.
    Now I am stucked at Lollipop.
    OK. If it possible to flash mt6582 roms directly just by setting mount points in updater script or I can have to port it completely ?
    What can I do about upgrading unite 3 to marshmallow ?

    ReplyDelete
    Replies
    1. Mediatek have 3 variants for there chipset. M, Stranded and T.
      For example MT6589M - MT6589 - MT6589T
      where M - you can say it a minor version of standard chipset
      and T - Is for Turbo, which is superior then stranded.
      So obviously minor version have low specifications and turbo have grater,
      generally M have low screen resolution and low camera. other specs are same for all. View this comparison chart for batter understanding.

      Although there are minor difference between both but still there is no guaranty that 6582 rom will work for 6582m,
      And no you can not flash directly by just changing mount points.

      So i'll suggest you to batter search for a rom which have same SoC.
      As far as i know Wiko mobile and Micromax uses similar hardware/software so try to search a model from wiko.

      Delete
  46. Sorry, unite 3 is at mt6582m

    ReplyDelete
  47. I have downloaded a Custom ROM, for Unite 3, super stable. I flashed it, and it boots fine. I checked Build.prop file and it says it has mt6582. That "m" is missing.
    And that unite 2 ROM has same SoC.
    I am confused

    ReplyDelete
    Replies
    1. Dont trust a custom rom's Build.prop,
      Build.prop just contains information about your device.
      And most of it is either non-important or you can say android firmware don't need much information from build.prop to work. there IS some imp stuff but not most of it is just info.
      And you can alter many aspects of build.prop without breaking anything.

      So the guy who have ported the rom for your device might have used a rom from the device which had mt6582 or he just forgot to change or maybe he changed it purpously.
      (maybe you should ask the guy, from which device he ported the rom so if that device got working mm then you can port it easly)


      To explain more about build.prop:

      1. ro.build .version.release=7.0.1 by changing this value you get it to show any android version you want like 7 is for Nougat but you can change it to any number like 10, 11, 15, or 389253503257, and it will show like you are using android version'389253503257' (which is quite imposiable).

      2. ro.product.brand=OnePlus > this shows of which brand your smartphone is, You can change it to even Apple, so it will show that you are using an Apple device.

      3. ro.product.name=OnePlus3 > this shows device model name, you can change it to Apple iPhone10, so it will show that you are using Apple iPhone 10.

      4. ro.board.platform=msm8996 or ro.board.platform=mt6582 > you can change it to applea9 so it will show your phones processor is Apple A9.

      and
      So this is just for example to show you that system dont relay much on build.prop,
      ofcorce it is a very importent file in android system and wrong, incomplete or courrepted build.prop could lead to bootloop,
      but it not imp the way you are thinking.

      Build.prop just tells (you, Others, Google servers, websits you surf on internet and apps you are using) that, what device you have, what android version you are on, what kind of processor your device using, and many other things.

      We've already wrote about build.prop tweaks which help you to increase your device performance,
      Read about it here: Best Build Prop Tweaks

      Delete
  48. I understand. I just want to run a AOSP based ROM, as Unite 3 has customized interface with bloatware.
    There is no CM13 ROM found for mt6582m. But it exists for mt6582. I am running Lollipop, so I can't port it. (L-M not possible ?)
    That's why I am stuck. A CM12.1 would be great too.

    ReplyDelete
    Replies
    1. Try Your luck and just port a mt6582 cm12(same kernel version) rom, there is no harm in trying. make sure you know how to go stock if something goes wrong.

      Delete
  49. Is this port possible ? mt6582 - mt6582m and 3.10.65 to 3.10.54 ?

    ReplyDelete
    Replies
    1. No, Its not possible, well it is, but only in case if you have kernel sources.

      Delete
  50. I will try a mt6582 to mt6582m CM12.1 port.
    I have a nandroid backup. So no problem if I port with correct mount points, I think.

    ReplyDelete
    Replies
    1. No you wont be able to restore nandroid backup in major failure, or upgrading from kitkat to lollipop, so Get stock firmware which you can restore with SP Tool or if there is any other tool for your device.

      Delete
  51. Thank you Thilo G. for taking time and sharing your valuable experience with us.
    I think calling noob is not correct, beginner should be the correct term for it. :)

    Yes you are correct boot.img is the major part in porting current lollipop and marshmallow roms, and most people miss that part.
    If you get boot.img working then your 70% work is already done.

    Linux terminal is best for android system modding, actually for any kind of development, it works best,
    But for people who are not familiar with command line they can use Android Kitchen with Cygwin.

    And yes you can use same boot.img on other roms which uses same kernel and android version, that saves a lot of work and time, but on some roms which have major controls in kernel, like RR, You might face some problems and more battery drain then normal, So if you ever feel that rom is not stable and facing unusual problems just port boot.img again and see if that fix it.

    And i have to say your English is not bad at all, actually its very good. :D

    Thanks again your comment will be helpful for others.

    ReplyDelete
  52. Major failures like preloader wipe ? I have stock firmware and SP flash tool also. Never faced such a horrible brick before by flashing ROM.
    I wipe everything before and factory reset after...

    I take extreme care of my preloader... and target partitions... Still, SP Flash tool is handy...

    ReplyDelete
  53. mt6582 to mt6582m port successful, FM and Offline Charging not working... and getting reversed Stereo through headphones..

    ReplyDelete
    Replies
    1. Grate, i think now you can go for marshmallow too. its not much different then LP.

      FM radio is still not stable in cm12 roms, though in some cases it worked for some people.

      Offline charging also was a bug in earlier builds but it was fixed in later builds.
      So just try to find latest cm12 build and port that.(cm12.1_beta 7 was the most stable, you can try others too but later builds).

      Umm.. sorry but i dint get what do you exactly mean by "reversed Stereo through headphones."

      Delete
  54. But something magic happened. This ROM sounds killer... Its like listening through DAC. But my stock ROM sounds horrible.

    ReplyDelete
  55. reversed Stereo means... (suppose, you are watching a movie. A car is coming from left side, you hear the sound from right side of headphone).
    Left Channel Audio comes from right channel and vice versa.

    ReplyDelete
    Replies
    1. Ohh okk, Well i've never seen such problem before.
      I'll try to find a fix for it asap.

      Delete
  56. well... its 2017. Do you think Lollipop is still in the road with nougat ?
    My surrounding getting nougat updates officially and I am stucked due to no kernel sources.

    ReplyDelete
    Replies
    1. Yes it is. If you see android versions market share graph you can find that Lollipop is still leading the market. And there's very few devices out there which are running nougat. So dont get disappointed.

      Delete
  57. Boss
    I have three custom roms for

    Tecno l8 plus (mt6580;mali400)

    Which were originally ported for Infinix hot2, mt6580,mali00.

    What i did for these romes is to cook the boot.img using kitchen, repacked and sucseeded to boot.

    One thing what i want to fix (it hasFM radio faulty also) is for the camera.

    Each rom has its own symptom. Wired.

    Rom 1: focusing x, showing red screen, freezing after i switch to Video and press button.

    Rom 2. Focusing works, screen colour shows okay, same bug with rom 1 for video.

    Rom 3. Focusing x, screen red, video working.

    The roms are based on cm12.1

    I feel i really need to "cook" to fix thia camera, but i dont know which ingredian tasts what.

    ReplyDelete
    Replies
    1. FM is still not stable on CM12 roms, so most i can suggest you to use latest build.
      About Camera, fixes are already been covered, also change camera lines in boot.img init.rc to your socks appropriate init.rc...

      Delete
  58. Yes I don't need the FM function but Camera! Seriously.

    I checkd each init.rc but they have all the same lines about the #camera.

    Do you know which files are about the camera focusing and video recording?

    ReplyDelete
    Replies
    1. 1. To fix Green Camera Problem :
      Replace first libcamdrv.so, libdpframework.so and check, if not success then replace libcameraservice.so from/lib.

      2. To fix Camera Focus Problem :
      replace system/lib/libcameraservice.so
      system/lib/libfeatureio.so

      3.If not work : also replace Camera2 Folder in system apps with your stock or from a working CM rom including all libs mentioned in above guide.

      IF a file not present just skip it,
      Replace xxxx with your soc,

      Delete
  59. Hey Plz Port Emotion Ui 3.1 for canvas spark all we need is same kernel 3.10.54 a lolipop rom 5.1.1
    U only have to port





    ReplyDelete
    Replies
    1. I am sorry porting rom's for specific devices each is not possible for us. because it takes time and without physical access, porting bugless rom's is quite impossible/very hard that's why we have provided guides here.

      Delete
  60. http://www.needrom.com/download/emotion-ui-3-1-lite-for-iqbig/
    This is website

    ReplyDelete
    Replies
    1. Referring to your below comment, please do not post your mobile number publicly, I will delete your below comment to remove your number, while quoting your message-

      "I don't know about boot.img porting so u can send the ported boot img as rename it a txt file than send me to whatsapp "removed" All other work i know and i will replace other files than i will maje compressed zip and flash Plz reply me Fast pl plz plz"

      As i mentioned earlier, porting roms for each device specific is not possible, most i can help you with how to decompile/extract Boot.img which is explained in this guide How to Port Boot.img This guide will show you how to extract/decompile boot.img rest you can read in this guide to know how to port lollipop/marshmallow roms

      IF you still face any bugs or errors while flashing rom you can feel free to ask.

      Delete
  61. This comment has been removed by a blog administrator.

    ReplyDelete
  62. How to fix camara bug and sound bug in emotion ui 3.1 in canvas spark Q380 when replacing the lib files get bootloop what to do plz suggest me

    ReplyDelete
    Replies
    1. Explain More about bugs.
      Is camera not working at all?
      And what do you mean by sound bug? Plug in your headphone and check if you can here sound through your headphones.

      1. About fixing Camera:- This issue already been covered in guide and also in comments. so read comments too. you will surely get it fixed.

      2. To Fix No Sound:-
      First try to replace only libaudio.primary.default.so
      If still dont work then replace all system/lib/libaudio...
      Also try to replace soundfx folder.

      Delete
  63. Your have any development group in what . if yes plz add me

    ReplyDelete
    Replies
    1. Sorry We dont have any group on whatsapp or anywhere else.

      Delete
  64. Emotion ui is bugless so i will port and it booted and have some bug so can i fix them ?

    ReplyDelete
    Replies
    1. Yes.
      If your port rom have bugs you will have same bugs in your ported rom.

      But If the port rom is bugless and you got some bugs after porting, you can easily fix them.

      Delete
  65. I have a problem, i cant find stock rom in internet but found firmware files which is installed via computer, i found a cm 12.1 rom of a device most specifications are same but how can i port it. I havnt any update script file . i have nanadroid backup of my system.so can i port system files from cm rom to nandroid backup??

    ReplyDelete
    Replies
    1. Actually I havnt any META-INF folder or update script.... so how can i port rom?? Can i put file(from port rom)into twrp backups file??? Backup have system folder in... So can i put into it??

      Delete
    2. You can use PORT Rom's META-INF folder, you'll just have to edit system mount points in updater-script according to your stock.

      1. Connect your device to pc View Your system mount points with the help of MTK Droid Tools,
      2. And then Edit the mount points in PORT rom.s updater-script.

      3. Then use system and boot.img from TWRP Backup of your stock rom.

      4. Replace files in PORT roms system folder from the system folder you got from your stock TWRP backup.

      5. and META-INF Folder from port rom which contain your edited updater-script.
      6. if you are porting LP or MM rom, port boot.img

      Thats it.

      Delete
    3. Thanks but i havnt any pc

      Delete
    4. I changed update script but when i flashing it in twrp, i get an error 6

      Delete
    5. Status error 6 means your text editor have messed up the updater script.

      Try 920 Text Editor

      Take a new untouched copy of updater-script from port rom and edit it again

      Delete
  66. bro i have a problem that i am porting resurrection remix 6.0 5.7.4 r79 for gionee p6(mt6582)..
    but it stucks at starting apps screen.And when i remove the battery then starts it again then it stucks at bootloop..plzz hekp me bro.

    ReplyDelete
    Replies
    1. Replace
      – /framework-res.apk/res/xml/storage_list.xml

      also replace
      – /bin/vold
      – /bin/sdcard
      if you haven't already

      Do a full wipe/factory reset then flash rom. if still stuck reboot to recovery and wipe/factory reset one more time then reboot. remember some roms take time on first boot so be patient and wait atleast 1/2hr+.

      Delete
  67. camera working
    but not auto focus
    please how to fix it ???

    ReplyDelete
    Replies
    1. Replace \system\lib\libfeatureo.so

      Delete
    2. when i do that
      can't connect to camera
      is there any file i should try it ?

      Delete
    3. From a working rom, replace all files related to camera, mentioned in the Above guide and This Guide

      Also replace Camera2 Folder From /system/apps

      If you are porting marshmallow rom then also replace lines under #Camera in boot.img - look under files starting with init.***
      look at this image for reference.

      Delete
  68. How to fix "Storage space running out
    Not enough storage for the system.
    Make sure you have 250mb of free space and restart." I have 2GB free storage & Can't Install any app

    ReplyDelete
    Replies
    1. Does your device have external storage? Or only internal?
      Does your device allow to install apps on external storage?

      .Clean up junk with SD maid
      .Remove unnecessary files.
      .Your last option is to resize system partition(risky).

      Delete
  69. Bro i have network problem that the networks gone when making calls..when i flashed rom then calls works but after reboot no networks when making calls...plzzz help...it's lollipop rom..snd can u give me your whatsapp no. Thnx

    ReplyDelete
    Replies
    1. What is your roms build number. this bug was in earlier builds of CM for MTK devices. So maybe try an earlier build or a different rom.

      Delete
  70. Hi Can anyone tell me how to fix Vibration bug in rom i can't find any solution !

    ReplyDelete
    Replies
    1. Replace all Aud And Audio Related files In Lib Folder and Hw Folder also...It will fix Vibration...

      Delete
    2. Also try libhardware_legacy.so.

      Delete
  71. bro i have ported cm 13 marshmallow rom but mobile data not switching i mean mobile data not turn on or not switch 3g to sim 2 how i fix it

    ReplyDelete
    Replies
    1. This was a bug in old cm builds. Try a newer build it has been fixed now.

      Delete
  72. I PORT LOS 13 AND GAPPS FIRST BOOT IS EAZY BOOT BUT SECOND BOOT STARTING APPS AND SCREEN GOS TO BLACK
    WHAT CAN I DO

    ReplyDelete
    Replies
    1. Did you flashed the correct Gapps? Sometime that is a Trouble.

      do a full wipe and flash rom, this time without gapps and see if the problem persist.

      Delete
  73. Video lagging...but the sounds keeps playing how to fix it? pls full instruction.

    ReplyDelete
    Replies
    1. That could be a video codec problem. try to fix that. or try a different video player.

      Delete
  74. How can i fix front camera flash bug ? and phone offline charging led all time on Bug ?

    ReplyDelete
  75. This comment has been removed by a blog administrator.

    ReplyDelete
  76. I love this post and the site, especially how they attend to people's problem...

    I literally came hear to learn how to port a ROm.
    My Phone is Tecno Y6 kitkat stock rom Mt6572 kernel 3.4.67
    and I have a custom rom Resurrection Remix (nougat) (Lineage OS )mt6572 thesame kernel 3.4.67

    Please I need a step by step guide on what files I should copy and replace and how to repack the boot.img so it won't boot loop.

    Thanks a I await in hearing from you
    Best regards

    ReplyDelete
    Replies
    1. Thanks for the nice words Zedkeil

      First i want to say if you have a kitkat stock than first you should port a lollipop rom. because it will be easier and if you directly try to port nougat you might face bugs which could be very hard to solve.
      and if its your first time porting an rom. I will suggest you start from basics by porting a kitkat to kitkat rom.
      You can read our guides for basic under standing of rom porting.

      mtk-rom-porting-guide-series

      Here is the guide for porting lollipop rom

      Port Lollipop/Marshmallow ROMs

      If you read the guides i've posted. (including all other guides from this blog) and understand the basic concept of porting.
      it will help you to understand which files are critical for system to boot and which are not.
      This will reduce the chances of bugs and will also help you to eliminate bugs.

      If you want to cut the crap and just get to porting ,here is the guide to port Nougat roms

      How to port Linage OS 14.1 Nougat MT65xx 3.4.67+

      And This guide will help you to port boot.img

      How to port boot.img


      And lastly about bootloops, bootloops are normal, i dont think there is someone who have ported his rom in the first go without any bootloops.
      even the most experience developers face bootloops, so its just fine.

      Most of the times there are some roms which just wont boot no matter what you do, but if you port another rom with the same method it boots fine.
      So it all just depends on experience and trial and error. The more you read and experiment, the more you will learn.

      Delete
    2. Thanks Mr. Alex
      It works perfectly, I successfully ported the Nougat Rom and a CM12.1 lollipop Hyperiod Custom Rom...

      But I face VPN and Storage Bug...

      My internal memory is unmounted, i cant see or access it but in recovery mode (Philz recovery) It can be mounted.

      Any help pls?

      Delete
    3. Some earlier roms had this bugs. try to find a later cm12 build. Later cm12 builds are bugless and very easy to port.

      Delete
  77. bro, help me my ported rom has successfully flashed! but the screen display is very small. i also change the lcd density stock to port and the default from the boot.img but not working. what should i do bro? please help me to publish this rom.

    ReplyDelete
    Replies
    1. Can you show some screenshots. how small is it. and also share stock and port roms build.props

      Delete
    2. Which method you followed for porting. as far as i remember you were porting mt6735 with 3.10.45 kernel right. if the guide is from this blog. you can share the link so it will help other users.

      Delete
  78. https://ibb.co/VTpgkh4
    This is the screen that I've been getting on almost every attempt at porting. Regardless of what tutorial I've done. The boot logo displayed and this shows up next when the OS is usually loading...then it goes through a boot loop and starts over. I've gone through step by step with at least 10 different tutorials. Some call for doing different things to the system and some different with the boot.img. Most of the time it'll install without the typical Error 7...occasionally I'll get that. But almost always I'll get this screen.

    ReplyDelete
    Replies
    1. And of course the screenshot doesn't show up.

      Delete

Disable_Adblock

We know Ads suck, but at IrisBuddies we will not let them do that
As blocking is a good idea to get rid of stupid “Download Now” Buttons around the web
That’s not in our case. We think you won't find Ads on Our site terrible or annoying
Support us by Whitelisting “IrisBuddies” on your Adblocking Plugin or By disabling your AdBlocking software

If you think this is not good and we should allow AdBlocking Plugins
then Please Contact Us or write us on our Facebook Page
and we might allow it in near future.