Build error : Lenovo P11 kernel - General Questions and Answers

Hello, I had bought a tablet from Lenovo previousely, being Lenovo P11 which has Sm6115 qualcomm.
They did release the kernel source but for an old version of the oem firmware. As a result, it is missing drivers for newer variant of machines (They have different panels and touchscreens on newer variants) and as a result the touch screen does not work for the machine I own (Wifi variant)
Luckliy the "5G" variant of the tablet has SD765 in it but has the same touch panel (Novatek NT36523) so I tried to copy that driver to my device's kernel and I'm unable to fix this error while compiling.
This is the repo for my kernel (Yes, I did not restore git history yet because I'm lazy) : https://github.com/HexagonWin/m11_row_kernel_temp
And this is the error message : https://pastebin.com/90XAsb2X
This is 5g variant kernel : https://download.lenovo.com/consumer/mobiles/tb-j607z_opensource_tb-j607z_s130035_210706_row.tar.gz
The weird thing is that the 5g variant kernel builds properly with that same touch panel driver included in defconfig. The defconfig I'm using for my kernel tree right now is "arch/arm64/configs/m11_defconfig". Could somebody please see what is causing the issue? I'm not able to understand.. Thanks. (Including -fPIC in root makefile's KBUILD_CFLAGS didn't help.)

Correction: It's bengal (Snapdragon 662), not sm6115.
Edit: Ok it seems that sm6115 is actually bengal
You've taken the driver from a kernel source for Android 11. So either backport it or merge the kernel with an Android 11 CAF tag and use the kernel on the Android 11 firmware.

adazem009 said:
Correction: It's bengal (Snapdragon 662), not sm6115.
Edit: Ok it seems that sm6115 is actually bengal
You've taken the driver from a kernel source for Android 11. So either backport it or merge the kernel with an Android 11 CAF tag and use the kernel on the Android 11 firmware.
Click to expand...
Click to collapse
My device is not upgrade to lenovo's android 11 fw. Did you upgrade your device?
I did not upgrade yet because i was uncertain if lenovo's android 10 oss kernel would even boot on the android 11 bootloader, and i was unsure if i can revert to the android 10 firmware later on.
it can be because the android 11 caf tag's changes aren't merged, i'm not sure.. maybe we can try loading the lenovo's android 10 firmware nvt kernel module using something like ghidra and compare that with the module that gets built with the nvt driver code from another device's android 11 kernel

LegendOcta said:
My device is not upgrade to lenovo's android 11 fw. Did you upgrade your device?
I did not upgrade yet because i was uncertain if lenovo's android 10 oss kernel would even boot on the android 11 bootloader, and i was unsure if i can revert to the android 10 firmware later on.
it can be because the android 11 caf tag's changes aren't merged, i'm not sure.. maybe we can try loading the lenovo's android 10 firmware nvt kernel module using something like ghidra and compare that with the module that gets built with the nvt driver code from another device's android 11 kernel
Click to expand...
Click to collapse
Yes, I've already upgraded, but it's possible to downgrade. However, Lenovo didn't release any complete firmware package. Android 10 will boot after downgrading, but OTA updates won't work anymore. Also downgrading works only with a specific firmware package. I'll send the package ID later...

adazem009 said:
Yes, I've already upgraded, but it's possible to downgrade. However, Lenovo didn't release any complete firmware package. Android 10 will boot after downgrading, but OTA updates won't work anymore. Also downgrading works only with a specific firmware package. I'll send the package ID later...
Click to expand...
Click to collapse
Hmm, interesting.
As my device's still on Android 10, maybe I should backup the partitions (manually via dd?) and try using them later..?
Honestly I'm a bit worried about doing anything that can't be reverted because unlike my other Android-based devices this one is something i've actually bought, lol.
So, the kernel you built from your modified tree (with prima wlan included) boots on the Android 11 bootloader/firmware? The subversion of the Android 10 is significantly lower than the Lenovo Android 11 kernel AFAIK, not sure if it's just the CAF patches or anything else..

LegendOcta said:
Hmm, interesting.
As my device's still on Android 10, maybe I should backup the partitions (manually via dd?) and try using them later..?
Honestly I'm a bit worried about doing anything that can't be reverted because unlike my other Android-based devices this one is something i've actually bought, lol.
So, the kernel you built from your modified tree (with prima wlan included) boots on the Android 11 bootloader/firmware? The subversion of the Android 10 is significantly lower than the Lenovo Android 11 kernel AFAIK, not sure if it's just the CAF patches or anything else..
Click to expand...
Click to collapse
No, I haven't been able to run it on Android 11, only Android 10. Also the device doesn't use prima wlan but a kernel module in /vendor/firmware, it wasn't working because of kernel module signature checks.

adazem009 said:
No, I haven't been able to run it on Android 11, only Android 10. Also the device doesn't use prima wlan but a kernel module in /vendor/firmware, it wasn't working because of kernel module signature checks.
Click to expand...
Click to collapse
Then, even if we make the oss kernel working most people won't be able to benefit from it as most people already have android 11 running.
Maybe we might go with the mainline route instead, I remember hearing that people got the mainline kernel booting on sm6115, was on a oneplus device probably..

Any news?

Related

Oreo Kernel Source for hi3650 released

Hello all,
Oreo may be yours if you rebrand and or flash to 8.0. Some might get a direct update through HiCare, but we on P9 are still not on the position.
For all allready upgraded to chinese sources, we got the newest kernel sources from Huawei for the whole hi3650 line.
We hope, nothing is broken and by time a kernel can be released.
https://consumer.huawei.com/en/open...Type=openSourceSoftware&pageSize=10&curPage=1
Dont do yourself, if you dont know, the system boots again after or cause any damage on the device.
lets work on it

Samsung Galaxy XCover SM-G398F/FN/DS Adnoird Q boot.img patch, root?

Hi,
What about this device ?
All I could find was "Galaxy XCover 4s SM-G398F/FN Pie 9.0 using Magisk"
All I want to do is install Magisk or LOS but LOS was I think not yet supported (quick search) and old boot.img
device info;
Samsung Galaxy XCover 4s SM-G398F/FN/DS​
One UI 2.0
Android 10
Knox 3.5 API lvl 31 TIMA 4.1.0
Kernel 4.4.177-18237086
Build QP1A.190711.020.G398FNXXS5BTD2
Security software version
- ASKS v3.1 release 20200120
- ADP v3.0 release 20191001
- SMR may-2020 release 1
Android patch level May 1 2020
I haven't updated the rom on the device because this would only makes it harder for me...
Can it run TWRP or any custom recovery unsigned I am willing to experiment with boot.img on my device because without root this phone is useless for me (side load without flashing, like I always do). Have too much phones here for testing but most of them are slow to the snail due to outdated SoC and latest OS/kernel.
let me know I can dump boot.img and we can have fun experiments.
Not sure if this device is able to downgrade rom using odin or if Knox has ARP.
Any hits on next step? Don't feel like wasting lots of time phone is for RE and testing. Nothing special.
How to Patch Stock Boot Image (IMG) using Magisk Manager and root
Once you are sure that you are done with the backup stuff, please proceed to the tutorial below on "How to Patch Stock Boot Image (IMG) using Magisk Manager."
droidfeats.com
As you said there is no lineage os. Just check if your phone supports project treble by downloading treble check app. If supported, you can install variety of andorid 11 roms
Tab E said:
As you said there is no lineage os. Just check if your phone supports project treble by downloading treble check app. If supported, you can install variety of andorid 11 roms
Click to expand...
Click to collapse
Yay just what I needed. System-as-root: supported.
Thanks for that, yeah just got some time to check it out so well, thats neat.

Blu Vivo XL4 Rooting and Custom Rom Questions

I want to root this phone, mainly to turn off dm-verity because it keeps popping up even after a factory reset and this may be my only good option, but what custom rom should I use for this? I tried looking around and couldn't find any recommended ones. Blu Vivo XL4 android version 8.1.0 and the roms I looked at (Corvus OS, AOSPExtended) did not list my device for the downloads at all. Any suggestions or help for rooting this thing? First proper rootable phone I have gotten and I'm not sure the best process for this.
Jewel724 said:
I want to root this phone, mainly to turn off dm-verity because it keeps popping up even after a factory reset and this may be my only good option, but what custom rom should I use for this? I tried looking around and couldn't find any recommended ones. Blu Vivo XL4 android version 8.1.0 and the roms I looked at (Corvus OS, AOSPExtended) did not list my device for the downloads at all. Any suggestions or help for rooting this thing? First proper rootable phone I have gotten and I'm not sure the best process for this.
Click to expand...
Click to collapse
Vivo doesn't allow bootloader to be unlocked
That's nonsense, I can enable OEM unlocking in the developer settings, ain't that what's required?
Austinredstoner said:
Vivo doesn't allow bootloader to be unlocked
Click to expand...
Click to collapse
It's not Vivo company! That's a BLU company.
Jewel724 said:
I want to root this phone, mainly to turn off dm-verity because it keeps popping up even after a factory reset and this may be my only good option, but what custom rom should I use for this? I tried looking around and couldn't find any recommended ones. Blu Vivo XL4 android version 8.1.0 and the roms I looked at (Corvus OS, AOSPExtended) did not list my device for the downloads at all. Any suggestions or help for rooting this thing? First proper rootable phone I have gotten and I'm not sure the best process for this.
Click to expand...
Click to collapse
You need a special steps for work. Not a exclusive file to your phone because GSI (actual custom rom for any device with Android 8.1 and next android version) need some files to fix booting that in your device. But the happy notice is about actual GSI files not need very files for fix or maybe nothing.
Try install AOSP from phhusson Android 9 and Android 10 repository to know. Other great GSI is crDroid by eremitein or other GSI files by him. Need testing.
DragonPitbull said:
It's not Vivo company! That's a BLU company.
You need a special steps for work. Not a exclusive file to your phone because GSI (actual custom rom for any device with Android 8.1 and next android version) need some files to fix booting that in your device. But the happy notice is about actual GSI files not need very files for fix or maybe nothing.
Try install AOSP from phhusson Android 9 and Android 10 repository to know. Other great GSI is crDroid by eremitein or other GSI files by him. Need testing.
Click to expand...
Click to collapse
I'm on.. what's it called, Oreo? Android 8. Not sure if that's going to cause any trouble for roms.
Jewel724 said:
I'm on.. what's it called, Oreo? Android 8. Not sure if that's going to cause any trouble for roms.
Click to expand...
Click to collapse
Yes! Android 8 from very OEMs/companies not have Treble/GSI compatibility.
Only Android 8.1 has that.
Update: Install this app https://play.google.com/store/apps/details?id=tk.hack5.treblecheck&hl=en-US in the phone and know what architecture your phone/firmware has. That will show you which type of GSI file you can test.
Listing what that app says..
Required Image: Needs an image file named system-arm64-aonly.img.xz
Treble and VNDK: Supports legacy version of Treble, using VNDK version 27.0
System as Root: Does not support, use an a-only OS.
ARM-64 archetecture.
Seamless Upgrades not supported.
Does not use Dynamic Partitions.
Unless I missed anything, is this what was needed? Also I am on 8.1.0 for android version, I didn't know if that was just Oreo or if 8.1 had it's own name.
Jewel724 said:
Listing what that app says..
Required Image: Needs an image file named system-arm64-aonly.img.xz
Treble and VNDK: Supports legacy version of Treble, using VNDK version 27.0
System as Root: Does not support, use an a-only OS.
ARM-64 archetecture.
Seamless Upgrades not supported.
Does not use Dynamic Partitions.
Unless I missed anything, is this what was needed? Also I am on 8.1.0 for android version, I didn't know if that was just Oreo or if 8.1 had it's own name.
Click to expand...
Click to collapse
In the first update Android 7.1 [Nougat] to 8.0 and after upgrade to 8.1 [Oreo]. Normal.
All informations good to know what GSI you should test.
Now you can install with fastboot or Custom Recovery [TWRP]. So if has is better and fast.
If not so can using fastboot commands.
Obviusly need bootloader unlocked!
You can read and find more threads but this is good: https://forum.xda-developers.com/t/guide-blu-vivo-xl4-vivo-xi-vivo-xi.3877294/
The only part I should warn you about is the loss of IMEI. So soon as you can do backup from your phone the files NVRAM; NDATA; NVCFG with SPFT or other way like fastboot you won't have wasted time and hassles.
DragonPitbull said:
In the first update Android 7.1 [Nougat] to 8.0 and after upgrade to 8.1 [Oreo]. Normal.
All informations good to know what GSI you should test.
Now you can install with fastboot or Custom Recovery [TWRP]. So if has is better and fast.
If not so can using fastboot commands.
Obviusly need bootloader unlocked!
You can read and find more threads but this is good: https://forum.xda-developers.com/t/guide-blu-vivo-xl4-vivo-xi-vivo-xi.3877294/
The only part I should warn you about is the loss of IMEI. So soon as you can do backup from your phone the files NVRAM; NDATA; NVCFG with SPFT or other way like fastboot you won't have wasted time and hassles.
Click to expand...
Click to collapse
I'll give it a shot. In terms of performing a backup, I would assume that' typical "copy all files on phone to desktop folder just in case"
I should've mentioned, I don't have an SD card in my device, just a SIM card. I don't think I can use TWRP, which is going to complicate matters.
Hello I have a Blu Vivo XL4 android 8.1.0 Oreo, I'm trying to install a custom rom, I looked everywhere not a single rom is made for Blu phones.
bootloader unlocked
according to treble info:
System-arm64-aonly.img.xz
Your device supports the legacy version of project treble using VNDK version 27.0
Use an A-ONLY operating system
ARM64
Seamless upgrades are not supported
NO dynamic partitions
HELP
thanks

[ROM][OFFICIAL][instantnoodle][12] LineageOS 19

DISCLAIMER​Anything you do to your own device is your responsibility and your responsibility only. You may NOT hold me responsible for any damage caused to your device.
{
"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 a free, community built, aftermarket firmware distribution of Android 12, 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.
The only official site with proper instructions to install LineageOS is https://wiki.lineageos.org/. Any instructions that come from anywhere else is not to be trusted at all.
You should especially distrust instructions from websites that try and impersonate LineageOS. One example of such a site is lineageosroms[.]com.
Instructions​Scroll down to the 2nd post in this thread for installation and upgrade information.
Reporting Bugs​Please follow the instructions here to report your bug to our GitLab issues if you can, as it makes it easier for us to keep track of bugs and progress on fixing them.
However, should you be unable to do so and must post your bug report in this thread instead, then please adhere to the following guidelines:
DO NOT Report bugs if you're running a custom kernel, have installed Magisk, Xposed, or have done modifications to your device that touch any of the read-only partitions (with GApps being the only exception).
As this is an A/B device, recovery will not run addon.d scripts. As such, try undoing all the modifications by reflashing the rom + GApps (if you used them) in recovery--no need to wipe data. After that, check to see if the bug is still there.
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 /sys/fs/pstore/console-ramoops and /sys/fs/pstore/dmesg-ramoops-0. (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
Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.
Code:
What is your--
LineageOS version:
LineageOS Download url:
Gapps version:
Did you--
wipe:
restore 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:
Telegram Chat:​I have a Telegram group that you can join if you prefer to chat that way, as opposed to posting on a forum thread. Join here.
Supported models:​The only officially supported models are the following:
IN2010 (China)
IN2011 (India)
IN2013 (Europe/Asia)
IN2015 ("Global"/NA)
IN2017 (T-Mobile) is unofficially supported, as that's what I did my device bringup against.
IN2019 (Verizon) is not supported. VZW sensor configs are not bundled in this ROM, so accelerometer/gyroscope and magnetometer readings are going to be incorrect. In addition, battery gauge reading seems to be broken, based on one user trying this ROM on their IN2019 despite it being unsupported. I am likely not going to fix this anytime soon, as I do not have an IN2019 to validate my fixes against.
LineageOS 18.1 Upgrade Notes:​If you are coming from LineageOS 18.1 (and thus using LineageOS 18.1 Recovery), then follow the instructions here to upgrade. We ship the needed firmware in our OTA zips, so you do not have to worry about updating to OOS 12 firmware first. Remember to reflash Android 12 GApps if you used GApps previously.
New Installation Notes:​We now ship the required firmware in our OTA zips. However, LineageOS 19.1 Recovery will likely not boot on a device that that has OxygenOS 11 firmware, due to the significant number of changes between OxygenOS 11 and 12 after the OPlus merge. Since we no longer provide images for LineageOS 18.1 Recovery, you will need to follow the recommendations below before preparing to install LineageOS. Once you follow said recommendations, then head over here to install LineageOS 19.
IN2010 (China)​Ensure you've installed any version of ColorOS 12 on the active slot on your device. The bootloader passes over information to the kernel via qcom smem, but in some older versions of COS 12, the format of the sensor info being passed in may be incompatible with what the recovery's Linux kernel expects. This ends up causing the kernel to stop reading the rest of smem, meaning it won't read the device project number. As a result, the kernel will end up not loading drivers for much of the hardware, including touchscreen and audio.
Fortunately, LineageOS Recovery is still able to run even with those missing drivers. Navigate through the menus by using the volume buttons and power key.
IN2011 (India) · IN2013 (Europe/Asia) · IN2015 ("Global"/NA)​Ensure you've installed any version of OxygenOS 12 on the active slot on your device. The bootloader passes over information to the kernel via qcom smem, but in OOS 12 11_C.16 and earlier, the format of the sensor info being passed in will be incompatible with what the recovery's Linux kernel expects. This ends up causing the kernel to stop reading the rest of smem, meaning it won't read the device project number. As a result, the kernel will end up not loading drivers for much of the hardware, including touchscreen and audio.
Fortunately, LineageOS Recovery is still able to run even with those missing drivers. Navigate through the menus by using the volume buttons and power key.
IN2017 (T-Mobile)​Ensure you've installed any version of OxygenOS 12 on the active slot on your device. If you've been using the T-Mobile version of OxygenOS all this time, then fortunately, you can expect LineageOS Recovery to just work fine on your device with no issues.
If you did any of that EU / Global conversion previously, then check the info for IN2011/IN2013/IN2015 instead.
Spoiler: Old Info (kept for historical reasons)
IN2010 (China)​Follow the instructions for IN2013. Another user (@cinnamonizer) tried running LineageOS 19 on ColorOS 12.1 C.32 firmware, and while it was working for the most part, their fingerprint sensor would periodically have trouble trying to recognize their finger. That problem seeemed to have gone away when they migrated to IN2013 firmware.
IN2011 (India)​If you're coming from Oxygen OS: you need to OTA update to IN2011_11_C.33 or IN2011_11_C.35 to run LineageOS. Grab your OTA zip from this thread.
If you're coming from LineageOS 18.1: Download your firmware zip from here (thanks LuK1337) and follow this guide to flash the updated firmware.
IN2013 (Europe/Asia)​If you're coming from Oxygen OS: you need to OTA update to IN2013_11_C.33 or IN2013_11_C.35 to run LineageOS. Grab your OTA zip from this thread.
If you're coming from LineageOS 18.1: Download your firmware zip from here (thanks LuK1337) and follow this guide to flash the updated firmware.
IN2015 ("Global"/NA)​If you're coming from Oxygen OS: you need to OTA update to IN2015_11_C.33 or IN2015_11_C.35 to run LineageOS. Grab your OTA zip from this thread.
If you're coming from LineageOS 18.1: Download the firmware zip for IN2011_11_C.33 (not a typo) from here (thanks LuK1337) and follow this guide to flash the updated firmware. The firmware + modem partitions for IN2011 and IN2015 are bit-for-bit identical. IN2013's firmware has a different bootloader, but you can flash IN2013 firwmare on IN2015 and it will still work just fine.
IN2017 (T-Mobile)​After some investigation from b`owow in the Telegram group chat, it seems that no matter whether you convert to Global/EU firmware on OOS 10, OOS 11, OOS 12, or while upgrading between LineageOS 18.1 to 19, you will have working modem functionality. Maybe something changed with 11_C.33, because both b`owow and I distinctly remember that this used to not be the case. In any case, go follow the instructions for IN2011, IN2013, or IN2015. Only thing different between the three regions' firmwares is just the abl partition, and even then, Global and India have the same abl.
Spoiler: Old IN2017 info
Note: This is old, outdated info for the IN2017 model. It is being kept here for historical reasons, and the text has been struckthrough to emphasize that this is no longer relevant information.
So, I actually did my bringup work against an IN2017, so despite this model not being officially supported, I can at least say that I unofficially support this model with our official builds. However, I migrated over to the IN2015 firmware back on OOS 10 and OTA updated to OOS 11 from there, allowing me to use IN2011/IN2013/IN2015 firmware on my IN2017. Since then, I'm currently running IN2013's OOS 12 firmware on my IN2017 right now.
I've only ever tested running LineageOS 19 on IN2011/IN2013/IN2015 firmware on my IN2017 OnePlus 8. As such, I will expect for you to run IN2011/IN2013/IN2015 firmware on your IN2017 when using LineageOS. Follow the appropriate steps based on the answer to these questions: "Did you migrate to IN2011/IN2013/IN2015 OOS back when you were on OOS 10? And if you did, did you flash the IN2011/IN2013/IN2015 modem too before OTA updating to OOS 11 or later?":
If you answered yes to both questions, then treat your IN2017 like it's an IN2011/IN2013/IN2015 (depending on which one you prefer) and follow the instructions for that model instead, as both models' firmware will work on your IN2017, modem included.
If you answered no to either question, then you can still follow the instructions for IN2011/IN2013/IN2015, even if you're migrating over form IN2017 OOS 11/12, but you will lose cellular connectivity if you try flashing the modem from IN2011/IN2013/ IN2015. Flash the firmware for IN2011/IN2013/IN2015, but skip flashing the modem. Instead, extract the modem image from the latest IN2017 OTA (IN2017_11_C.41 as of 2022-08-28) and flash that on your IN2017.
Currently Known Bugs​Occasional 1-2 second freezes when waking the device from sleep​Sometimes, when you wake the device, you can see the display seemingly freeze for 1-2 seconds while it's fading in the lockscreen. Unfortunately, I don't know why that happens, and I don't think I'll be able to fix that myself anytime soon.
HDMI/DisplayPort out does not work​OnePlus seems to have changed something in the OOS 12 kernel source, since HDMI/DP out is broken on stock OOS 12 too...
Fixed in lineage-20:
https://github.com/LineageOS/android_kernel_oneplus_sm8250/commit/f72ba01bae6522fbf1fa8a11fea933df58935ba7
This will not be picked into lineage-19.1, since that will reach EOL for this device soon.
Light sensor readings do not filter out light coming from the screen​The light sensor is embedded underneath the screen. On OOS, they use some algorithm to determine how much of the light detected by the sensor is actually coming from the display itself, and then subtract that value from the reading. We currently don't have anything to handle that for this LineageOS build. Some people have tried developing their own algorithm for this on the OnePlus 7 series of devices, but apparently, it doesn't work that well, so it was never brought over to the OnePlus 8 series of devices. In addition to that, novenary was reverse engineering OnePlus's implementation, but they stopped working on that since they no longer daily drive their hotdogb.
As such, expect Adaptive Brightness to be very much unusable, as the feedback loop caused by the light sensor sensing the light from the screen will result in Adaptive Brightness increasing the brightness all the time.
UDFPS (Under-display Fingerprint Sensor) doesn't work properly in 90° and 270° screen rotations​For both 90° and 270° (both of which are landscape orientations), the HWC layer for the UDFPS circle doesn't get excluded from the dimlayer, and as such, it doesn't end up illuminating bright enough to scan your finger. The circle is still positioned in the right place, so there could still be a possibility that one could figure out how to fix this.
UDFPS (Under-display Fingerprint Sensor) doesn't work properly in 180° screen rotation​For 180° (upside-down), not only is the auth dialog window in the wrong place, but the UDFPS circle doesn't even show up. This will not be fixed.
Ambient Display (Always-on Display) may not work properly if panel can't freely switch between 60Hz and 90Hz​With Ambient Display enabled, when you "turn off" the screen, the panel will first show the Ambient Display info at normal brightness before turning off for a few seconds. Afterwards, it turns back on, but in a mode that has the touchpanel running in screen-off mode. If you have your panel forced to 60Hz or 90Hz only, then the panel will not turn back on for Ambient Display.
While WiFi calling is enabled, VoIP calls (Google Voice, TextNow, etc.) starts stuttering frequently on WiFi​A few hours after turning on WiFi Calling on the OnePlus 8, you'll likely notice that VoIP calls on apps like Google Voice and TextNow will seem to stutter while on WiFi, getting to the point where the call is unstable and neither party can really talk to each other. This bug is related to IMS making the cnd daemon from qcom's CNE request WiFi ext stats every two seconds. A race condition in the qcacmn kernel driver could end up happening during one of these requests, which potentially leads to every subsequent ext stats request timing out after waiting for 1.5 seconds. During that 1.5 second period, VoIP packets seem to get dropped entirely. This issue has been present since LineageOS 18.1, it seems.
I do have code that works around this race condition, but I don't think it's ready to review yet because I'm still trying to learn more about the qcacmn driver. I will update this space with more info when ready.
Spoiler: Old Bugs
Lowered brightness when switching between SDR color profiles​If you have turned your display off and back on at least once ever since booting up your phone, you will find that if you switch to any SDR or HDR display color profile at any point (such as going to Settings -> Display -> Colors and changing settings there, or watching an HDR video on YouTube), then your screen brightness will suddenly be lowered until next reboot. If you were watching an HDR video when the brightness got lowered, then you'll also find that if you switch back to an SDR color profile (by closing the video) and then switch back to an HDR color profile (by opening the video again, your brightness gets restored back to how it originally was. However, as soon as you switch back to an SDR color space (by closing said HDR video), then your brightness gets lowered again.
This issue might be related to Pixelworks Soft Iris, but I have not yet looked far enough to figure out more details about why this is broken or how to fix it. If this issue annoys you enough, you can flash a modified boot.img that contains this change. This will break the ability to change SDR color profiles, but switching to an HDR color profile will still work and will not mess up your screen brightness. Download the boot image here.
Fixed since the 2022-10-22 build with the following change:
https://review.lineageos.org/c/LineageOS/android_device_oneplus_sm8250-common/+/341740
USB-PD charging does not charge at full speed​The phone seems to end up only negotiating 5V 2A (10W) no matter what. This is broken on stock OOS 12 too.
Fixed since the 2022-11-26 build with the following changes:
https://review.lineageos.org/c/LineageOS/android_kernel_oneplus_sm8250/+/344679
https://review.lineageos.org/c/LineageOS/android_kernel_oneplus_sm8250/+/344680
The phone will charge at full speed with USB-PD only when screen is off.
jabashque said:
(Reserved post, will contain misc info about supported models and other stuff)
Until I have the time to flesh this out, here's a quick summary:
The only official supported models are the following:
IN2010 (China)
IN2011 (India)
IN2013 (Europe/Asia)
IN2015 ("Global"/NA)
IN2017 (T-Mobile) is unofficially supported; in fact, that's what I'm using right now. However, I am currently running IN2013's OOS12 fw on my phone instead of IN2017's, so if you wish to stick with the T-Mobile firmware, you will be on your own.
IN2019 (Verizon) is not supported. However, if this ROM somehow boots on your IN2019, then do let me know. I can then revert a change that dropped sensor configs for IN2019 if that's the case.
Click to expand...
Click to collapse
How did you manage to update your firmware to OOS12? I tried the instructions on the lineage wiki page for the device and it led me to links that downloaded OOS11 firmware.
DEM0N Assissan7 said:
How did you manage to update your firmware to OOS12? I tried the instructions on the lineage wiki page for the device and it led me to links that downloaded OOS11 firmware.
Click to expand...
Click to collapse
Head over to this thread and grab the OTA package for IN2013_11.C.33 to run the latest EU fw on your OnePlus 8. I would say that the oldest you can run on your OnePlus 8 is maybe 11.C.16?
(Also, note that you can run EU fw on devices from other regions.)
jabashque said:
Head over to this thread and grab the OTA package for IN2013_11.C.33 to run the latest EU fw on your OnePlus 8. I would say that the oldest you can run on your OnePlus 8 is maybe 11.C.16?
(Also, note that you can run EU fw on devices from other regions.)
Click to expand...
Click to collapse
So, for some odd reason, whenever I try to do any of the "fastboot flash __ ___.img" commands, it says "Flashing is not allowed for Critical Partitions," but I have already unlocked my bootloader and done `fastboot flashing critical_unlock` and it was unlocked (when i try to do that command it says "Device already : unlocked!"). I have been totally puzzled by this. Is there something I have to do in particular or am I plum out of luck?
jabashque said:
Head over to this thread and grab the OTA package for IN2013_11.C.33 to run the latest EU fw on your OnePlus 8. I would say that the oldest you can run on your OnePlus 8 is maybe 11.C.16?
(Also, note that you can run EU fw on devices from other regions.)
Click to expand...
Click to collapse
Just upgraded from 18.1 to 19.1 following the manual upgrade guide and the suggested IN2013_11.C.33 OTA package. No data loss and everything working at the first try, kudos for the great work
DEM0N Assissan7 said:
So, for some odd reason, whenever I try to do any of the "fastboot flash __ ___.img" commands, it says "Flashing is not allowed for Critical Partitions," but I have already unlocked my bootloader and done `fastboot flashing critical_unlock` and it was unlocked (when i try to do that command it says "Device already : unlocked!"). I have been totally puzzled by this. Is there something I have to do in particular or am I plum out of luck?
Click to expand...
Click to collapse
If you're following the instructions at https://wiki.lineageos.org/devices/instantnoodle/fw_update, you will notice that it tells you to "Go to “Advanced” -> “Enter fastboot”", along with a warning that "it cannot be substituted with “Reboot to bootloader”". The fastboot implementation in OnePlus's bootloader blocks you from flashing critical partitions no matter what, hence why the instructions tell you to tap on "Enter fastboot", which launches fastbootd instead.
jabashque said:
If you're following the instructions at https://wiki.lineageos.org/devices/instantnoodle/fw_update, you will notice that it tells you to "Go to “Advanced” -> “Enter fastboot”", along with a warning that "it cannot be substituted with “Reboot to bootloader”". The fastboot implementation in OnePlus's bootloader blocks you from flashing critical partitions no matter what, hence why the instructions tell you to tap on "Enter fastboot", which launches fastbootd instead.
Click to expand...
Click to collapse
Thank you so much man. I totally forgot about the fastbootd thing. I will flash the LOS 18.1 recovery and do that from there. That step totally flew over my head.
jabashque said:
(Reserved post, will contain misc info about supported models and other stuff)
Until I have the time to flesh this out, here's a quick summary:
The only official supported models are the following:
IN2010 (China)
IN2011 (India)
IN2013 (Europe/Asia)
IN2015 ("Global"/NA)
IN2017 (T-Mobile) is unofficially supported; in fact, that's what I'm using right now. However, I am currently running IN2013's OOS12 fw on my phone instead of IN2017's, so if you wish to stick with the T-Mobile firmware, you will be on your own.
IN2019 (Verizon) is not supported. However, if this ROM somehow boots on your IN2019, then do let me know. I can then revert a change that dropped sensor configs for IN2019 if that's the case.
Click to expand...
Click to collapse
Awesome that OnePlus 8 finally has official 19.1, but why can't you flash on IN2017 if IN2017 to IN2015 firmware conversion is possible? You know what I'm gonna test this on my IN2017 and I'll tell you guys if it works or not.
jabashque said:
If you're following the instructions at https://wiki.lineageos.org/devices/instantnoodle/fw_update, you will notice that it tells you to "Go to “Advanced” -> “Enter fastboot”", along with a warning that "it cannot be substituted with “Reboot to bootloader”". The fastboot implementation in OnePlus's bootloader blocks you from flashing critical partitions no matter what, hence why the instructions tell you to tap on "Enter fastboot", which launches fastbootd instead.
Click to expand...
Click to collapse
Update: It worked, I'm sending this message using my One plus 8 using your ROM. Thank you so much for your work on this and I cannot thank you enough. Do you have a place to receive donations or anything like that?
thattechguy_69 said:
Awesome that OnePlus 8 finally has official 19.1, but why can't you flash on IN2017 if IN2017 to IN2015 firmware conversion is possible? You know what I'm gonna test this on my IN2017 and I'll tell you guys if it works or not.
Click to expand...
Click to collapse
EDIT: my apologies... I confused IN2017 (T-Mobile) for IN2019 (Verizon). In that case... my 2nd post mentions that I am in fact running this on an IN2017 w/ IN2013 fw. However, it should be noted that even then, my phone reports itself as project number 19855 instead of 19821.
Original message is as follows (now corrected):
The main reason is that for the OOS 12 kernel source, OnePlus didn't release kernel dts for project 19867, which corresponds to IN2017 IN2019. The dts in the OOS 11 kernels sources included some changes that were specific to the IN2017 IN2019, so that worked fined, but there is none for the OOS 12 kernel source.
I could look at the OOS 11 kernel dts and try to figure out what IN2017 IN2019 changes there are, and then create a new 19867 dts directory in the OOS 12 kernel source source with those changes (if any). However since I don't have an IN2017 IN2019 (and neither does anyone else in LineageOS), I can't test to see if my changes would work. As such, I can't even declare unofficial support for IN2017 IN2019.
DEM0N Assissan7 said:
Update: It worked, I'm sending this message using my One plus 8 using your ROM. Thank you so much for your work on this and I cannot thank you enough. Do you have a place to receive donations or anything like that?
Click to expand...
Click to collapse
That's good to hear! I don't accept any donations at this time.
jabashque said:
(Reserved post, will contain misc info about supported models and other stuff)
Until I have the time to flesh this out, here's a quick summary:
The only official supported models are the following:
IN2010 (China)
IN2011 (India)
IN2013 (Europe/Asia)
IN2015 ("Global"/NA)
IN2017 (T-Mobile) is unofficially supported; in fact, that's what I'm using right now. However, I am currently running IN2013's OOS12 fw on my phone instead of IN2017's, so if you wish to stick with the T-Mobile firmware, you will be on your own.
IN2019 (Verizon) is not supported. However, if this ROM somehow boots on your IN2019, then do let me know. I can then revert a change that dropped sensor configs for IN2019 if that's the case.
Click to expand...
Click to collapse
I have an IN2019 and was able to get it to boot by following the instructions on the wiki for the other models. However, RN it barely functions at all, the sim card isn't detected and if you disconnect it from power while in lineageos it shuts down because it can't tell how much juice the battery has. If you could revert those sensor changes, I'll give it a shot asap. hopefully that will at least let battery charge and mobile network function because otherwise it seems to work fine, similar to 18.1 where you could just flash the ROMs for other models and the only thing you lost was mmWave, which IDK about anyway.
Jeeves-2 said:
I have an IN2019 and was able to get it to boot by following the instructions on the wiki for the other models. However, RN it barely functions at all, the sim card isn't detected and if you disconnect it from power while in lineageos it shuts down because it can't tell how much juice the battery has. If you could revert those sensor changes, I'll give it a shot asap. hopefully that will at least let battery charge and mobile network function because otherwise it seems to work fine, similar to 18.1 where you could just flash the ROMs for other models and the only thing you lost was mmWave, which IDK about anyway.
Click to expand...
Click to collapse
When I say sensors, I'm talking about accelerometer/gyroscope and magnetometer showing the wrong orientation without the configs from Verizon Oxygen OS. If battery percentage cannot be detected, then that's a whole 'nother issue entirely.
That being said, try reflashing the modem from VZW OOS 11 and seeing if that helps for detecting the sim card. I can't do much for fixing battery detection unless I spend the time to trawl through the OOS 11 dts, which, given that I don't have a VZW OnePlus 8 to test against, that's kinda low on my priority list.
I've been using LineageOS for years now; thanks for bringing 19 to the OP8. Have you tried installing magisk yet? I can't seem to get it working. Neither flashing in recovery nor booting a patched image (extracted from installation zip) works.
Thank you!
KerbalNo15 said:
I've been using LineageOS for years now; thanks for bringing 19 to the OP8. Have you tried installing magisk yet? I can't seem to get it working. Neither flashing in recovery nor booting a patched image (extracted from installation zip) works.
Thank you!
Click to expand...
Click to collapse
I have not tried installing Magisk yet actually, and well, technically, that would be out of scope of LineageOS anyway. But since I'm curious, I'd like to know what you end up seeing whenever you try to sideload the Magisk zip in Lineage Recovery or flash the patched boot image.
jabashque said:
I have not tried installing Magisk yet actually, and well, technically, that would be out of scope of LineageOS anyway. But since I'm curious, I'd like to know what you end up seeing whenever you try to sideload the Magisk zip in Lineage Recovery or flash the patched boot image.
Click to expand...
Click to collapse
The phone gets stuck on the boot animation. Not exactly a bootloop because it doesn't restart, but pretty close.
KerbalNo15 said:
The phone gets stuck on the boot animation. Not exactly a bootloop because it doesn't restart, but pretty close.
Click to expand...
Click to collapse
As was likely the case, it was my fault. All my old magisk modules were still installed and some of them are now incompatible. I was able to install magisk after using the ADB instructions here: https://topjohnwu.github.io/Magisk/faq.html
jabashque said:
When I say sensors, I'm talking about accelerometer/gyroscope and magnetometer showing the wrong orientation without the configs from Verizon Oxygen OS. If battery percentage cannot be detected, then that's a whole 'nother issue entirely.
That being said, try reflashing the modem from VZW OOS 11 and seeing if that helps for detecting the sim card. I can't do much for fixing battery detection unless I spend the time to trawl through the OOS 11 dts, which, given that I don't have a VZW OnePlus 8 to test against, that's kinda low on my priority list.
Click to expand...
Click to collapse
actually I used an app called "Sensors multitool" to figure out the battery issue, and it showed the acclerometer and gyroscope working perfectly, as well as the magnotometer. GPS didn't appear to work though, so I think you're right about needing some of the drivers from the verizon oneplus 8 rom. However, I'm struggling to find where to download them. Oneplus doesn't offer downloads for the IN2019, and as far as I can tell, neither does verizon except through their OTA updater. is there any way you know of to find a image, or am I sol?
Edit: nevermind, may have found it in the guide for unlocking the bootloader for the IN2019. thank you so much for the advice

Upgrading modem without updating OS

I am getting 5g for cdma-less on android 12, but not android 11, however, I like using android 11 better. So, is there a way to update the modem without upgrading the OS? Thanks
KHALISTAN said:
I am getting 5g for cdma-less on android 12, but not android 11, however, I like using android 11 better. So, is there a way to update the modem without upgrading the OS? Thanks
Click to expand...
Click to collapse
If there are no bootloader restrictions that can prevent it from flashing, you might be able to extract the modem img from the android 12 firmware and flash the modem by itself.
this the right command? fastboot flash modem modem.img
You don't think there'd be a conflict by flashing an android 12 modem with android 10 os?
KHALISTAN said:
You don't think there'd be a conflict by flashing an android 12 modem with android 10 os?
Click to expand...
Click to collapse
I don't know. It depends on the device and the bootloader. As I said in my post above...if there are no bootloader/binary restrictions.....
It's the Linux kernel that connects the user to the device's hardware components. Thus even with the default kernel driver, using another modem.img the modem may not work:
jwoegerbauer said:
It's the Linux kernel that connects the user to the device's hardware components. Thus even with the default kernel driver, using another modem.img the modem may not work:
Click to expand...
Click to collapse
It's the op8. Gets a signal on android 12, but no signal on android 10 after msm. That's why I'd like to upgrade the modem but nothing else.

Categories

Resources