[ROM] [05 JUL 2020] LineageOS-14.1

Search This thread

DB126

Senior Member
Oct 15, 2013
15,362
10,174
hmm ...

this doesnt work for me. Updated twrp to 3.1.1-1, wiped the whole System, rebooted and flashed Lineage, Gapps and SuperSu. But the boot-loop still appears. :(

Edit: with lineageOS 13. its working now. Thanks. (y)
Appreciate the update. You could try returning to Lineage 14.1 or try a different Nougat based ROM. I have been pumping AospExtended (AEX) of late for it's speed, stability and feature set. I'm a longtime CM/Lineage user but AEX provides the best experience on an Android device I have had to date. All the goodness of pure AOSP with a nice set of optional extensions.
 

jlbrown1

Member
Aug 11, 2017
14
1
@ggow,

Any update on Bluetooth? I have tried many different methods, including the ones in this thread, to no avail. The tablet sees the headphones, it just will not pair.

Are there log files somewhere that I could post that would help?

Thanks!

J
 

DB126

Senior Member
Oct 15, 2013
15,362
10,174
@ggow,

Any update on Bluetooth? I have tried many different methods, including the ones in this thread, to no avail. The tablet sees the headphones, it just will not pair.

Are there log files somewhere that I could post that would help?
FWIW - I have had no problems pairing a small collection of BT test devices (keyboard, mouse, earbuds, speaker, receiver) on AEX for Thor. Rather surprising as BT connectivity issues have dogged virtually all custom ROMs for HDX devices from Android 5.1 forward. Maybe just got lucky with my portfolio. That said, it's nice not having to switch to my phone to stream music to the home audio setup, etc.
 
Last edited:
Appreciate the update. You could try returning to Lineage 14.1 or try a different Nougat based ROM. I have been pumping AospExtended (AEX) of late for it's speed, stability and feature set. I'm a longtime CM/Lineage user but AEX provides the best experience on an Android device I have had to date. All the goodness of pure AOSP with a nice set of optional extensions.

I've tested now Lineage 14, AOSP and Slim. All are 7.1-roms. All not working. Reflashed Lineage 13 and now the tablet is working again.

Can the be a problem with the bootloader after selecting "encrypt this device"?
 

DB126

Senior Member
Oct 15, 2013
15,362
10,174
I've tested now Lineage 14, AOSP and Slim. All are 7.1-roms. All not working. Reflashed Lineage 13 and now the tablet is working again.

Can the be a problem with the bootloader after selecting "encrypt this device"?
You could try reflashing the vulnerable bootloader but I doubt that will help. In all likelihood one of numerous (over a dozen) 'hidden' partitions was touched by the encryption attempt. At present there is not a comprehensive catalog of contents and, more importantly, a means for restoring back to 'stock'.

@draxie - thoughts?
 

draxie

Senior Member
Apr 20, 2014
515
642
Locked bootloader?

You could try reflashing the vulnerable bootloader but I doubt that will help. In all likelihood one of numerous (over a dozen) 'hidden' partitions was touched by the encryption attempt. At present there is not a comprehensive catalog of contents and, more importantly, a means for restoring back to 'stock'.

@draxie - thoughts?

Given that hashes and signatures are checked before loading
each new stage in the boot process, the bootloader must be
good, if the device is able to boot at all. On the other hand,
based on what works and what doesn't, I'd say the bootloader
is likely locked.
 
Given that hashes and signatures are checked before loading
each new stage in the boot process, the bootloader must be
good, if the device is able to boot at all. On the other hand,
based on what works and what doesn't, I'd say the bootloader
is likely locked.

Yesterday i've re-unlocked the bootloader. Every output says success. But i'm unable to boot any 7.x Android. hmm ... freaky ...
 

DB126

Senior Member
Oct 15, 2013
15,362
10,174
Yesterday i've re-unlocked the bootloader. Every output says success. But i'm unable to boot any 7.x Android. hmm ... freaky ...
I'm sticking with this at least conceptually. Nougat encryption is implemented differently than Android 4.4-6.x and remains a work-in-progress. The link below offers a laymen's perspective on some of the issues and hints at the problem you are currently experiencing. Me thinks the keys (or at least a flag) are resident in an area of permanent storage that remains untouched by standard partition wipes. Android 7.x based ROMs notice that and balk during boot while 6.x and lower ROMs are clueless to the previous device state. Good luck.

https://blog.cryptographyengineering.com/2016/11/24/android-n-encryption/
 
Last edited:
  • Like
Reactions: draxie

draxie

Senior Member
Apr 20, 2014
515
642
FBE == ext4 encryption

I'm sticking with this at least conceptually. Nougat encryption is implemented differently than Android 4.4-6.x and remains a work-in-progress. The link below offers a laymen's perspective on some of the issues and hints at the problem you are currently experiencing. Me thinks the keys (or at least a flag) are resident in an area of permanent storage that remains untouched by standard partition wipes. Android 7.x based ROMs notice that and balk during boot while 6.x and lower ROMs are clueless to the previous device state. Good luck.

https://blog.cryptographyengineering.com/2016/11/24/android-n-encryption/

OK. So, I've done some reading on the new FBE in Nougat...
https://source.android.com/security/encryption/file-based
https://blog.compass-security.com/2016/10/android-7-0-security-features-direct-boot/
http://www.delaat.net/rp/2016-2017/p45/report.pdf

Based on the above, FBE _should_ only directly affect /data,
(i.e. other partitions _may_ be implicated if the TEE uses them,
but I'm not convinced that matters, since the TEE is consulted
only if FBE is turned on, which is indicated in the filesystem).

On the other hand, the ext4 filesystem needs to be reformatted
to get rid of the FBE flags. I suspect that TWRP does NOT do this.
At least, the feedback it gives (I've just done a _complete_ wipe
of my test Thor, checking _ALL_ available checkboxes) only says
"wiping" for both /data and /data/media, but it says "formatting"
for cache and system...

I'd suggest testing the following **after** making a backup:
Code:
adb shell su -c "make_ext4fs /dev/block/mmcblk0p23"

This should not have any adverse effects (beyond obliterating
*all* data on /data *including* /data/media), since Android will
set this up properly again. I've just tested this after verifying
that 'wipe' still left (or re-created) some files on /data...
I sideloaded AEX (since data was pristine, I couldn't push the
ZIP anywhere...) and everything worked as expected.
NB: I have *not* verified that this solves the encryption issue,
only that it won't make things worse...
 
Last edited:
  • Like
Reactions: AsakuraVN and DB126

DB126

Senior Member
Oct 15, 2013
15,362
10,174
OK. So, I've done some reading on the new FBE in Nougat...

...On the other hand, the ext4 filesystem needs to be reformatted
to get rid of the FBE flags. I suspect that TWRP does NOT do this.
At least, the feedback it gives (I've just done a _complete_ wipe
of my test Thor, checking _ALL_ available checkboxes) only says
"wiping" for both /data and /data/media, but it says "formatting"
for cache and system...
FWIW - TWRP does have the ability format/reformat/resize various partitions including /data. Believe it's buried under the Advance menu. That said, the adb command is probably cleaner/easier/quicker. And safer IMHO as there is no temptation to resize which is usually fatal on Android.
 

draxie

Senior Member
Apr 20, 2014
515
642
Are you sure?

FWIW - TWRP does have the ability format/reformat/resize various partitions including /data. Believe it's buried under the Advance menu. That said, the adb command is probably cleaner/easier/quicker. And safer IMHO as there is no temptation to resize which is usually fatal on Android.

That functionality must have been removed from the version of TWRP I'm using...
The only remotely similar functionality under Advanced in @ggow's 3.1.1-1 build is
Partition SD Card, and when you try to run that with Internal Storage, you get an
error message saying 'You must select a removable device'.

In any case, all I meant was that the Advanced Wipe for Data and Internal Data
does not appear to reformat...
 
OK. So, I've done some reading on the new FBE in Nougat...
https://source.android.com/security/encryption/file-based
https://blog.compass-security.com/2016/10/android-7-0-security-features-direct-boot/
http://www.delaat.net/rp/2016-2017/p45/report.pdf

Based on the above, FBE _should_ only directly affect /data,
(i.e. other partitions _may_ be implicated if the TEE uses them,
but I'm not convinced that matters, since the TEE is consulted
only if FBE is turned on, which is indicated in the filesystem).

On the other hand, the ext4 filesystem needs to be reformatted
to get rid of the FBE flags. I suspect that TWRP does NOT do this.
At least, the feedback it gives (I've just done a _complete_ wipe
of my test Thor, checking _ALL_ available checkboxes) only says
"wiping" for both /data and /data/media, but it says "formatting"
for cache and system...

I'd suggest testing the following **after** making a backup:
Code:
adb shell su -c "make_ext4fs /dev/block/mmcblk0p23"

This should not have any adverse effects (beyond obliterating
*all* data on /data *including* /data/media), since Android will
set this up properly again. I've just tested this after verifying
that 'wipe' still left (or re-created) some files on /data...
I sideloaded AEX (since data was pristine, I couldn't push the
ZIP anywhere...) and everything worked as expected.
NB: I have *not* verified that this solves the encryption issue,
only that it won't make things worse...

COOL! This solved my issue! Many thanks to all of you! ;)

Regards
 
  • Like
Reactions: draxie and DB126

arshileus

Senior Member
Apr 6, 2017
60
0
Hello,

Maybe it's offtopic for here, but i really need to find proper way for rooting kindle fire hdx.
I was looking for in different posts, but can't find.
Please, help me.
 

CocoBun

Senior Member
Apr 18, 2016
199
25
Morganton, North Carolina
It says two new touchscreen gesture options have been added for lowering and raising the media volume in the changelog on lineagos.org but how do you get to it? I couldn't find anything about it in settings
 

Top Liked Posts

  • There are no posts matching your filters.
  • 57
    Disclaimer
    Code:
    [COLOR="gray"]
    /*
     * I am not responsible for bricked devices, dead SD cards, thermonuclear war,
     * or you getting fired [B]because the alarm app failed[/B].
     * Please do some research if you have any concerns about features included
     * in the products you find here before flashing it!
     * YOU are choosing to make these modifications.
     */
    [/COLOR]

    Rules
    - Please search the thread before asking questions
    - Please try to stay on topic, I know it's not always possible

    Reporting Bugs
    - Please report bugs here
    - Report only one issue per bug report
    - When reporting bugs please post a logcat and/or dmesg containing pertinent information regarding the issue...
    - Explain the issue as clearly as possible
    - Explain the steps required to reproduce the issue if necessary.

    Prerequisites for Installation
    - Must have an unlocked bootloader
    - Update TWRP to Android-7.1 builds located here. Please make sure to use the recovery image which is appropriate for your device (Thor or Apollo).

    Project Status
    BETA TESTING -- QUALITY IS GETTING BETTER BUT TAKE A LOOK AT THE FUNCTIONALITY GRID IN POST #2

    KNOWN ISSUES
    - Thor/Apollo: Some apps may rotate to landscape the wrong way leaving the screen upside down. Many times you can re-rotate the device to fix.
    - Thor/Apollo: Sometimes after an extended period of time Wifi will stop working. Toggling airplaine mode fixes it.
    - Thor/Apollo: Bluetooth pairing issues - bluetooth function is still WIP.

    Fresh Installation
    - Backup your existing ROM first
    - Wipe the /data partition (but you can keep the media storage)
    - Flash the ROM File
    - Flash Open Gapps: use an ARM 7.1 version smaller than the "full" size to make sure it fits
    - Reboot
    - Enjoy!

    LineageOS Developer Builds / Downloads
    LineageOS Builds for Thor
    LineageOS Builds for Apollo

    Gapps
    - Open Gapps (use a size smaller than "Full" to make sure it fits)

    NOTE: Here's what I do to solve the "Play Games" side load issue... Anytime I update my GApps zip file:
    - I download the "full" and "mini" versions of GApps
    - Extract the "GApps/playgames-arm.tar.lz" file from the "full" file and add it to the "GApps" folder of the "mini" file.
    - Open the installer.sh script in the "mini" file and move the "playgames" line from the full_gapps_list= section into the mini_gapps_list= section
    - I use this modified "mini" .zip when flashing CM-14.1 ROMs so that my Play Games install always works.

    Source Code (branch: cm-14.1)
    - Kernel Source
    - Common Device Tree
    - Thor Device Tree
    - Apollo Device Tree

    Credits
    - LineageOS Team
    - Cyanogenmod Team
    - CodeAurora
    - ggow
    - Cpasjuste
    - dpeddi

    XDA:DevDB Information
    LineageOS for Kindle HDX 3rd Gen, ROM for the Amazon Kindle Fire HDX 7" & 8.9"

    Contributors
    Hashcode, ggow
    ROM OS Version: 7.x Nougat
    ROM Kernel: Linux 3.4.x
    Based On: LineageOS

    Version Information
    Status: Beta
    Beta Release Date: 2016-12-16

    Created 2016-12-11
    Last Updated 2020-07-05
    23
    New Build is Up

    - Dated 15 March 2018
    - Security patches up to March 2018
    - Upstream Lineage Updates
    NOTE: I am working on Lineage-15.1, will let you know when I have made more progress. I have started pushing commits here.
    18
    @ggow @Hashcode
    hey there, are you alright?
    hows going. i hope you both are fine.
    there are any news about oreo or new security updates? :)
    have a nice week.

    Hello All,

    - For lineage-14.1 - I'm waiting for May 2018 patches before building again.
    - For lineage-15.1, the WiFi bring is proving problematic, number 1 problem is difficult to solve and number 2 new job is taking a lot of bandwidth

    I'm still around, promise I won't just disappear without saying ;)
    18
    New Build is Up

    - Dated 16 March 2019
    - Security patches up to March 2019
    - Upstream Lineage Updates
    16
    Typically @ggow indicates if support is being curtailed/withdrawn. Don't see that happening anytime soon given the popularity of LineageOS. Frequency is driven by upstream and resource availability. Might be a bit irregular but it will come. :)

    Yes, I do not plan to stop HDX development any time soon. I will wait for the March patches to be included then do another build. Things have been slow, I have been promoted at work and so extra bandwidth is been used there and also busy at home.

    But remember I'm here still doing what I can in what little time I have :)