Springe zum Hauptinhalt

Install CyanogenMod on S3 mini using Linux

It­'s ea­sy, on­ce you know how to

I'm still a smar­t­-­pho­ne­-­a­voi­der (most­ly be­cau­se Goo­gle and most the others are ob­ser­ving user­s). But I feel the need to get know­n, what can be do­ne with An­dro­id whi­le not ha­ving Goo­gle­-­Apps and other sur­veil­lan­ce in­stal­le­d. So I got hand on a Sam­sung S3 mi­ni (G­T­-­I8190) for tes­ting. Well, the mi­ni is not such a good choi­ce, as it is not of­fi­ci­al­ly sup­por­ted by Cya­no­gen­Mo­d.

It took me some hours to fidd­le out, how to in­stall the cu­stom ROMS. The of­fi­ci­al web­si­te for the un­of­fi­ci­al port was not much of a hel­p: The tu­to­ri­a­ls are tal­king about "JO­din3" – which re­qui­res a ne­wer ver­si­on of Ja­va than I ha­ve in­stal­led – and hin­ts or in­struc­ti­ons for other me­thods are frag­ments on­ly.

So here is, how it wor­ked for me:

  • First pre­pa­­re the pho­­ne

    Ple­a­­se no­te: I did not care for the da­ta on the pho­­ne. If you do, I stron­­gly sug­­gest ma­king a ba­ck­up first.

  • Fac­to­ry re­­set the pho­­ne

  • Get heim­dall, a uti­­li­­ty to flash fir­m­­wa­re (a­­ka ROMs) on­to Sam­­sung Ga­la­xy S de­vi­ces. For me ver­­­si­on 1.4.0 (re­le­a­­sed Ju­­ne 2013) wor­ked fi­­ne – it was al­rea­dy in­­clu­­ded in my Li­­nux dis­tri­­bu­ti­o­n. The GUI fron­t­end sho­wed to be of no big hel­p, as the ar­chi­­ves do not con­tain the re­­qui­red fir­m­­wa­re.xml file.

  • Dow­n­load the image­­-­­a­r­chi­­ve for "o­­din"  (for me it­­'S be­en cm11.0_­­gol­­den.no­va.20140707.O­­DIN_T­WR­P.­­zip, with "ODIN_T­WRP" being the im­­por­t­ant pa­r­t. This zip­­-­­a­r­chi­­ve con­tains a *.ta­r.m­d5 (sic!) fi­le, which itself con­tains *re­­co­­ve­r­y.img, boot.img and sys­tem.img.

    TWRP stands for the team­win re­­co­­ve­ry tool. It may not be re­­qui­red for in­­­sta­l­­ling Cya­no­­gen­­Mod on the S3 mi­­ni, but it­­'s much ea­­sier to use than the stan­dard re­­co­­ve­ry tool.

  • Ex­tract the zip­-­a­r­chi­ve and the con­tai­ned .ta­r.m­d5:

    unzip cm11.0_golden.nova.20140707.ODIN_TWRP.zip
    tar xf cm11.0_golden.nova.20140707.ODIN_TWRP.tar.md5
  • Turn off the pho­­ne, and then press the VOL- & HOME & POW­ER but­tons com­­bi­na­ti­on to get in­­to the Dow­n­loa­d­­-­­­mo­­de.

  • Connect the pho­ne to you com­pu­ter (if not al­rea­dy do­ne :-) and use the­se com­man­ds to get a list of par­ti­ti­ons (I as­s­u­me) from the pho­ne.:

    heimdall download-pit --output $PITFILE
    heimdall print-pit --file $PITFILE 2>&1 \
    | grep -iE -B1 'Partition Name|Flash Filename' \
    | less
  • In this list, spot re­co­ve­r­y.img, boot.img and sys­tem.img. For me this con­tains:

    File Size (Obsolete): 0
    Partition Name: Kernel
    Flash Filename: boot.img
    File Size (Obsolete): 0
    Partition Name: Kernel2
    Flash Filename: recovery.img
    File Size (Obsolete): 0
    Partition Name: SYSTEM
    Flash Filename: system.img
  • Now flash the images on­to the pho­ne. Mind to ad­opt the par­ti­ti­on na­mes li­ke --­Ker­nel to the ones you got in the list abo­ve.:

    heimdall flash --Kernel boot.img --Kernel2 recovery.img --SYSTEM system.img

    You can lea­ve of the re­co­ve­ry image if you don­'t li­ke team­win. But it speeds up things on­ly a few se­conds.

  • Re­­boot the pho­­ne (it it does not au­to­­ma­ti­­ca­l­­ly) and wait un­­til boots com­ple­te­­ly. This may take 2 mi­­nu­tes or so.

  • En­­joy!

Portrait von Hartmut Goebel

Hartmut Goebel

Diplom-Informatiker, CISSP, CSSLP, ISO 27001 Lead Implementer

Haben Sie noch Fragen?
Anruf oder Mail genügt:
  +49 871 6606-318
  +49 175 29 78 072