Install Android 6.0.1 Marshmallow on Galaxy Mega 5.8 I9152 via CyanogenMod 13


Here’s a step-by-step guide that will help you install Android 6.0.1 Marshmallow on your Samsung Galaxy Mega 5.8 I9152 via CyanogenMod 13 custom ROM. Prior to the installation process, we’ll have a look on the importance of custom ROMs and Galaxy Mega’s 5.8’s software life.530201313624PM_635_Samsung_galaxy_mega_5

Custom ROMs have always proved to be a blessing for the Android smartphones that have been forgotten by the manufacturers in the software aspects. The reason for manufacturers to stop the software updates is the limitation of hardware. Old hardware is not capable enough to run the latest softwares all the time. Thus, to keep the device’s software intact, device manufacturers keep it to a certain version of OS and then discontinue its software support. One such unlucky device is Samsung’s Galaxy Mega I9152, It couldn’t see any further version of Android after Android 4.2.2 Jelly Bean. Galaxy Mega enjoyed the latest versions of Android by means of custom ROMs, so that’s how this device comes under the umbrella of blessings we just talked about a minute ago.

Galaxy Mega’s dual SIM variant I9152’s official software support was limited to Android 4.2.2 Jelly Bean as well. We’ve posted the guides to update your Galaxy Mega I9152 to Android KitKat and Android Lollipop earlier, now that the Android 6.0.1 Marshmallow in the form of CyanogenMod 13 is also out, so we are going to help you update to this latest and greatest version of custom Android OS now. Time for us to take you through the early preparations and then begin flashing the Android 6.0.1 Marshmallow with CyanogenMod 13 on Samsung Galaxy Mega I9152.

Note: This ROM is in early development stages and isn’t meant to be kept for every day use. You may install this ROM at your own risk. Proceed only if you know how to handle a mishap if it occurs after flashing this ROM. It is expected to carry a handful of bugs as long as the builds do not enter stable stage. It’s only good to give you a look and feel of Android 6.0.1 Marshmallow. As the new builds come up, we will update this post. Newbies have to be more careful and follow this guide to the letter.


  1. This ROM is intended for Galaxy Mega 5.8 I9152 . Do not try flashing this ROM on any other device otherwise you will result in bricking it. Check your device’s model number under settings > about device.
  2. Charge your phone up to 50% to avoid any power issues during the flashing process.
  3. Flash a custom recovery on your Galaxy Mega 5.8 I9152 .
  4. Backup everything including your important contacts, call logs and text messages.
  5. Don’t forget to create a Nandroid backup. This is highly recommended so that you can revert back to your previous system in case of a mishap.
  6. Backup EFS partition to avoid EFS corruption later on.
  7. Follow the instructions to the letter.


Install Android 6.0.1 Marshmallow on Galaxy Mega 5.8 I9152 via CyanogenMod 13

  1. Download TWRP Recovery with SELinux support for your Galaxy Mega 5.8.
  2. Download latest CyanogenMod file according to your device
    1. CyanogenMod 13 Android file
  3. Download [arm,] file for Android 6.0.1 Marshmallow.
  4. Connect your phone to your PC now.
  5. Copy all .zip files to the storage of your phone.
  6. Now disconnect your phone and turn it off complete.
  7. Boot into TWRP recovery now, in order to do so, turn it on by pressing and holding Volume Up + Home Button + Power Key. You should see the recovery mode in a while.
  8. Now in TWRP  recovery, wipe cache, factory data reset and advanced options > dalvik cache.
  9. After wiping all these three, select “Install” option.
  10. Now select “Install Zip >  Select twrp_v2.8.7.0…….zip file > Yes”.
  11. This will flash the SELinux supported TWRP on your Galaxy Mega 5.8 now. Now go back to main menu in TWRP Recovery and tap “Reboot > Recovery”. This will reboot into newly flashed TWRP on your Galaxy Mega 5.8 I9152 now.
  12. Now in the new recovery select “Install Zip >  Select cm-13.0…….zip file > Yes”.
  13. This will flash the ROM in your phone, once done get back to the main menu in recovery.
  14. Now once again select “Install > Select file > Yes”
  15. This will flash the Gapps in your phone.
  16. Reboot your device.
  17. You should see the Android 6.0.1 Marshmallow CyanogenMod 13.0 running on your device in a while.
  18. That’s all!

In order to enable root access on this ROM, go to settings > about device > tap the build number for 7 times. This will enable developer options on in settings. Now open developer options and enable root.

First boot may take up to 10 minutes, you may not worry if it’s taking that much long. In case it’s taking too long, you may boot into TWRP recovery and wipe cache and dalvik cache and reboot your device as it may fix the issue. In case your device is having issues, you may return to your old system using the Nandroid backup or follow our guide here to install stock firmware.

Got any queries? Reach us out through the comment box below.

SOURCEXDA Developers
Usama is a software engineer by profession and at he uses his expertise to solve everyday consumer tech problems with his main areas of interest being Android, iOS and Windows.


    • Hey, care to give some help? When I press button Up+home+power, it asks if I want to update, but then It goes to a screen with a android logo saying “downloading do not turn off target”, but I’m not able to load anything. Otherwise if I press button DOWN+home+power, it goes to a screen where I can factory reset it and clear cashe … But no instruction to recovery or install zip … Please Help me man!

  1. Hey, care to give some help? When I press button Up+home+power, it asks if I want to update, but then It goes to a screen with a android logo saying “downloading do not turn off target”, but I’m not able to load anything. Otherwise if I press button DOWN+home+power, it goes to a screen where I can factory reset it and clear cashe … But no instruction to recovery or install zip … Please Help!

  2. @disqus_pK7PESGCPl:disqus you’re trying to flash firmware without custom recovery. Please read the installation instructions as it tells you to flash a custom recovery first. Good luck.

    • Hi, It was not clear how to initiate the TWRP on the boot screen. For those noobs like me, I had to install Odinv3 on my PC and Flash the TWRP data into the phone. After that I could, through the button combination, access the recovery custom and flash the ROM with the TWRP tool. AND I’M LOVING ANDROID 6 !!!

  3. What do they mean by [arm,] for step 3? I downloaded the Platform: Arm
    Android: 6.0
    Variant: Stock
    Is it correct? I don’t understand what do you mean by that.

  4. so you said to factory reset and then install the zip, but doesnt it means all the data inside sotrage will be formatted? cause, yeah when I try to install CM theres nothing in it

  5. An one more,i download the twrp from the offcial site, so is there any difference with f2fs version from yours?

    • @darkzou:disqus The TWRP linked above is modified for this device. If the recovery’s latest version is available on the official site, it will work. If the version linked on the site is old, I can’t be sure about that.

  6. Bug en la bateria, llega al 50& y se apaga, ¿como puedo solucionarlo? ya intente calibrando y sigue igual, ayuda por favor.

  7. Download [arm,] file for Android 6.0.1 Marshmallow.

    This one never works for me, always stuck and ends with failure download on every 200mb progress..
    any suggestion?

  8. i have downloaded the TWRP and cm13.. all done. i updated my 4.2.2 to 6.0.1 but i’m facing 1 prblm that is absence of google play service.
    i tried many times to download gapps but it didnt work. now evrytym a mssg on d screen appears “this gapp service stopped” “that service stopped” now what i shld do. plzzzz suggest

  9. please suggest something what to do from here… i cant install gapps in my phone
    its always showing error msg that google service has been stopped.

  10. Everything went smoothly but in the setup wizard I enter my google account credentials, it says Verifying, I get a prompt in my other phone to unlock, I approve the Sign in, the wizard exits… nothing

Got a question/query or a suggestion? Drop it below.