doc:appunti:hardware:samsung_galaxy_s4
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| doc:appunti:hardware:samsung_galaxy_s4 [2019/09/16 15:25] – [Bootloader, baseband firmware, ROM, etc.] niccolo | doc:appunti:hardware:samsung_galaxy_s4 [2019/09/17 09:56] (current) – [Backup other data] niccolo | ||
|---|---|---|---|
| Line 137: | Line 137: | ||
| After removing the above apps I still see from the Play Store what apps I installed should be upgraded. Indeed - almost certainly - the **Samsung Firmware Update Over The Air** (FOTA) are disabled, which is not so bad. | After removing the above apps I still see from the Play Store what apps I installed should be upgraded. Indeed - almost certainly - the **Samsung Firmware Update Over The Air** (FOTA) are disabled, which is not so bad. | ||
| + | |||
| ===== Special codes ===== | ===== Special codes ===== | ||
| Line 147: | Line 148: | ||
| ===== CyanogenMod ===== | ===== CyanogenMod ===== | ||
| + | |||
| + | :!: **This paragraph is obsolete**. It is preferable to install LineageOS instead of CyanogenMod, | ||
| After more than one year of random freeze we decided to give-up with Samsung software: too much bloated, too much instable. There are some unofficial ports of **[[http:// | After more than one year of random freeze we decided to give-up with Samsung software: too much bloated, too much instable. There are some unofficial ports of **[[http:// | ||
| Line 167: | Line 170: | ||
| ==== Backup other data ==== | ==== Backup other data ==== | ||
| - | The modem firmware can reasonably be called your // | + | The modem firmware can reasonably be called your // |
| - | ^ Partition | + | ^ Partition |
| - | ^ modem.bin | + | ^ modem.bin |
| - | ^ NON-HLOS.bin | + | ^ NON-HLOS.bin |
| - | ^ EFS | Radio signal info, IMEI, ... | Saved by TWRP Recovery backup. | + | ^ EFS | Radio signal info, IMEI, ... |
| ==== Flashing CyanogenMod ==== | ==== Flashing CyanogenMod ==== | ||
| Line 199: | Line 202: | ||
| It seems the same problem reported in this post: [[https:// | It seems the same problem reported in this post: [[https:// | ||
| - | ===== LineageOS ===== | ||
| - | |||
| - | Dopo la chiusura del progetto [[wp> | ||
| - | |||
| - | Abbiamo provato la versione **lineage-14.1-20170121-UNOFFICIAL-jfvelte** che si basa sul **Android 7.1 Nougat**. | ||
| - | |||
| - | **Il primo tentativo è fallito** perché quella ROM **richiede il bootloader della version 5.0.1**, mentre noi avevamo quello originale della versione 4.4.2. Durante l' | ||
| - | |||
| - | < | ||
| - | E3004: This package is for device with 5.0.1 bootloader | ||
| - | and baseband; this device is I9515XXU1ANI3 | ||
| - | </ | ||
| - | |||
| - | L' | ||
| - | |||
| - | ==== Bootloader, baseband firmware, ROM, etc. ==== | ||
| - | |||
| - | Il sistema operativo (che nel mondo Android spesso viene chiamato col termine improprio e fuorviante di ROM) risiede in una propria partizione, generalmente formattata con un filesystem di tipo ext4 o analogo. Gli aggiornamenti oppure gli archivi per effettuare il restore alle condizioni di fabbrica contengono l' | ||
| - | |||
| - | Per approfondire il processo di boot di Android vedere **[[http:// | ||
| - | |||
| - | Per **baseband** si intende in genere il **firmware** che regola il **funzionamento dei dispositivi radio**, come il modem 3G, le comunicazioni cellulari voce e dati, il WiFi, Bluetooth, NFC, ecc. | ||
| - | |||
| - | Ecco ad esempio il **contenuto della ROM stock** Android 5.0.1 con codici PDA I9515XXS1BPL2 e CSC I9515YXY1BOI1. I vari file sono elencati nell' | ||
| - | |||
| - | ^ sbl1.mbn, sbl2.mbn, sbl3.mbn | ||
| - | ^ aboot.mbn | ||
| - | ^ boot.img | ||
| - | ^ modem.bin | ||
| - | ^ NON-HLOS.bin | ||
| - | ^ rpm.mbn | ||
| - | ^ tz.mbn | ||
| - | ^ recovery.img | ||
| - | ^ system.img.ext4 | ||
| - | ^ cache.img.ext4 | ||
| - | ^ hidden.img.ext4 | ||
| - | |||
| - | ==== Procedura di aggiornamento ==== | ||
| - | |||
| - | La procedura completa e corretta dovrebbe quindi essere la seguente. | ||
| - | |||
| - | === Download del software === | ||
| - | |||
| - | - Seguendo le indicazioni della pagina **[[https:// | ||
| - | - Seguendo le istruzioni nella pagina **[[http:// | ||
| - | - Sempre secondo le istruzioni di cui sopra abbiamo scaricato **le Google Apps** dalla pagina **[[http:// | ||
| - | - Abbiamo cercato la ROM ufficiale Samsung identificata da PDA (Product code and Android build) **I9515XXS1BPL2** e CSC (Country Sales Code?) **I9515YXY1BOI1**. Si tratta della ROM originale Android 5.0.1 Lollipop del **2016-12-13** per l' | ||
| - | |||
| - | === Copia dei file sul telefono === | ||
| - | |||
| - | Alcuni file vanno copiati sul telefono, si suggerisce di usare la memoria interna, non la SD Card. Nel nostro caso la memoria interna ha il percorso **/ | ||
| - | |||
| - | * **recovery.img** - Estratto dall' | ||
| - | * **lineage-14.1-20170121-UNOFFICIAL-jfvelte.zip** - Così come scaricato, contiene la ROM LineageOS 14.1 con la procedura di installazione da lanciare dentro TWRP. | ||
| - | * **open_gapps-arm-7.1-mini-20190913.zip** - Sono le Google Apps, così come scaricate. Anche queste vanno installate da TWRP dopo aver installato la ROM. | ||
| - | |||
| - | === Aggiornamento di TWRP === | ||
| - | |||
| - | Non è strettamente necessaio per l' | ||
| - | |||
| - | * Riavviato in **modalità recovery** con **adb reboot recovery** (comando da PC GNU/Linux). | ||
| - | * TWRP 3.0.2 => Install => Install image => Browse to **recovery.img** and tap it. | ||
| - | * Select Partition to Flash Image: Recovery => **Swipe to confirm Flash** => Reboot System | ||
| - | |||
| - | === Aggiornamento del bootloader === | ||
| - | |||
| - | Installare il pacchetto **heimdall** su un PC GNU/Linux. | ||
| - | |||
| - | - Avviare in **modalità download** da telefono spento premendo VolDown + Home + Power. Collegare il cavetto USB. | ||
| - | - Dal PC GNU/Linux eseguire **heimdall detect** per verificare che il telefono sia riconosciuto. | ||
| - | - Effettuare il **flash** del boot loader e dei firmare (richiede permessi di root sul PC):< | ||
| - | heimdall flash --SBL1 sbl1.mbn --SBL2 sbl2.mbn --SBL3 sbl3.mbn --ABOOT aboot.mbn \ | ||
| - | --APNHLOS NON-HLOS.bin --MDM modem.bin \ | ||
| - | --RPM rpm.mbn --TZ tz.mbn</ | ||
| - | |||
| - | Ciò che è davvero necessario per LineageOS è aggiornare il boot loader (partizioni **SBLx** e **ABOOT**), ma aggiornare gli altri firmware non fa male. Il progamma mostra l' | ||
| - | |||
| - | === Installazione della ROM e delle Gapps === | ||
| - | |||
| - | * Riavviare in **modalità recovery**: da telefono spento premere VolUP + Home + Power. | ||
| - | * Wipe => **Advanced Wipe**: | ||
| - | * Select only: **Dalvik/ | ||
| - | * Swipe to Wipe, Back | ||
| - | * Install => Browse and tap **lineage-14.1-20170121-UNOFFICIAL-jfvelte.zip** (no "Zip signature verification", | ||
| - | * Installare nello stesso modo le **open_gapps-arm-7.1-mini-20190913.zip**. | ||
| - | |||
| - | ==== APN Iliad ==== | ||
| - | |||
| - | Con LineageOS 14.1 la connessione dati con l' | ||
| - | |||
| - | Impostazioni => Altro => Reti cellulari => **Nomi punti di accesso** => Aggiungi | ||
| - | |||
| - | ^ Nome | iliad | | ||
| - | ^ APN | iliad | | ||
| - | ^ MMSC | %%http:// | ||
| - | ^ MCC | 222 | | ||
| - | ^ MNC | 50 | | ||
| ===== Reinstallare il software originale ===== | ===== Reinstallare il software originale ===== | ||
doc/appunti/hardware/samsung_galaxy_s4.1568640316.txt.gz · Last modified: by niccolo
