[GUIDE] How to install CM11 on S4 mini, quick/small guide

Your opinion about the guide?

  • Good guide, flashed CM11 successfully.

    Votes: 8 50.0%
  • Bad guide, didn't flash CM11 successfully.

    Votes: 1 6.3%
  • Don't mind me, just voting for no reason..

    Votes: 7 43.8%

  • Total voters
    16

leripe

Senior Member
Mar 18, 2012
1,514
889
0
How to install CM11 on official international S4 mini LTE(serranoltexx) and 3G(serrano3gxx) variants only:


  • Don't use this guide for any other variants of S4 Mini.
  • M-releases and Snapshots are NOT upgrades to NIGHTLIES! Nightlies are always newer and more up to date than M-releases or Snapshots! "Upgrading" to snapshot from nightly can cause any number of problems. (More info about snapshots in the notes).
  • Check the notes below before doing anything or asking anything, if it already answers your question, thanks!

  • Root and install using ONLY CWM recovery (latest version is 6.0.5.1) and the guides in these threads:
    Available here: [RECOVERY][ROOT] Samsung Galaxy S4 Mini LTE (GT-I9195)
    Available here: [RECOVERY][ROOT] Samsung Galaxy S4 Mini 3G (GT-I9190)

  • Download the CM11 rom file for your device from http://get.cm/?device=serranoltexx or http://get.cm/?device=serrano3gxx and copy the file you downloaded into your sdcard(external or internal) along with the
    Google Applications(gapps-kk-20140606-signed.zip for Android 4.4.3+ / CM11, also ART compatible) (Optional, but recommended) (goo.im is not yet listing kitkat gapps) (also the gapps is only for 4.4.3 and up so it's for nightly roms).

  • Boot into CWM (Vol Up + Home just as the phone is booting up, navigate using Vol buttons, HOME to select, POWER to back).
  • Make a backup of your NANDroid (Optional, but recommended - Do this so you can return to your previous ROM).
  • Select "wipe data/factory reset" and press Yes. (This also wipes cache and dalvik cache.)
  • Go to Install zip from sdcard -> Choose zip from /sdcard, which you have put the rom file on (sdcard/ is internal and sdcard1/ is external).
  • Browse to it and flash the cm-11-2014xxxx-XXXX-serranoltexx/3gxx.zip file FIRST (nightly / M1 / RC / stable) by selecting and pressing Yes.
  • Then flash the gapps file like you just flashed the rom file. (Optional, but recommended).



Notes:


  • Moved this guide to here to save space from CM11 bug discussion thread.

  • This can brick your device, void your warranty and kill your cat if you don't follow the guides to the letter or you use these guides for the wrong S4 Mini variants like GT-I9192, Sprint(JDQ39.L520 or SPH-L520), SHV-E370K, SGH-I257M, SCH-R890, GT-I9195T and GT-I9197 etc.. These other variants aren't officially supported, but if you want to root them etc. search other threads from these S4 Mini forums for guides.

  • You can save the files either to internal or external sdcard. sdcard/ is internal and sdcard1/ is external.
  • Factory reset also wipes cache and dalvik cache.
  • Factory reset wipes data, but it doesn't wipe your internal sdcard (or external). Only data stuff like apps, settings for a rom etc., example pictures and other media stuff are saved.
  • When you flash a rom, the flashing script formats /system before flashing the rom.
  • If you download the rom files with phone the default path for the files in CWM recovery is: Install zip from sdcard -> Choose zip from /sdcard -> 0/ -> Download/.
  • Check this thread for more info about rooting and stuff related on CWM.

  • On the CWM install guide there's a step "10: Optional: Flash GT-I9195_Kernel_v1.zip to use a custom stock kernel, which might fix battery drain for some." This kernel is only for the stock samsung rom and not for CM11.
  • On the CWM install guide there's a S4Mini_RootKit_v2.zip, it's meant for stock samsung rom and not for CM11.

  • Upgrading to newer nightly: You can just flash it over the old one, but it's highly recommend to always backup before flashing newer nightly. Also some people like to wipe cache and dalvik cache before flashing newer one, but it's not necessary.
  • If you want the latest CWM recovery updates to be installed at the same time you update to newer nightly, unlock developer options by tapping build number 10times from About phone settings and then tick the Update CM recovery option on from the developer options.

  • M-releases and Snapshots are NOT upgrades to NIGHTLIES! Nightlies are always newer and more up to date than M-releases or Snapshots! "Upgrading" to snapshot from nightly can cause any number of problems.
    - If you want to use snapshots/m-releases, don't use nightlies at all! (and the other way around.)
    - If you want to switch from nightlies to snapshots, always FULL WIPE.
    - If you want to switcht from snapshots to nightlies, no need to full wipe.

  • Root and root app is integrated into CM11 rom, so you don't need to flash rootkit or install superuser app.
  • CWM aka ClockworkMod is the official Cyanogenmod recovery and the only one I recommend using.
  • CM aka Cyanogenmod.
  • The number 11 of CM tells which android version it's based on. CM11 is based on android 4.4.x KitKat, which is the latest one.

  • If you get warnings about applications doing not permitted actions, delete the following files from system/app, or let SuperSU fix it for you. KNOXAgent.apk, KNOXStore.apk and ContainerAgent.apk.
  • "Set Warranty Bit kernel" message means that your warranty is void depending on the country where you live (In EU it might still be under warranty, USA not. For others google). This happened because you had KNOX firmware installed on your phone when you bought it or you got one when you upgraded your stock rom. This can not be reseted yet.
  • What is knox?

  • (Not recommended at the moment, has bugs, date 3 aug 2014) Recommended app when using nightlies: For downloading smaller updates instead of whole nightlies, check CyanDelta updater app.
  • Recommended app when using nightlies: For making nandroid backups without booting to recovery, check this app (also has pro version).
 
Last edited:

leripe

Senior Member
Mar 18, 2012
1,514
889
0
Thanks for this tutorial.
When saying sd card, do you mean ext sd card? noob here sry

Sent from my GT-I9195 using xda app-developers app
It doesn't really matter. I would prefer external but you can try both if one of them doesn't work.
 

Weekend'

Senior Member
Jan 24, 2014
93
9
0
It doesn't really matter. I would prefer external but you can try both if one of them doesn't work.
Okay awesome.
Two last questions before I do it:
Is it possible to get a hardbrick if I mess up?
Dont you have to wipe cache?

Thanks.

Sent from my GT-I9195 using xda app-developers app
 
  • Like
Reactions: leripe

leripe

Senior Member
Mar 18, 2012
1,514
889
0
Of course there's always a chance if you don't follow the guides or flash wrong stuff for wrong device. But with these guides and the right models, there's really no chance of it.
Anyhow flashing is always at your own risk so you can only blame yourself if your flashing kills your cat.
 

Weekend'

Senior Member
Jan 24, 2014
93
9
0
On other tutorials it says you have to wipe cache and Delvik cache. Is that optional=?
+ I downloaded the nightly version and gapps over my phone. Can i leave them in the download folder or will they be gone after data wipe?
Sent from my GT-I9195 using xda app-developers app
 
  • Like
Reactions: leripe

leripe

Senior Member
Mar 18, 2012
1,514
889
0
On other tutorials it says you have to wipe cache and Delvik cache. Is that optional=?
+ I downloaded the nightly version and gapps over my phone. Can i leave them in the download folder or will they be gone after data wipe?
Sent from my GT-I9195 using xda app-developers app
Select "wipe data/factory reset" and press Yes.
Go to Mounts and storage, Select format /system and press Yes.
Factory reset also wipes cache and you can also wipe the dalvik too.

No they won't be, data wipe doesn't wipe your internal sdcard. Only data stuff like apps, settings for a rom etc., example pictures and other media stuff are saved.

Edit: Thanks for you questions, now I have added answers to them into the FAQ so I don't have to answer these again and now the guide is even better :)
 
Last edited:

leripe

Senior Member
Mar 18, 2012
1,514
889
0
Is it normal for the reboot to take 30-45 minuts?

Sent from my GT-I9195 using xda app-developers app
No. You are probably bootlooping, suggest you recover your backup and try boot with it or flash newer/earlier nightly.
Check this thread's 1st post and the latest posts for info if some new nightly causes bootloops. Example 14th nightly caused bootloop.
 

Weekend'

Senior Member
Jan 24, 2014
93
9
0
No. You are probably bootlooping, suggest you recover your backup and try boot with it or flash newer/earlier nightly.
Check this thread's 1st post and the latest posts for info if some new nightly causes bootloops. Example 14th nightly caused bootloop.
Weird, because I did everything as you said.
Should I try again and download it with my pc and put it then on my sd card and/or wipe cache partition?

Sent from my GT-I9195 using xda app-developers app
 

leripe

Senior Member
Mar 18, 2012
1,514
889
0
Weird, because I did everything as you said.
Should I try again and download it with my pc and put it then on my sd card and/or wipe cache partition?

Sent from my GT-I9195 using xda app-developers app
Which nightly did you flash?
Also tell me your full basedband version from about phone settings if you currently can.
 

ccc1988

Member
Mar 19, 2014
14
0
0
I was wondering. I just rooted my S4 mini following the tutorial suggested in the first post. http://forum.xda-developers.com/showthread.php?t=2364980

It gives a step 10: Optional: Flash GT-I9195_Kernel_v1.zip to use a custom stock kernel, which might fix battery drain for some.
Kernel changelog: https://github.com/arco/android_kern.../commits/stock

So what I want to ask: I want to install CM11, but experiencing little battery drainage from time to time. Should I first install GT-I9195_Kernel_v1.zip and then CM11 mod or not?