[FLASHABLE] Fixes for ROMs/GSIs: FM Radio fix, Backlight fix and FaceUnlock remover - Redmi 7A Themes, Apps, and Mods

Most of them is outdated!​
Disclaimer: These fixes were not originally created by me (except for the FaceUnlock one), I just remade the updater-script on some and recompiled them in this thread for convenience, all credit goes to the proper authors.
FM Radio fix with app:
Download on AFH or look in attachments below.
Originally made by @dmitrypershin2015 on this thread.
I remade the original script because sometimes it wouldn't flash correctly (for me at least).
It probably works on any closely related Qualcomm SoC.
Tested on:
EvolutionX 4.4 GSI (Android Q)
BlissOS 12.8 GSI (Android Q)
HavocOS 3.6 GSI (Android Q)
dotOS 3.1.1 GSI (Android Pie)
Backlight vendor fix by YaAlex:
Download on AFH or look in attachments below.
Originally made by @YaAlex. I got the file from the 4PDA Redmi 7A forums, so you can check there if you want the original.
The original version was a Magisk module but I never got it to work so I made this version that just replaces the files directly in /vendor.
Warning: only flash this if the GSI you're using has the backlight issue, if it doesn't, then this patch will cause it instead of fixing the problem.
Tested on:
EvolutionX 4.4 GSI (Android Q)
FaceUnlock Service Remover (to avoid crash):
Download on AFH or look in attachments below.
The purpose of this fix is to remove the FaceUnlock apps from /system/app and /system/priv-app on certain GSIs that include them, since Face Unlock doesn't actually work and if you install GApps it won't let you complete the initial setup because the service will just keep crashing.
Tested on:
HavocOS 3.6 GSI (Android Q)
BlissOS 12.8 GSI (Android Q)

Thread closed per OP's request. Most of them is outdated!
Thank you for your contributions:highfive:
strongst
Forum Moderator

Related

[ROM] [7.1.x] Unofficial CyanogenMod 14.1 Nightly Builds (Z00A/Z008)

CyanogenMod is a free, community built, aftermarket firmware distribution of Android 7.x (Nougat), which is designed to increase performance and reliability over stock Android for your device.
Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* We are not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
*/
CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. You will need to provide your own Google Applications package (gapps). CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.
All the source code for CyanogenMod is available in the CyanogenMod Github repo. And if you would like to contribute to CyanogenMod, please visit our Gerrit Code Review. Your changelog is whatever was merged into gerrit.
Instructions
First time flashing CyanogenMod 14.1 on your device, or coming from another ROM?
Unlock Bootloader!
Download the zip(s).
Install Appropriate FW base (STOCK MM 4.21.40.xx base is required) simple FW update package is available at my download link
Install a compatible Recovery
Perform a NANDroid backup of your current ROM (Optional)
Wipe data & cache partitions of your device (required when coming from stock!).
Flash CyanogenMod.
Optional: Install the Google Apps addon package. Open Gapps x86 7.1
Broken Features / Known Issues
VIDEO ENCODER/DECODER ISSUES: This results in green lines on videos/pictures taken using the Intel HW encoder/decoder and other playback issues dependent on video formats. See the list below:
Snapchat: thin greeen line tends to appear on recorded videos for snapchat
Asus Pixelmaster Camera App: Super resolution mode does not work. Turning off "Optimizations" from settings clears up any green line issues.
Some video formats do not play as expected
FM Radio is unsupported.
audio is a little weird in Real Racing 3.
sim 2 cannot be disabled (this is true for all CM builds on non qualcomm hardware)
Other than Fugu (Nexus Player TV box) there are no Vendor released M x86/x86_64 builds in existance. You may experience some issues with GAPPS and some known apps not loading or working correctly. Below is a list of KNOWN apps that do not currently run on CM13 based x86 Zenfone 2 builds :
Polaris Office, Chase Mobile, Showbox...
DRM content is currently broken
Live Display (color calibration) not working yet
Screen recording not working
Chromecast screen mirroring not working, native casting works though.
factory reset from setting menu has been reported to cause recovery boot loops.
Battery life is horrible, numerous display wakelock issues
CM14 (not device specific issues)
No CMTE yet
Status bar icon changing broken
CM file manager has trouble accessing external sdcard
Battery profile is non functional/string errors
Other Issues?
Before posting on this thread, make sure of a few things:
You've utilized the search function of the forums. Nothing irritates me more than lazy people who do not search for an answer before asking or ask the same question over and over again.
If you are the only one having a problem. Boot into recovery, wipe data/factory reset, reflash the rom/gapps and nothing else. Boot up and see if the problem persists.
Make sure your post is relevant to this thread. "I'm having problems rooting/unlocking" is NOT relevant here.
LOGS LOGS LOGS!!!! Use this: SysLog by Tortel
As the Zenfone2 has multiple models from multiple countries please include the following information in your report:
model #
CPU Speed / RAM Size
device state when errors occur (BT/wifi/nfc on ? On a call ? sitting idle on shelf ? )
method to reproduce if you've found something consistent
Download Links
CyanogenMod for Z00A/ ze551ml: ROM
CyanogenMod for Z008/ ze550ml: ROM
Recovery Links
Z00A
MM BL compatible TWRP: TWRP
Z008
MM BL compatible TWRP: TWRP
Google apps addon:
Recommend GAPPS for now as the updated x86 gapps.
Flashable Modem updates:
FOR INFO ON MM BOOTLOADER BASED BUILDS SEE THIS POST
XDA:DevDB Information
CyanogenMod 14.1 Nightly Bulids (Z00A/Z008), ROM for the Asus ZenFone 2
Contributors
jrior001, crpalmer, say99
Source Code: https://github.com/CyanogenMod/android_kernel_asus_moorefield
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.10.x
ROM Firmware Required: 4.21.40.xxx stock base
Version Information
Status: Beta
Beta Release Date: 2016-11-09
Created 2016-11-09
Last Updated 2016-11-22
Reserved
Official CM-13.0 -> CM14.1 Upgrade Guide
As seen with my previous unofficial CM-13.0 builds based on the MM Stock roms, An upgrade to the MM Firmware and bootloader is required going forward.
This guide is here to assist.
1) Download ROM and 7.1 GAPPS
2) Download my Firmware Update package for Z00A or Z008 . FASTBOOT AND ADB ARE REQUIRED!
3) Follow the included instructions to update Firmware and flash the new compatible TWRP. If for some reason the new TWRP is not flashed automatically flash it manually via fastboot. "fastboot flash recovery recoverimagename.img
4) Reboot to recovery and flash CM 14 and Gapps, reboot and enjoy. Data Wipe on upgrade is not required
CM 14.1 from Stock MM
1) Unlock Bootloader
2) Flash compatible TWRP
3) Perform desired backups
4) From recovery, factory reset & install ROM & 7.1 GAPPS
5) Enjoy!
CM 14.1 from CM13 Mm based beta builds
1) Reboot to TWRP( should already have good version)
2) Flash CM14.1 and 7.1 GAPPS
3) Reboot and enjoy!!
Yes!!!
yes u made it sir.. most awaited build of the year.. we really appreciate your time and efforts given to the project.. May God bless you.. behalf of all the zf2 a big thanks to @jrior001 and @say99
Sent from my ASUS_Z008 using XDA-Developers mobile app
just a question. Do i need to be on MM Bloobs or can I upgrade straight from LP bloobs? Also has the Brazilian sensors bug been fixed on CM14.1?
leoarten said:
just a question. Do i need to be on MM Bloobs or can I upgrade straight from LP bloobs? Also has the Brazilian sensors bug been fixed on CM14.1?
Click to expand...
Click to collapse
Has this been resolved in stock? I've heard mixed reports. I've included the updated sensor firmware from the .144 stock update so if it's in there we got it.
See post 2 as I update it, gonna try trying o cover all possible situations in guide there.
Sent from my ASUS_Z00A using Tapatalk
Awesome!
Downloading...
Downloading now.
Is the camera bug still present on N? Shouldn't the MM BLOBS fix that?
Thanks for your effort, @jrior001 !!!!
Thanks.. but just to clarify.. I need to update bootloader to MM Blobbs before I install CM14 right? or just flash new TWRP and flash rom as per usual (from LP Bloobs)? Im a bit confused.. Yes I saw theres a MM Bloobs session.. but couldnt find the answer to this.
Awesome work btw
jrior001 said:
Has this been resolved in stock? I've heard mixed reports. I've included the updated sensor firmware from the .144 stock update so if it's in there we got it.
See post 2 as I update it, gonna try trying o cover all possible situations in guide there.
Sent from my ASUS_Z00A using Tapatalk
Click to expand...
Click to collapse
leoarten said:
Thanks.. but just to clarify.. I need to update bootloader to MM Blobbs before I install CM14 right? or just flash new TWRP and flash rom as per usual (from LP Bloobs)? Im a bit confused.. Yes I saw theres a MM Bloobs session.. but couldnt find the answer to this.
Awesome work btw
Click to expand...
Click to collapse
Direct from post #2:
Official CM-13.0 -> CM14.1 Upgrade Guide
As seen with my previous unofficial CM-13.0 builds based on the MM Stock roms, An upgrade to the MM Firmware and bootloader is required going forward.
This guide is here to assist.
1) Download ROM and 7.1 GAPPS
2) Download my Firmware Update package for Z00A or Z008 . FASTBOOT AND ADB ARE REQUIRED!
3) Follow the included instructions to update Firmware and flash the new compatible TWRP. If for some reason the new TWRP is not flashed automatically flash it manually via fastboot. "fastboot flash recovery recoverimagename.img
4) Reboot to recovery and flash CM 14 and Gapps, reboot and enjoy. Data Wipe on upgrade is not required
Sent from my ASUS_Z00A using Tapatalk
Thank you very much..
jrior001 said:
Direct from post #2:
Official CM-13.0 -> CM14.1 Upgrade Guide
As seen with my previous unofficial CM-13.0 builds based on the MM Stock roms, An upgrade to the MM Firmware and bootloader is required going forward.
This guide is here to assist.
1) Download ROM and 7.1 GAPPS
2) Download my Firmware Update package for Z00A or Z008 . FASTBOOT AND ADB ARE REQUIRED!
3) Follow the included instructions to update Firmware and flash the new compatible TWRP. If for some reason the new TWRP is not flashed automatically flash it manually via fastboot. "fastboot flash recovery recoverimagename.img
4) Reboot to recovery and flash CM 14 and Gapps, reboot and enjoy. Data Wipe on upgrade is not required
Sent from my ASUS_Z00A using Tapatalk
Click to expand...
Click to collapse
Thanks for your job, but no sensors found in brazilians devices...
ysllan said:
Thanks for your job, but no sensors found in brazilians devices...
Click to expand...
Click to collapse
Not that I can do anything about Asus's fail here but I'd like to see a logcat & dmesg captured from boot on this issue.
Sent from my ASUS_Z00A using Tapatalk
Is there Xposed for CM 14?
yumms said:
Is there Xposed for CM 14?
Click to expand...
Click to collapse
Nope right now. Just stay tuned for updates from rovo's thread.
Sent from my ASUS_Z00A using XDA Labs
jrior001 said:
Not that I can do anything about Asus's fail here but I'd like to see a logcat & dmesg captured from boot on this issue.
Sent from my ASUS_Z00A using Tapatalk
Click to expand...
Click to collapse
Did you use the 144 blobs? Asus solved problems with this version.
Enviado de meu ASUS_Z00A usando Tapatalk
I'm sorry to be a pain in the ars*. But you've mentioned you're basing on .144 stock update right? Having said that the link you posted with the zip to update bootloader Ive found files mentioning 4_21_40_134.bin (.134) wouldnt this be the reason sensors arent still working for brazilians devices? I had a look at Asus website and this is fix has been implemented on .144 update. So is this update on script and files updating bootloader or are they on the ROM itself..
Now I know the rules on XDA and I wouldnt dare to ask for ETA, however if this is the case, I would ask very politely if you could update the scripts files to .144 whenever's convenient for you and whenever you have time. That would be much appreciate. I will be coming back to this post and will be waiting anxiously for this.. Take you time and Thank you again.
jrior001 said:
Has this been resolved in stock? I've heard mixed reports. I've included the updated sensor firmware from the .144 stock update so if it's in there we got it.
See post 2 as I update it, gonna try trying o cover all possible situations in guide there.
Sent from my ASUS_Z00A using Tapatalk
Click to expand...
Click to collapse
jrior001, crpalmer, say99 are best!)) Makes backup and installed
see, told you guys that it will be soon please take use of logcat whenever you guys are reporting some issue, we won't be able to do anything without logcat if we can't produce it on our device. Enjoy people
jrior001 said:
CyanogenMod is a free, community built, aftermarket firmware distribution of Android 7.x (Nougat), which is designed to increase performance and reliability over stock Android for your device.
CyanogenMod is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. You will need to provide your own Google Applications package (gapps). CyanogenMod does still include various hardware-specific code, which is also slowly being open-sourced anyway.
All the source code for CyanogenMod is available in the CyanogenMod Github repo. And if you would like to contribute to CyanogenMod, please visit our Gerrit Code Review. Your changelog is whatever was merged into gerrit.
Instructions
First time flashing CyanogenMod 14.1 on your device, or coming from another ROM?
Unlock Bootloader!
Download the zip(s).
Install Appropriate FW base (STOCK MM 4.21.40.xx base is required) simple FW update package is available at my download link
Install a compatible Recovery
Perform a NANDroid backup of your current ROM (Optional)
Wipe data & cache partitions of your device (required when coming from stock!).
Flash CyanogenMod.
Optional: Install the Google Apps addon package. Open Gapps x86 7.1
Broken Features / Known Issues
VIDEO ENCODER/DECODER ISSUES: This results in green lines on videos/pictures taken using the Intel HW encoder/decoder and other playback issues dependent on video formats. See the list below:
Snapchat: thin greeen line tends to appear on recorded videos for snapchat
Asus Pixelmaster Camera App: Super resolution mode does not work. Turning off "Optimizations" from settings clears up any green line issues.
Some video formats do not play as expected
FM Radio is unsupported.
audio is a little weird in Real Racing 3.
sim 2 cannot be disabled (this is true for all CM builds on non qualcomm hardware)
Other than Fugu (Nexus Player TV box) there are no Vendor released M x86/x86_64 builds in existance. You may experience some issues with GAPPS and some known apps not loading or working correctly. Below is a list of KNOWN apps that do not currently run on CM13 based x86 Zenfone 2 builds :
Ingress, Polaris Office, Chase Mobile, Showbox...
DRM content is currently broken
Other Issues?
Before posting on this thread, make sure of a few things:
You've utilized the search function of the forums. Nothing irritates me more than lazy people who do not search for an answer before asking or ask the same question over and over again.
If you are the only one having a problem. Boot into recovery, wipe data/factory reset, reflash the rom/gapps and nothing else. Boot up and see if the problem persists.
Make sure your post is relevant to this thread. "I'm having problems rooting/unlocking" is NOT relevant here.
LOGS LOGS LOGS!!!! Use this: SysLog by Tortel
As the Zenfone2 has multiple models from multiple countries please include the following information in your report:
model #
CPU Speed / RAM Size
device state when errors occur (BT/wifi/nfc on ? On a call ? sitting idle on shelf ? )
method to reproduce if you've found something consistent
Download Links
CyanogenMod for Z00A/ ze551ml:ROM
CyanogenMod for Z008/ ze550ml:ROM
Recovery Links
Z00A
MM BL compatible TWRP: TWRP
Z008
MM BL compatible TWRP: TWRP
Google apps addon:
Recommend GAPPS for now as the updated x86 gapps.
Flashable Modem updates:
FOR INFO ON MM BOOTLOADER BASED BUILDS SEE THIS POST
XDA:DevDB Information
CyanogenMod 14.1 Nightly Bulids (Z00A/Z008), ROM for the Asus ZenFone 2
Contributors
jrior001, crpalmer, say99
Source Code:https://github.com/CyanogenMod/android_kernel_asus_moorefield
ROM OS Version: 7.x Nougat
ROM Kernel: Linux 3.10.x
ROM Firmware Required: 4.21.40.xxx stock base
Version Information
Status: Beta
Beta Release Date: 2016-11-09
Created 2016-11-09
Last Updated 2016-11-09
Click to expand...
Click to collapse
haha thx so much bt wechat isnt working too haha

[ROM][UNOFFICIAL][N/O][F500,LS991,H81x,US991,VS986] LineageOS 15.1/14.1

Introduction
LineageOS is a free, community built, aftermarket firmware distribution of android, which is designed to increase performance and reliability over stock android for your device.
Requirements
Your device need to be unlocked either officially (h815 international or h811) or by UsU
Your bootloader stack should be on MM 20p (20x for H811) or higher! (see FAQ #20 for how to upgrade your bootloader stack).
.... and for your convenience I have even created TWRP flashable files for that here
in particular that means this thread is for:
F500 (UsU'd)
H810 (UsU'd)
H811
H812 (UsU'd)
H815 (official unlocked or UsU'd)
H819 (UsU'd)
LS991 (UsU'd)
US991 (UsU'd)
VS986 (UsU'd)
Latest TWRP - PREVIEW build: click
Do a full Nandroid backup before doing anything!
Installation Instructions
This single very first step is for UsU'd devices only:
If you have ever flashed the UsU baseband package: Clean flash the modem partition from your backup in TWRP.
If you do not know if you ever flashed it simply flash your modem partition again and you can be sure. This can't do any harm.
If you have no backup:
- TWRP flashable MM modems (N might not work)
Full clean install as described here (FAQ "#2") is highly recommended. DO NOT REPORT ISSUES when you have skipped that step!
Flash LOS
Optional: Flash GApps (8.1 - ARM64 for LOS 15.1, 7.1 - ARM64 for LOS 14.1) if you like
Optional (if you want root): Flash the official LOS root-addon (addonsu-15.1-arm64-signed.zip or addonsu-14.1-arm64-signed.zip) or Magisk (do not report issues if you have Magisk installed though!)
Boot (will take a bit on first boot!!!)
Enjoy
For more detailed instructions, please see my website (thepiguy0.github.io/installing)
Update Instructions
To update from a previous version of my rom:
If it is an old version of the rom, it is recommended to do a clean flash - Be aware that your data will be deleted
If it is a relatively recent version, a dirty flash should be ok - wipe cache and dalvik cache and then flash on top of your current installation - This keeps all your files
Current Issues
For a current list of all issues including possible workarounds:
Open issues
Issues with workarounds available
Summary (again check out the above linked issue tracker for a current state):
Bluetooth calling FIXED!
Flashlight icon on quick toggles FIXED!
SIM pin unlocking (Ril works, better to use an unlocked sim card for now) FIXED!
Magisk when encrypted - state UNKNOWN
Permissive SELinux FIXED!
Probably more undiscovered bugs
Downloads
Get the latest builds from steadfasterX's server
Get the legacy builds from my Google drive
Building from source
If you want to build this from source, follow the LG H815 build guide (replace H815 with H811 if needed). Immediately before the "repo sync" step, copy our local manifest (https://github.com/Suicide-Squirrel/local_manifests/blob/los-15.1/roomservice.xml) into the .repo/local_manifests/ folder. Now run repo sync.
Then miss out breakfast and proprietary files steps before continuing with Jack memory optimisations
Changelog
Go through the results here: click
older ones click here:
20/05/2018
WiFi Hotspot is now fixed
H811 audio is fixed
More audio enhancements behind the scenes
Increased performance in Titan Kernel
28/04/2018
Audio is now fully working (with the exception of bluetooth calling)
Camera and screen recorder are now both fully fixed and work
Latest Lineage and Titan updates
FAQ
Will be added as the time goes.
Credits
@kessaras, @steadfasterX and the LineageOS team
Sources
Lineage source code - https://github.com/LineageOS/
Device trees and kernel (forked from cypheros) - https://github.com/suicide-squirrel/
Proprietary files - https://github.com/CypherOS/
PREVIOUS OP (for historical reasons)
Introduction
LineageOS is a free, community built, aftermarket firmware distribution of android, which is designed to increase performance and reliability over stock android for your device.
Requirements
LG G4 H815/H811
Latest MM firmware for H811 and latest Nougat/MM firmware for H815
Latest official TWRP or the latest TWRP preview from steadfasterX's server - This prevents the error 7 from appearing
For UsU devices, follow @steadfasterX's instructions for TWRP
Installation Instructions
Download appropriate zip for your device along with any additional modules such as gapps (arm64 android 8.1 needed)
Recommended - Create a full nandroid backup to allow you to restore to your previous OS if needed
Wipe system, data, cache and dalvik cache - Be aware that this WILL remove your currently installed OS and wipe your apps and most data
Flash the lineage zip, followed immediately by gapps if applicable
Reboot into system and wait for boot
For more detailed instructions, please see my website (thepiguy0.github.io/installing)
Update Instructions
To update from a previous version of my rom:
If it is an old version of the rom, it is recommended to do a clean flash - Be aware that your data will be deleted
If it is a relatively recent version, a dirty flash should be ok - wipe cache and dalvik cache and then flash on top of your current installation - This keeps all your files
Current Issues
For a current list of all issues including possible workarounds:
Open issues
Issues with workarounds available
Summary (again check out the above linked issue tracker for a current state):
Bluetooth calling
Flashlight icon on quick toggles
SIM pin unlocking (Ril works, better to use an unlocked sim card for now)
Magisk when encrypted
Permissive SELinux
Probably more undiscovered bugs
Downloads
Get the latest builds from steadfasterX's server
Get the legacy builds from my Google drive
Building from source
If you want to build this from source, follow the LG H815 build guide (replace H815 with H811 if needed). Immediately before the "repo sync" step, copy our local manifest (https://github.com/Suicide-Squirrel/local_manifests/blob/los-15.1/roomservice.xml) into the .repo/local_manifests/ folder. Now run repo sync.
Then miss out breakfast and proprietary files steps before continuing with Jack memory optimisations
Changelog
20/05/2018
WiFi Hotspot is now fixed
H811 audio is fixed
More audio enhancements behind the scenes
Increased performance in Titan Kernel
28/04/2018
Audio is now fully working (with the exception of bluetooth calling)
Camera and screen recorder are now both fully fixed and work
Latest Lineage and Titan updates
FAQ
Will be added as the time goes.
Credits
@kessaras, @steadfasterX and the LineageOS team
Sources
Lineage source code - https://github.com/LineageOS/
Device trees and kernel (forked from cypheros) - https://github.com/suicide-squirrel/
Proprietary files - https://github.com/CypherOS/
XDA:DevDB Information
LineageOS 14.1/15.1 for LG G4, ROM for the LG G4
Contributors
ThePiGuy, steadfasterX, kessaras, berkantkz and LineageOS
Source Code: https://github.com/LineageOS/
ROM OS Version: 8.x Oreo
ROM Kernel: Linux 3.10.x
ROM Firmware Required: v20 (or higher for H815) bootloader and modem
Based On: Lineage OS
Version Information
Status: Stable
Current Beta Version: 20180428
Beta Release Date: 2018-04-28
Created 2018-04-26
Last Updated 2019-12-22
Reserved
Reserved
Great work!
Need more stability to have a try but following it closely!
Thanks a lot.
Good job!
I missed Lineage OS.
Is encryption working?
YOU, @ThePiGuy, built this (with help from others)? Well done man.
Good luck and Godspeed man
zeduck said:
Good job!
I missed Lineage OS.
Is encryption working?
Click to expand...
Click to collapse
Yes it is
ThePiGuy said:
Yes it is
Click to expand...
Click to collapse
Is it trimming working with encryption ( fstrim -v /data ) without the error transport endpoint not connected?
Thanks!
talk to @codeworkx.
if your commits you added are clean and crystal clear of what you did and you kept authorship, maybe you should update the official and get some logs to them to also help you.
Minor bugs of audio and maybe some props to make the camera function correctly are not hard bugs. Me i do not have the time sorry. I do not even have the time with AOSCP now that im working so much :/
Great job keeping LOS on this device. I'm holding on to it as I still find it fast and useful.
While there is a lens on the audio configuration it would be awesome to see this phone enabled for hires audio (up to 24bit / 192KHz) under LOS. I know people are skeptical of the difference but DAC is able to do this and it should simply be an edit of the relevant audio_policy_configuration.xml(?) file to enable the extra sound profiles above 16/48.
hteles said:
Is it trimming working with encryption ( fstrim -v /data ) without the error transport endpoint not connected?
Thanks!
Click to expand...
Click to collapse
I have no idea (give it a go if you want )
belrik said:
Great job keeping LOS on this device. I'm holding on to it as I still find it fast and useful.
While there is a lens on the audio configuration it would be awesome to see this phone enabled for hires audio (up to 24bit / 192KHz) under LOS. I know people are skeptical of the difference but DAC is able to do this and it should simply be an edit of the relevant audio_policy_configuration.xml(?) file to enable the extra sound profiles above 16/48.
Click to expand...
Click to collapse
First things first, got to get the audio working in the first place . And also, nobody seems to have seen the error that it kicks out in the logcat, so it might take a while to get it working - I'll try porting the cm-14.1 trees to lineage-15.1 rather than porting oreo cypheros trees to see if that makes a difference
@ThePiGuy what are the known bugs for this rom?
NummerEinsNerd said:
@ThePiGuy what are the known bugs for this rom?
Click to expand...
Click to collapse
All in the title post above (under Current Issues). Basically audio is fully broken (so this is purely testing at the moment - not suitable for a daily driver), camera is broken along with the lineage voice and screen recorder crashing.
ThePiGuy said:
All in the title post above (under Current Issues). Basically audio is fully broken (so this is purely testing at the moment - not suitable for a daily driver), camera is broken along with the lineage voice and screen recorder crashing.
Click to expand...
Click to collapse
All camera apps ? Even Google s ?
If Google's work, then it's just a prop.
Also yes that's normal since Los uses snap and maybe it needs different props , it may needs a couple different things to call for build and some overlay settings in a config.
The other Los developers should already know how to make this work since they have ported many phones.
Me I never developed in los, I don't know.
kessaras said:
All camera apps ? Even Google s ?
If Google's work, then it's just a prop.
Also yes that's normal since Los uses snap and maybe it needs different props , it may needs a couple different things to call for build and some overlay settings in a config.
The other Los developers should already know how to make this work since they have ported many phones.
Me I never developed in los, I don't know.
Click to expand...
Click to collapse
I haven't tested any others yet. I'm mainly focusing on the audio at the moment
Great job bringing LOS back to life for the G4!
Thanks for your effort! I will monitor this Thread closely and hope you soon find the audio issues
Hi,
Even though I'm not quite experienced, I'd like to join the development of this rom. Right after installing it on my device and reading the logcat, I've partially fixed the audio problem. I've also created a pull request and given enough information on GitHub repository.
Edit: Full message from GitHub
These missing files which had to be under "/system/vendor/etc" folder lead to crashes on the apps which use sound. By placing them to where they have to be, crashes on music player when trying to play any music and video recording are fixed. Although there has been no sound yet, these changes are required in order to prevent crashes.
Also, there may be another way in order to fix crashes instead of doing these changes. It is to edit the paths to "/system/etc/" as the files are already placed there.
I guess the lines for "/system/etc" can be removed as well but I am not sure if there are any system part that uses this directory. It's better to let them stay under "/system/etc" as well.
Additional message:
These changes also fixed handset and earphones. The handset is working on calls and earphones work on video/music now. However, the speaker still doesn't work. Video recording works as well as the built-in microphone does.
Additional message 2:
From now on, neither audio nor screen recorder crash. Both work well.
Click to expand...
Click to collapse
berkantkz said:
Hi,
Even though I'm not quite experienced, I'd like to join development of this rom. Right after installing it on my device and reading the logcat, I've partially fixed the audio problem. I've also created a pull request and given enough information on GitHub repository.
Click to expand...
Click to collapse
Brilliant!!! Thanks Don't worry about not being experienced - this is my first proper project at getting a rom going, so I'm learning as well
New H815 build out (20180428) with fixed audio, camera and screen/audio recorder. This has given rise to the fact that BT calling is indeed broken like it is on AOSCP
H811 build coming out soon.
Massive thanks to @berkantkz, without whom I wouldn't have been able to do it
Edit: H811 build is up as well now

HOWTO: Havoc 2.0 (Android Pie) on NX563J -revised-

I decided to reinstall my Z17 (NX563J)
My original post here: post78041282
This is what I did with my Z17 (NX563J)
1) FULL wipe (make sure you backup what you want to keep!!)
2) flash Nfound TWRP 3.2.3-3 with Treble support (found here: t3834149)
3) flash radio 5.50 (from the beta, found here: AndroidFileHost)
4) flash latest Mokee8.1 (found here: Mokee)
5) flash Havoc-OS-v2.0-20181027-GSI-ARM64-Aonly-Official.img (found here: SourceForge)
6) flash your favorite OpenGapps (I use the NANO, found here: OpenGapps)
No other patches or fixes were applied.
Known issues
MTP: works!
GPS: slow to acquire a location (~ 2 min.)
Video recording: works!
Ambient Display: works!
NFC: works!
When rebooting I get a warning about Vendor Mismatch, this is probably because Vendor is OREO and GSI is PIE. I just ignore it.
Sometimes video playback (youtube, websites) crashes the app and sometimes reboots my phone. Haven't figured out why yet, but this is with ALL PIE ROMs on my phone so far...
GPS: slow to acquire a location (~ 2 min.)
Click to expand...
Click to collapse
This literally annoys me since Android 8 (mokee). I wonder why there hasn't been any fix to that yet.

[ROM][FINAL][9.0] LineageOS 16.0 for Xperia ZL

Code:
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*/
About LineageOS
LineageOS is a free, community built, aftermarket firmware distribution of Android 9.x (Pie),​which is designed to increase performance and reliability over stock Android for your device.​​All the source code for LineageOS is available in the LineageOS GitHub repo.​And if you would like to contribute to LineageOS, please visit our Gerrit Code Review.​​Official LineageOS website : http://lineageos.org​​
Downloads Links
LineageOS 16.0 (Unlocked Bootloader) :​Test builds :
lineage-16.0-20191019-UNOFFICIAL-odin.zip | by CyberWalkMaN for Xperia ZL
Download GApps, Roms, Kernels, Themes, Firmware, and more. Free file hosting for all Android developers.
www.androidfilehost.com
​​Google Applications (optional) :​OpenGapps : http://opengapps.org/ (Use packages for ARM, Android 9.0, Nano or Pico)​Information : Flash the GApps before the first boot. If not, a clean flash is recommended.​​Flashing and updating​LineageOS clean install :​- (Optional) Flash the boot.img kernel from the ROM zip with Fastboot or Flashtool​- (Optional) Wipe the data & cache (Backup to make sure not to loose data)​- Flash the LineageOS ROM zip from the Recovery​- (Optional) Flash the GApps to have the Google Applications​- (Optional) Every additional zip you want to flash​- Reboot​​LineageOS update / upgrade :​- (Information) Don't wipe anything unless you want to​- (CM / UNOFFICIAL) Nothing to wipe when switching​- (FUTURE RELEASES) Might need clean, informations will be updated​- Flash the latest LineageOS ROM zip from the Recovery​- (Optional) Flash the GApps on first install / upgrade. Not required later, but do update sometimes​- (Optional) Every additional zip you want to flash​- Reboot​​LineageOS addonsu for root access :​- (Information) Read the Root section of the Q&A thread​- (Download) Download the addonsu for arm : LineageOS Downloads / Extras​- (Optional) Flash the zip on a working Lineage installation (once)​- (Information) Upon ROM updates, the addonsu is preserved​- Reboot​​
​Issues and reports​- Report issues only if you are using the ROM kernel​- If an additional mod is installed, make sure it's unrelated, and mention it​- Make sure the issue wasn't discussed earlier in the threads​- Share a log of the error with CatLog for example​​
​About LineageOS Legal : http://lineageos.org/legal/​​The LineageOS team would like to thank everyone involved​in helping with testing, coding, debugging & documenting! Enjoy!​​
​Also thanks to :​- The LineageOS Team​- The CyanogenMod Team​- Everyone involved in working and testing​
XDA:DevDB Information
[ROM][FINAL][9.0] LineageOS 16.0 for Xperia ZL, ROM for the Sony Xperia ZL
Contributors
CyberWalkMaN, AdrianDC
Source Code: https://github.com/fusion3-common
ROM OS Version: 9.x Pie
ROM Kernel: Linux 3.4.x
Version Information
Status: Stable
Created 2019-04-22
Last Updated 2019-10-20
FEATURES AND ISSUES
Code:
- Boot : Ok
- GApps : OpenGApps Nano Ok
- FOTA Recovery : Ok (see below)
- WiFi : Ok (real SONY MAC address)
- Bluetooth : Ok (real SONY MAC address)
- WiFi Hotspot : Ok (2.4GHz only)
- RIL - Phone - Data : Ok
- GPS : Ok
- Camera : Ok
- Camcorder : Ok
- MicroSD : Ok
- Accelerometer : Ok
- Compass : Ok
- Gyroscope : Ok
- AOSP sensors : Ok
- FM Radio : Ok
- Vibrator : Ok
- Microphone : Ok
- Audio & external audio : Ok
- Bluetooth audio : Ok
- NFC : Ok
- Kernel : Ok
- Graphics : Ok
- 3D Rendering : Ok
- Clock : Ok
- Offline Charging : Ok
- SEPolicies : Work In Progress
At the moment, FM radio, manual network selection and auto brightness does not work (maybe something else). New builds will be uploaded as source updates / bug fixes are updated.
camera ok?
using as a daily cell phone, this is fast, congratulations.
Switch from nkomarn Lineage 16.O build. Camera works okay, so it was great. Only problem is flashing twrp, cannot successful flash using the app. Always go back to lineage recovery even light indicator goes purple to orange. Any workaround?
Also power off function not work, it rebooted. Anyways, it was great and thank you for continue work on this. Cheers! ?
Sent from my Sony Xperia ZL using XDA Labs
Just started testing this Rom, my feedback for now is:
Autorotate is not working.
Can't change any sound (calls, SMS, etc)- (APP crashes).
I've experienced some random reboots in the first few hours after flashing, it seems stable now.
Advanced reboot is not working properly.
Magisk is working fine.
Nova Launcher is working fine.
I'll continue to test...
Hope my feedback can help make this better.
hi, many thanks to develper! smooth running even such older device! the only issue is battery indicator always start from 12% but I am not sure if it is common issue.
Flash the latest build 0803, Sensors are now working. Auto Rotate is working, since sensor driver is there. FM Working properly also.
Still have issue on Turn Off, it keep restarting.
Cannot able to flash Twrp Recovery, still booting to lineage recovery.
But still, thank you for your time on updating this Rom
Sent from my Sony Xperia ZL using XDA Labs
Fiz uma instalação limpa do zero. Há 2 dias estou usando e sem bugs, ou reinicialização inesperada. Ótimo trabalho e muito obrigado por isso =D
New build uploaded (lineage-16.0-20190824-UNOFFICIAL-odin.zip), major changes since May:
All sensors works now (Thanks to @Chippa_a)
Manual network selection fixed
Telegram calls fixed (Need to confirm)
FM Radio fixed
Small gps improvement
Performance improvement
Updated kernel (fixed bug with rebooting instead of shutting down and some other bugs), also we now use binder and lmk from AOSP 3.18 kernel
SELinux denials resolved at 90%
Magisk issue fixed
Android 9.0.0_r46 (August security patches)
Addonsu is already included, you can enable root access in the developer settings
CyberWalkMaN said:
New build uploaded (lineage-16.0-20190824-UNOFFICIAL-odin.zip), major changes since May:
All sensors works now (Thanks to @Chippa_a)
Manual network selection fixed
Telegram calls fixed (Need to confirm)
FM Radio fixed
Small gps improvement
Performance improvement
Updated kernel (fixed bug with rebooting instead of shutting down and some other bugs), also we now use binder and lmk from AOSP 3.18 kernel
SELinux denials resolved at 90%
Magisk issue fixed
Android 9.0.0_r46 (August security patches)
Addonsu is already included, you can enable root access in the developer settings
Click to expand...
Click to collapse
Thank you for the update! I dirty-flashed it over the 0803 build. You see, I run the stable Magisk v19.3, which, along with some modules, then allowed me to pass both Safetynet tests. Not anymore. As you stated that Selinux was almost ready, I had uninstalled ibuprophen's The SELinux Switch app prior to flashing the new build. I was using it in order to set Selinux to enforcing. As Selinux is still off in the new build, I tried to install the app back, but the new build doesn't allow me to do it. Even the zip, although correctly installed in recovery, after booted up, no SELinux Swich app is in the drawer, because directory /data/app/com.ibuprophen.selinux-1 has been deleted during the boot up process! What's happening?
EDIT: I decided to do a clean install. Everything is back to normal! Thanks, anyway!
Pixel Launcher
Thanks again for your hard work in bringing Android 9 to this very old, but still powerful, device of ours.
Well, I prefer Pixel Launcher over the embedded home app, but it keeps crashing all the time upon being selected as the default home app. For those who also plan to use Pixel Launcher, edit /data/system/packages.xml, and add up the following entries, under <package name="com.google.android.apps.nexuslauncher"> and <perms>:
Code:
<item name="android.permission.STATUS_BAR" granted="true" flags="0" />
<item name="android.permission.MANAGE_ACTIVITY_STACKS" granted="true" flags="0" />
Could you make such changes in your next build?
After flashing the 0824 build, i experienced much better scrolling experience, performance improved a lot.
Also Twrp works now and turn off function work properly, no need to reboot and press volume down go to stock recovery just to turn this off. So thank you for continue working on this
Sent from my Sony Xperia ZL using XDA Labs
I thank you for continuing to develop! I'll install that, i report issues!
Perfect, bug-free, fast and stable ROM, using with magisk, everything runs perfectly.
New build uploaded (lineage-16.0-20191019-UNOFFICIAL-odin.zip), major changes since August:
Fast battery drain fixed (for 15.1 nightlies too)
SELinux denials resolved at 99% (You can make builds in enforced SELinux, but I would recommend continuing to build them in permissive). Current build in permissive SELinux.
Oktober security patches
Minor performance and stability improvements (for 15.1 nightlies too)
Added missing props for gps and Miracast.
Build status - Stable.
Addonsu is already included, you can enable root access in the developer settings
This is where my support for android 8-9 for Z/ZL/ZR/Tablet Z ends, this build will be the last. All the changes made in the sources are already available on github.com/LineageOS, if someone wants to continue supporting and get the official LineageOS 16.0 - write to PM, I will explain in detail what remains to be done in the sources. Also, if someone wants to try to build other roms for our devices based on android 8-9 from the available sources - try to choose CAF-based roms (for example, AOKP, LineageOS, Ressurection Remix, AICP, etc.), then with 95% chance you will build and run the rom. Our sources are based on CAF, and for the build of roms based on AOSP, additional fixes are required, plus there will be problems with sound anyway.
I also want to note that I made a most part of the changes made in 16.0 to the official 15.1 nightlies, which should significantly improve their stability and performance
CyberWalkMaN said:
New build uploaded (lineage-16.0-20191019-UNOFFICIAL-odin.zip), major changes since August:
Fast battery drain fixed (for 15.1 nightlies too)
SELinux denials resolved at 99% (You can make builds in enforced SELinux, but I would recommend continuing to build them in permissive). Current build in permissive SELinux.
Oktober security patches
Minor performance and stability improvements (for 15.1 nightlies too)
Added missing props for gps and Miracast.
Build status - Stable.
Addonsu is already included, you can enable root access in the developer settings
This is where my support for android 8-9 for Z/ZL/ZR/Tablet Z ends, this build will be the last. All the changes made in the sources are already available on github.com/LineageOS, if someone wants to continue supporting and get the official LineageOS 16.0 - write to PM, I will explain in detail what remains to be done in the sources. Also, if someone wants to try to build other roms for our devices based on android 8-9 from the available sources - try to choose CAF-based roms (for example, AOKP, LineageOS, Ressurection Remix, AICP, etc.), then with 95% chance you will build and run the rom. Our sources are based on CAF, and for the build of roms based on AOSP, additional fixes are required, plus there will be problems with sound anyway.
I also want to note that I made a most part of the changes made in 16.0 to the official 15.1 nightlies, which should significantly improve their stability and performance
Click to expand...
Click to collapse
Thanks for your hardwork and making a stable build, but i encounter issue Installing it.
Clean Flash it including system, but result in Rebooting to twrp, tried to flash previous Build then Update, stuck to Boot Animation and Reboot to Twrp. I'm quite sure the file is not corrupted, downloaded it two times. Sadly it was the Final build but hoping you will address and fix it. Thanks
[Updated]
Hello!!
Kran007 said:
Thanks for your hardwork and making a stable build, but i encounter issue Installing it.
Clean Flash it including system, but result in Rebooting to twrp, tried to flash previous Build then Update, stuck to Boot Animation and Reboot to Twrp. I'm quite sure the file is not corrupted, downloaded it two times. Sadly it was the Final build but hoping you will address and fix it. Thanks
[Updated]
Click to expand...
Click to collapse
Could you try the rom? or you can't intall it anyway? I gonna try it in the xperia zl that i will give to my father, but i can't get some error, He gona kill me! Actually , his ZL is running august version.
Can someone make a Build with December Security Patch?

[SGSI][Pie][Semi-bugless]MIUI 11

Welcome to MIUI sGSI For Galaxy J7 2017
TESTED ON J730X​
Some information you should know..
This is a fully working MIUI sGSI with Android version 9.0
If you want to report a Bug, read the F.A.Q First Then provide a logCat OR LoggingKit.zip with detailed explanation
Read the instructions and the F.A.Q Before installing the rom or posting a reply.
I don't own any files here, except patch files.
So, we are here with sGSI. It's normally called "unstable" and "not for daily usage" so users are recommended to go for GSI. But GSI lacks features and has AOSP-like design that some users may be bored of that. And now we finally break that law. sGSI can now be used as daily drivers.
As the nature of these sGSI go, it was a non stop battle for almost 3 weeks straight to get it to this point where all features are working as expected. if you appreacite this work Hit the Thanks button
RULES OF POSTING : READ everything before commenting, And especially the instlal steps, the rom has been tested throughly for a long time, so if you have an critical issue like not booting or no sim, you missed the instructions, posts that are irrelevant to this project will be ignored(Constructive criticism is welcomed). If you do face a new bug however, dont just say "hey bug here" provide more information, and a LOGCAT, bug reports without logcats will most likely be ignored.
FEATURES:
Based on MiuiMiX 11 by MMX Team 9.12.26 using ErfanTools
Android 9.0
MIUII 11 Features
Semi-SIM support (Currently one SIM only)
Heavily debloated
Zipaligned
Very Optimised
Battery and performance focused
Full MIUI without missing vital apps
Rootable with Magisk
RMM/KnoxGuard/Defex Free
And many more
Kernel:
You can choose either latest CronosKernel by @ananjaser1211, or KRAKEN kernel by @SPARTANICUS
Install steps:
ensure you have LATEST TWRP from Here
Download all the files in the DOWNLOAD section
Wipe everything (SYSTEM,DATA,CACHE,DALVIK and preferably Internal storage all together)
Flash Project Spaget 3.0 (not X!) here and follow the steps there.
Flash MIUI-Aonly-9-20191230-ErfanGSI.img to SYSTEM
Flash your desired kernel, either Cronos or KRAKEN (must be using Treble version)
[IMPORTANT] Flash Magisk in order to have patch working
Flash sGSI-Patch.zip
Flash NFC Patch
After the boot animation is on for 30~60 Seconds. Hold VolumeDown+power until the device reboots
Install Google Play Services apk in Downloads section in order to get setup working
Setup your rom and READ the F.A.Q for more information.
BUGS:
Signal bar doesn't work (always empty) but it's acturally working
FM Radio (No FM Radio app in image)
Only one SIM is working at the moment
VoLTE not working (need another fixes)
SCREENSHOTS:
Imgur
CREDITS:
IF you helped in this GSI and i forgot you, tell me in a PM or in a reply
@ananjaser1211 for his Project Spaget, CronosKernel and HUGE contribution for Exy7870
@SPARTANICUS for KRAKEN Kernel
@SrCDA for his NFC patch
@erfanoabdi for his tools to port GSIs
And the rest of EliteTeam
DOWNLOADS ARE IN POST 2
DOWNLOADS:
Official Treble support Group : Telegram
----------------------------------------------------------------
All files are uploaded here: Google Drive
GSI: Here (My Google Drive acted up and does not let me upload any more files)
FAQ:
Good idea to read this F.A.Q While the rom is installing
Notes:
Q : Brightness bar not working / Camera doesn't work
A : You have flashed Spaget X instead of Spaget 3.0. Reinstall again
Q : Phone doesn't detect any SIM cards
A : Flash latest Cronos/KRAKEN kernel
Q : Everything on my screen is so small [J730 only]
A : Go to Settings > Developer settings > Set screen density to 411
Q : I got front camera stretch
A : Change resolution from 16:9 to 4:3
Q : Can I use front flashlight?
A : No, Samsung has their own libs, for now no apps can use front flashlight. Back flashlight still works
Q : How is battery Life ?
A : With some tests and some cycles, it will be better than stock due to optimzations
Q : the phone wont install any apps
A : Reboot
One more
does the rom have some type of error for daily use
VoLTE : Not work, need flash Magisk Module and using Phone App to VoLTE work
All work normal, just a Android Pie but like Android Q MIUI :good:
Great work
The first boot is so longer? I've waiting more than 10 minutes and don't boot. Or is bootloop?
And i've not found the MIUI-Patch.zip, only sGSI-Patch.zip
What android version is this? Can i flash the official magisk? There's no camera stretch bug? Like other gsi rom?
gabriel.oliveira.brito said:
The first boot is so longer? I've waiting more than 10 minutes and don't boot. Or is bootloop?
Click to expand...
Click to collapse
After the boot animation is on for 30~60 Seconds. Hold VolumeDown+power until the device reboots
gabriel.oliveira.brito said:
And i've not found the MIUI-Patch.zip, only sGSI-Patch.zip
Click to expand...
Click to collapse
Thanks for noticing, I forgot to rename the file.
NindoS said:
VoLTE : Not work, need flash Magisk Module and using Phone App to VoLTE work
Click to expand...
Click to collapse
I don't use VoLTE, so I couldn't test if it works. Can you tell me which Magisk module you used?
NindoS said:
All work normal, just a Android Pie but like Android Q MIUI :good:
Great work
Click to expand...
Click to collapse
Nice
Updated FAQ and sGSI patch. I forgot to add an important fix in patch, so anyone using this MIUI, reflash the new patch right now :good:
I tried again, followed all the steps as requested. On the first boot, I restarted the phone after approximately 30 seconds. But I still bootloop. I'm using Project Spaget 3.0, but I can't find a topic in the forum. Could you send me your Project Spaget zip file?
My logcat is on attachments
nfc not working. I installed the fix on the twrp and it failed, I had to install the fix when I started the cell phone so that it did not give me an error and it appears as a module installed in magisk but it does not work
Working fine but having bug
I have a bug with the WhatsApp application when viewing the stories that contain videos are not played and the app freezes.
I attach my log Cat about the error
I have problems with external storage, the system does recognize it but with third-party apps such as file explorer or streaming apps like spotify they don't detect external storage, I've tried to modify the vold.fstab and nothing. some fix they have
dani_hedz said:
I have problems with external storage, the system does recognize it but with third-party apps such as file explorer or streaming apps like spotify they don't detect external storage, I've tried to modify the vold.fstab and nothing. some fix they have
Click to expand...
Click to collapse
It's sGSI related problem, don't know why it happens
argenmu09 said:
nfc not working. I installed the fix on the twrp and it failed, I had to install the fix when I started the cell phone so that it did not give me an error and it appears as a module installed in magisk but it does not work
Click to expand...
Click to collapse
It works for me
Wi-Fi not working

Categories

Resources