Richard Bruno
navigation
Home
admin









Samsung Galaxy S2 GT9100
May 7th, 2017

Quelques notes sur l'installation de CyanogenMod 13



Comme cela est indiqué sur les pages proposant des conseils de ce genre :
"je ne peux pas être tenu pour responsable des dommages que vous pouvez causer à votre téléphone !
Ces manipulations sont à vos risques et périls..."

Infos

sortie du Samsung Galaxy SII avec Android 2.3 : 2011
dernière mise à jour Samsung (Android 4.1.2) : 2013
sortie d’Android 6 : octobre 2015
mise à jour Android 6.0.1 : décembre 2015
dernière sortie de correctifs de sécurité : février 2016

Le disque de 16Go :

Sur les 16 GB, une partie est dédiée au système Android (512 M de base), une partie est dédiée à l’installation des applications (4 G je crois de base) et le reste (12G = USB Storage)… pour stocker vos données.


Aperçu général des manips

Installer heimdall et adb sur Ubuntu
Installer CWM Recovery
Retailler les partitions
Installer CyanogenMod

Téléchargements

CyanogenMod : [dernière version nightly (comprendre beta mais il n’existera jamais de version stable pour un téléphone non supporté officiellement par CyanogenMod) de CM 13 : http://download.cyanogenmod.org/?type=nightly&device=i9100
dernière version des Google Apps (aussi appelées Gapps) pour Android 6 : aller sur OpenGapps, choisir « ARM », « 6.0 », « nano » et cliquer sur la flèche rouge en bas.

heimdall

heimdall va permettre de flasher votre téléphone. Son installation sur Ubuntu se fait très simplement :

apt-get install heimdall-flash



adb

The Android Debug Bridge (adb) is a development tool that facilitates communication between an Android device and a personal computer. This communication is most often done over a USB cable, but Wi-Fi connections are also supported. adb can also be used by developers to communicate with a virtual android machine running on the computer.

Son installation sur Ubuntu se fait ainsi :

apt-get install android-tools-adb



Source : https://wiki.cyanogenmod.org/w/Doc:_adb_intro

Mode téléchargement

Put your phone into download mode by turning mobile off, then press volume down+home+power buttons together for few seconds. Press volume up key when prompted on the phone screen to continue in download mode. Connect your phone to computer. You’ll see one of the rectangular boxes in ODIN turned yellow indicating that the program has detected your phone.
Hit on PDA button and select Philz CWM Recovery file.


CWM Recovery

L'outil CWM Recovery va permettre de faire des manipulations de base sur votre téléphone : gestion des partitions/formatages/installations diverses...

Entrée dans le mode recovery : Eteignez le téléphone et démarrez-le en laissant les boutons Volume Bas + Power enfoncés jusqu’à arriver dans le menu du CWM recovery (ou un autre si vous avez installé autre chose auparavant).

Son installation se fait via le mode téléchargement de votre téléphone (cf ci-dessous).

Download Philz CWM Recovery for Galaxy S2 from here

On récupère un fichier zImage.

Son installation se fait ainsi grace à heimdall (cf ci-dessous) :
Passez le tel en mode téléchargement
Brancher le cable USB

heimdall flash --KERNEL zImage --no-reboot


Rebootez

Source : https://wiki.cyanogenmod.org/w/Install_CM_for_i9100#Installing_a_custom_recovery


Repartitionnnement du disque pour augmenter la taille de la partition système

Je n'ai pas utilisé les PIT (Partition Information Table) tt fait (en fait je n'ai pas réussi à les utiliser :-">, je refais donc le partitionnement à la main :

1. reboot to recovery, and connect your phone to your pc
2. run a command prompt and type the following (wait a little bit until the adb server starts on the phone, you can verify it by typing "adb devices" if you get a serie of digits then you're good to go (cf adb ci-dessous).


adb shell
parted /dev/block/mmcblock0



you'll get into the parted interactive shell, this is where serious work done

did i remind you to backup your system,
this is your last stop before the no back point
so you just might wanna "move" all your internal sd stuff to the external sd,
and backup your system to the external sd also
(you just need to restore the data partition afterwards the rest of the system is safe but who knows :p)

ps: you can do your backup on cwm without leaving adb shell on the pc just like you will do the format later thanks to cwm

You can see that /system which is labelled as FACTORYFS is only 512MiB
First of all print the current partitions before changing anything :

(parted) p
Model: MMC V3U00M (sd/mmc)
Disk /dev/block/mmcblk0: 15.8GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 4194kB 25.2MB 21.0MB ext4 EFS
2 25.2MB 26.5MB 1311kB SBL1
3 27.3MB 28.6MB 1311kB SBL2
4 29.4MB 37.7MB 8389kB PARAM
5 37.7MB 46.1MB 8389kB KERNEL
6 46.1MB 54.5MB 8389kB RECOVERY
7 54.5MB 159MB 105MB ext4 CACHE
8 159MB 176MB 16.8MB MODEM
9 176MB 713MB 537MB ext4 FACTORYFS
10 713MB 5008MB 4295MB ext4 DATAFS
11 5008MB 15.2GB 10.2GB UMS
12 15.2GB 15.8GB 537MB ext4 HIDDEN




remove the partitions


(parted) rm 9
(parted) rm 10
(parted) rm 11



Switch to units of bytes to make sure the layout is as exact as possible and create the new partitions, create the same 3 partitions but with 1GB for /system, 12.8GB for /data and a minimal 512MB for UMS or internal SD.

(parted) unit b

(parted) mkpart primary 176160768 1249902591
(parted) mkpart primary 1249902592 14680064511
(parted) mkpart primary 14680064512 15216934911

(parted) name 9 FACTORYFS
(parted) name 10 DATAFS
(parted) name 11 UMS



And finally a printout of the new layout, with 1G for /system, 12.8GB for /data and a minimal 512MB for the emulated SD card of UMS.

(parted) p
Model: MMC V3U00M (sd/mmc)
Disk /dev/block/mmcblk0: 15758000128B
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags

1 4194304B 25165823B 20971520B ext4 EFS
2 25165824B 26476543B 1310720B SBL1
3 27262976B 28573695B 1310720B SBL2
4 29360128B 37748735B 8388608B PARAM
5 37748736B 46137343B 8388608B KERNEL
6 46137344B 54525951B 8388608B RECOVERY
7 54525952B 159383551B 104857600B ext4 CACHE
8 159383552B 176160767B 16777216B MODEM
9 176160768B 1249902591B 1073741824B ext4 FACTORYFS
10 1249902592B 14680064511B 13430161920B DATAFS
11 14680064512B 15216934911B 536870400B UMS
12 15216934912B 15753805823B 536870912B ext4 HIDDEN



At this stage you need to reboot back to recovery mode and either format all partitions (/data, /cache, /system, /storage/sdcard0/)

Sources :
https://blog.night-shade.org.uk/2015/01/lollipop-on-the-galaxy-s2-stage-34-resizing-system/
http://forum.xda-developers.com/showthread.php?t=1887864


Installation de cyanogenMod 13

Make sure your computer has working adb.
Download the CyanogenMod build package for your device that you'd like to install to your computer.
Download 3rd party applications packages, like Google Apps which are necessary to download apps from Google Play.
Boot to recovery mode, and connect the phone to your computer through USB.
Select wipe data/factory reset.
Sideload method: select install zip > install zip from sideload.
avec adb :

adb sideload cm-13.0-20161102-NIGHTLY-i9100.zip
adb sideload open_gapps-arm-6.0-nano-20161104.zip



The installer does not necessarily display an "Install complete." message. You can tell the install is complete if there were no fatal error messages and you have regained control over the menu.

Once installation has finished, return to the main menu and select reboot system now. The device will now boot into CyanogenMod.

Source : https://wiki.cyanogenmod.org/w/Install_CM_for_i9100#Installing_CyanogenMod_from_recovery


Sources

https://wiki.cyanogenmod.org/w/Install_CM_for_i9100
http://www.parigotmanchot.fr/2016/02/11/android-a-jour-ou-comment-mon-samsung-galaxy-sii-vit-en-cyanogenmod/
http://www.parigotmanchot.fr/2015/12/17/mettre-a-jour-un-smartphone-de-2011-ou-pourquoi-samsung-fait-de-meilleurs-telephones-que-les-modeles-chinois/


Quelques notes sur l'installation de Lineage OS Nougat 7.1



1/ Téléchargement de l'OS : https://download.lineageos.org/i9100

2/ Téléchargement des gapps : http://opengapps.org/?download=true&arch=arm&api=7.1&variant=full

3/ Réinstallation CWM :
- Téléchargement : https://www.nonymous.fr/data/documents/recovery-clockwork-6.0.4.6-i9100.zip
- Installation (cf plus haut "CWM Recovery"

4/ Installation en mode sideload (cf ci-dessus "Installation de cyanogenMod 13")

Une bonne aide : https://www.nonymous.fr/article9/installation-de-cyanogenmod-sur-samsung-galaxy-s2-gt-i9100




Dernières modifs
Samsung Galaxy S2 GT9100 (May 7th, 2017)
Thèse (November 6th, 2016)
Baie Dell equallogic (October 18th, 2016)
Disques durs (October 18th, 2016)
Domotique (October 18th, 2016)
Imprimantes (October 18th, 2016)
Java (October 18th, 2016)

Contact
Pour m'envoyer un mail,
Pour me laisser un commentaire :
richard.brunooo
chez
gmail.com


powered by kure, modified by Bruno