Thanks for the input. I did reflash the firmware, no change. I downlaoded a sensor test app and noticed a pattern. As long as there is no audio playing the test in the app works perfectly. But as soon as there is audio coming thourgh the top speaker, the ultrasound proximity sensors works 1/25 times and is really unresponsive. So i guess it has something to do with an audio route issue. Also i have to restart the test app so it reinitializes the seonsor, so definitely sounds like a audio route thingI had problem with proximity with another ROM and it was due to wrong firmware.
I had xiaomi.eu beta flashed before.
But after flashing Chinese stable firmware (no wipe or anything needed, just sideloading through adb sideload) it worked flawlessly
Maybe that fixes your network issue as well. I don't have 5g contract so i don't know
Working | Non working |
05-09 23:39:43.658 790 2511 D ultrasound_extn: dump_usecase_list: start ====================================== 05-09 23:39:43.659 790 2511 D ultrasound_extn: dump_usecase_list: enter state: 1[start] suspended: 0 cnt: 1 pre_cnt 0 05-09 23:39:43.661 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_0 SampleRate KHZ_48 05-09 23:39:43.662 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_0 Format S16_LE 05-09 23:39:43.662 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_0 Channels One 05-09 23:39:43.663 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_1 SampleRate KHZ_48 05-09 23:39:43.663 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_1 Format S16_LE 05-09 23:39:43.664 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_1 Channels Two 05-09 23:39:43.664 790 2511 D ultrasound_extn: dump_usecase_list: end ====================================== | 05-09 23:41:42.211 790 2511 D ultrasound_extn: dump_usecase_list: start ====================================== 05-09 23:41:42.211 790 2511 D ultrasound_extn: dump_usecase_list: enter state: 1[start] suspended: 0 cnt: 1 pre_cnt 0 05-09 23:41:42.211 790 2511 D ultrasound_extn: dump_usecase_list: ultrasound_start usecase[#0] 05-09 23:41:42.213 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_0 SampleRate KHZ_48 05-09 23:41:42.214 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_0 Format S16_LE 05-09 23:41:42.215 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_0 Channels One 05-09 23:41:42.215 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_1 SampleRate KHZ_48 05-09 23:41:42.216 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_1 Format S16_LE 05-09 23:41:42.216 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_1 Channels Two 05-09 23:41:42.216 790 2511 D ultrasound_extn: dump_usecase_list: end ===================================== |
05-09 23:39:43.751 790 2511 D ultrasound_extn: dump_usecase_list: start ====================================== 05-09 23:39:43.751 790 2511 D ultrasound_extn: dump_usecase_list: enter state: 1[start] suspended: 0 cnt: 1 pre_cnt 0 05-09 23:39:43.751 790 2511 D ultrasound_extn: dump_usecase_list: ultrasound_start usecase[#0] 05-09 23:39:43.751 790 2511 D ultrasound_extn: dump_usecase_list: ultrasound_start usecase[#1] 05-09 23:39:43.752 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_0 SampleRate KHZ_48 05-09 23:39:43.753 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_0 Format S16_LE 05-09 23:39:43.754 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_0 Channels One 05-09 23:39:43.755 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_1 SampleRate KHZ_48 05-09 23:39:43.756 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_1 Format S16_LE 05-09 23:39:43.756 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_1 Channels Two 05-09 23:39:43.756 790 2511 D ultrasound_extn: dump_usecase_list: end ====================================== | 05-09 23:41:42.279 790 2511 D ultrasound_extn: dump_usecase_list: start ====================================== 05-09 23:41:42.279 790 2511 D ultrasound_extn: dump_usecase_list: enter state: 1[start] suspended: 0 cnt: 1 pre_cnt 0 05-09 23:41:42.279 790 2511 D ultrasound_extn: dump_usecase_list: ultrasound_start usecase[#0] 05-09 23:41:42.279 790 2511 D ultrasound_extn: dump_usecase_list: ultrasound_start usecase[#1] 05-09 23:41:42.279 790 2511 D ultrasound_extn: dump_usecase_list: ultrasound_start usecase[#2] 05-09 23:41:42.281 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_0 SampleRate KHZ_48 05-09 23:41:42.283 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_0 Format S16_LE 05-09 23:41:42.283 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_0 Channels One 05-09 23:41:42.284 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_1 SampleRate KHZ_48 05-09 23:41:42.285 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_1 Format S16_LE 05-09 23:41:42.285 790 2511 D ultrasound_extn: dump_usecase_list: RX_CDC_DMA_RX_1 Channels Two 05-09 23:41:42.285 790 2511 D ultrasound_extn: dump_usecase_list: end ====================================== |
Thank you for the update! If you need additional logs just let me know.New builds with May security patch are up. ANX camera is now default camera solution. The SE policy rules for ANX have been rewritten and now almost everything is working correctly, including the downloadable features like Panaroma and Document scanner. The only things not working are slow motion video recording and HDR video recording.
Download links:
@0201m Thank you for the logs concerning proximity sensor, I'll look into it. The sensor was working correctly on 11 and 12 and I haven't done any major changes to my device tree so something must have changed in 12.1 to cause this. Also I fixed the screen animations to line up with physical buttons so thanks for letting me know about that too![]()
Someone else asked me this so I'm just going to copy/paste the reply:Oh anothter question. How do i update on lineage? Can i boot into twrp and dirty flash even with an encrypted data partition? I guess it should work as data is not concerened in the update process.
Sideload is one way to update but it seems that TWRP won't sideload some A12 ROMs. I built OrangeFox for myself and I haven't had any issues with sideload.
https://sourceforge.net/projects/xiaomi-odin/files/OrangeFox-R11.1-Unofficial-odin.zip/download
The other method you can try is to use adb to copy a ROM to the phone and install it directly from the device. Internal storage isn't actually mounted because of encryption, so /sdcard becomes attached to a temporary filesystem in memory. You can take advantage of this, for example:
adb push lineage.zip /sdcard
Very strange, ANX downloadables are working here. Try this sequence to see if it works:@Inkypen just dirty-flashed the lineage-19.1-20220511-UNOFFICIAL-gapps-odin build and everything that was working still works greatTwo issues already noted in this thread:
- ANX downloadable features still do not work for me (I get the "network error" massage)
- I have the same proximity issues @0201m reported, and probably had them before all along, just did not notice them (phone can go crazy in the pocket or during a phone call from face touches - I just blamed it on xiaomi hardware
)
Would you mind sharing the steps you followed in order to dirty flash ?@Inkypen just dirty-flashed the lineage-19.1-20220511-UNOFFICIAL-gapps-odin build and everything that was working still works greatTwo issues already noted in this thread:
- ANX downloadable features still do not work for me (I get the "network error" massage)
- I have the same proximity issues @0201m reported, and probably had them before all along, just did not notice them (phone can go crazy in the pocket or during a phone call from face touches - I just blamed it on xiaomi hardware
)
lnkypen, I just flashed thim, ehm, quick question, is it normal that before this update I truly couldn't see the "camera hole" and now I can ?New builds with May security patch are up. ANX camera is now default camera solution. The SE policy rules for ANX have been rewritten and now almost everything is working correctly, including the downloadable features like Panaroma and Document scanner. The only things not working are slow motion video recording and HDR video recording.
Download links:
@0201m Thank you for the logs concerning proximity sensor, I'll look into it. The sensor was working correctly on 11 and 12 and I haven't done any major changes to my device tree so something must have changed in 12.1 to cause this. Also I fixed the screen animations to line up with physical buttons so thanks for letting me know about that too![]()
@santimaster2000 I do it in 4 steps:Would you mind sharing the steps you followed in order to dirty flash ?
@Inkypen tried it exactly as you said, but the same - network errorVery strange, ANX downloadables are working here. Try this sequence to see if it works:
Enable USB debugging and ADB Root/rooted debugging in developer options
Connect device to a PC and use a terminal window to enter these commands
adb root
adb shell setenforce 0
This temporarily disables selinux. Try to download ANX features. You can just reboot device to re-enable selinux.
Also good news, I've managed to fix the erratic operation of the proximity sensor. Fix will be in next update.
Did it, but wiped dalvik/cache, everything seems to be working, aside from root, also, for some reason "Phone Services" keeps making the location green notification thingy pop up.@santimaster2000 I do it in 4 steps:
- Temporarily flash twrp from Inkypen in fastboot with
- fastboot boot twrp-odin.img
- Push the zip to data with
- adb push lineage-19.1-20220511-UNOFFICIAL-gapps-odin.zip /data/
- Install with TWRP without wiping anything
- Restart to system
Not an selinux issue then. It's working fine here on LOS and on PE. Go to app info (long press anx icon on launcher and select the "i") clear all storage and try again. If it still doesn't work then I'll need a logcat to try and troubleshoot it.@Inkypen tried it exactly as you said, but the same - network error
Kinda sounds like the issue I had early in development when various things work on one boot slot but not the other. Reboot to recovery and flash MIUI 13 firmware again.OK, got root, problem seemd to be that I was flashed the first patched boot.img that I got from the stock MIUI ROM, I extracted the new boot.img from the latest LOS build, patched and flashed that, now I got root.
I still have the problem with "Phone Services" constantly accessing location, and also the front camera "hole" seems to remain open all the time.
Are you talking about the camera thing or the location thing ?Kinda sounds like the issue I had early in development when various things work on one boot slot but not the other. Reboot to recovery and flash MIUI 13 firmware again.
Will flash as soon as I can make a proper backup of EVERYTHING !!!New builds are up. Firmware is now included so no need to flash it separately.
- Erratic proximity sensor fixed
- Kernel upstreamed to 5.4.195
- Firmware/vendor blobs updated to MIUI 13.0.6.0
Some people are having issues updating/sideloading via TWRP, so I made an unofficial build of OrangeFox.
To install it simply sideload it in TWRP. Occasionally the device won't get recognised when plugged into a PC and it's simple to fix. Go to the mount page in menu options (3 horizontal lines) and toggle MTP off/on.
Regarding updating the ROM, there seems to be some confusion on how to do it because no recovery is currently able to decrypt A12 data partitions. I mentioned it earlier but there are two ways in which to update.
- Sideload
This is the simplest way to update but it seems that TWRP won't sideload some A12 ROMs. If sideload doesn't work then use the OrangeFox linked above.Usage:Connect device to a PC and activate ADB sideload mode in recoveryIn a terminal type : adb sideload rom.zip
- ADB
The other method you can try is to use ADB to copy a ROM to the phone and install it directly from the device. Internal storage isn't actually mounted because of encryption, so /sdcard becomes attached to a temporary filesystem in memory.Usage:Connect device to a PCIn a terminal type: adb push rom.zip /sdcardInstall zip in directly in recovery from internal storage
You should replace rom.zip with the filename of the zip you want to flash. Because of the virtual A/B setup on this device it appears that addon.d is no longer functional and this means anything that modifies the system will need to be flashed again once an update is completed, a prime example being Magisk (which you can sideload, no patching boot image is necessary). OrangeFox even prints a helpful message reminding you of this little fact.
I've had L1 support since before I even released any builds. Download any media codec info app from play store and check for yourself.Are there any plans to fix the widevine level from l3 to l1? I know that the China/eu Rom habe l1,so it should not be impossible to fix
#include <std_disclaimer.h>
/*
* Your warranty is now void.
*
* We are not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at us for messing up your device, we will laugh at you.
*
*/
I've had L1 support since before I even released any builds. Download any media codec info app from play store and check for yourself.Are there any plans to fix the widevine level from l3 to l1? I know that the China/eu Rom habe l1,so it should not be impossible to fix
Your first four points are not the fault of the ROM and are all related to the same thing: gapps@Inkypen
So I have been daily-driving lineage-19.1-20220321-UNOFFICIAL-odin.zip for over a week now and here are some things I have noticed:
- Google Assistant Voice Match is not available (so no "OK Google") - this worked with Lineage 18.1
- "OK Google" also does not work with locked/off screen (actually that also did not work 18.1... - that is something I miss from my Pixel 2)
- I have used NikGApps and the security code loop during setup is still present
- the same - using NikGApps with PixelLauncher loops the PixelLauncher (not a rom isssue, just giving a heads-up) - I have ended up using core apps flavor
- camera Apps I have found working are some GCam builds, but they all have issues (not all cameras supported, no slow-mo videos, images are not properly scaled for diffirent lenses...) - we really need ANX - even if it means sacrificing some APIs and other cam apps...
- I can confirm that safety net passes, the banking apps and NFC payments work OK
- quick wireless charge works OK
- 120Hz display works OK though I am not sure it is forced all the time
- bluetooth works with all devices I could throw at it
Other than that everything is nice and smoothUsing it daily is pure pleasure. Kudos to @Inkypen