Setup
Prepare working directory
Create the working directory and download all required files into it :
mkdir -p ~/lineageos_update
cd ~/lineageos_update
- Latest build +
recovery.img: https://download.lineageos.org/devices/beyond1lte/builds - NikGapps Core (Android 16) : https://nikgapps.com
- platform-tools — extract into
~/lineageos_update/platform-tools - Heimdall suite — extract into
~/lineageos_update/heimdall
Enable USB Debugging on device
Go to Settings > About > Build Number (tap 7 times), then enable USB Debugging in Developer Options.
Run as root
udev rules for Android USB devices can be tricky to configure correctly. Running as root bypasses these permission issues entirely.
sudo su
export the PATH so the tools installed in your user directory are available :
export PATH="$HOME/lineageos_update/platform-tools:$PATH"
export PATH="$HOME/lineageos_update/heimdall:$PATH"
Verify both tools work :
adb version
heimdall version
1. Update Recovery
Boot the device into Download mode :
adb reboot download
Or manually : power off, then hold Volume Down + Bixby and plug USB cable.
Flash the recovery :
heimdall flash --RECOVERY ~/lineageos_update/recovery.img --no-reboot
A transfer bar will appear on screen. Once done, reboot into recovery mode :
adb reboot recovery
Or manually : hold Volume Down + Power for 8–10 seconds until the screen turns black, then immediately hold Volume Up + Bixby + Power.
WARNING
Reboot into recovery immediately after flashing — otherwise the stock ROM will overwrite the custom recovery.
2. Enable ADB in Recovery
In recovery, go to Advanced → Enable ADB.
3. Sideload LineageOS
adb reboot sideload
Or manually on device : Apply Update → Apply from ADB.
Then sideload :
adb sideload ~/lineageos_update/lineage-23-XXXXXXXX-nightly-beyond1lte-signed.zip
TIP
If adb stops at 47% with adb: failed to read command: Success — that’s fine, the flash succeeded.
4. Sideload GApps (Before Reboot!)
On device go to Apply Update → Apply from ADB.
adb sideload ~/lineageos_update/NikGapps-core-arm64-16-XXXXXXXX-signed.zip
WARNING
GApps must be installed before the first boot, or you’ll need a factory reset to add them later.
5. Reboot
adb reboot
Enjoy LineageOS 23!