project treble rom can drm fix! - Sony Xperia XZ1 Guides, News, & Discussion

I flashed project treble aosp 8.1, and janjan's drm fix patch without his kernel(kernel permissive zip has to flash on magisk) and camera works! Here is the shot on open camera

Lol?

Related

[OFFICIAL][X82X][9.x][TREBLE] LineageOS 16.0 (pie) for LeEco Le Max 2

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
LineageOS 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. Linked below is a package that has come from another Android project that restores the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.
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.
Code:
#include
/*
* 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.
*/
SUPPORTED DEVICES
- LEX820 (X2_CN)
- LEX821 (X2_WW)
- LEX822 (X2_CN)
- LEX829 (X2_NA)
- LEX910 (MAX_PLUS. Currently only supported on unofficial test builds)
HOW TO INSTALL LINEAGEOS WITH LINEAGE RECOVERY
- Make sure your phone is running firmware from at least 19S for x2 and 13s for max_plus. If not? Please download either the minimum recommended version below (or optional updated versions) and install it via TWRP. It can be flashed before or after the ROM
Please follow the official LineageOS Wiki instructions for our device.
https://wiki.lineageos.org/devices/x2/install
HOW TO INSTALL LINEAGEOS WITH TWRP
- Make sure your phone is running firmware from at least 19S for x2 and 13s for max_plus. If not? Please download either the minimum recommended version below (or optional updated versions) and install it via TWRP. It can be flashed before or after the ROM
- Unlock bootloader and install TWRP 3.3.0-1 (designed for Pie and treble) or higher. TWRP instructions are here.
- Download the LineageOS and firmware zips. (see Downloads)
- Boot into TWRP.
- Copy the downloaded zip files to internal sdcard.
- Perform a backup of your current ROM. (Optional)
- RECOMMENDED: Do a factory reset (clean wipe)! No support if you didn't! (Wipe Dalvik, system, cache and data)
- Flash firmware and LineageOS zips.
- Optional: Install the Google Apps addon package. (see Downloads)
- Reboot to system.
HOW TO UPDATE LINEAGEOS WHEN ENCRYPTED VIA TWRP
- NOTE! Please avoid doing OTA via Lineage Updater when your device is encrypted because TWRP screws up and causes Google Services Framework to crash like crazy. Only Lineage Recovery properly supports OTA via Lineage Updater.
- Download the LineageOS zip(s). (see Downloads)
- Copy the LineageOS zip to internal sdcard.
- Reboot to TWRP.
- Flash LineageOS. (Wiping Dalvik and Cache is optional, but recommended)
- Reboot to system.
MAIN DOWNLOADS
TWRP for x2: Official https://twrp.me/leeco/leecolemax2.html
TWRP for max_plus: Official https://twrp.me/leeco/leecolemaxpro.html
Lineage Recovery:
- Official: https://download.lineageos.org/x2
- Unofficial: https://osdn.net/projects/lineageos-for-x2/releases/p16551
LineageOS:
- Official: https://download.lineageos.org/x2
- Unofficial: https://osdn.net/projects/lineageos-for-x2/releases/
Discontinued unofficial mirrors:
- Unofficial: https://sourceforge.net/projects/lineageos-for-x2/files/16.0 Unofficial Releases/
- Unofficial Google Drive mirror: https://drive.google.com/open?id=1uOrZzcer8SYe-BcYZuaSJTPOehQ68EBc
SU-Addon: (not available yet for LineageOS 16.0)
Migration-Tools: https://androidfilehost.com/?w=files&flid=254680 (Unofficial->Official, Official->Unofficial)
GOOGLE APPS (GAPPS) DOWNLOADS
- MindTheGapps: (RECOMMENDED!)
Official: http://downloads.codefi.re/jdcteam/javelinanddart/gapps
Mirror: https://androidfilehost.com/?w=files&flid=170282
- OpenGapps:
Official:
https://opengapps.org
GOOGLE CAMERA (GCAM) DOWNLOADS
Google Camera: (Recommend Tolyan009 builds as Arnova8G2 builds are not always compatible with Pie x2 ROMs)
celsoazevedo.com/files/android/google-camera/dev-tolyan009/
Current recommended gcam6 build for LineageOS 16.0 on x2
https://f.celsoazevedo.com/file/gcamera/MGC_6.1.021_BSG_Arnova-based_v.1.4a_TlnNeun.apk
If you have pink tint?
More > Settings > "advanced" under Quick Settings section > Fix > Fix old WB gains
If you have green selfie camera?
Set front camera model to Nexus 6P
If that doesn't work?
More > Settings > "advanced" under Quick Settings section > Fix > Fix front camera
Here's also a good gcam config by @Prashant69 that also helps remove the tint issues if the above fixes don't work
https://sourceforge.net/projects/lineageos-for-x2/files/Mods and Tweaks/
Here's how to load configs
https://www.celsoazevedo.com/files/android/google-camera/f/settings09/
MISC DOWNLOADS
ThE_MarD's LineageOS for x2 Sourceforge, directory: (also contains some mods and tweaks) https://sourceforge.net/projects/lineageos-for-x2/
FIRMWARE DOWNLOADS
Minimum required versions:
- LEX820 (X2_CN) 20s
- LEX821 (X2_WW) 19s
- LEX829 (X2_NA) 20s
- LEX910 (MAX_PLUS) 13s
Optional newer versions:
- LEX820 (X2_CN) 30s
- LEX820 (X2_CN) 466D
Link for x2 firmware: https://sourceforge.net/projects/lineageos-for-x2/files/Firmware Updates/
Link for max_plus firmware: https://sourceforge.net/projects/lineageos-for-max-plus/files/firmware/
DEVELOPER RESOURCES
https://github.com/lineage-x2-devs
https://github.com/LineageOsMaxPlus/
https://github.com/lineageos/android_device_leeco_msm8996-common
https://github.com/lineageos/android_device_leeco_x2
https://github.com/lineageos/android_kernel_leeco_msm8996
HOW TO CONTRIBUTE?
Send your patches up for review: https://review.lineageos.org/
Read the guides on the LineageOS Wiki: https://wiki.lineageos.org/
XDA:DevDB Information
[OFFICIAL][X82X][9.x][TREBLE] LineageOS 16.0 (pie) for LeEco Le Max 2, ROM for the LeEco Le Max 2
Contributors
ThE_MarD, codeworkx, mosimchah,moto999999,1nfrag,shivatejapeddi,KuranKaname,GalaticStryder,andr68rus,Tortel1210,visionary
Source Code: https://github.com/LineageOS
ROM OS Version: 9.x Pie
ROM Kernel: Linux 3.x
ROM Firmware Required: x821 19s. X820 and x829 20s. x910 13s. Higher is optional.
Based On: AOSP
Version Information
Status: Nightly
Created 2018-10-05
Last Updated 2020-01-12
Frequently Asked Questions
I've been asked to provide logcat, how do I do that?
You can either root and use an app like MatLog, or if boot logcat is required? You will need adb logcat from a PC. Here's a simple guide from the LineageOS Wiki https://wiki.lineageos.org/logcat.html
My lockscreen crashes after reboot, what should I do to fix it?
https://forum.xda-developers.com/le-max-2/how-to/guide-to-fixing-x2-lockscreen-crash-t3918911
I don't see an option for call recording, what's going on?
Only the stock dialer app supports it. If you install a Gapps package that overwrites the stock dialer app? It won't have call recording as well. Only the included dialer app of LineageOS is compatible to call recording since it needs to be a ROM implementation and I haven't seen a Play store app that adds support for custom ROM call recording. Please also note that call recording is blocked for countries and carriers that have laws against any form of call recording.
What is Power-off Alarm?
This feature allows you to set an alarm clock with the stock clock app included with LineageOS and then turn off the phone, and it will boot up a minute before the designated alarm time and then properly alarm. It works with the device either powered off and also offline charging.
Using a clock app from OpenGapps Stock or from the Play store is not compatible to custom ROM implementations of power-off alarm... So consider this your heads up if you didn't know that already... As I am not responsible for anyone being late for their wedding/work/school/vacation if you tried a non-stock clock app with your LeEco msm8996 device powered off. :silly:
What apps are recommended with the Open Source ConsumerIR?
(WIP! I try to include it only on unofficial builds until selinux neverallow policy compatibility is fixed... Which tbh is beyond my current skill)
Zaza Remote and Mi Remote work great. Smart Remote for Sharp TV also works. I'd recommend avoiding Peel Universal Smart Remote as it hijacks the lockscreen with ads...
Pls sir, I can't connect to my network or IMS/VoLTE doesn't work! What can I try?
Please look below at the "APNS Update from Google" section and try that. I can't offer much else for help sorry as I have zero experience with IMS/VoLTE as Canada blacklists BYOD from that feature... Otherwise if you need extra help? Hopefully someone else in the x2 community can give you advice.
What is the difference between the official LineageOS builds and unofficial?
Unofficial test builds are builds I put out to test changes before I push them to the Official builds... So please stick with Official builds if you want to play it safe... But if you wish to help test and provide feedback on changes before they go official? Unofficial test builds are the best way to do so.
Where is the QuickCharge toggle?
Settings > System > Advanced > LeEco Settings
The rear facing camera won't focus, what should I try?
Please go into Settings > System > Advanced > LeEco Settings, and then enable the focus fix. You may need to restart any open camera app or potentially reboot the system in order for the focus fix values to work.... If that doesn't resolve it? Please try EUI ROM... If it still won't focus? I'm sorry, but your hardware camera actuator is defective and you either need to try the Le Max 2 rear camera magnet trick (please Google it) or replace the rear camera hardware.
Why is our widevine level only L3?
Unfortunately Widevine L1 failed to work correctly on X2 and zl1/0... It would report we have L1 hardware support but vp9.secure and avc.secure codecs were failing to render, thus apps that used L1 like Amazon Prime would error out and revert to L3 and worst case scenario apps like Vudu would crash.
I haven't seen any fixes for those codec issues, so I gave up on it as L3 works fine.
Also, Netflix HD will never work on LeEco devices as they never got them "Netflix certified" which sounds like a money-grab move since L1 is all they should need. For example, Asus Zenfone 5z is L1 certified but not "Netflix certified" just like us and they don't get the option to stream in HD.
This explains it a lot better
https://androidpcreview.com/netflix-hd-android-tv-box/
My device doesn't show any apps in the Play Store what should I do?
https://lineageos.org/Google-Play-Certification/
exfat does not work on LineageOS, what is up with that?
LeEco Le Max 2 does not ship with exfat licensing so we are not allowed to incorporate it in LineageOS Le Max 2 builds. This was tested by both CrisBalGreece and I. If by chance there is an OFFICIAL EUI ROM build that includes exfat? Please let me know so I can test it as well... Here is the LineageOS device charter requirements on exfat
https://github.com/LineageOS/charter/blob/master/device-support-requirements.md#exfat-support
KNOWN BUGS for x2 and max_plus
Updating using the built in LineageOS updater when encrypted causes Google Play Services to crash repeatedly (updating works fine if you have Lineage Recovery installed though. Manually installing newer builds of LineageOS via TWRP also works.)
Microphone and button on 3.5mm headsets using the 3.5mm to Type-C adaptor only works with reversed orientation (IE, official LeEco adaptor with the logo facing downwards)
Dual-role USB does not work (our Type-C port can't detect if it should offer the option to host data transfer, charge the other device, or charge while using Aux out).
Taking a photo during 4K UHD video recording produces a photo with green static instead of a photo. This bug only happens in Snap camera... Google Camera Mod and Open Camera (with Camera API v2 enabled) produces pictures without issue.
Screen on Time is usually only around four to five hours (VERY hard to diagnose battery drain issues... Any logcat with references to battery drain or kernel wakelocks will help resolve this)
CDLA cell calling has crackling/popping sounds
Infinity focus not working (for panoramas, AR and some QR code scanners. Infinity focus also doesn't work in EUI ROM hmm... oddly enough some imx230_lg modules infinity focus can work if you dont need focus fix... so I blame LeEco for the messed up camera haxxs they did since s2 and zl1 have the same issues.)
KNOWN BUGS for max_plus
ES9018 Hi-Fi Audio DAC for 3.5mm headsets to Type-C adaptors does not work (this is the bug that is preventing official unified builds of LineageOS of x2 and max_plus...)
Fingerprint does not work when device is asleep (this is due to the ancient device firmware on max_plus being officially stuck on 13s... there is a pseudo 466d modem firmware fix attempt I made but have not received feedback on yet)
Boot animation does not work (this is due to a fix for screen tearing... maybe one day I'll figure out a fix for boot animation to work with the screen tearing fix)
When launching a camera app, viewfinder goes green for a second and then works normally
After using USB port with Type-C headset or OTG with a flash drive, the device cannot charge until a reboot is performed (known bug even on EUI ROM)
APNs Update from Google
Latest update: 05-06-2019 (May 6, 2019)
This is an optional update if the current APN settings from LineageOS might not be up to date for your carrier and you need newer ones. This is the official APNs list from Google.
After flashing it? Please reboot to system and then go into Settings > Network & Internet > Mobile Internet > Advanced > Access Point Names > "..." menu button > reset to default.
https://sourceforge.net/projects/lineageos-for-x2/files/Mods and Tweaks/APNs Update from Google/
The official Google source git for this file can be found here:
https://android.googlesource.com/device/sample/+/refs/heads/master/etc/apns-full-conf.xml
Please note! This APNs list WILL get overwritten by the ROM on any ROM update and will need to be reinstalled.
Special Thanks
@codeworkx for his major contributions to the LeEco msm8996-common code and kernel and the awesome open source camera HAL
@mosimchah for his contributions to the LeEco msm8996-common code and kernel
@moto999999 for helping the x2 get LAOS 15.1 working. When others left LAOS he helped get the momentum started again.
@infrag for his contributions to x2 such as the multiple audio fixes, LEDs and sorting out the open source camera HAL blobs and assisting with QS Torch
@shivatejapeddi for his contributions to x2 such as finding the fix for QS Torch and the regularly requested VoLTE support XD
@KuranKaname for his contributions to x2 such as helping get Dalvik VM and HWUI sorted out when 14.1 settings didn't work on 15.1, plus his never-ending mission to finding the most optimized code.
@Tortel1210 for his contributions to x2 and helping out with gerrit.
@andr68rus for everything he has contributed to x2. He may have moved to the Xiaomi Mi Mix 2 (sexy device!) but will be fondly remembered for everything he did for the x2 to make Nougat great. We will finish what you started.
@GalaticStryder for his fix for truly display panel that is better than my fix and his other awesome kernel improvements.
[MENTION]ViSi0Naryy[/MENTION] for his contributions to LeEco msm9996-common with testing and contributions with Gerrit
@jabashque for helping fine-tune performance for LeEco msm8996-common devices! LeEco has never been so smooth!
@Lucchetto00 for converting Tortel's devicesettings into LeEco settings and adding QC toggle, plus his method of detecting if a setting exists and whether to display it or not.
cristiansilaghi (no idea if he has XDA as he communicates with me on Telegram) for helping diagnose the battery percentage issues and finding some extra commits to help make it as accurate as possible and an selinux fix for offline charging animation.
...and finally the community. This is for the community, by the community. Give yourselves a pat on the back.
If I missed anyone? Please let me know and I can add them.
Donations
@popeye13 for helping cover my replacement motherboard costs
@Bollex for also helping cover my replacement motherboard costs
@kurtn for also also helping cover my replacement motherboard costs
@xlcashlx for also also also helping cover my replacement motherboard costs
@rberg (Robin Vd Berg since I'm unsure on username) for also also also also helping cover my replacement motherboard costs
(If I got your XDA forum usernames wrong please let me know)
Please donate to anyone mentioned above. Note that I do NOT accept donations (only exception to that was to help cover my replacement motherboard costs). I do alright with my full-time job and am financially stable for my family and I do this as a hobby, and receiving donations for my hobby would feel like I'm pressured to deliver more than I can with my limited spare time.
ThE_MarD said:
LineageOS 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. Linked below is a package that has come from another Android project that restores the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.
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.
SUPPORTED DEVICES
- LEX820 (X2_CN)
- LEX821 (X2_WW)
- LEX822 (X2_CN)
- LEX829 (X2_NA)
HOW TO INSTALL LINEAGEOS
- Make sure your phone is running firmware from at least 19S. If not? Please download either the minimum recommended version below (or optional updated versions) and install it via TWRP. It can be flashed before or after the ROM
- Download the LineageOS zip(s). (see Downloads)
- Copy the LineageOS zip to internal sdcard.
- Unlock bootloader and install TWRP 3.2.3 (designed for Pie and treble) or higher.
- Boot into TWRP.
- Perform a backup of your current ROM. (Optional)
- RECOMMENDED: Do a factory reset! No support if you didn't!
- Flash LineageOS.
- Optional: Install the Google Apps addon package. (see Downloads)
- Reboot
HOW TO UPDATE LINEAGEOS
- Download the LineageOS zip(s). (see Downloads)
- Copy the LineageOS zip to internal sdcard.
- Flash LineageOS.
- Reboot
DOWNLOADS
TWRP' (Official is not updated yet for Pie) Test builds: http://build.twrp.me/twrp-3.2.3-0-x2.img | https://androidfilehost.com/?w=files&flid=241113&sort_by=date&sort_dir=DESC (Google Drive Mirror: https://drive.google.com/open?id=1Fa-icWihAwcF0dzkbuSU3p5IKig9b6H_)
Lineage 16.0: (Unofficial: https://www.androidfilehost.com/?w=files&flid=283371&sort_by=date&sort_dir=DESC Unofficial Google Drive mirror: https://drive.google.com/open?id=1uOrZzcer8SYe-BcYZuaSJTPOehQ68EBc)
SU-Addon: (not available yet for LineageOS 16.0)
Google Apps: MindTheGapps is currently unavailable for 9.0... so, for now, OpenGapps is the default solution.
OpenGapps (ARM64 Pico or Micro recommended. Mini and higher can cause issues as OpenGapps 9.0 is beta quality for the moment) http://opengapps.org/
Google Camera: (Recommend Tolyan009 builds as Arnova8G2 builds are not always compatible with Pie x2 ROMs) https://www.celsoazevedo.com/files/android/google-camera/
Focus fix: (LineageOS 16.0 will incorporate the build.prop method to toggle focus fix. Just need to flash the appropriate TWRP zip file to toggle it) https://www.androidfilehost.com/?w=files&flid=283410
FIRMWARE DOWNLOADS
Minimum required versions:
- LEX820 (X2_CN) 20s
- LEX821 (X2_WW) 19s
- LEX829 (X2_NA) 20s
https://www.androidfilehost.com/?w=files&flid=261087
Optional newer versions:
- LEX820 (X2_CN) 30s
https://www.androidfilehost.com/?fid=674106145207490413
- LEX820 (X2_CN) 466D
https://mega.nz/#!JUkH3IhI!QUZnqVAzf1Zy6dZnjMSPHll93FZgeBqy15Zi9-5vC54
DEVELOPER RESOURCES
https://github.com/LineageOS/android_device_leeco_msm8996-common
https://github.com/LineageOS/android_device_leeco_x2
https://github.com/LineageOS/android_kernel_leeco_msm8996
HOW TO CONTRIBUTE?
Send your patches up for review: https://review.lineageos.org/
XDA:DevDB Information
[X82X][9.x][TREBLE] LineageOS 16.0 (pie) for LeEco Le Max 2, ROM for the LeEco Le Max 2
Contributors
ThE_MarD, codeworkx, mosimchah,moto999999,1nfrag,shivatejapeddi,KuranKaname,GalaticStryder,andr68rus,Tortel1210,visionary
Source Code:https://github.com/LineageOS
ROM OS Version: 9.x Pie
ROM Kernel: Linux 3.x
ROM Firmware Required: x821 19s. X820 and x829 20s. Higher is optional.
Based On: AOSP
Version Information
Status: Beta
Created 2018-10-06
Last Updated 2018-10-05
Click to expand...
Click to collapse
Thanks. Every body wait this work
mrcesarmx said:
Thanks. Every body wait this work
Click to expand...
Click to collapse
Thanks dude, it was a much awaited built, currently downloading
Heyyo, so for the lineage-16.0-20181005-UNOFFICIAL-x2 build? Noteworthy changes:
Kernel is rebased on CAF Pie and has reworked Quick Charge code (no more QC bugs) and audio (no more Type-C to 3.5mm headphones orientation bug) from @GalaticStryder and his awesome kernel (we don't have a lot of optimizations on top as we are keeping our kernel as simple as possible, so if you want a fine-tuned kernel? I'd recommend checking out GS's thread)
Audio is kanged from gemini (Xiaomi Mi5) and brings with it a lot of changes which should improve audio quality a little
Autofocus fix will now be a build.prop implementation. Just need to use the focus fix zips in TWRP for an automatic method, or edit /vendor/build.prop and change/add persist.camera.focus_fix=1 (this change will hopefully be coming to 15.1 as well as I cherry-picked it for Oreo as well)
msm_irqbalance to help with the smoothness of the ROM (Google recommends it and even uses it on the Pixel as noted in their
Identifying Jitter-Related Jank article.
thermal-engine config from pure marlin (we have had too many complaints about heat, so we will be dropping from the current thermal-engine.conf which allowed the CPU to go up to 79°c at around 75% CPU clock speeds, but now with pure marlin it will cap out around 72°c at 50% clock speeds)
CNE, DPM and GPS are rebased on pie blobs (unfortunately, IMS, RIL and QMI are not as we haven't found a pie device with CAP pie blobs that have a compatible modem x12 device stack for us... we may be stuck waiting on OnePlus3 or Mi5 or Zuk2 because Google reworked how IMS/VoLTE works on Pie and that is causing issues for us...)
ThE_MarD said:
Heyyo, so for the lineage-16.0-20181005-UNOFFICIAL-x2 build? Noteworthy changes:
Kernel is rebased on CAF Pie and has reworked Quick Charge code (no more QC bugs) and audio (no more Type-C to 3.5mm headphones orientation bug) from @GalaticStryder and his awesome kernel (we don't have a lot of optimizations on top as we are keeping our kernel as simple as possible, so if you want a fine-tuned kernel? I'd recommend checking out GS's thread)
Audio is kanged from gemini (Xiaomi Mi5) and brings with it a lot of changes which should improve audio quality a little
Autofocus fix will now be a build.prop implementation. Just need to use the focus fix zips in TWRP for an automatic method, or edit /vendor/build.prop and change/add persist.camera.focus_fix=1 (this change will hopefully be coming to 15.1 as well as I cherry-picked it for Oreo as well)
msm_irqbalance to help with the smoothness of the ROM (Google recommends it and even uses it on the Pixel as noted in their
Identifying Jitter-Related Jank article.
thermal-engine config from pure marlin (we have had too many complaints about heat, so we will be dropping from the current thermal-engine.conf which allowed the CPU to go up to 79°c at around 75% CPU clock speeds, but now with pure marlin it will cap out around 72°c at 50% clock speeds)
CNE, DPM and GPS are rebased on pie blobs (unfortunately, IMS, RIL and QMI are not as we haven't found a pie device with CAP pie blobs that have a compatible modem x12 device stack for us... we may be stuck waiting on OnePlus3 or Mi5 or Zuk2 because Google reworked how IMS/VoLTE works on Pie and that is causing issues for us...)
Click to expand...
Click to collapse
Thanks for developed it.
Testing rom now. Ok for daily driver so far. High cpu usage apps may cause heat though so can just avoid using those for now. Thanks for all your hard work!
There isn't mirroring to TV listed in the known bugs. Is it working in this ROM ?
Thanks.
Great
Awesome, can't wait to try it! Thanks to Marc and everyone who worked on it and even more so for providing details on what and how has been done, much appreciated!
Network traffic monitor, clock position and showing am/pm do not work.
Guys please don't complain about rom sided features because many of them don't work. Mention only the device sided bigs for now.
The VoLTE fix worked on first install.
After reboot I don't get the message to select preferred sim as I did on the first install, and VoLTE isn't working. Is there a way to trigger this manually? I tried playing around with the apns and had no luck.
EDIT:
Manually editing /data/system/users/0/settings_global.xml as per gerrit fixes VoLTE, but system behaves poorly. Mine was value=2 so SED wasn't working.
Will this cover both possibilities?
Code:
if [ -f /data/system/users/0/settings_global.xml ]; then
sed -i 's/"multi_sim_data_call" value="1"/"multi_sim_data_call" value="-1"/g' /data/system/users/0/settings_global.xml
sed -i 's/"multi_sim_data_call" value="2"/"multi_sim_data_call" value="-1"/g' /data/system/users/0/settings_global.xml
restorecon /data/system/users/0/settings_global.xml
fi
mrcesarmx said:
Thanks. Every body wait this work
Click to expand...
Click to collapse
Thanks for quoting the complete OP. Loved scrolling through that again :good:
Hi, after flashing this rom I can't restore any other, older, backup. I tried with many differents backups (lineage, arrowos, revengeos) but I didn't succeded, and after restoring the backup, the phone goes on bootloop.
I have installed the new, unofficial, twrp, but the problem was already present before.
Someone have some idea of what could be the cause?
thanks
kenciroz said:
Hi, after flashing this rom I can't restore any other, older, backup. I tried with many differents backups (lineage, arrowos, revengeos) but I didn't succeded, and after restoring the backup, the phone goes on bootloop.
I have installed the new, unofficial, twrp, but the problem was already present before.
Someone have some idea of what could be the cause?
thanks
Click to expand...
Click to collapse
you have to use no treble recovery 3.2..1 format everything eccept internal storage, and restore the backup, should work...of course if the backup it's not treble..
I just solved the problem. The backup that I wanted to restore was a trebleized one. So I restored the backup, than I re-trebleized the partitions from twrp, wiped cache and delvik and reflashed the rom.
Before returning to lineage os I want to recover some important data from my previous backup
Anyway thank you.. ciao guagliò
Another great job.
sssyraj said:
There isn't mirroring to TV listed in the known bugs. Is it working in this ROM ?
Thanks.
Click to expand...
Click to collapse
Heyyo, tbh I haven't tested it so it is unknown if it works or not... I can't test it as I have a "dumb" TV so.... if anyone wants to test and report? That would be nice heh.
xlcashlx said:
The VoLTE fix worked on first install.
After reboot I don't get the message to select preferred sim as I did on the first install, and VoLTE isn't working. Is there a way to trigger this manually? I tried playing around with the apns and had no luck.
EDIT:
Manually editing /data/system/users/0/settings_global.xml as per gerrit fixes VoLTE, but system behaves poorly. Mine was value=2 so SED wasn't working.
Will this cover both possibilities?
Code:
if [ -f /data/system/users/0/settings_global.xml ]; then
sed -i 's/"multi_sim_data_call" value="1"/"multi_sim_data_call" value="-1"/g' /data/system/users/0/settings_global.xml
sed -i 's/"multi_sim_data_call" value="2"/"multi_sim_data_call" value="-1"/g' /data/system/users/0/settings_global.xml
restorecon /data/system/users/0/settings_global.xml
fi
Click to expand...
Click to collapse
I got the script overhauled after you mentioned it, thanks! Meow the script will look if it's not set properly to -1 and will replace the value no matter what it is :good:

[ROM][9.0][UNOFFICIAL][ARM64] LineageOS 16.0

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
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.0 (pie), which is designed to increase performance and reliability over stock Android for your device.
LineageOS 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. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.
All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.​
Warning!!!
BackUp EFS and persist partition before installing. If you lose IMEI , use this backup to retrieve it in future.
What's working :
Boots
RIL (Calls, SMS, Data)
Fingerprint
Wi-Fi
Bluetooth
Camera
Camcorder
Video Playback
FM Radio
Audio
Sensors
Flash
LED
GPS
Volte
Encryption
Usb tethering
What's not working :
Nothing
Flashing and updating
LineageOS clean install :
- Mandatory to flash 64bit recovery
- (Optional) Wipe the data & cache & system(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 :
- Mandatory to flash 64bit recovery
- (Information) Don't wipe anything unless you want to
- 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
Downloads Links
LineageOS 16.x arm64(Unlocked Bootloader) :
Development : https://www.androidfilehost.com/?w=files&flid=287970
Google Applications (optional) :
Opengapps : Link (Use packages for ARM64, Android 9.0)
Information : Flash the GApps before the first boot. If not, a clean flash is recommended.
Recovery Mandatory to flash for 64bits ROM :
Download TWRP 3.2.1-0 : https://www.androidfilehost.com/?fid=11410963190603887243​
About the builds
Device tree : https://github.com/Sohamlad7/android_device_motorola_cedric/commits/lineage-16.0
Kernel sources : https://github.com/Sohamlad7/android_kernel_motorola_msm8937/commits/lineage-16.0
Vendor blobs : https://github.com/Sohamlad7/android_vendor_motorola_cedric/commits/lineage-16.0​
Reporting Bugs
DO NOT Report bugs if you're running a custom kernel, third party apps or you installed Xposed
DO NOT Report bugs if you've modifies system files
If it is a random reboot, grab /proc/last_kmsg. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
Code:
adb logcat > logcat.txt
Code:
adb shell dmesg > dmesg.txt
If it is a random reboot, grab kmsg. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
Code:
adb shell cat /sys/fs/pstore/console-ramoops
If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log
Bug report should be done in following format provided in code below
Code:
What is your
LineageOS version:
LineageOS Download url:
Gapps version:
Did you
wipe:
restored with titanium backup:
reboot after having the issue:
Are you using--
a task killer:
a non-stock kernel:
other modifications:
Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:
Q&A - FAQ
LineageOS 16.0 arm64 Cedric Regular Questions and Answers : Q&A Thread​
Credits :
- The LineageOS Team
- Thanks to ROM that have been built on Legacy Server and also thanks to all the legacyserver member friends
- Special Thanks to @wzedlare and @vache without them it wouldn't have been possible for us to get Nougat and Oreo
- Thanks to @infixremix , @m_vaisakh and @AyamDobhal for helping
- Thanks to @DavidKirsch , @robt77, @ADHILR, @Jefe1177, @Robson1000 and everyone else from cedric testing group for testing rom
- Let me know if i missed anyone​
XDA:DevDB Information
LineageOS 16.0, ROM for the Moto G5
Contributors
CodeZero, m_vaisakh
ROM OS Version: 9.x Pie
ROM Kernel: Linux 3.x
Based On: AOSP
Version Information
Status: Stable
Created 2019-01-01
Last Updated 2019-05-22
ATTENTION :-
Just a heads up, that we are moving to Stock Oreo's firmware, so it's better that you update to it for the upcoming Pie Roms.
I have moved to Stock Oreo Firmware base so you will have to flash Stock Oreo first and then move to lineage or else Fingerprint will not work
TWRP Flashable Stock Oreo rom
Thanks to @NZedPred https://forum.xda-developers.com/g5/development/twrp-flashable-soak-test-oreo-t3827913
Changelog
12/09/2019
Patched CVE-2019-1988 vulnerability
[*]Removed cpuset foreground boost
[*]Switched to common basic USB HAL
[*]Moved to common data-ipa-cfg-mgr
[*]Enabled USB enumeration in power-off charging mode
[*]Added permission entries for location component
[*]Enabled multiple haptic intensity support
[*]Migrated to audio V4
[*]Added Mapper 2.1 to VNDK SP list
[*]Included all new changes from LineageOS
09/07/2019
Added perfboostsconfig.xml from stock
[*]Fixed inverted fp gesture issue
[*]Removed persist.camera.is_type (which partially fixed green tint camera issue in low light)
[*]Added drop_unicast_in_l2_multicast commits
[*]Included all new changes from LineageOS
22/05/2019
Switched back to Camera2
[*]Kernel source upstreamed to linux stable release 3.18.140
[*]Enabled metadata for FDE
[*]USB Tethering fixed thanks to @wiktorek140
[*]Encryption fixed
[*]Added QCOM's WFD
[*]Synced some config files with stock
[*]Addressed some vendor_init denials
[*]Copied missing vendor.display.config
05/04/2019
Volte fixed
[*]SElinux Enforced
[*]Kernel source upstreamed to linux stable release 3.18.138
[*]Migrated livedisplay to livedisplay 2.0
[*]Updated GPS blobs from deen PPK29.68-16-8
[*]Updated keystore and gatekeeper HALs
[*]Updated DRM blobs from ocean
[*]Added QTI wifi hals
[*]Added missing camera blobs
[*]Updated SDM blobs from LA.UM.7.5.r1-03700-8x96.0
01/01/2019 - Initial Release
Note :-
We can now run 64bits ROM on our phone.
But actually we have to run app_process (system server) as 32bits, mainly cause of sensors non working actually with a 64bits system server.
More to come next, vendor tree is still missing many 64bits blobs, and some of our proprietary services still run in 32bits mode too.
As we have found out , Flashing stock whilst having anything 64bit even the recovery for some reason the efs (IMEI) gets wiped .
I do not recommend you revert to stock on any 64bit rom.
Current local manifest of the ROM build
Code:
<!-- https://github.com/Sohamlad7/android_development_manifest/blob/local_manifests/lineage-16.0.xml -->
Great work bro. All the hardwork finally we get a nice pie rom. Thank you very much soham
---------- Post added at 10:21 AM ---------- Previous post was at 10:12 AM ----------
CodeZero said:
About LineageOS
LineageOS is a free, community built, aftermarket firmware distribution of Android 9.0 (pie), which is designed to increase performance and reliability over stock Android for your device.
LineageOS 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. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.
All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.
Warning!!!
BackUp EFS and persist partition before installing. If you lose IMEI , use this backup to retrieve it in future.
What's working :
Boots
RIL (Calls, SMS, Data)
Fingerprint
IR Blaster
Wi-Fi
Bluetooth
Camera
Camcorder
Video Playback
Audio
Sensors
Flash
LED
GPS
What's not working :
Volte
Usb tethering
SELinux is permissive
Flashing and updating
LineageOS clean install :
- Mandatory to flash 64bit recovery
- (Optional) Wipe the data & cache & system(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 :
- Mandatory to flash 64bit recovery
- (Information) Don't wipe anything unless you want to
- 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
Downloads Links
LineageOS 16.x arm64(Unlocked Bootloader) :
Development : https://www.androidfilehost.com/?w=files&flid=287970
Google Applications (optional) :
Opengapps : Link (Use packages for ARM64, Android 9.0)
Information : Flash the GApps before the first boot. If not, a clean flash is recommended.
Recovery Mandatory to flash for 64bits ROM :
Download TWRP 3.2.1-0 : https://www.androidfilehost.com/?fid=11410963190603887243
About the builds
Device tree : https://github.com/Sohamlad7/android_device_motorola_cedric/commits/lineage-16.0
Kernel sources : https://github.com/Sohamlad7/android_kernel_motorola_msm8937/commits/lineage-16.0
Vendor blobs : https://github.com/Sohamlad7/android_vendor_motorola_cedric/commits/lineage-16.0
Reporting Bugs
DO NOT Report bugs if you're running a custom kernel, third party apps or you installed Xposed
DO NOT Report bugs if you've modifies system files
If it is a random reboot, grab /proc/last_kmsg. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
If it is a random reboot, grab kmsg. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
If the problem disappears after running "setenforce 0" from a root shell, grab /data/misc/audit/audit.log
Bug report should be done in following format provided in code below
Q&A - FAQ
LineageOS 16.0 arm64 Cedric Regular Questions and Answers : Q&A Thread
Credits :
- The LineageOS Team
- Thanks to ROM that have been built on Legacy Server and also thanks to all the legacyserver member friends
- Special Thanks to @wzedlare and @vache without them it wouldn't have been possible for us to get Nougat and Oreo
- Thanks to @infixremix , @m_vaisakh and @AyamDobhal for helping
- Thanks to @DavidKirsch , @robt77, @ADHILR, @Jefe1177, @Robson1000 and everyone else from cedric testing group for testing rom
- Let me know if i missed anyone
XDA:DevDB Information
LineageOS 16.0, ROM for the Moto G5
Contributors
CodeZero
ROM OS Version: 9.x Pie
ROM Kernel: Linux 3.x
Based On: AOSP
Version Information
Status: Beta
Created 2019-01-01
Last Updated 2019-01-01
Click to expand...
Click to collapse
FIX VoLTE for Pie
1. Copy lines from the file to/vendor/build.prop
2. Reboot
3. install ims apk after every reboot
Eu não sou responsável por qualquer coisa que aconteça ao seu telefone. Faça por sua conta e risco.
Funciona apenas em roms de pie
Am I able to install it from stock Oreo ROM? I haven't unlocked it.
FIX VoLTE for Pie
1. Copy lines from the file to/vendor/build.prop
2. Reboot
3. install ims apk after every reboot
I am not responsible for anything that happens to your phone. Do it at your own risk.
Only works on pie roms
https://www.mediafire.com/file/ruoxo93m5szymh5/1_4936412157622353977.apk/file
https://www.mediafire.com/file/2dtky4f3ad3y5y2/1_4936412157622353976.prop/file
giri45 said:
Am I able to install it from stock Oreo ROM? I haven't unlocked it.
Click to expand...
Click to collapse
Yes,
First follow this guide to unlock your bootloader.
Then install the above mentioned TWRP using ADB & FASTBOOT.
After that follow the instructions in the thread.
Good luck!
thanks for the New year gift just waiting for the volte fix
Thanks for your work @CodeZero, nice build, everything is working fine for me.
DavidKirsch said:
Thanks for your work @CodeZero, nice build, everything is working fine for me.
Click to expand...
Click to collapse
Is front hdr in gcam 6.1 working?
Hi there,
first thank you for this fine release. I am interested in installing this rom but have a few questions which could also be interesting for other users.
1. I am currently using LineageOS 15.1, can I flash this rom directly after a clean wipe or do I need to flash the stock firmware first? I have read that flashing stock firmware could be dangerous regarding loosing the IMEI.
2. I have installed TWRP 3.2.1 and was trying to do a backup of EFS and persist partions. Only the EFS partition is selectable for backup, persist seems to be missing.
3. Is the stock camera working fine or is there a long delay when starting like in other 15.1 roms?
AyamDobhal said:
Yes,
First follow this guide to unlock your bootloader.
Then install the above mentioned TWRP using ADB & FASTBOOT.
After that follow the instructions in the thread.
Good luck!
Click to expand...
Click to collapse
Thanks a lot?
CodeZero said:
ATTENTION :-
Just a heads up, that we are moving to Stock Oreo's firmware, so it's better that you update to it for the upcoming Pie Roms.
Click to expand...
Click to collapse
So wasn't a waste of time trying out the crappy Stock Oreo after all. Thanks
Any tested fm radio?
kutlay1653 said:
Any tested fm radio?
Click to expand...
Click to collapse
Yes, it's working.
Thanks a lot for your work! It seems like finally I'm gonna install a custom ROM in cedric :laugh: I have a Oreo stock untouched device, any heads up as how to not loose IMEI or mess up with something else?
Also, is the camera totally working? Thanks a lot again!
J.
jpm92 said:
Thanks a lot for your work! It seems like finally I'm gonna install a custom ROM in cedric :laugh: I have a Oreo stock untouched device, any heads up as how to not loose IMEI or mess up with something else?
Also, is the camera totally working? Thanks a lot again!
J.
Click to expand...
Click to collapse
It's recommended to backup fully working EFS/persist before messing with 64bit TWRP/ROMs.
For the unknown reason, reverting to stock (using fastboot) with anything 64bit at least once installed (even TWRP) wipes the IMEI.
Idk about the camera, but I'd like to ask the same as I'm also interested in trying LOS based on Pie.
SafetyCheck is certified? No lags and stuttering?
jpm92 said:
Also, is the camera totally working? Thanks a lot again!
Click to expand...
Click to collapse
At first I thought the camera was working fine. There is no big startup delay when starting the camera app (just the normal second). Flashlight, front camera and video recording also worked for me.
But when I am trying to take a picture from within a messenger app my phone crashes or something. The same thing happens If a take more than one picture. The camera app seems to crash and the whole phone becomes unusable. I only can see a black screen or my lock screen.
How do you back up EFS?

Project Treble for Xperia XZs [G8321/2] [Pie 9.0] [no repartitioning]

Project Treble for Xperia XZs
With this project, you can run (almost) any Generic System Image(GSI) on your Xperia XZs. This means you can test LineageOS, Havoc, Pixel Experience...
No repartitioning necessary! This method is re-using the oem partition.
What is Project Treble?
Understanding Project Treble and Android updates
Talkin’ Treble: How Android engineers are winning the war on fragmentation
What are GSIs?
Android Source: Generic System Image (GSI)
Downloads:
ROM: Download the latest aosp_f8331_*-TREBLE-NIGHTLY.zip from sx.ix5.org/files/builds/keyaki/aosp/
TWRP: Download twrp-kagura-oem-to-vendor.img Wait until a treble-compatible recovery is made
How to install:
Back up your stuff
Wipe data and caches
Install the zip via TWRP (or unzip and install just the /boot and /vendor images via fastboot)
Install any GSI via "fastboot flash system your-gsi-image.img"
To use Magisk: Flash twrp-kagura-oem-to-vendor.img as recovery. Reboot into recovery and install Magisk like you usually would. If you want to go back to another ROM, you need to re-flash your old TWRP recovery as well.
Bugs: See post #2
DO NOT POST HERE FOR FLASHING HELP OR YOU WILL BE REPORTED. Read everything before posting.​
If you have questions, ask them in this thread: AOSP 9.0 Pie builds for F8331/F8332​
List of GSIs: phhusson's treble Generic System Image
Important: You need an A-Only, ARM64 GSI!
GSIs based on phhusson's work offer the best compatibility.
Magisk: For Magisk to work, you need to tweak your TWRP installation, since it doesn't know that we have shuffled /vendor to the oem partition. You need to change /oem to /vendor in TWRP's fstab file.
See above for a tweaked TWRP.
If you want to go back to any other AOSP-based ROM that is not a GSI, simply re-flash the regular oem image and install like you usually would.
For developers:
This method is repurposing the oem partition to hold /vendor and odm(blobs). There's 400mb of space on that partition and we are only using ~260mb for blobs, while vendor is only about 20-30mb.
Re-partitioning can be quite dangerous if you do not know what you are doing. This method should be safe for everyone.
Sources are up now.
local_manifests
kernel (with patches)
sony's repo_update
ix5_repo_update: run ix5_repo_update.sh and then treble_repo_update.sh
You need to tweak the following:
Kernel dtsi to disable "odm" and load /vendor from "bootdevice/by-name/oem"
PlatformConfig on tone
device-sony-common:
adreno-symlinks branch
symlink from /vendor/odm/lib to /vendor/lib instead of from /odm/lib: Extra symlinks for build.prop and radio (aosp already symlinks /odm to /vendor/odm, but it omits build.prop and our radio folder)
Misc fixes
PRODUCT_FULL_TREBLE_OVERRIDE needs to be "true"
device-sony-tone: treble fixes:
Mount oem as /vendor in fstab
"TARGET_COPY_OUT_VENDOR := vendor" needs to be set
Set VNDK versions, and override properties that get set because the build system is made to believe our XZ shipped with Oreo
device/sony/odm with odm files
Unpack the oem blobs under device/sony/odm/odm and follow the README in device/sony/odm/README.
We need to put the odm files("blobs") somewhere. They get symlinked from /vendor/odm to /odm; both locations need to be accessible.
sepolicy: Use the broad-updates branch (it's kinda hack-ish now because /odm/pm-service is using /dev/binder, which messes with sepolicy). Sepolicy is on permissive for these builds because of that issue.
Tested:
AOSP Extended (calling works, bluetooth may crash)
Havoc (no calling, bluetooth may crash)
Camera should work everywhere
Bugs are the same as the regular AOSP builds, plus some more if the GSI is not built well or doesn't have tweaks for Sony devices.
Happy holidays, I hope you have fun with this!​
XDA:DevDB Information
Project Treble for Xperia XZ F8331/2, ROM for the Sony Xperia XZ
Contributors
local__hero
ROM OS Version: 9.x Pie
ROM Kernel: Linux 4.x
ROM Firmware Required: .184 or later stock firmware
Based On: AOSP
Version Information
Status: Nightly
Created 2018-12-30
Last Updated 2018-12-30
XDA:DevDB Information
Project Treble for Xperia XZs [Pie 9.0], ROM for the Sony Xperia XZs
Contributors
local__hero
Source Code: https://git.ix5.org/felix/local-manifests-ix5
ROM OS Version: 9.x Pie
ROM Kernel: Linux 4.x
ROM Firmware Required: Stock Oreo firmware, best .184
Based On: AOSP
Version Information
Status: Nightly
Created 2019-01-28
Last Updated 2019-06-10
Reserved
Reserved
Gb321 single card installation error
Man, can you explain the installation better? I don't understand how it installs on the vendor, boot and twrp (I'm Brazilian, I'm sorry for my bad English)
There's three vendors and none of them is image how can I flash them
Thread closed at op's request.
Thank you for your contributions :highfive:
strongst
Forum Moderator

[ROM][10/12] LineageOS OFFICIAL [SURYA]KARNA]

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
LineageOS 19.1 Official and currently built by LineageOS official infrastructure.
17.1 has never been official (and it's upstream dead since 31st December 2021)
18.1 is official, discontinued builds since 2nd May 2022
19.1 is official and built weekly.
​
/*
* 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.
*/
Click to expand...
Click to collapse
What's working:
Everything
Known issues:
Honestly at this time, nothing?
Camera Notes
ANX camera is not recomended and will most probably NOT work.
To get a fully working camera try one of the gcams here.
Do not forget to copy&load the associated xml file!
Official LOS uses oss camera service, so xml written for other custom roms might not work.
The gcams at the above link have modified xmls for LOS.
Download:
There is also a MIcroG build if you don't like Google Apps!
LineageOS 19.1 Official
LineageOS 17.1 builds [21st December 2021, last build ever]
If you care for official microg builds, check here they will be ready when they will be ready, those builds are not done by me nor supported by me, do not ask me about it.​
There is also, for help and support, the:
Telegram Support Group
Instructions:
Make sure to flash at the very minimum firmware 12.5.7.0 (anything newer will work) from XiaomiFirmwareUpdater firmware page
(For 17.1 <<only>> : flash VENDOR + FIRMWARE from Android 10, do not use Android 11)
Download this build and Magisk (optionally) and gapps (optionally).
Put the zip on your MicroSD (suggested) or connect via USB to PC.
Boot to recovery (latest TWRP only is suggested! OrangeFox has issues).
Wipe Dalvik, Cache and format data. This IS NOT OPTIONAL!
Reboot recovery after wipe and format.
Flash this ROM zip...
... flash gapps zip ...
... If you want Magisk, flash zip ...
Reboot and enjoy!
If you have any issues flashing, like persistent GApps or booting issues, try to cleanup the phone with the following procedure:
Download a full MIUI rom recovery package from XiaomiFirmwareUpdater MIUI page
... (make sure you download the full rom package for RECOVERY, it is about 2.4Gb!) ...
From recovery, flash the zip file. This will cleanup all the partitions.
Now flash again this ROM.
This problem is related to the fact that TWRP and OrangeFox both don't support dynamic partitions properly yet.
Tested with Magisk 25.2, newer version should work, but you MUST follow the SafetyNet fix guide in the next post if you want Play Store certification.
Suggested GAPPS for LineageOS: Mind The Gaps (here, make sure to download the ones for your android version 10, 11 or 12).
XDA DevDB Information
LineageOS 17.1 & 18.1 & 19.1, ROM for the Xiaomi Poco X3 NFC
Contributors
Build by @gardiol
Device tree sources: device tree
Kernel sources: kernel
Vendor sources: vendor
Additional notes
SafetyNet does not pass by default, you need to follow the steps on post n.3 below. This is due to Google issues and LOS rules.
ROM OS Version: Android 10 & 11 & 11
ROM Kernel: Linux 4.x
Version Information
Status: Official and Unofficial.
Created 2020-12-13
Last Updated 2022-08-24
Changelog
From May 2022:
LineageOS 19.1 is official for Surya!
TO BE CLEAR: there are OFFICIAL releases weekly, those (and the according changelog) is NOT listed here, go to official LOS download page! This list if only for test builds at this point.
20 December 2021 (17.1)
Last 17.1 build ever for Surya
December security patches
19 September 2021 (17.1)
September security patches.
06 September 2021 (18.1)
New debloated kernel
Fixed screen recorder rate limiter
Fixed DriveDroid (and more usb gadget stuff)
Added proximy check to prevent screen wakeup option
August patches
Fixed minor denials (battery improvement)
31 July 2021 (18.1)
Fixed lots of denials
Greatly improved battery life
more minor fixes.
20 July 2021 (both 17.1 and 18.1)
July patches
For 18.1: mi_thermald added back
For 18.1: dynamic 30-120Hz fixed
13 July 2021 (18.1)
All new trees!
FORMAT data is MANDATORY
19 June 2021 (17.1)
Upstream sync
June patches
17 June 2021 (18.1)
fixed haptic issues
Fixed Netflix error 5.10
Fixed idle drain
Fixed NFC denial
Upstream sync
07 June 2021 (18.1)
Fix aptX
Fix boot from MIUI to LOS not working
07 June 2021 (18.1)
Fix netflix
Fic video recording length
Fix GBoard rounded corners
05 June 2021 (18.1)
First release of 18.1 build!
11 May 2021 (17.1)
LOS upstream sync with May patches
18 April 2021
LOS upstream sync with April patches
Dpmd crash resolved
️LOS call recorder enabled
️Removed all permissive domains
09 April 2021
Upstream sources sync
28/29 March 2021
Fixed video recording bug
Fixed audio crackling (finally!)
Removed all "parts", added doze and refresh rate specific settings
Getting trees ready for official
(note: UnofficlalBuild and Experimental builds are from 28 March, MicroG from 29th)
13 March 2021
Two builds are available...
Unofficial, the same old build, but with March security patches.
Experimental, featuring a full vendor partition, but still SELinux permissive, but a ton of improvements including fixed video recording length, 4K video recording and playback and more minor issues.
Pick your choice!
27 February 2021
Really fixed yellow tint once for all
Enabled VoIP transition
Updated proprietary blobs
Haptic improvements
Various minor optimizations
LOS upstream sync
19 February 2021
Improved Wifi
Improved audio
LOS upstream sync
06 February 2021
Improved brightness levels
Finished reworking tree
February LOS upstream sync
Latest security patches
24 Jannuray 2021
Fixed "Fast Charging" string, except for original charger!!! (Fast charging IS working, just does not says it's fast in lockscreen).
Added 30Hz and 50Hz display frequency in display options
Cleaned up audio routes
19 Jannuary 2021
Reverted a prop which was interferring with whatsapp videos.
18 Jannuary 2021
Fixed fingerprints
Rewritten init_surya.cpp
Removed more useless stuff
Activated correctly second SIM card
Added a few translations
Improved brighness
Improved Wifi networks
Fixed tethering+bluetooth
05 Jannuary 2021
WiFi Display fixed, finally!
Resolved bug with speakerphone and reboot
05 Jannuary 2021
WiFi Display not fixed
Product partition enlarged
Device Tree reworked for proper contribution recognition
AOD disabled. Once fixed will be available again.
01 Jannuary 2021
DT2W Fixed.
29 December 2020
New device tree is up.
Brightness works again
DT2W not working
AOD not working
FM Radio fixed (again)
29 December 2020
Final fix for low volume recording.
WiFI Display still not fixed (please send logs!!!)
Device tree cleaned up a lot
add Higher Aspect Ratio
statusbar : avoid display parameters on Notch
SELinux is showing Enforcing in Trust
28 December 2020
Added audio fixes for low volume.
Added full WiFi Display support (to be confirmed)
26 December 2020
New parittion size.
Bluetooth now reporting working properly.
24 December 2020
Tentative SELinux enforcing.
22 December 2020
Added FM radio support, FM radio working.
SELinux still permissive
20 December 2020
Reworked vendor mixing camera blobs from A10 branch and telephony from A11 branch.
Camera is reported working.
SIM card is reported working.
VoLTE and WoWiFi reported working.
FM Radio NOT working.
19 December 2020
New beta build for camera fix.
Let me know if it works!
18 December 2020
SIM card works
missing camera
selinux permissive, will try to fix in later build
Passing SafetyNet and Google Play Certification
SafetyNet and Play Store certification
(guide updated 24 aug 2022, for Magisk 25.2)
LineageOS, by charter, does not alter any safety ptotection set by Google. In our case, having an unlocked bootloader, safetynet will always fail by Google decision. Now, passing safety net is required for banking apps and even some games. Also, it is required for "play store certification", which will prevent you from even searching for some apps (like Netflix).
Blame Google for all this.
--ALL STEPS ARE MANDATORY, NONE CAN BE SKIPPED UNLESS EXPLICITY OPTIONAL--
Install Magisk
Download latest stable magisk apk from Magisk website (https://github.com/topjohnwu/Magisk). Rename it as .zip and flash it from recovery. Some recoveries, like TWRP, will flash the apk directly, others will require the rename.
Boot LOS and install the apk file.
Hide Magisk apps and Enable Zygisk & blocklist
Open Magisk App, go to settings and hide the magisk app. Give it a name you will remember.
After magisk app has been hidden, go back to settings and enable Zygisk (beta).
Now apply the blocklist and select all the apps you like NOT to detect Magisk. This must include Google Play Services and Google Play Store.
Install SafetyNet fix module
kDrag0n developed a fix that can be flashed via Magisk. You must download the module (https://github.com/kdrag0n/safetynet-fix/releases), select at least version 2.2.1, and install it from inside Magisk app.
Setup Fingerprint
Download latest Props module for Magisk (https://forum.xda-developers.com/t/...t-prop-edits-and-more-v6-1-2.3789228/page-274) and install it within Magisk. Reboot your phone.
Now, after reboot, open a terminal (use "adb shell" from pc, or install termux from play store) and type:
su (grant root access!)
props (a text based menu will popup)
Now select "1" (edit fingerprint), type "f" (pick fingerprint) select "22" (poco) then select any one poco x3 model. Which one really doesn't matter, but make sure to choose the right Android version.
Confirm and reboot phone.
Clear caches for Google stuff
Now, open settings - apps and clear data&cache for Google Play Store and Google Play Services.
One last reboot!
Don't want root?
If you dont want root... Just disable it from within Magisk!
OPTIONAL Additional stuff
Magisk from 24.1 removed the built-in modules repository. If you like it back, you can install Fox's Magisk Module Manager app (https://github.com/Fox2Code/FoxMagiskModuleManager).
LineageOS on SafetyNet (https://www.lineageos.org/Safetynet)
Kdrag0n on SafetyNet (https://github.com/kdrag0n/safetynet-fix)
SafetyNetFix Magisk Module (https://github.com/kdrag0n/safetynet-fix/releases)
Magisk download (https://github.com/topjohnwu/Magisk)
Props Module for Magisk (https://forum.xda-developers.com/t/...t-prop-edits-and-more-v6-1-2.3789228/page-274)
fox's Magisk Module Manager (https://github.com/Fox2Code/FoxMagiskModuleManager)
Wow. Thanks.
Thank you very much
Thanks for the ROM! Is this built with the official kernel release? Or are you using the one built by @xyyx ? Also I'm assuming SELinux is enforcing?
I'll flash it later this week most likely
Selinux is enforcing yes. The kernel is the default kernel. This is mandatory since i want to apply for official when stable enough.
gardiol said:
Selinux is enforcing yes. The kernel is the default kernel. This is mandatory since i want to apply for official when stable enough.
Click to expand...
Click to collapse
why your kernel Is not forked from Xiaomi Git?
I am new to most of this, yes it should. My bad, i cloned it then added the files to my repo. I will fix it later.
what's the required firmware version for this ROM?
Firmware is 12.0.4 (surya) as i wrote, untested on karna so i don't know for that one.
Does this includes Gapps? I prefer not to have them.
Thanks for this release.
Of course it does NOT contain GAPPS! This is LineageOS. I suggest to flash OpenGAPPS pico.
With Spanish language and pico opengapps, it stays on shutting down just starting.
Please try to flash only the ROM (no GAPPS) then boot and try.
gardiol said:
Please try to flash only the ROM (no GAPPS) then boot and try.
Click to expand...
Click to collapse
Yes, but when it comes to choosing a language it restarts.
Can you get a log cat from adb or it restart too soon?
What if you select english?
gardiol said:
Can you get a log cat from adb or it restart too soon?
What if you select english?
Click to expand...
Click to collapse
good afternoon again.
I wanted to try flash again, but now it does not start, it stays in bootlop with recovery
You probably must format data (not wipe, but format), this is usually why it bootloops to recovery...
gardiol said:
You probably must format data (not wipe, but format), this is usually why it bootloops to recovery...
Click to expand...
Click to collapse
The same thing happens to me flash only rom.
My network flashes, I don't know why it says I don't have a sim. but if I have, I want to log in but I can't because I am in the office with little time

Themes / Apps / Mods Useful mods for custom roms //mojito//

Anx Camera for custom ROMs [ DEPRECATED ]
PS: Use Mi camera new port from second post.
Android 12 & 12L
Download:
- v7.0
Android 13
Download:
- v7.1 ( working on Pixel Os except 48MP)
- v7.2 ( working on many roms )
1. Flash miui camera magisk module.
2. Reboot.
3. Enable Permissions in App Info if launching the app at first does not ask for any permission (Camera, Files, Location, Microphone).
Changelogs:
09.09.2022
• Fixed slow motion along with 48MP mode.
• Fixed Portrait mode + filters along with wide/uw/macro lens.
• Enabled documents, Night, short video, time-laps, long exposure and clone modes.
• Enabled and edited watermark as "SHOT ON REDMI NOTE 10 AI QUAD CAMERA".
18.09.2022
• Fixed portrait again on some Roms.
• Fixed HDR mode on back camera.
• Fixed broken zoom ( green screen ).
17.10.2022
• Upgraded to v7.2 and dropped A12 builds.
• Fixed 48MP on A13 ( thanks to @Anush02198 for help).
• Fixed front portrait.
• Removed front slow motion button ( was causing crashes ).
• Removed scanner miui app and fixed Document option.
AEonAX link
AnxCamera wiki
Thanks to:
AEonAX, SonalSingh18 and AMRGAMAL1
New Mi Camera port [ magisk module]
Version 4.3
Build date : 18-11-2022
For mojito A13 Custom Roms
Mi Camera magisk module:
➥ Download [Gdrive]
Instructions:
• Delete any anx / miui camera magisk modules if there is already.
• Flash via magisk manager Mi Camera magisk module and reboot to system.
• If necessary, flash 48MP fix magisk module according to android security patch then reboot to system ( uninstall 48MP fix if you get "can't connect to camera").
48MP fix for android 13 magisk module (November 2022 security patch and previous):
➥ Download [Gdrive]
48MP fix for android 13 magisk module (+December 2022 security patch):
➥ Download [Mega]
48MP fix for android 12 magisk module:
➥ Download [Gdrive]
Changelog:
• Optimized for mojito.
• Added necessary vendor libraries.
• Unnecessary codes removed.
• Experimental features unlocked.
• Enabled Night, 48MP, Short video, Panorama, Documents, VLOG, Time-Laps, Slow motion, Movie Effects, Ai Watermark, Custom Watermark, Clone modes..
15-12-2022
• added new 48MP fix for December security patch.
29-12-2022
• Removed parallel processing from experimental features.
• Switched to platform keys.
• Fixed few sepolicy rules.
11-06-2023
• Fixed timed burst in pro mode.
• Fixed back portrait in some ROMs.
• Removed experimental features and its annoying message.
• Switched to original mi camera icon.
• Added monet support (only in camera settings for now).
• Fixed parallel-processing on Android 13 (by ceracz)
• Set default HDR mode to Auto (by ceracz).
• Dropped stock camera provider (by ceracz), so no need to 48MP fix.
19-06-2023
• Fixed blur in background on portrait mode.
Notes:
• ROMs builders should add this commit, to fix front camera & portrait issues if it is not included in rom source: https://github.com/SpiceOS/android_bionic/commit/e1b0c860ea4dfc74cf9c016812b0d3aea315b1d0
• For those who want include Mi Camera on their builds, use this repo, this commit and this commit.
• To fix 48mp from source add this commit:
https://review.lineageos.org/q/topic:twelve-camera-privapp
• Don't use spoofing module like Dolby Atmos or Pixel props .. Otherwise they will affect camera functionallies.
Thanks to:
AmrGamal, Ceracz ,Praditia Nur, Anush,
Anx team and all testers.
Do you have MIUI gallery?
ibanezred16 said:
Do you have MIUI gallery?
Click to expand...
Click to collapse
This apk worked for me:
Google Drive - Download warning
drive.google.com
Disable Force Encryption for
Mojito / oss vendor :
Usage:
1- Comming from encrypted rom
- Flash the new encrypted ROM
- Flash ofox
- Reboot to ofox
- Flash decrypt zip
- Format data
- Reboot system
2- Comming from decrypted rom
- Wipe data/dalvik/cache
- Flash the new encrypted ROM
- Flash ofox
- Reboot to ofox
- Flash decrypt zip
- Reboot system
Notes:
• This zip decrypt your data.
• This zip won't decrypt data on stock vendor.
• This zip won't decrypt data on erofs Roms.
• Flash it everytime after flashing new rom.
• Decrypted DATA = LESS SECURE device.
Working Fm radio as magisk module:
For A12 and A13 (most latest a13 roms don't have FM radio app).
- Flash the module via magisk
- Reboot to system
Increase sawp (ZRAM) from 2Gb to 4Gb
installation:
- Go to ofox recovery
- Flash attached zip
- Reboot to system
Ps:
Some roms have limited vendor partition size and RO, so they don't accept fstab.zram file modification or decryption.
Don't flash this zip on Roms having Neternels kernel as it has by default 4gb vbswap.
KProfiles modes (only for neternels kernel) :
Switch between battery , balanced and performance modes (manual or auto) using KProfiles app ( settings / battery / or using qs tile ).
- Flash Kprofiles magisk module.
- Reboot.
- Tested and worked on many a12L/a13 roms.
Ps:
It won't work on Roms using non-Neternels kernel.
Hami_Do said:
Working Fm radio as magisk module:
For A12 and A13 (most latest a13 roms don't have FM radio app).
- Flash the module via magisk
- Reboot to system
Click to expand...
Click to collapse
This is a great achievement. Weldone Hami_do
Hami_Do said:
• This zip won't decrypt data on stock vendor.
• This zip won't decrypt data on Roms having RO vendor.
• This zip won't decrypt data on erofs Roms.
• Flash it everytime after flashing new rom.
• Decrypted DATA = LESS SECURE device.
Click to expand...
Click to collapse
Unlike the classic method which decrypts data at vendor fstab level, the new method can decrypt data even on RO roms such as erofs roms.
Soon i will let you know how..
Edit:
Last time I have decrypted successfully Arrow Os A13 erofs (Read Only ROM) using dfe-neo from here :
[A/B][A-ONLY][SCRIPT][READ-ONLY][EROFS][ANDROID 10+] Universal Disable Force Encryption for RO and RW "NEO STABLE"
Disable Force Encryption NEO Do you all know what DFE is? no? Anyway. Basically, your device has an encrypted data section "/data" by default. Let's look at the advantages of google's solution that we will lose after disabling encryption: -...
forum.xda-developers.com
thanks for the miui camera port
All works great with both 12 and 13 beta.
Just had to disable some pixel props on magisk for the camera port to work flawlessly.
Thanks.
Has anyone tried the flashable anx camera on pixel os a12?
devcon69 said:
All works great with both 12 and 13 beta.
Just had to disable some pixel props on magisk for the camera port to work flawlessly.
Thanks.
Click to expand...
Click to collapse
Can you show which pixel props to disable?
Mthw said:
Has anyone tried the flashable anx camera on pixel os a12?
Click to expand...
Click to collapse
Since PixelOS uses read only filesystem (erofs) it might not even be possible to flash stuff there.
Anyone tested anxcamera for GSI a12L with wcsf kernel on their mojito devices?
pihpih95 said:
Anyone tested anxcamera for GSI a12L with wcsf kernel on their mojito devices?
Click to expand...
Click to collapse
Not with WCSF but tested on Neternels. Selfie and portrait mode crashes.
Samir2298 said:
Not with WCSF but tested on Neternels. Selfie and portrait mode crashes.
Click to expand...
Click to collapse
I see, thanks for the information i think i will try anxcam with WCSF later and report it back here
Mthw said:
Since PixelOS uses read only filesystem (erofs) it might not even be possible to flash stuff there.
Click to expand...
Click to collapse
Flashing files directly in system you can't on erofs i agree, but flashing magisk modules on erofs is possible , there is no problem.
----
@pihpih95 I think same issues on neternels you will find them on WCSF..
except if you want try it on a12 , try PLC version ( prebuilt libcameraservice ), because my anx a12 module has a prebuilt libcameraservice.
And if you want try WCSF on a13 , try NPLC because there is no libcameraservice in my anx a13 module.
Hami_Do said:
I think same issues on neternels you will find them on WCSF..
except if you want try it on a12 , try PLC version ( prebuilt libcameraservice ), because my anx a12 module has a prebuilt libcameraservice.
And if you want try WCSF on a13 , try NPLC because there is no libcameraservice in my anx a13 module.
Click to expand...
Click to collapse
i found that whenever i record the video , it is not save to any of my storage , how to overcome this problem ? im using WCSF-PLC latest on AncientOS GSI,taking picture just fine , im using port v7 anxcam

Categories

Resources