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

[ROM][UNOFFICIAL][9.0.0_r49] [F500,LS991,H81x,US991,VS986] Havoc-OS 2.9 Final

Search This thread

aoleary

Senior Member
Nov 16, 2012
941
894
[ROM][UNOFFICIAL][9.0.0_r40] [F500,LS991,H81x,US991,VS986] AospExtended v6.7
Havoc_Logo.png



About.png

Code:
[SIZE="3"]Havoc-OS 2.9 is based on AOSP, inspired by Google Pixel.
So many features that you probably won't find in any ROM.
All you can dream of and all you'll ever need.
Just flash and enjoy...[/SIZE]


Features.png

Code:
[SIZE="2"][SIZE="3"][B][U]General:[/B][/U][/SIZE]

MD2 UI
Rounded UI
Pixel Lockscreen weather
Substratum Support
Compiled using SDCLANG
OTA Support
Signature Spoofing
Micro-G support
Lockscreen charging animation

[SIZE="3"][B][U]Status Bar:[/B][/U][/SIZE]

Double tap to sleep
Statusbar brightness slide
Quick & Smart pulldown
Clock Settings
Breathing Notifications
Battery customization
Battery bar
Network traffic indicator
Carrier label customization
Notifications count
volte icon toggle
Bluetooth battery status
Old Mobile type style
4G/LTE icon switch
Data disable icon toggle

[SIZE="3"][B][U]Quick Settings:[/B][/U][/SIZE]

Layout customization
Brightness Slider customization
  Auto Brightness icon
  Bottom brightness slider
Running services icon toggle

[SIZE="3"][B][U]Interface:[/B][/U][/SIZE]

Expanded Desktop
Themes
  Background Color(Light/Dark/Black)
  Notification Color(Light/Dark/Black)
  Accent Color Picker
  Auto Night mode
  QS Header Style
  QS Tile Style
Font Manager
Rounded Corner adjuster
Dashboard toggles

[SIZE="3"][B][U]Ambient Display:[/B][/U][/SIZE]

Now Playing
Now Playing History
Always On Display
Ambient Display options(Tilt/Pick-up/Hand wave/Pocket)

[SIZE="3"][B][U]Screen:[/B][/U][/SIZE]

Smart Pixel
Screen Stabilization

[SIZE="3"][B][U]Buttons:[/B][/U][/SIZE]

Volume Rockers
  Switch to make ringtone volume slider default
  Dialog timeout
  Volume steps
  Keyboard cursor control
  Reorient on rotate
  Music Control
  Volume Rocker Wake
  Volume keys call answer
Power Button
  Power Menu customization
  Screen off power button torch
Hardware keys
  Disable keys
  Swap keys
  Backlight timeout
  Backlight adjuster
  Accidental touch toggle
  Single/Double/Long-press button action
  
[SIZE="3"][B][U]Navigation bar:[/B][/U][/SIZE]

Pixel animation
One-handed mode
Navbar Pulse
Navbar button Swap
Layout
Extra button

[SIZE="3"][B][U]Gestures:[/B][/U][/SIZE]

System Gestures
  Jump to camera
  Prevent ringtone
  Swipe up on home button
  Full gesture mode
Swipe to Screenshot
Swipe Gestures
Navigation
  Swipe up gesture
  Edge gesture
  App Circle bar
  Pie control
  Gesture Anywhere
  
[SIZE="3"][B][U]Lockscreen:[/B][/U][/SIZE]

Double tap to sleep
Media cover art
Lockscreen Visualizer
Clock/Date Font stlye & Size
Weather unit
Unlocking
  Pin Ripple
  FP authentication vibrate
  Face auto unlock
  FP unlock on reboot
  Pocket detect
  Quick Unlock
  Scramble layout
  Direct unlock
Disable Lockscreen Elements
  Disable Quick Settings
  Disable Statusbar
Lockscreen charging info
Hide lockscreen bottom elements
Lockscreen shortcuts

[SIZE="3"][B][U]Recents:[/B][/U][/SIZE]

Recents style(Pie/Oreo/OmniSwitch)
Oreo Recent customization
  Clear all button
  Memory bar
Immersive recents
Hide app from recents

[SIZE="3"][B][U]Notifications:[/B][/U][/SIZE]

Lights Customization
  Charging light
  notification light
  Blink Flashlight on Call
FC notification disable
Disable Immersive messages
Heads Up
  Customization
  Less Boring Heads Up
Ticker Notification
Ticker Animation
Misc
  Toast Icon togggle
  Noisy Notification toggle
  Force Expanded notification
In-call Vibration customization

[SIZE="3"][B][U]Animations:[/B][/U][/SIZE]

Disable animation
Animation Duration
Animation customization
List view animation
QS tile animation
Power menu animation
Screen off animation
Toast animation
Scrolling Cache

[SIZE="3"][B][U]System:[/B][/U][/SIZE]

Signature Spoofing
CPU info
Privacy Guard
Chooser Activity blacklist
Burn-in protection

[SIZE="3"][B][U]IME Settings:[/B][/U][/SIZE]

Selector notification
Auto keyboard rotation
Disable fullscreen keyboard
Show enter key

[SIZE="3"][B][U]Battery Saving:[/B][/U][/SIZE]

Sensor block per-package
Alarm Blocker
Wakelock Blocker
Suspended Actions
Doze settings

[SIZE="3"][B][U]Miscellaneous:[/B][/U][/SIZE]

MediaScanner behaviour on boot
Wake up on charge
Launch music app
Screenshot type(Fullscreen/Partial)

[SIZE="3"][B][U]Other Features:[/B][/U][/SIZE]

Advanced Battery info
Night Light brightness options
On-the-go mode 
Prevent Accidental wake-up
Seperate ringtone for SIM1&2

[SIZE="3"][B][U]QS Tile Shortcuts:[/B][/U][/SIZE]

  Heads Up tile
  Caffeine tile
  Ring mode tile
  CPU info tile
  Suspended action tile
  Smart pixel tile
  Now playing tile
  Ambient display tile
  AOD tile
  Screenrecord tile
  Stabilization tile
  Gaming Mode tile
  Screenshot tile
  Accidental touch tile
  Alarm/Calc/Phone/Camera/Music tiles
  Expanded Desktop tile
  Havoc settings tile
  HW key tile
  LTE tile
  Navbar tile
  On the go tile
  Pie control tile
  Reboot tile
  Sleep screen tile
  Accent picker tile
  Volume panel tile
  High Brightness tile

[/SIZE]
Screenshots.png


Team.png



Links.png



Installation.png


1. Download the ROM, Firmware and GApps from the links above
2. Wipe System, Data, Dalvik, Cache (if it first installation)
3. Flash the latest Firmware for the respective device
4. Flash the ROM and GApps
5. Reboot and Enjoy


Credits.png

MSM-Xtended Team
Nitrogen Project
Crdroid
Omnirom
Syberia Project
And all the other Developers, Testers, and Users.


Source.png


XDA:DevDB Information
Havos-OS v2.9, ROM for the LG G4

Contributors
ksrt12, ZeNiXxX, SKULSHADY
Source Code: https://github.com/Havoc-OS

Special thanks to steadfasterX who fixed RIL and a whole load of other stuff, and Pie would not be possible without him..
Thanks to kessaras, who flew the flag for the G4 for so long and did most of the initial heavy lifting

Source Code: https://github.com/Havoc-OS/
Device trees: https://github.com/aoleary/

ROM OS Version: 9.x Pie
ROM Kernel: Linux 3.x
Based On: AOSP

Version Information
Status: Stable
Stable Release Date: 2019-11-21

Created 2019-11-21
Last Updated 22019-11-21
 
Last edited:

aoleary

Senior Member
Nov 16, 2012
941
894
Last edited:

aoleary

Senior Member
Nov 16, 2012
941
894
Frequently Asked Questions (FAQ)
Note, I have shamelessly kanged this from the LOS16 thread by @steadfasterX

Q #01: I want to report an issue. What is the proper way to do so?
I'm glad that you are asking: before doing so check the KNOWN ISSUES topic in the OP!
If your issue is not listed there click here to proceed:
If your issue is not listed there follow the directions here briefly and I may can fix it:

logcat GUIDE

If you encountered a kernel panic follow FAQ #6 in this post instead.

Ensure you have done a full CLEAN install before doing so (refer to FAQ #2 for what that means).

Warning: NO SUPPORT when:
- magisk is installed (known to cause issues sometimes - regardless of the ROM or version)
- Xposed is installed (known to cause issues sometimes - regardless of the ROM or version)
If you have installed any of these UNINSTALL or better do a FULL CLEAN install (see FAQ #2) before doing anything else. Often enough these above causes several issues like battery draining, problems on booting and much more. Even when they may work properly you should re-produce your issue without them first and follow the above to grab the log.

Magisk is a great piece of software and besides that it is Open Source which SuperSu never was.
I just saying I do not "support" issues with LOS when you have Magisk installed. Why? It is (like Xposed) extendable with modules (made by whoever) and those can cause billions of issues.
Other then that magisk was sometimes the reason for battery drain etc. Magisk modifies the boot "process" and sits very deep in the system (which is needed to make it work ofc) but that has the potential to make a system/ROM unstable or result in strange behaviors.

so in order to support a specific issue I have to be sure the ROM is in a "clean" state, no magisk, no xposed. The LOS root-addon is tested with LOS and made for it so that is not an issue but for the rest there are so many things which can going wrong..


Q #02: I want to install clean, how? What is a clean install? What is the recommended way to flash a new ROM version?
A clean install ensures that there are no leftovers from any previous install. One can say that there are 2 phases of a clean flash:
1) regular
2) full - when you (still) encounter issues

Usually the regular one is fully ok when flashing a new ROM version but if you encounter strange issues nobody else is reporting or if a release post is recommending it you should do a full clean install instead.

A regular clean install can be done like this:
  • WIPE -> Advanced -> select: System + Cache
  • Flash the ROM
  • reflash root addon/magisk if you want root
  • reflash opengapps if you want to use Google crap

A full clean install needs 2 steps more then the regular:
  • follow the steps for regular clean
  • go back in WIPE -> touch the "FORMAT data" button and type "yes" to format the internal storage (you will LOOSE ALL YOUR DATA - obviously)
  • REBOOT -> Recovery
  • Flash the ROM
  • reflash root addon/magisk if you want root
  • reflash opengapps if you want to use Google crap
It is absolutely recommended to create a backup before and COPYING IT to your PC(!) before doing the above.



Q #03: It looks like the CPU cores 5 and 6 are disabled - how can I fix that?
TLDR;
There is no fix required! it is fully ok when those are idle. they get hot plugged whenever needed.
Details:
we have 2 clusters of CPU cores resulting in a Hexa-core CPU set: (4x1.4 GHz Cortex-A53 & 2x1.8 GHz Cortex-A57)
the big one (2 CPU cores - higher performance = more battery drain, more heat which potentially causing the: bootloop issue) and the little (4 CPU cores - less battery drain but a bit slower) are handled dynamically based on the load of your device.
the big cluster will run ONLY when it is NEEDED - i.e. high load.
so when you look closer: those are not DISABLED they are IDLE which is a big difference.



Q #04: I get a kernel panic or green/purple/blue screen how to grab logs for this?
You need a ROM with pstore fully enabled and working (pstore = debug kernel panics/oops happened in a ROM)!

All builds starting from 2019-08-15 on support pstore due to: commit#1, commit#2, commit#3

This is a 2-site change if you want to make use of it in TWRP you must install the latest TWRP "PREVIEW" release as well (TWRP is only able to show pstore logs when the ROM is able to write them so I needed to fix pstore in the ROM first (see above commits #1 + #2 )).
Besides those 2 patches these kernel configs were set: PSTORE

You can check if a ROM does support writing pstore logs by:

as soon as possible on a fresh boot:
Code:
adb shell
dmesg | grep "ramoops|pstore"

Code:
[    0.000000] cma: Found [email protected], memory base 0x000000001fe00000, size 2 MiB, limit 0xffffffffffffffff
[    0.000000] cma: CMA: reserved 2 MiB at 0x000000001fe00000 for ramoops_mem
[    0.200846] cma: Assigned CMA region at 0 to ramoops.78 device
[B][    3.957553] console [pstore-1] enabled[/B]
[B][    3.957939] ramoops: attached [email protected], ecc: 16/0[/B]
[    3.958079] drv probe : 200 ramoops 3744
[    6.262463] SELinux: initialized (dev pstore, type pstore), uses genfs_contexts

or (if you are not fast enough) this ensures mostly the same check:

Code:
adb shell
ls -la /dev/pmsg0

Code:
crw-rw-rw- 1 camera camera 254,   0 2015-01-05 04:54 /dev/pmsg0
If you get no output your ROM does not support pstore logs.

From now on when you encounter a kernel panic and you are able to reboot without taking out the battery (taking out the battery will erase RAM):
1) reboot (without taking out the battery!) to either TWRP or (if you have root access) to your ROM
2) grab everything need from here: /sys/fs/pstore/ (e.g. adb pull /sys/fs/pstore/)
If you don't have a pc near you can do it directly from the device as well:

Enable the terminal app in developer options or download any
Open the terminal app.

su
cd /sdcard/Download
tar czf pstore.tgz /sys/fs/pstore

Attach pstore.tgz to your post.

It is crucial important that you do this only after the reboot happened . It's not important "when" though - as long as the device stays powered on.

Developers note:
convert PMSG log
Code:
tr -cd '\11\12\15\40-\176' < pmsg-ramoops-0 > readable-pmsg.txt
 
Last edited:

sperelli

Senior Member
Nov 24, 2011
1,498
246
how to gain root without magisk?
flashing magisk zip causes bootloop at lockscreen...
 
Last edited:

Biber_Golge

Member
Jun 24, 2017
11
0
does wifi direct work?

---------- Post added at 02:11 PM ---------- Previous post was at 02:07 PM ----------

how to gain root without magisk?
flashing magisk zip causes bootloop at lockscreen...
Use twrp file explorer, Go to the /data/system folder. Scroll down and you will find the two files with the .key extension. Delete both of them (by tapping on the file and then tapping the Delete button). Then, delete all the files containing the word lock settings.
- password.key
- pattern.key
- locksettings.db
- locksettings.db-shm
- locksettings.db-wal
And reboot
Thast is all ?
 

sperelli

Senior Member
Nov 24, 2011
1,498
246
does wifi direct work?

---------- Post added at 02:11 PM ---------- Previous post was at 02:07 PM ----------


Use twrp file explorer, Go to the /data/system folder. Scroll down and you will find the two files with the .key extension. Delete both of them (by tapping on the file and then tapping the Delete button). Then, delete all the files containing the word lock settings.
- password.key
- pattern.key
- locksettings.db
- locksettings.db-shm
- locksettings.db-wal
And reboot
Thast is all ?

thank u, but i am not stuck.
i need to get root and magisk doesn t work
 

aoleary

Senior Member
Nov 16, 2012
941
894
does wifi direct work?

---------- Post added at 02:11 PM ---------- Previous post was at 02:07 PM ----------


Use twrp file explorer, Go to the /data/system folder. Scroll down and you will find the two files with the .key extension. Delete both of them (by tapping on the file and then tapping the Delete button). Then, delete all the files containing the word lock settings.
- password.key
- pattern.key
- locksettings.db
- locksettings.db-shm
- locksettings.db-wal
And reboot
Thast is all ?
He has a bootloop. Not the issue where one can't unlock the phone after restoring from a backup..


WiFi Direct doesn't work on the G4, unfortunately. Doesn't look likely to be fixed anytime soon..
 

sperelli

Senior Member
Nov 24, 2011
1,498
246
What Magisk version are you flashing?
V20.1 has no issues..

Also, did you do a clean flash? That means everything but Internal Storage
tbh i made a reset to stock and then again twrp etc... before flashing this one.

which modem and bootloader do you use, 29a for both?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 14
    [ROM][UNOFFICIAL][9.0.0_r40] [F500,LS991,H81x,US991,VS986] AospExtended v6.7
    Havoc_Logo.png



    About.png

    Code:
    [SIZE="3"]Havoc-OS 2.9 is based on AOSP, inspired by Google Pixel.
    So many features that you probably won't find in any ROM.
    All you can dream of and all you'll ever need.
    Just flash and enjoy...[/SIZE]


    Features.png

    Code:
    [SIZE="2"][SIZE="3"][B][U]General:[/B][/U][/SIZE]
    
    MD2 UI
    Rounded UI
    Pixel Lockscreen weather
    Substratum Support
    Compiled using SDCLANG
    OTA Support
    Signature Spoofing
    Micro-G support
    Lockscreen charging animation
    
    [SIZE="3"][B][U]Status Bar:[/B][/U][/SIZE]
    
    Double tap to sleep
    Statusbar brightness slide
    Quick & Smart pulldown
    Clock Settings
    Breathing Notifications
    Battery customization
    Battery bar
    Network traffic indicator
    Carrier label customization
    Notifications count
    volte icon toggle
    Bluetooth battery status
    Old Mobile type style
    4G/LTE icon switch
    Data disable icon toggle
    
    [SIZE="3"][B][U]Quick Settings:[/B][/U][/SIZE]
    
    Layout customization
    Brightness Slider customization
      Auto Brightness icon
      Bottom brightness slider
    Running services icon toggle
    
    [SIZE="3"][B][U]Interface:[/B][/U][/SIZE]
    
    Expanded Desktop
    Themes
      Background Color(Light/Dark/Black)
      Notification Color(Light/Dark/Black)
      Accent Color Picker
      Auto Night mode
      QS Header Style
      QS Tile Style
    Font Manager
    Rounded Corner adjuster
    Dashboard toggles
    
    [SIZE="3"][B][U]Ambient Display:[/B][/U][/SIZE]
    
    Now Playing
    Now Playing History
    Always On Display
    Ambient Display options(Tilt/Pick-up/Hand wave/Pocket)
    
    [SIZE="3"][B][U]Screen:[/B][/U][/SIZE]
    
    Smart Pixel
    Screen Stabilization
    
    [SIZE="3"][B][U]Buttons:[/B][/U][/SIZE]
    
    Volume Rockers
      Switch to make ringtone volume slider default
      Dialog timeout
      Volume steps
      Keyboard cursor control
      Reorient on rotate
      Music Control
      Volume Rocker Wake
      Volume keys call answer
    Power Button
      Power Menu customization
      Screen off power button torch
    Hardware keys
      Disable keys
      Swap keys
      Backlight timeout
      Backlight adjuster
      Accidental touch toggle
      Single/Double/Long-press button action
      
    [SIZE="3"][B][U]Navigation bar:[/B][/U][/SIZE]
    
    Pixel animation
    One-handed mode
    Navbar Pulse
    Navbar button Swap
    Layout
    Extra button
    
    [SIZE="3"][B][U]Gestures:[/B][/U][/SIZE]
    
    System Gestures
      Jump to camera
      Prevent ringtone
      Swipe up on home button
      Full gesture mode
    Swipe to Screenshot
    Swipe Gestures
    Navigation
      Swipe up gesture
      Edge gesture
      App Circle bar
      Pie control
      Gesture Anywhere
      
    [SIZE="3"][B][U]Lockscreen:[/B][/U][/SIZE]
    
    Double tap to sleep
    Media cover art
    Lockscreen Visualizer
    Clock/Date Font stlye & Size
    Weather unit
    Unlocking
      Pin Ripple
      FP authentication vibrate
      Face auto unlock
      FP unlock on reboot
      Pocket detect
      Quick Unlock
      Scramble layout
      Direct unlock
    Disable Lockscreen Elements
      Disable Quick Settings
      Disable Statusbar
    Lockscreen charging info
    Hide lockscreen bottom elements
    Lockscreen shortcuts
    
    [SIZE="3"][B][U]Recents:[/B][/U][/SIZE]
    
    Recents style(Pie/Oreo/OmniSwitch)
    Oreo Recent customization
      Clear all button
      Memory bar
    Immersive recents
    Hide app from recents
    
    [SIZE="3"][B][U]Notifications:[/B][/U][/SIZE]
    
    Lights Customization
      Charging light
      notification light
      Blink Flashlight on Call
    FC notification disable
    Disable Immersive messages
    Heads Up
      Customization
      Less Boring Heads Up
    Ticker Notification
    Ticker Animation
    Misc
      Toast Icon togggle
      Noisy Notification toggle
      Force Expanded notification
    In-call Vibration customization
    
    [SIZE="3"][B][U]Animations:[/B][/U][/SIZE]
    
    Disable animation
    Animation Duration
    Animation customization
    List view animation
    QS tile animation
    Power menu animation
    Screen off animation
    Toast animation
    Scrolling Cache
    
    [SIZE="3"][B][U]System:[/B][/U][/SIZE]
    
    Signature Spoofing
    CPU info
    Privacy Guard
    Chooser Activity blacklist
    Burn-in protection
    
    [SIZE="3"][B][U]IME Settings:[/B][/U][/SIZE]
    
    Selector notification
    Auto keyboard rotation
    Disable fullscreen keyboard
    Show enter key
    
    [SIZE="3"][B][U]Battery Saving:[/B][/U][/SIZE]
    
    Sensor block per-package
    Alarm Blocker
    Wakelock Blocker
    Suspended Actions
    Doze settings
    
    [SIZE="3"][B][U]Miscellaneous:[/B][/U][/SIZE]
    
    MediaScanner behaviour on boot
    Wake up on charge
    Launch music app
    Screenshot type(Fullscreen/Partial)
    
    [SIZE="3"][B][U]Other Features:[/B][/U][/SIZE]
    
    Advanced Battery info
    Night Light brightness options
    On-the-go mode 
    Prevent Accidental wake-up
    Seperate ringtone for SIM1&2
    
    [SIZE="3"][B][U]QS Tile Shortcuts:[/B][/U][/SIZE]
    
      Heads Up tile
      Caffeine tile
      Ring mode tile
      CPU info tile
      Suspended action tile
      Smart pixel tile
      Now playing tile
      Ambient display tile
      AOD tile
      Screenrecord tile
      Stabilization tile
      Gaming Mode tile
      Screenshot tile
      Accidental touch tile
      Alarm/Calc/Phone/Camera/Music tiles
      Expanded Desktop tile
      Havoc settings tile
      HW key tile
      LTE tile
      Navbar tile
      On the go tile
      Pie control tile
      Reboot tile
      Sleep screen tile
      Accent picker tile
      Volume panel tile
      High Brightness tile
    
    [/SIZE]
    Screenshots.png


    Team.png



    Links.png



    Installation.png


    1. Download the ROM, Firmware and GApps from the links above
    2. Wipe System, Data, Dalvik, Cache (if it first installation)
    3. Flash the latest Firmware for the respective device
    4. Flash the ROM and GApps
    5. Reboot and Enjoy


    Credits.png

    MSM-Xtended Team
    Nitrogen Project
    Crdroid
    Omnirom
    Syberia Project
    And all the other Developers, Testers, and Users.


    Source.png


    XDA:DevDB Information
    Havos-OS v2.9, ROM for the LG G4

    Contributors
    ksrt12, ZeNiXxX, SKULSHADY
    Source Code: https://github.com/Havoc-OS

    Special thanks to steadfasterX who fixed RIL and a whole load of other stuff, and Pie would not be possible without him..
    Thanks to kessaras, who flew the flag for the G4 for so long and did most of the initial heavy lifting

    Source Code: https://github.com/Havoc-OS/
    Device trees: https://github.com/aoleary/

    ROM OS Version: 9.x Pie
    ROM Kernel: Linux 3.x
    Based On: AOSP

    Version Information
    Status: Stable
    Stable Release Date: 2019-11-21

    Created 2019-11-21
    Last Updated 22019-11-21
    12
    DT2W is back

    Hello all,
    New h811/h815 builds uploaded today with Double Tap to Wake reimplemented.

    I have rebased on SFXs trees, so now the device should be even more stable..

    Enjoy!!
    5
    Pie-related bugs
    https://github.com/Suicide-Squirrel/issues_pie/issues

    TWRP for Pie
    https://forum.xda-developers.com/g4/development/recovery-twrp-3-touch-recovery-t3442424

    LG G4 Users Group on Telegram
    A Telegram group for us to hang out and discuss and share logs relating to the LG G4
    https://t.me/joinchat/EwLibA3rnTMbuY4KHC2R8Q

    This ROM is compatible with UsU
    [F500,LS991,H81x,US991,VS986]
    4
    Frequently Asked Questions (FAQ)
    Note, I have shamelessly kanged this from the LOS16 thread by @steadfasterX

    Q #01: I want to report an issue. What is the proper way to do so?
    I'm glad that you are asking: before doing so check the KNOWN ISSUES topic in the OP!
    If your issue is not listed there click here to proceed:
    If your issue is not listed there follow the directions here briefly and I may can fix it:

    logcat GUIDE

    If you encountered a kernel panic follow FAQ #6 in this post instead.

    Ensure you have done a full CLEAN install before doing so (refer to FAQ #2 for what that means).

    Warning: NO SUPPORT when:
    - magisk is installed (known to cause issues sometimes - regardless of the ROM or version)
    - Xposed is installed (known to cause issues sometimes - regardless of the ROM or version)
    If you have installed any of these UNINSTALL or better do a FULL CLEAN install (see FAQ #2) before doing anything else. Often enough these above causes several issues like battery draining, problems on booting and much more. Even when they may work properly you should re-produce your issue without them first and follow the above to grab the log.

    Magisk is a great piece of software and besides that it is Open Source which SuperSu never was.
    I just saying I do not "support" issues with LOS when you have Magisk installed. Why? It is (like Xposed) extendable with modules (made by whoever) and those can cause billions of issues.
    Other then that magisk was sometimes the reason for battery drain etc. Magisk modifies the boot "process" and sits very deep in the system (which is needed to make it work ofc) but that has the potential to make a system/ROM unstable or result in strange behaviors.

    so in order to support a specific issue I have to be sure the ROM is in a "clean" state, no magisk, no xposed. The LOS root-addon is tested with LOS and made for it so that is not an issue but for the rest there are so many things which can going wrong..


    Q #02: I want to install clean, how? What is a clean install? What is the recommended way to flash a new ROM version?
    A clean install ensures that there are no leftovers from any previous install. One can say that there are 2 phases of a clean flash:
    1) regular
    2) full - when you (still) encounter issues

    Usually the regular one is fully ok when flashing a new ROM version but if you encounter strange issues nobody else is reporting or if a release post is recommending it you should do a full clean install instead.

    A regular clean install can be done like this:
    • WIPE -> Advanced -> select: System + Cache
    • Flash the ROM
    • reflash root addon/magisk if you want root
    • reflash opengapps if you want to use Google crap

    A full clean install needs 2 steps more then the regular:
    • follow the steps for regular clean
    • go back in WIPE -> touch the "FORMAT data" button and type "yes" to format the internal storage (you will LOOSE ALL YOUR DATA - obviously)
    • REBOOT -> Recovery
    • Flash the ROM
    • reflash root addon/magisk if you want root
    • reflash opengapps if you want to use Google crap
    It is absolutely recommended to create a backup before and COPYING IT to your PC(!) before doing the above.



    Q #03: It looks like the CPU cores 5 and 6 are disabled - how can I fix that?
    TLDR;
    There is no fix required! it is fully ok when those are idle. they get hot plugged whenever needed.
    Details:
    we have 2 clusters of CPU cores resulting in a Hexa-core CPU set: (4x1.4 GHz Cortex-A53 & 2x1.8 GHz Cortex-A57)
    the big one (2 CPU cores - higher performance = more battery drain, more heat which potentially causing the: bootloop issue) and the little (4 CPU cores - less battery drain but a bit slower) are handled dynamically based on the load of your device.
    the big cluster will run ONLY when it is NEEDED - i.e. high load.
    so when you look closer: those are not DISABLED they are IDLE which is a big difference.



    Q #04: I get a kernel panic or green/purple/blue screen how to grab logs for this?
    You need a ROM with pstore fully enabled and working (pstore = debug kernel panics/oops happened in a ROM)!

    All builds starting from 2019-08-15 on support pstore due to: commit#1, commit#2, commit#3

    This is a 2-site change if you want to make use of it in TWRP you must install the latest TWRP "PREVIEW" release as well (TWRP is only able to show pstore logs when the ROM is able to write them so I needed to fix pstore in the ROM first (see above commits #1 + #2 )).
    Besides those 2 patches these kernel configs were set: PSTORE

    You can check if a ROM does support writing pstore logs by:

    as soon as possible on a fresh boot:
    Code:
    adb shell
    dmesg | grep "ramoops|pstore"

    Code:
    [    0.000000] cma: Found [email protected], memory base 0x000000001fe00000, size 2 MiB, limit 0xffffffffffffffff
    [    0.000000] cma: CMA: reserved 2 MiB at 0x000000001fe00000 for ramoops_mem
    [    0.200846] cma: Assigned CMA region at 0 to ramoops.78 device
    [B][    3.957553] console [pstore-1] enabled[/B]
    [B][    3.957939] ramoops: attached [email protected]1fe00000, ecc: 16/0[/B]
    [    3.958079] drv probe : 200 ramoops 3744
    [    6.262463] SELinux: initialized (dev pstore, type pstore), uses genfs_contexts

    or (if you are not fast enough) this ensures mostly the same check:

    Code:
    adb shell
    ls -la /dev/pmsg0

    Code:
    crw-rw-rw- 1 camera camera 254,   0 2015-01-05 04:54 /dev/pmsg0
    If you get no output your ROM does not support pstore logs.

    From now on when you encounter a kernel panic and you are able to reboot without taking out the battery (taking out the battery will erase RAM):
    1) reboot (without taking out the battery!) to either TWRP or (if you have root access) to your ROM
    2) grab everything need from here: /sys/fs/pstore/ (e.g. adb pull /sys/fs/pstore/)
    If you don't have a pc near you can do it directly from the device as well:

    Enable the terminal app in developer options or download any
    Open the terminal app.

    su
    cd /sdcard/Download
    tar czf pstore.tgz /sys/fs/pstore

    Attach pstore.tgz to your post.

    It is crucial important that you do this only after the reboot happened . It's not important "when" though - as long as the device stays powered on.

    Developers note:
    convert PMSG log
    Code:
    tr -cd '\11\12\15\40-\176' < pmsg-ramoops-0 > readable-pmsg.txt