Created At: 2025-01-22 08:47:27 AM
This is a (Linux) step-by-step (no-root needed) tutorial on how to install LinageOS on Galaxy-S7, using FOSS tools. (That worked for me)
Before getting started, you will need to:
- (repo)
yay -S heimdall - Download LinageOS
.zip(source) - 📱 Enable developer-options
- 📱 Developer Options > OEM Unlock
Once you downloaded TWRP .img file based on:
| Model | Region/Processor | Model Number |
|---|---|---|
| Galaxy S7 (Exynos) | Global/EU | SM-G930F |
| Galaxy S7 (Qualcomm) | China/USA | SM-G9300, SM-G930V (Verizon), etc. |
| Galaxy S7 edge (Exynos) | Global/EU | SM-G935F |
| Galaxy S7 edge (Qualcomm) | China/USA | SM-G9350, SM-G935V, etc. |
(WARNING: The table above is mostly CHAT-GPT generated) (See: Settings > About Phone)
- 📱 Connect you phone
- 📱 Press "power + volume_up + home" until Download-Mode (Odin-Mode) appears
- 📱 Press "volume_up" to continue
heimdall flash --RECOVERY ./Downloads/twrp-XYZ.img --no-reboot- Wait until it's (100%) done ...
- Now finally and most importantly! press "power + volume_up + home" and imidiatily after the screen get black 📱 Press "Power + volume_down + home". If not TWRP appears you must redo the aobve 1-6 steps because "The stock ROM will overwrite the custom recovery with the stock recovery..."
Assuming you followed TWRP installation steps and already downloaded LinageOS, "Swipe to Allow Modifications" and select:
Wipe > Format Data > yesWipe > Advanced Wipe-
- Dalvik / ART Cache
-
- System
-
- Data
-
- Cache
- Swipe to Wipe
- Navigate back
- Swipe to Factory Reset
Wipe > Format Data > yes- Home > Reboot > Recovery
Now connect phone to PC and move lineageos zip file into the "Internal Storage". If not mounted automatically then select 📱 "Mount > USB Storage". If the phone won't appear automatically in your PC (like in my case) you may need to manually aft-mtp-mount ~/mnt/galaxy_s7, but if you find your PC's file-manager freezing when you move any file to it, redo steps from 1-11. If still having the issue (as in my case), just move the file to an external SD and insert it to the phone. Alternatively use adb tools to push the file [...] finally:
- Install > Swipe to Confirm Flash
- Reboot System
- Done
(You may find this video handy)