Flashing LineageOS 14.1 for Samsung Galaxy Note 8.0 (n5110)

A guide to flashing the compiled LineageOS 14.1 ROM and recovery image to the Samsung Galaxy Note 8.0 (n5110).
March 10, 2026

Flashing LineageOS 14.1 for Samsung Galaxy Note 8.0 (n5110)

In the previous post, we built the custom LineageOS 14.1 ROM and recovery image for the Samsung Galaxy Note 8.0 (n5110).
In this post, we will cover the process of flashing the build outputs to the device and verifying its operation after booting.

Flashing recovery.img using Heimdall

While you can use Odin for flashing, I preferred using Heimdall as I like working in a Linux environment.
Since the Heimdall package is already available in the Ubuntu repository, it can be easily installed using apt.
Install Heimdall in Ubuntu using apt
sh
After installation, enter Download (Odin) mode by long-pressing the Power + Vol Down keys simultaneously.
Entering odin mode
Check Heimdall connection
sh
Once the device is correctly recognized by Heimdall, flash the recovery.img file using the flash command.
Flash recovery.img using Heimdall
sh
It seems the image has been successfully flashed.
Now, enter Recovery Mode and install the custom ROM image.

Enter Recovery Mode & Wipe

With the recovery flashed, proceed to initialize the device to install the new custom ROM.
  1. Enter recovery mode (Lineage Recovery) by pressing the Power + Vol Up + Home keys simultaneously.
  2. Perform a Factory reset and wipe the Cache partition to clear existing data. Recovery Mode
Full Factory Reset
Wipe Cache Partition
  1. To install the ROM, select the Apply Update -> Apply from ADB menu to enter sideload mode. Apply from ADB

Setup udev Rules (for Linux)

To use ADB Sideload in a Linux environment like Ubuntu, you may need to configure udev rules to assign appropriate permissions to the USB device.
When you connect the device in Sideload mode to your PC, you can find logs like the following in dmesg.
dmesg output
sh
Use the Vendor ID (18d1) and Product ID (d001) identified above to create or modify the /etc/udev/rules.d/51-android.rules file. Add the following content to grant USB device access permissions to the plugdev group.
Edit /etc/udev/rules.d/51-android.rules
sh
After adding the entry, reload the udev rules and restart the service.
Reload udev rules
sh

Flash LineageOS via ADB Sideload

Now, restart the ADB server and check if the device is correctly recognized in sideload status.
Check ADB devices
sh
If the device is correctly recognized as sideload, transfer the built lineage-*.zip file to the device to start the installation.
ADB Sideload
sh
Flashing done via sideload

Verify Installation

After the installation is complete, reboot the system (Reboot system now). You should see the Lineage OS logo as it boots up normally. Lineage OS
Just like standard Android, you need to enable the Android debugging option in Developer Options for ADB connectivity.
Also, set Root access to 'ADB only' to use root privileges in the ADB environment. Enable debugging and root access in developer options
When testing the adb devices command for ADB connection, the device might not be recognized.
This is because the idVendor and idProduct values might have changed from those used in Sideload mode.
dmesg after reboot
sh
Just as we did before, add the newly changed idVendor and idProduct values to the udev rules.
Edit /etc/udev/rules.d/51-android.rules
sh
After adding them, reload the udev rules and restart the service.
Reload udev rules
sh
Now, connect via adb shell and check the image version.
Verify build version
sh
You can confirm that the system has booted normally with the custom-built image version.
You can also verify the version information in the About tablet menu of the tablet UI. Version Check in About tablet

Conclusion

The entire process, from image building to setting up the flashing environment, is now complete.
Now you can modify the code as you study AOSP and apply it directly to the device.
I will decide which parts to focus on analyzing and modifying after exploring the AOSP code a bit more.
Jooojub
System S/W engineer
Explore Tags
Series
    Recent Post
    © 2026. jooojub. All right reserved.