[Galaxy Note 10.1 Android Development] johnwbyrd:
Installing LineageOS on Samsung Note 10.1 (gt-n8013)

Here is the necessary order of operations for the Note 10.1 gt-n8013 original (pre-2014) wifi edition only. Other installs may or may not be similar. If you can't do one step cleanly then do not move onto the next step, as you will be wasting your time. You MUST have an external sdcard in the sdcard slot.

0. Get Odin3 as well as a copy of the original stock firmware ZIP file ready if your system becomes unbootable even in recovery mode. This gives you a way out if you can't even boot to TWRP. If you have never reflashed your system to stock firmware with Odin3 over a USB cable, now might be a good time to prove to yourself that you can do it, in case the TWRP install goes awry. I was able to ignore the clickbait and fake links while downloading my firmware from androidmtk dot com slash download-samsung-stock-rom .

1. Get booting to TWRP stable. To install TWRP from stock firmware, I used a framaroot apk to root the device, and then I installed the Official TWRP App from the Google Play store. Don't use Kingo Root, it does evil **** like install battery crapware and send your IMEI to China. From the Official TWRP App you can try flashing TWRP 2.8.7.0. On gt-n8013, use TWRP 2.8.7.0, not the new 3.0 line. (I couldn't get any TWRP but 2.8.7 working on my gt-n8013, but that was enough to do all the rest of the work.) Make sure you can boot to TWRP with power + volume up + release power button at Samsung logo.

2. BACK UP your entire system from within TWRP to an external sdcard. Do this every time you make progress. Trust me, you will be a lot happier to have a stable backup at every point to revert to when you **** things up. When rebooting from TWRP, NEVER allow TWRP to install its own burned in version of SuperSU. (You'll do this yourself later)

3. Try installing either the January and/or the latest build of the gt-n8013-unofficial build at the top of this thread, using TWRP's zip installer. Do not try installing a build for the 800x on this device; nor a 8013 build on an 800x; it won't work and you will be sad. As of this writing n1awifi official builds do not seem to support the gt-n8013 original version, so don't bother with those. You will need to do a wipe of internal storage (not just system and data) from within TWRP before installing the new firmware. Skip signature verification during this and other firmware installs. In my case, the new firmware hung at the LineageOS logo a few times. I just kept reinstalling two firmware builds until I could boot to the Android desktop. Keep in mind that the Android and the LineageOS logo will take 15-20 minutes to abate. If you wait an hour, it's hung. I see the Android logo before I see the LineageOS animated logo during a successful boot sequence; if you don't see the android logo at first the boot process may not complete. Boot the device to LineageOS 7.1.x and verify basic operation. Now back up from within TWRP as specified in 2.

4. Now you may install OpenGApps from within TWRP. Use the 7.1 ARM (not ARM64) mini or nano builds from their website. Larger builds are too big for this device and will crash during install (at least they did for me). Boot the device and check operation. Now back up from within TWRP.

5. Now you may install SuperSU from within TWRP. Always use the latest build of the "Recovery Flashable" SuperSU from their web site. Boot the device and check operation. Now back up from within TWRP.

6. If you deviated from these steps, you probably will not have joy. If it works, congratulations, you have a nice "new" Android 7.1 tablet and you have stymied Samsung's effort to force you to buy new hardware via planned obsolescence.

Improvements on what worked for me are welcome... on another note, LineageOS maintainers: this series of builds really ought to be made official, it's working pretty well for a lot of people.