• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[UNOFFICIAL]LineageOS-15.1 For Nexus 9 (WIFI) (Oct 11, 2021)

Search This thread

retiredtab

Senior Member
Nov 16, 2017
856
434
I compiled the Sept 5 patches into my own build using the "stock" Nexus 9 code found on the LineageOS github and was able to play Clash Royale for 30 minutes with no lag or pauses. Once the Sept 5 patches are officially merged, I will upload the new build. That is, the Sept 5 build will remove all of Andrea's commits.

I'm waiting for these Sept 5 patches to be merged.

https://review.lineageos.org/q/topic:"O_asb_2021-09"+(status:open OR status:merged)
 

retiredtab

Senior Member
Nov 16, 2017
856
434
The 15.1 Sept 5 patches have finally been merged into github today (Sept 24) so I can do the build. New build called lineage-15.1-20210924-UNOFFICIAL-flounder.zip

Sept 24, 2021 release ntoes

1. Incorporates Sept 5 security patches as per https://review.lineageos.org/c/LineageOS/android_build/+/316179
2. Whatever LineageOS changed since August 2021 (about 1,800 files had to be recompiled).
3. This build is based on "stock" and not using Andrea's repos as it was reported to cause some slowness in operation.
4. I recommend that you wipe cache/dalvik AND cache in TWRP after you flash new build. Supposedly, the Nexus 9 internal flash file system gets
slower over time and that wiping the flash and keeping as much free space available helps avoid the slowdown.
5. During first boot, the Google white logo may display up to 3 minutes. DO NOT PANIC. It will eventually start LineageOS boot animation and the Sept 24 build WILL load (I test ALL my builds to make sure they boot and work as post #1). I don't know why it takes up to 3 minutes now as there's no logcat output during that stage.

PS. With the Sept 24 build, I have no problems playing Clash Royale for 30 minutes straight as there's no lag or freezing.
 
Last edited:

belegdol

Senior Member
Jun 25, 2012
60
38
I am trying to update but I cannot unlock my phone in TWRP after enabling encryption. Is this a known problem? TWRP says "Password failed, try again".
 

gk1984

Senior Member
Jan 4, 2011
2,319
626
The 15.1 Sept 5 patches have finally been merged into github today (Sept 24) so I can do the build. New build called lineage-15.1-20210924-UNOFFICIAL-flounder.zip

Sept 24, 2021 release ntoes

1. Incorporates Sept 5 security patches as per https://review.lineageos.org/c/LineageOS/android_build/+/316179
2. Whatever LineageOS changed since August 2021 (about 1,800 files had to be recompiled).
3. This build is based on "stock" and not using Andrea's repos as it was reported to cause some slowness in operation.
4. I recommend that you wipe cache/dalvik AND cache in TWRP after you flash new build. Supposedly, the Nexus 9 internal flash file system gets
slower over time and that wiping the flash and keeping as much free space available helps avoid the slowdown.
5. During first boot, the Google white logo may display up to 3 minutes. DO NOT PANIC. It will eventually start LineageOS boot animation and the Sept 24 build WILL load (I test ALL my builds to make sure they boot and work as post #1). I don't know why it takes up to 3 minutes now as there's no logcat output during that stage.

PS. With the Sept 24 build, I have no problems playing Clash Royale for 30 minutes straight as there's no lag or freezing.
Night and day difference in performance. Way better with this update. Thanks!
 

retiredtab

Senior Member
Nov 16, 2017
856
434
The Oct 5 patches are not yet officially merged as of Oct 11, but I decided to build them early because the Nexus 9 code and another device that I build share the same hard drive and I already built the latter. Thus, I don't have to switch out hard drives again in my "build" server and can set aside this drive until next month.

Oct 11, 2021 release ntoes
1. Incorporates Oct 5 security patches as per https://review.lineageos.org/c/LineageOS/android_build/+/317622

2. Whatever LineageOS changed since September 2021 (about 2,400 files had to be recompiled).

3. This build is based on "stock" and not using Andrea's repos as it was reported to cause some slowness in operation.

4. I recommend that you wipe cache/dalvik AND cache in TWRP after you flash new build. Supposedly, the Nexus 9 internal flash file system gets
slower over time and that wiping the flash and keeping as much free space available helps avoid the slowdown.

5. During first boot, the Google white logo may display up to 3 minutes. DO NOT PANIC. It will eventually start LineageOS boot animation and the Oct 11 build WILL load (I test ALL my builds to make sure they boot and work as post #1). @razorloves, who is making monthly 14.1 Nexus 9 builds, believes the delay when it's showing the Google white logo might be due to fsck running a check on all the storage file systems.

6. With the Oct 11 build, I have no problems playing Clash Royale for 30 minutes straight as there's no lag or freezing.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 4
    The Oct 5 patches are not yet officially merged as of Oct 11, but I decided to build them early because the Nexus 9 code and another device that I build share the same hard drive and I already built the latter. Thus, I don't have to switch out hard drives again in my "build" server and can set aside this drive until next month.

    Oct 11, 2021 release ntoes
    1. Incorporates Oct 5 security patches as per https://review.lineageos.org/c/LineageOS/android_build/+/317622

    2. Whatever LineageOS changed since September 2021 (about 2,400 files had to be recompiled).

    3. This build is based on "stock" and not using Andrea's repos as it was reported to cause some slowness in operation.

    4. I recommend that you wipe cache/dalvik AND cache in TWRP after you flash new build. Supposedly, the Nexus 9 internal flash file system gets
    slower over time and that wiping the flash and keeping as much free space available helps avoid the slowdown.

    5. During first boot, the Google white logo may display up to 3 minutes. DO NOT PANIC. It will eventually start LineageOS boot animation and the Oct 11 build WILL load (I test ALL my builds to make sure they boot and work as post #1). @razorloves, who is making monthly 14.1 Nexus 9 builds, believes the delay when it's showing the Google white logo might be due to fsck running a check on all the storage file systems.

    6. With the Oct 11 build, I have no problems playing Clash Royale for 30 minutes straight as there's no lag or freezing.
    3
    The 15.1 Sept 5 patches have finally been merged into github today (Sept 24) so I can do the build. New build called lineage-15.1-20210924-UNOFFICIAL-flounder.zip

    Sept 24, 2021 release ntoes

    1. Incorporates Sept 5 security patches as per https://review.lineageos.org/c/LineageOS/android_build/+/316179
    2. Whatever LineageOS changed since August 2021 (about 1,800 files had to be recompiled).
    3. This build is based on "stock" and not using Andrea's repos as it was reported to cause some slowness in operation.
    4. I recommend that you wipe cache/dalvik AND cache in TWRP after you flash new build. Supposedly, the Nexus 9 internal flash file system gets
    slower over time and that wiping the flash and keeping as much free space available helps avoid the slowdown.
    5. During first boot, the Google white logo may display up to 3 minutes. DO NOT PANIC. It will eventually start LineageOS boot animation and the Sept 24 build WILL load (I test ALL my builds to make sure they boot and work as post #1). I don't know why it takes up to 3 minutes now as there's no logcat output during that stage.

    PS. With the Sept 24 build, I have no problems playing Clash Royale for 30 minutes straight as there's no lag or freezing.
  • 14
    BEFORE YOU decide to try this rom, please read all of post 1, 2 and 3.

    I am not responsible for lost data, identity theft, lost money, security vulnerabilities, bricked devices or any other hardware or software malfunctions that comes as a result of flashing this ROM.

    BACKUP YOUR DATA AND OLD ROM BEFORE trying this rom.

    What works

    I only test what I use. There could be other things that work or don't work. Let me be clear since there are people who don't seem to understand this. I cannot test things that I don't have like paid streaming/gaming, NFC, miracast or apps that I don't use. They may work or they may not work.

    If you want to know if something works that's not listed here, then you need to try it for yourself. If that's not an acceptable or reasonable answer, then stop reading and find another rom that meets your requirements. I built this rom for myself to use and thought that some in the community might benefit by sharing it. If this rom doesn't meet your requirements, then delete it and use whatever does.

    1. audio over bluetooth
    2. wifi
    3. brightness
    4. external audio
    5. GPS - a bit slow to get a fix/lock
    6. audio through headphone jack
    7. camera

    What doesn't work

    1. screen recorder. The current sepolicy doesn't allow screen recorder to work. While adding code to allow sepolicy to work

    Code:
    #============= mediacodec ==============
    allow mediacodec camera_device:chr_file { ioctl open read write };

    The [email protected] crashes. A mp4 file is created, but it doesn't seem to be in the correct format? Possibly related to ??


    FAQ

    Q1) Does the build work on Nexus 9 LTE?
    A1) I have no idea. I only have the Nexus 9 wifi so I don't know if it will work on LTE. If you have the LTE, you can build your own LTE rom. If you try the wifi build on the LTE, you may end up with a bricked device. Questions regarding LTE will go unanswered.

    Q2) Application xyz doesnt' work. Can you fix it?
    A2) I only fix what I use. If you use app xyz and it doesn't work, then try 14.1 or going back to the last rom that worked for you. In addition, some of the code is not open source and in proprietary blob format so it's not possible to make changes.

    Q3) My tablet hangs or crashes with 15.1. This build is slow and buggy. Can you fix it?
    A3) Go back to the last working stable rom for you. 15.1 is a work in progress and will have bugs and frequent changes. In addition, some of the code is not open source and in proprietary blob format so it's not possible to make changes.

    Q4) Do you plan to update the rom?
    A4) Yes as long as I have high speed Internet, I wil try to release the rom monthly to incorporate the security patches.

    Q5) What TWRP should I use?
    A6) TWRP 3.3.1 or higher. Get it from


    Q6) What is the difference between this rom and variants?
    A6) Use whatever fits your needs. This is a stock LineageOS build with no modifications. I only offer this as an option for those who want or need a new rom and can't build it themselves.

    Q7) Will there be a 16.0, 17.1 or 18.1 build?
    A7) I tried building 16.0, but the rom get's stuck at the very begining of the boot process and I haven't investigated too much. Do not ask if there is progress on this. I'm an unpaid volunteer building this on my own time. Any questions regarding ETAs will go unanswered.

    I suspect that one or two LineageOS developers have a working 16.0 build, but they are not ready to share their code? The repos have been updated to 16.0 at


    on Nov 4, 2020.

    If you are a rom builder or developer and want to help get 16.0 going, please contact me.

    Q8) Should I upgrade from stock or 14.1 to 15.1?
    A8) It's entirely up to you. If you do upgrade, you will need to backup your data, wipe dalvik/art cache, system, data and internal storage in TWRP. You must also format data in TWRP. You cannot dirty flash from stock or 14.1 to 15.1, it must be a completely clean fresh install.

    Q9) Can I build this rom myself? Where can I find the source and/or kernel source code?
    A9) This is one of the few roms where it required no edits or changes to make it work. Follow the instructions at

    Flounder

    Flounder_lte

    and you will get a working 15.1 image. You will need to apply (hw video patch)

    https://review.lineageos.org/268654

    The roomservice.xml only consists of 3 repos. The roomservice.xml points to all the source code including the kernel source code. That is,


    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <manifest>
      <project name="LineageOS/android_device_htc_flounder" path="device/htc/flounder" remote="github" revision="lineage-15.1" />
      <project name="LineageOS/android_kernel_htc_flounder" path="kernel/htc/flounder" remote="github" revision="lineage-15.1" />
      <project name="TheMuppets/proprietary_vendor_htc" path="vendor/htc" remote="github" revision="lineage-15.1" />
    </manifest>

    I changed the fstab.flounder from forceencrypt to encryptable.

    Code:
    /dev/block/platform/sdhci-tegra.3/by-name/UDA   /data               f2fs      noatime,nosuid,nodev,errors=panic                     wait,check,latemount,encryptable=/dev/block/platform/sdhci-tegra.3/by-name/MD1
    /dev/block/platform/sdhci-tegra.3/by-name/UDA   /data               ext4      noatime,nosuid,nodev,nomblk_io_submit,errors=panic    wait,check,latemount,encryptable=/dev/block/platform/sdhci-tegra.3/by-name/MD1

    Normally, monthly builds go smoothly, but every once in a while, the monthly changes break something. This happened with the Nexus 9 for the May 5 security patches. While compiling, it was giving

    "SSL error when connecting to the Jack server."

    After some dead ends and research, I found


    To fix this, you need to "Remove TLSv1, TLSv1.1 from jdk.tls.disabledAlgorithms in /etc/java-8-openjdk/security/java.security" file.

    Q10) Why is my question not answered?
    A10) It's likely because it's in the FAQ or it's off topic or you are asking something that I cannot answer for the reasons stated in this FAQ.

    Q11) How is this 15.1 build different from the ones already on XDA?
    A11) The 15.1 roms built before Nov 4, 2020 didn't include this patch


    Also, some of the 15.1 roms may not have included the hw video patch. It's not part of the repository and requires the builder to pick and apply that patch manually.

    For some, depending on how the device is used, having the hw video patch isn't necessary and will work fine without it.

    Q12) Is the video hardware accelerated in 15.1?
    A12) Yes. The March 9, 2021 and all future builds include this patch

    https://review.lineageos.org/268654

    for video hardware acceleration.

    Q13) Is encryption enabled by default?
    A13) Some people say the Nexus 9 lags over time and supposedly removing encryption improves performance. The Nexus 9 is not a daily driver for me so I don't know, but reading the older 14.1 and 15.1 threads, I decided to change the default behavior starting with the March 13, 2021 build so that encryption is disabled by default.

    If you want encryption enabled, goto settings, security and privacy, encryption and credentials, encrypt tablet and follow instructions.

    Q14) Can you build a variant like slimrom, crDroid, etc?
    A14) No, but you can following the instructions and source code above that has been provided.

    Q15) What gapps should I use?
    A15) I personally am moving away from all google apps and technology. If you must use gapps, pick the smallest one which is pico ARM64.

    Q16) Where can I download this rom?
    A16) See

    9
    Oct 11, 2021 release ntoes
    1. Incorporates Oct 5 security patches as per https://review.lineageos.org/c/LineageOS/android_build/+/317622
    2. Whatever LineageOS changed since September 2021 (about 2,400 files had to be recompiled).
    3. This build is based on "stock" and not using Andrea's repos as it was reported to cause some slowness in operation.

    Sept 24, 2021 release ntoes
    1. Incorporates Sept 5 security patches as per https://review.lineageos.org/c/LineageOS/android_build/+/316179
    2. Whatever LineageOS changed since August 2021 (about 1,800 files had to be recompiled).
    3. This build is based on "stock" and not using Andrea's repos as it was reported to cause some slowness in operation.

    Aug 9, 2021 release notes
    1. Incorporates Aug 5 security patches as per https://review.lineageos.org/c/LineageOS/android_build/+/314577
    2. Whatever LineageOS changed since July 2021.
    3. This is the second build using Andrea's repos.

    July 18 release notes
    1. First build to incorporate changes by Andrea.
    2. Incorporates July 5 security patches as per https://review.lineageos.org/c/LineageOS/android_build/+/313627
    3. Whatever LineageOS changed since June 2021.

    June 13, 2021 release notes
    1. Incorporates June 5 security patches as per https://review.lineageos.org/c/LineageOS/android_build/+/312243
    2. Whatever LineageOS changed since May 2021.

    May 11, 2021 release notes
    1. Incorporates May 5 security patches as per https://review.lineageos.org/c/LineageOS/android_build/+/309566
    2. Whatever LineageOS changed since April 2021.

    April 15, 2021 release notes
    1. Incorporates April 5 security patches as per https://review.lineageos.org/c/LineageOS/android_build/+/307722
    2. Removed livedisplay option from menu as it doesn't work on Nexus 9 Tegra SoC according to those more knowledgeable and experienced than I.
    3. I recommend that you wipe cache/dalvik after you flash new build. Supposedly, the Nexus 9 internal flash file system gets slower over time and that wiping the flash and keeping as much free space available helps avoid the slowdown.

    Release notes for March 13, 2021
    1. Changed encryption to be disabled by default.

    Release notes for March 9, 2021
    1. Initial build for 15.1 Nexus 9 wifi only.
    2. March 5, 2021 security patches
    3. Built from LineageOS 15.1 repos with no changes or edits and includes the hw video patch.
    4. Please be patient on first bootup.

    For those that downloaded the March 8 build, please delete it. While it works, there was a problem with the build missing a hw video patch that I didn't notice at first. I will upload a March 9 build. Sorry for the trouble.
    9
    New build called lineage-15.1-20210415-UNOFFICIAL-flounder.zip

    April 15, 2021 release notes
    1. Incorporates April 5 security patches as per https://review.lineageos.org/c/LineageOS/android_build/+/307722
    2. Removed livedisplay option from menu as it doesn't work on Nexus 9 Tegra SoC according to those more knowledgeable and experienced than I.
    3. I recommend that you wipe cache/dalvik after you flash new build. Supposedly, the Nexus 9 internal flash file system gets slower over time and that wiping the flash and keeping as much free space available helps avoid the slowdown.
    7
    Normally, monthly builds for my others roms go smoothly, but every once in a while, the monthly changes break something. This happened with the Nexus 9 for the May 5 security patches.

    While compiling, it was giving

    "SSL error when connecting to the Jack server."

    After some dead ends and research, I found


    To fix this, you need to "Remove TLSv1, TLSv1.1 from jdk.tls.disabledAlgorithms in /etc/java-8-openjdk/security/java.security" file.

    I'm adding this to the FAQ for future builders.

    New build called lineage-15.1-20210511-UNOFFICIAL-flounder.zip

    May 11, 2021 release notes
    1. Incorporates May 5 security patches as per https://review.lineageos.org/c/LineageOS/android_build/+/309566
    2. Whatever LineageOS changed since April 2021.
    3. I recommend that you wipe cache/dalvik after you flash new build. Supposedly, the Nexus 9 internal flash file system gets slower over time and that wiping the flash and keeping as much free space available helps avoid the slowdown.
    6
    For those that downloaded the March 8 build, please delete it. While it works, there was a problem with the build missing a hw video patch that I didn't notice at first. When I did a clean repo sync, I forgot to apply the hw video patch at

    https://review.lineageos.org/268655

    in the March 8 build. The March 8 build works as I tested it, but it wasn't until a few hours later that I realized I forgot to reapply the hw video patch.

    The March 9 build includes the above hw patch. Sorry for the inconvenience.