Project Samsung S7 LineageOS: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
= Samsung S7 LineageOS = | = Samsung S7 LineageOS 16 = | ||
Info below is probably outdated. As of 2022/06, S7 support for latest (Android 12/LineageOS 19.1) is here: https://forum.xda-developers.com/t/lineageos-19-1-android-12l-signature-spoofing-ota-updates-for-s7-exynos.4368995/ | |||
== Preparation == | == Preparation == | ||
Line 26: | Line 28: | ||
* A dialog should show on your device, asking you to allow usb debugging. Check “always allow”, and choose “OK”. | * A dialog should show on your device, asking you to allow usb debugging. Check “always allow”, and choose “OK”. | ||
=== | === Install Heimdall === | ||
git clone https://github.com/Benjamin-Dobell/Heimdall.git | |||
cd Heimdall | |||
git fetch | |||
git fetch --tags | |||
git checkout v1.4.2 | |||
cat Linux/README | |||
zypper se cmake | |||
zypper se zlib | |||
zypper se qt5 | grep devel | |||
zypper se libusb | |||
zypper se libgl | |||
mkdir build | |||
cd build | |||
cmake -DCMAKE_BUILD_TYPE=Release .. | |||
make | |||
bin/heimdall version | |||
Phone should reboot now. Make sure it goes to odin mode again (Vol-/Home/Power) | |||
=== Start Samsung S7 in Download Mode === | === Start Samsung S7 in Download Mode === | ||
Line 52: | Line 57: | ||
* Insert the USB cable into the device. | * Insert the USB cable into the device. | ||
=== Install | === Start Heimdall on Phone === | ||
bin/heimdall print-pit | |||
=== Install Custom Recovery TWRP === | |||
wget https://dl.twrp.me/herolte/twrp-3.3.1-0-herolte.img | |||
=== Install LineageOS with Google Apps === | |||
* Reboot into Recovery with Vol+/Home/Power | |||
* Wipe / Format Data / Factory Reset | |||
* DL unofficial S7 v16.0 from here: https://forum.xda-developers.com/galaxy-s7/development/beta-lineageos-16-0-s7-herolte-t3842465 (or build your own) | |||
* Start adb dl on phone and | |||
adb sideload lineage-16.0-20190709-UNOFFICIAL-herolte.zip | |||
* DL Google Apps (arm64 version) from https://opengapps.org/?api=9.0&variant=stock (or use e.g. smaller nano instead of stock) | |||
* Start adm dl on phone again and | |||
adb sideload open_gapps-arm64-9.0-stock-20190906.zip | |||
* Finally reboot phone with | |||
adb reboot |
Latest revision as of 14:00, 27 May 2022
Samsung S7 LineageOS 16
Info below is probably outdated. As of 2022/06, S7 support for latest (Android 12/LineageOS 19.1) is here: https://forum.xda-developers.com/t/lineageos-19-1-android-12l-signature-spoofing-ota-updates-for-s7-exynos.4368995/
Preparation
Get ADB
mkdir ~/LineageOS cd ~/LineageOS wget https://dl.google.com/android/repository/platform-tools-latest-linux.zip unzip platform-tools-latest-linux.zip echo ' if [ -d "$HOME/LineageOS/platform-tools" ] ; then export PATH="$HOME/LineageOS/platform-tools:$PATH" fi' >> ~/.profile . ~/.profile adb version
Prepare S7 for ADB
- Open Settings, and select “About”.
- Tap on “Build number” seven times.
- Go back, and select “Developer options”.
- Scroll down, and check the “Android debugging” or “USB debugging” entry under “Debugging”.
- Plug your device into your computer.
- On the computer, open up a terminal/command prompt and type adb devices.
- A dialog should show on your device, asking you to allow usb debugging. Check “always allow”, and choose “OK”.
Install Heimdall
git clone https://github.com/Benjamin-Dobell/Heimdall.git cd Heimdall git fetch git fetch --tags git checkout v1.4.2 cat Linux/README zypper se cmake zypper se zlib zypper se qt5 | grep devel zypper se libusb zypper se libgl mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release .. make bin/heimdall version
Phone should reboot now. Make sure it goes to odin mode again (Vol-/Home/Power)
Start Samsung S7 in Download Mode
- Power off the device
- Connect the USB adapter to the computer (but not to the device, yet).
- Boot into download mode: With the device powered off, hold Volume Down + Home + Power.
- Accept the disclaimer
- Insert the USB cable into the device.
Start Heimdall on Phone
bin/heimdall print-pit
Install Custom Recovery TWRP
wget https://dl.twrp.me/herolte/twrp-3.3.1-0-herolte.img
Install LineageOS with Google Apps
- Reboot into Recovery with Vol+/Home/Power
- Wipe / Format Data / Factory Reset
- DL unofficial S7 v16.0 from here: https://forum.xda-developers.com/galaxy-s7/development/beta-lineageos-16-0-s7-herolte-t3842465 (or build your own)
- Start adb dl on phone and
adb sideload lineage-16.0-20190709-UNOFFICIAL-herolte.zip
- DL Google Apps (arm64 version) from https://opengapps.org/?api=9.0&variant=stock (or use e.g. smaller nano instead of stock)
- Start adm dl on phone again and
adb sideload open_gapps-arm64-9.0-stock-20190906.zip
- Finally reboot phone with
adb reboot