Flashing cyanogenmod for dummies: Avoid (un)common problems

By kidde on Thursday 17 September 2015 12:00 - Comments (18)
Categories: Cyanogenmod, Dummies, Howto, Instructions, Lollipop, Smartphone, TWRP, Views: 4.547

===Work in progress - not finished yet ===

My smartphone is a ZTE Nubia Z5S Mini. Recently I installed Cyanogenmod 12.1. I made a lot of stupid mistakes. Reasons I made mistakes:
  1. Not all information I needed is on one website
  2. Information is not complete
  3. Steps are not explained
  4. I did stupid things
I will try to explain some steps. Also, I will list (un)common problems I hope, if you install Cyanogenmod, this can help you understand what you need to do and why. This work instruction is not complete. It is extra information which is not on other websites. This is the information which I would have needed to prevent my mistakes.

Disclaimer:
• This is not the only way to install Cyanogenmod.
• Maybe this is not the best way to install Cyanogenmod.
However, this method worked for me to install Cyanogenmod on my ZTE Nubia Z5S Mini.


Warning: Be ware of scamming sites! If any website or download looks like a scam, suspect, or you have to answer stupid questions before downloading, close the website and delete any downloads!

  • Before: Smartphone with Android.
  • After: Smartphone with Cyanogenmod.
  • Time needed: 1-5 hours.
  • Parts needed:
    • Smartphone with Android
    • PC with internet connection and with Windows or Linux
    • USB cable to connect PC to smartphone


Steps:
  1. You need to have time. If you used Titanium Backup, then after installing Cyanogenmod, you have to restore apps and settings form your backup. If you don't use a backup, you have to install your apps again, After that, you have to do your settings and configuration again. Write down on paper any important settings, like:
    1. WiFi name (SSID) and password, or:
    2. Mobile data settings, at least APN, Proxy,user name, password if neccesary, MNC, MCC , authentication type
  2. Write down on paper, a list of apps installed on your phone. This can be useful if autosync doesn't work, if you don't use a backup or if you just want to reinstall all apps manually.
  3. If your phone is not rooted, root your phone. Without root, you cannot fully control your smartphone. You need to be able to control everything to install Cyanogenmod. My phone was already rooted when bought. Not all root-programs work on the Z5S Mini. I would recommend SuperSU. You can find it here. To root, the zip-file has to be placed on the SD-Card of your smartphone. After that, you have to install the zip file on your smartphone using a Recovery program. If you are not familiar with a Recovery-program, read on. It is explained below.
  4. Charge the battery of the smartphone
  5. Backup your data. I used Titanium backup * root. You need root for this. When installing Cyanogenmod, your SD card will not be overwritten. You can store a backup on your SD.
  6. Read several instructions on the internet on how to flash Cyanogenmod. If you have the feeling you understand the steps, you can start.
  7. Download necessary software. You need:
    • A "Recovery" progam. There are 2 different popular "Recovery" programs: Clockworkmod or TWRP. I used TWRP. A "Recovery" program is a small, Android-based environment apart from and parallel to the main Android operating system. You boot to this "Recovery" program instead of booting the normal operating system. From Recovery, you can install Cyanogenmod and Google Apps
    • Cyanogenmod zip-file for your smartphone model. For the Z5S mini download Cyanogenmod 12.1 here. Note: Model NX403A only! Different smartphones have different versions of Cyanogenmod.
    • Google Apps zip file

      I used the website NeedRom.com for this. You need to make a free login to download their files.
  8. Move files to your SD card. Remember the location where they are stored. You will need this location later.
  9. Don't forget to enable USB debugging mode! Otherwise it will not work. On your Z5S Mini, go to settings, about phone and push "Build number" 7 times.
  10. Install the program "Android Debugging Bridge" (ADB) on your PC and "fastboot". Installation instructions and download here.You need "fastboot" to change the boot instructions of your phone. "fastboot" will change your phone so that it can boot the "Recovery" program instead of the main operating system.
  11. Install the correct smartphone-drivers on your PC. I used the universal drivers from XDA. (Thanks Tiger79 for the reminding me of this step)
  12. Start ADB on the PC. Connect the smartphone to the PC using the USB cable. Make sure ADB finds your phone.
  13. Use "fastboot" to "push" the Recovery-program from your PC to your phone. This will upload the Recovery program from your PC to your phone, For me, "fastboot" didn't work on Linux. But if you want to try, instructions are here. I used Windows. My TWRP version is 2.8.6.1. Older 2.7.x.x versions don't work with Cyanogenmod 12! Please note, your Z5S Mini will show a white screen. Don't think your phone hangs and remove the battery! The white screen is normal.
  14. Install the Recovery program
  15. If the Recovery program is not in your language: Install an alternative skin of your Recovery program. For example, TWRP can be in Chinese and the skin can be in English. Don't forget to make the folder " theme"! If your skin-file is not called "ui.zip", rename it to "ui.zip". Put the file "ui.zip" in this "theme" folder.
  16. Use a special key combination to boot into the Recovery program (TWRP in this case). For the Z5S mini, the combination is "Volume up" and "Power" at the same time for several seconds.
  17. Use the Recovery program to wipe / delete certain parts of Android. Push Wipe -> Advanced Wipe. Check the box: "Dalvik Cache". Then swipe to wipe.
  18. Use the Recovery program to install Cyanogenmod from the zip file
  19. In TWRP, go to "Install". Find your Cyanogenmod zip file. This step can take more than 30 minutes.
  20. Use the Recovery program to install Google Apps
  21. Boot Cyanogenmod
  22. Update Cyanogenmod. From the CyanogenMod Website: Go to "Settings" and then under About this [device], you should see a menu for checking for and installing updates.
  23. Connect to WiFi using your password, or connect to wireless data.
  24. Login to Google Play
    • Restore your apps from SD if you used Titanium Backup
    • If Google's autosync doesn't automatically install your apps, reinstall your apps manually. Thanks Tiger79 for remark
  25. Reconfigure your apps
  26. Password / gesture can be found under Settings / Lock screen

Volgende: Google NS(Pl)A(y) services 09-'15 Google NS(Pl)A(y) services

Comments


By Tweakers user thefal, Thursday 17 September 2015 12:55

I think you have to replace bootloader with Recovery ;)

By Tweakers user Kaalus, Thursday 17 September 2015 13:03

thefal wrote on Thursday 17 September 2015 @ 12:55:
I think you have to replace bootloader with Recovery ;)
Yup, replacing the bootloader should only be done when neccesary and should not be a part of a normal flashing routine.
Also, you don't have to be root to flash your phone. Lots of phones and tablets can be flashed bij only unlocking the bootloader and then load custom images on it through fastboot or recovery.

By Tweakers user Fairy, Thursday 17 September 2015 13:56

Not all information I needed is on one website

Better:
Not all information I needed was provided through one website.

[Comment edited on Thursday 17 September 2015 13:56]


By Tweakers user Jogai, Thursday 17 September 2015 13:56

Not all information I needed is one one website
This work instruction is not complete
You could have solved problemn #1

Titanium backup can backup wifi profiles, apn's and (data of) apps. That way you dont have to write anything on paper. Google tracks also your apps that you install, so there is a list for reference too: https://play.google.com/apps (filterable per device).

By Tweakers user xFeverr, Thursday 17 September 2015 14:43

Ik snap nou echt gewoon niet waarom je op een volledig 100% Nederlandstalig medium die 100% gericht is op Nederlanders en Belgen zaken in een andere taal gaat posten dan de voertaal is. Of ligt het nou aan mij?

Je kan toch veel beter een blog aanmaken op Blogger oid. dan op een puur Nederlandse site met blogfunctionaliteit?

By Tweakers user TIGER79, Thursday 17 September 2015 14:49

between steps 9 and 10 you should install the correct smartphone-drivers on your PC...
Step 15 : not certain parts, what you really want to make sure of is that you whipe the dalvik cache !
And like others mentioned : you don't really need to write anything down (ok, with the exception of the SSID and password for your wifi network), apps will be downloaded right away after you have entered your google account on the new installation, and otherwise you can reinstall them using any backup app...
To be honest your checlist as is is not complete nor completely correct...

By Tweakers user Jeroenneman, Thursday 17 September 2015 15:40

xFeverr wrote on Thursday 17 September 2015 @ 14:43:
Ik snap nou echt gewoon niet waarom je op een volledig 100% Nederlandstalig medium die 100% gericht is op Nederlanders en Belgen zaken in een andere taal gaat posten dan de voertaal is. Of ligt het nou aan mij?

Je kan toch veel beter een blog aanmaken op Blogger oid. dan op een puur Nederlandse site met blogfunctionaliteit?
Waarom hebben de meeste Tweakers hun systeem toch op Engels staan?

Omdat probleem oplossing zo veel makkelijker gaat. Waarom zou je Nederlandse ROM instructeurs nodig hebben? Alle info is toch in het Engels, dus logisch dat je dan ook in het Engels doorgaat.

By Tweakers user kidde, Thursday 17 September 2015 17:15

Thanks for the feedback, I messed up with setting the "publishing time" of my blog before I finished the article.

Replacing the bootloader was needed, I guess, as my "stock" bootloader (maybe the one installed by the Chinese Alibaba webshop?) was not able to install Cyanogenmod 12.1 on Z5S mini. IIRC Clockworkmod also wasn't able to do this.

By Tweakers user kidde, Thursday 17 September 2015 17:19

xFeverr wrote on Thursday 17 September 2015 @ 14:43:
Ik snap nou echt gewoon niet waarom je op een volledig 100% Nederlandstalig medium die 100% gericht is op Nederlanders en Belgen zaken in een andere taal gaat posten dan de voertaal is. Of ligt het nou aan mij?

Je kan toch veel beter een blog aanmaken op Blogger oid. dan op een puur Nederlandse site met blogfunctionaliteit?
Misschien wel, het gaat erom dat de info over het flashen van Cyanogenmod 12 op een Z5S echt naadje was. De enige website waar die info opstond was een scam-site. Engelse info op een Tweakblog is beter dan helemaal geen Engelse info. Google zal Tweakblogs ook vast wel indexeren, en een Rus of Italiaan die dit Engelse blog vindt zal het echt aan zijn / haar derniere oxideren dat dit op een Nederlandstalige wesite staat.

By Tweakers user kidde, Thursday 17 September 2015 17:23

Jogai wrote on Thursday 17 September 2015 @ 13:56:
[...]


[...]

You could have solved problemn #1

Titanium backup can backup wifi profiles, apn's and (data of) apps. That way you dont have to write anything on paper. Google tracks also your apps that you install, so there is a list for reference too: https://play.google.com/apps (filterable per device).
But how will you install Titanium Backup to recover those profiles on your new Cyanogenmod? Cyanogenmod-images mostly come without Titanium Backup pre-installed. I thought you need wireless first, to install Titanium, or am I missing something?

By Tweakers user i-chat, Thursday 17 September 2015 17:28

ook een zeer belangrijke is schrijf je internet (apn) settings over, soms gaat dat nog wel eens mis met alternatieve roms of proberen ze behulpzaam te zijn en je een apn voor te schotelen die 5jaar geleden vast zal hebben gewerkt maar nu iig niet (meer). die setting is echt vele malen belangrijker dan app settings...

By Tweakers user kidde, Thursday 17 September 2015 17:56

i-chat wrote on Thursday 17 September 2015 @ 17:28:
ook een zeer belangrijke is schrijf je internet (apn) settings over, ...
Dat bedoelde ik bij stap 1b. Ik zal het verduidelijken.

By Tweakers user Jogai, Thursday 17 September 2015 20:13

kidde wrote on Thursday 17 September 2015 @ 17:23:
[...]


But how will you install Titanium Backup to recover those profiles on your new Cyanogenmod? Cyanogenmod-images mostly come without Titanium Backup pre-installed. I thought you need wireless first, to install Titanium, or am I missing something?
You download titanium backup from the official site beforehand.

By Tweakers user i-chat, Thursday 17 September 2015 20:25

kidde wrote on Thursday 17 September 2015 @ 17:56:
[...]


Dat bedoelde ik bij stap 1b. Ik zal het verduidelijken.
dan zou ik hem nog eens verbeteren, "Wireless data configuration" ... wireless (defacto standaard) ziet men als wireless internet aka wifi aka iee 802.11 a/b/g/n/ac de correcte (defacto) naamstandaard van wat jij bedoeld is 'mobile data settings' .... waar 'mobile' mobiele telefonie netwerken suggereerd (2g 3g 4g), en 'data' .... internet diensten over die netwerken... zoals gprs / hsdpa en lte

[Comment edited on Thursday 17 September 2015 20:27]


By Tweakers user kidde, Thursday 17 September 2015 22:37

i-chat wrote on Thursday 17 September 2015 @ 20:25:
[...]
correcte (defacto) naamstandaard van wat jij bedoeld is 'mobile data settings' ....
Eens, verwerkt en bedankt.

By Tweakers user kidde, Thursday 17 September 2015 23:29

thefal wrote on Thursday 17 September 2015 @ 12:55:
I think you have to replace bootloader with Recovery ;)
Correct, fixed and thanks for feedback. TWRP resembles GRUB 2 being half a full fledges OS almost, that's why this has been confusing me. I think GRUB 2 is to blame ;)

By Tweakers user BaRF, Friday 18 September 2015 09:26

Jeroenneman wrote on Thursday 17 September 2015 @ 15:40:
[...]


Waarom hebben de meeste Tweakers hun systeem toch op Engels staan?

Omdat probleem oplossing zo veel makkelijker gaat. Waarom zou je Nederlandse ROM instructeurs nodig hebben? Alle info is toch in het Engels, dus logisch dat je dan ook in het Engels doorgaat.
Er zijn ook mensen die niet zo goed zijn in (technisch) engels. Hoe fijn zou het zijn als DIE mensen ook eens een goede tutorial konden vinden? ;)

Ik ben het er mee eens hoor, Engelstalige blogs op tweakers is mijns inziens maar onzin :)

Voor de rest wel hulde dat kidde in elk geval de moeite doet om dit te noteren voor anderen!

By Tweakers user anti-rsca, Friday 18 September 2015 15:10

Mooie blog! Bedankt voor de uiteenzetting!

Comments are closed