LineageOS on the n8000

I own a Galaxy Note 10.1 tablet, where I run Lineage OS. This page is about how to get it running and about the little things you probably should know when you want to do the same.


Quickinfo

This are some useful informations, that you may need during the procedure

Boot into Downloader POWER + VOLUME DOWN
Boot into Recovery POWER + VOLUME UP

 


Before you start

You will loose your warranty. I am talking about personal experience: Samsung once denied a hardware repair because I was using a custom ROM and thus my warranty was void. Could resolve the issue myself, but you should be aware that your are left alone.

Usually the process is safe, but everything is up to your responsibility. There is a change, that the device remains unusable!
You have been warned!


1. Installing custom recovery

This is the hardest step. Once you have a working, custom recovery, flashing your image is quite straight-forward.

There are two possibilities. I recommend Heimdall for installing a custom recovery, because it ships with Linux. If you are using Windows, then you are probably better off using odin.

Installing TWRP using Heimdall on Linux

I recommend Team Win Recovery Project (TWRP) as Custom recovery, because they ship a quiet usable image for the n8000.

Download the TWRP image for the n8000. If you are not happy with the simple steps I provide on this page, here is a  blog post that also explains how to use the command line.

For now, boot the Galaxy Note 10.1 Tables into Downloader (POWER + VOLUME DOWN), connect the tables with the USB cable and then run

Done!
The console method is much quicker than the GUI method. After that, you may want to try the Recovery Mode out to check if it is working. Also in the next steps we need to be in Recovery mode.


2. Installing LineageOS on your device

Select the right image

Lirokoa kindly provides images on the xda-developer forums. It's an ALPHA, so you know what you should expect 🙂
I am using it on a daily basis without any major issues.

Use the n8000 image for flashing. TWRP (Team Win Recovery Project, the recommended Custom Recovery for this process) refuses to work with the incorrect device:

E3004: This package is for device: c0, p4notewifi, p4notewifiww, n8018, GT-N8013, n8010, GT-N8010: this device is p4noterf

Download the ZIP-file of the current LineageOS, that is probided in the xda-developer forums. Alternatively you can use my ftp repository, where I try to mirror the current releases.

If you want to have the Google Apps as well, then download the right package from http://opengapps.org/. You can download an older version of the OpenGapps from here. This you should keep in mind, because sometimes you need to try an older version of the OpenGapps if you are stuck in a boot loop!
They also ship as a ZIP file. I always start with the pico image to reduce the problem surface, and install the remaining apps then from a working system.

Then reboot the device into recovery, by or pressing POWER-VOLUME UP at boot time or use adb by typing

Flashing the image

Now it's time to update your system 🙂

Important: Flash first the LineageOS image and then the gapps without rebooting! Otherwise you may end up in a boot loop!

Flash using sideload

I assume you have booted into your Custom Recovery at this point.

Procedure in the Linux shell

That method is easier in my opinion.

First we need to do a complete device wipe. Go to Wipe, Advanced wipe and check all partitions (SD Card is optional, but I like to start with a complete fresh install, since some apps are storing some data there)

Now go to Advanced -> ADB Sideload

On the computer you now want to push the zip-image via sideload to your device

And the OpenGApps, if you want

Now you have to manually wipe the Dalvik cache. Go to Wipe, then Advanded Wipe and select the Dalvik Cache and cache partition.

Swipe to wipe and you're good to go. The Wipe process should end successfully. Now it's time to reboot your system

If you are unsure if you need to flush the Dalvik cache after an installation, then just do it. It's safe to do this - All that happens is that is is re-build at boottime.

Manual flash

We are using adb to push the images to the device

First we must transfer the ZIP files to your device. I assume the files to be on /sdcard/

Boot into the custom Recovery (POWER + VOLUME UP) or with

Then do a full wipe, and INSTALL the Zips within the custom recovery.
After finishing, wipe the Cache and Dalvik cache.

Booting into your system

The first boot takes some time. Grab a coffee and let it happen. If it doens't boot after 10-15 minutes, then you are unfortunately trapped in a boot loop. If that's the case, have a look at the Troubleshooting section below.

Now it's time to configure your system. First we need to configure the Hardware Keyboard, otherwise you are not able to type in anything. Click on the keyboard icon in the lower left corner and check virtual keyboard. After that, you will get the keyboard.

Have fun! 🙂

3. Rooting your device (Untested)

Kamairo on xda-developers documented a step-by-step guide how to successfully root your device.
WARNING: I have not yet tested this approach, since I do not need root on my device

Don't use the rooting procedure of TWRP. Use this zip instead after flashing, booting and rebooting into recovery.

  1. Download SuperSu.zip from here (TWRP / FlashFire installable ZIP).
  2. Wipe, Flash ROM, flash Gapps, Wipe Cache/Dalvik
  3. DON'T USE TWPR'S BUILT IN SUPERSU
  4. Boot up
  5. Head back to TWRP and flash the SuperSU zip you downloaded
  6. Boot up (no cache/dalvik wipe needed)

Again: I have not tested this approach yet!


Known issues

The current LineageOS release for the n8000 is ALPHA. So, there are some known issues

  1. MTP Host crashes at boottime
  2. Tablet encryption is not working
  3. Settings app crashes at first boot
  4. Battery drain problem

The battery drain is bugging me a lot. Also with no SIM Card, Mobile Standby service drains you battery fast. Tablet runtime reduced by a factor of 2-3! I hope this will be solved in an upcoming version.


Troubleshooting

Don't worry, the first attempt fails in most of the times. But there is help.

1. Boot loop

Have you installed LineageOS and GApps in one go. No reboot in between! If it is still happening, try an older version of the Gapps, that you can find here

2. The GApps are constantly crashing

Try a old version of the gapps, available here.

3. Custom recovery is crashing while I install the OpenGApps

I have observed this once happening with a fresh install of lineage-14.1-20170305-UNOFFICIAL-n8000.zip and open_gapps-arm-7.1-pico-20170430.zip

It was working with the adb sideload method, instead of manual installing the zip file

4. Settings app is crashing at first boot.

That's a known issue. Just restart it, you're good to go


Debugging a Boot loop

This is for advanced users only. The last kernel messages are stored in /proc/last_kmsg. Within the recovery you can read them