Is Miracast bug in AOSP or LOS? - LineageOS Questions & Answers

There is a bug in LineageOS 17.1 on multiple hardware where Miracast/ Screen cast no longer works. I noticed this on my Xiaomi Pocophone F1 (beryllium) when I did a 20200801 nightly upgrade.
My question is, is the bug in the AOSP or the LineageOS? Is it something that Google has done to force people to use Chromecast or is it a problem with the LineageOS that hasn't yet been fixed?
It's a very annoying bug and I wonder how easy it is for the developers to fix? Can it be fixed by a user changing a setting or is it a default setting that an uninformed user is unlikely to be able to change?

BuzLightSabre said:
There is a bug in LineageOS 17.1 on multiple hardware where Miracast/ Screen cast no longer works. I noticed this on my Xiaomi Pocophone F1 (beryllium) when I did a 20200801 nightly upgrade.
My question is, is the bug in the AOSP or the LineageOS? Is it something that Google has done to force people to use Chromecast or is it a problem with the LineageOS that hasn't yet been fixed?
It's a very annoying bug and I wonder how easy it is for the developers to fix? Can it be fixed by a user changing a setting or is it a default setting that an uninformed user is unlikely to be able to change?
Click to expand...
Click to collapse
Usually features can vanish in an android version upgrade, but not in a regular update.
https://wiki.lineageos.org/bugreport-howto.html

kurtn said:
Usually features can vanish in an android version upgrade, but not in a regular update.
https://wiki.lineageos.org/bugreport-howto.html
Click to expand...
Click to collapse
Yes. I would have thought that this was so but Miracast was working until I updated a 20200801 nightly build. That's why I think that it might be a default setting.
I also noticed this:
https://forum.xda-developers.com/showpost.php?p=64121701&postcount=10
Maybe that will solve the problem?

BuzLightSabre said:
There is a bug in LineageOS 17.1 on multiple hardware where Miracast/ Screen cast no longer works. I noticed this on my Xiaomi Pocophone F1 (beryllium) when I did a 20200801 nightly upgrade.
My question is, is the bug in the AOSP or the LineageOS? Is it something that Google has done to force people to use Chromecast or is it a problem with the LineageOS that hasn't yet been fixed?
It's a very annoying bug and I wonder how easy it is for the developers to fix? Can it be fixed by a user changing a setting or is it a default setting that an uninformed user is unlikely to be able to change?
Click to expand...
Click to collapse
Google creates Android Compatibility Definition Documents, in which it is written:
Code:
5.8. Secure Media
If device implementations support secure video output and are capable of supporting secure surfaces, they:
[C-1-1] MUST declare support for Display.FLAG_SECURE.
If device implementations declare support for Display.FLAG_SECURE and support wireless display protocol, they:
[C-2-1] MUST secure the link with a cryptographically strong mechanism such as HDCP 2.x or higher for the displays connected through wireless protocols such as Miracast.
If device implementations declare support for Display.FLAG_SECURE and support wired external display, they:
[C-3-1] MUST support HDCP 1.2 or higher for all external displays connected via a user-accessible wired port.
That's the theory. In practice, everything depends on programmers.
For example.
In the custom ROM with Android 9 for Oneplus One Miracast (connection to Microsoft Wireless Display Adapter) works only in 3 ROMs with 33 that I tested.
In the custom ROM with Android 10 for Oneplus One Miracast (connection to Microsoft Wireless Display Adapter) does not work in any ROM with 25 that I tested.
.
.

Miracast starting working again after build 20200829. There was d"ummy HIDL lib" removed that shouldn't have been removed and now it's back again. https://review.lineageos.org/284011

BuzLightSabre said:
Miracast starting working again after build 20200829.(...)
Click to expand...
Click to collapse
To which model of device do you cast the screen in Android 17.1 using Miracast (WiFi Display)?
.

I have a Panasonic Personal Video Recorder (PVR) model number DMR-BWT955. Under its Function menu there's an option to "Miracast". I select that option and it starts searching for devices. I select the "Screen Cast" option from the drag down menu on my Pocophone and select the "DMR-BWT955" device to connect to. They both do their bits and then I see my Pocophone screen showing up on my TV screen, which is connected to the PVR. My 5.1 surround sound system is also connected to the PVR and so I can not only see what's on my Pocophone but also hear what's it's playing through the 5.1 sound system.
Is that the sort of information that your after?

BuzLightSabre said:
Miracast starting working again after build 20200829. There was d"ummy HIDL lib" removed that shouldn't have been removed and now it's back again. https://review.lineageos.org/284011
Click to expand...
Click to collapse
Hi
Still doesn't work on lineageos 17.1.
I try to connect my tv to honor 5x to miracast screen but see no tv.
I add persist.debug.wfd.enable=1 on build.prop to enble wireless display. Nd see 'Anycast' device
But when I try to connect, lineageos reboot ( hot reboot without vibration neither pin prompt)
I am using 11 mars 2021 build witch is newer than 28 ugust 2020
Build lineageos-kiwi-userdebug 10qq3a 200805.002 d5580ebdfc
Official lineageos.
Worked perfectly on lineageos 14.1, 15, 16
Cheers

Related

MirrorLink Support For Xiaomi Mi MIX 2

Hello,
I have a car, the Citroen C-Elysee with support for Android Auto and MirrorLink; Android Auto works ok, but MirrorLink is not supported on MIUI afaik.
I'd read that MirrorLink has more features than Android Auto, so I'd like to test it
Any custom rom, hack app that by any means could enable it ?
Thanks in advance !
No way. Why don't you use Android Auto with root access
https://www.youtube.com/watch?v=vNlIbFHI6oM
shaggyxda said:
No way. Why don't you use Android Auto with root access
https://www.youtube.com/watch?v=vNlIbFHI6oM
Click to expand...
Click to collapse
Yep ! I didn't know about it, works awesome !!!
But I crawled a while until I got it to work: Android Auto version < 3 required, and enable unknown sources in Android auto.
Also I've found a newer version "Plus" with some more options.
Thanks a lot.
does it work with VW infotainment (Passat B8, Discover media) ???
Do not want to use AndroidAuto, limited to Google apps only (Idem with Apple and their system).
Any way to install Mirrorlink, tho?
I have a DS5 and it is not compatible with Android Auto, but only with MirrorLink.
You can't install Mirrorlink on the unsupported phone, since this technology uses hardware components, afaik. It is actually dead technology since there is small set of phones supported (check out on the official mirrorlink website)
mirrorlink unsupported with my mi9 and other xiaomi phones. Crying...
Don't like android auto limited to google apps. beeaaarkk !!! ****.

[Discussion/DEV/ROM|Kernel] quad dac/es9218p on non-stock ROMs (lineageOS,etc.)

I've researched on the web for quite some time on this topic but didn't find anything definitive yet (a clear answer if it works - how to set up, etc.):
some are mentioning that only the right app would be needed to be used (well, no)
a few are mentioning that there is supposed to be an app that toggles between default dac (wcd934x) and quad dac (es9218p)
others are referring to a setting in build.prop (nope, the ROM doesn't have the mechanisms to react to that - and neither do the drivers most likely - or at least we need to make sure that this stuff is included for us)
then there are a few mentioned cases that there's support on lineageOS on board to utilize the es9218*
there's also occurences where it's mentioned that the sound stops working entirely when switching tracks (?!) - so it's still WIP
so at least the kernel needs to be set up that way - but there's probably more to it
*referencing:
https://forum.xda-developers.com/v20/development/dev-cm14-t3509953/page25 [ROM][ALL VARIANTS] LineageOS-14.1 for LG V20 [Weeklys']
https://forum.xda-developers.com/v20/development/kernel-gamma-kernel-us996-ls997-h910-t3788279/page2 [KERNEL][AOSP][AnyKernel][LOS-15.1+EAS] Gamma Kernel for [All Lineage Variants
https://forum.xda-developers.com/v2...fficial-lineageos-15-1-lg-v20-t3775689/page19 [ROM][H910|H918|LS997|US996|VS995|H990*] UNOFFICIAL LineageOS-15.1 for LG V20
https://pastebin.com/uQgyHm3b
further references:
https://forum.xda-developers.com/lg-v30/how-to/v30-quad-dac-root-bybass-fix-t3725854 V30 Quad DAC Root Bybass fix
edit:
For those who only use the quad dac for local playback (music stored on their device; NO Youtube, Streaming, etc. with Quad DAC on LineageOS/AEX/RR for now) - there is an app (for purchase) that activates & uses the quad dac (es9218p)
I've tested it and got the same specific quirk / behavior I got on LG Stock ROM with activated quad dac option.
The app is not cheap (6.99 EUR, >8 USD) - but it's totally worth it, the UI is great, the sound output is awesome (finally quad dac on non-stock !) and it uses a "custom developed USB audio driver"
extreamsd said:
This bypasses the Android audio system completely, meaning that Android's limitations regarding bit resolution and sample rate (16-bit/48kHz) are made irrelevant and high quality audio streams are fed directly to the DAC, making playback up to 32-bit at 384kHz possible (depending on the DAC capabilities) or even DSD.
Click to expand...
Click to collapse
Source: http://www.extreamsd.com/index.php/products/usb-audio-player-pro
GooglePlay link: https://play.google.com/store/apps/details?id=com.extreamsd.usbaudioplayerpro
zacharias.maladroit said:
Well, it's not fully "solved" - since only locally played content (no videos ! no streaming !),
but at least local content is played through the quad dac (es9218p).
So thank you very much for that hint (and everyone else who kept on mentioning it)
And: YES, the quad dac definitely is being used with USB Audio Player PRO
First I thought that the more punchy sound output could be placebo/imagination (with Xiaomi Piston V2 & the B & O Play Headphones),
but then I plugged in the Xiami Hybrid Pro (these are the only headphones that don't work with the quad dac for me - since they cause a extreme loud hissing/static on the left channel),
and after a few seconds I got the characteristic hissing on the left channel - that means that the es9218p DAC/sound card/AMP is definitely being used
That's the same behavior I got on LG Stock ROM after enabling the quad dac
Click to expand...
Click to collapse
https://forum.xda-developers.com/showpost.php?p=77233521&postcount=209
In theory we would just need to write a HAL or something like that, which interacts with the kernel driver, its already there, just something needs to talk to it.
And some Overlay in the Settings to enable/disable the HAL.
The HAL would be C/++ while the Settings overlay would then be Java .... I could do the later.
SGCMarkus said:
In theory we would just need to write a HAL or something like that, which interacts with the kernel driver, its already there, just something needs to talk to it.
And some Overlay in the Settings to enable/disable the HAL.
The HAL would be C/++ while the Settings overlay would then be Java .... I could do the later.
Click to expand...
Click to collapse
I don't really have the programming skills to do either, but I'll buy you guys a beer if you figure it out. That and the vibration motor issues are the only reason I'm still on a stock ROM.
MaxusValtron said:
I don't really have the programming skills to do either, but I'll buy you guys a beer if you figure it out. That and the vibration motor issues are the only reason I'm still on a stock ROM.
Click to expand...
Click to collapse
Vibration motor issues may be solved. Dev is currently trying user @Krakophyst suggestion to replace vibration motor files with those from V35. Now why that would work better than actual V30 files, don't know. But it worked for the user.
Krakophyst said:
The vibration problem came up, but I think I fixed it by replacing vibration related files in /vendor and its subfolders with LG V35's files and it has been working fine for about three days now.
Click to expand...
Click to collapse
ChazzMatt said:
Vibration motor issues may be solved. Dev is currently trying user suggestion to replace vibration motor files with those from V35. Now why that would work better than actual V30 files, don't know. But it worked for the user.
Click to expand...
Click to collapse
It works, because the V35 files have to work on AOSP (because of treble implementation on the V35), while ours depend heavily on the LG framework (which probably does its own stuff to the vibration services), and arent supposed to ever run on AOSP.
SGCMarkus said:
It works, because the V35 files have to work on AOSP (because of treble implementation on the V35), while ours depend heavily on the LG framework (which probably does its own stuff to the vibration services), and arent supposed to ever run on AOSP.
Click to expand...
Click to collapse
Aha. Then score one for Treble on an LG phone that has some similar features to ours. V35 may never get bootloader unlock and root, but we can cannibalize it for the V30.
SGCMarkus said:
It works, because the V35 files have to work on AOSP (because of treble implementation on the V35), while ours depend heavily on the LG framework (which probably does its own stuff to the vibration services), and arent supposed to ever run on AOSP.
Click to expand...
Click to collapse
Wait!?!? So could volte possibly work with the v35 files???
suzook said:
Wait!?!? So could volte possibly work with the v35 files???
Click to expand...
Click to collapse
IF (a big if) volte works on GSIs (which nobody tried so far from what i know, i only know 1 person with a G7, and he cant use VoLTE, thanks to the carrier), those files are highly device specific (or atleast SoC specific), its very unlikely that those would work for us.
I could try, but dont get your hopes up on that.
SGCMarkus said:
IF (a big if) volte works on GSIs (which nobody tried so far from what i know, i only know 1 person with a G7, and he cant use VoLTE, thanks to the carrier), those files are highly device specific (or atleast SoC specific), its very unlikely that those would work for us.
I could try, but dont get your hopes up on that.
Click to expand...
Click to collapse
One can dream though! Lol. Of you need me to test, let me know. Thanks!
Added: USB Audio Player PRO to the first post
and practical proof/experience that it utilizes the quad dac on non-Stock ROMs (AEX, AOSP Extended as example)
PlayStore Link:
https://play.google.com/store/apps/details?id=com.extreamsd.usbaudioplayerpro
zacharias.maladroit said:
Added: USB Audio Player PRO to the first post
and practical proof/experience that it utilizes the quad dac on non-Stock ROMs (AEX, AOSP Extended as example)
PlayStore Link:
https://play.google.com/store/apps/details?id=com.extreamsd.usbaudioplayerpro
Click to expand...
Click to collapse
I grabbed the app, it had some Network options (notably for Tidal and Google Play Music) I would assume using those options from within the app would use the DAC? Can't test personally as I'm currently using Spotify but would happily switch if I could use the DAC on a streaming service, assuming at least ~80% songs I have on Spotify are available there.
zomgalama said:
I grabbed the app, it had some Network options (notably for Tidal and Google Play Music) I would assume using those options from within the app would use the DAC? Can't test personally as I'm currently using Spotify but would happily switch if I could use the DAC on a streaming service, assuming at least ~80% songs I have on Spotify are available there.
Click to expand...
Click to collapse
Could very well be that it provides or uses hooks to interact with those and I guess it should work (if it works, if it doesn't you can nag the devs to fix it - it's a somewhat "premium" priced app after all, and support is to be expected )
I'm not using any streaming services, sorry - so can't test.
Pretty sure there must be users of Spotify here around so maybe those can give some feedback
Edit: mistyped
Anyways I started a Tidal subscription (hifi student plan). From listening to a couple songs things definitely seem clearer but can't say for sure if it's using the DAC or placebo/better quality audio is the cause.
zacharias.maladroit said:
Could very well be that it provides or uses hooks to interact with those and I guess it should work (if it works, if it doesn't you can nag the devs to fix it - it's a somewhat "premium" priced app after all, and support is to be expected )
I'm not using any streaming services, sorry - so can't test.
Pretty sure there must be users of Spotify here around so maybe those can give some feedback
Click to expand...
Click to collapse
I probably will be switching off Spotify in favor of this; only because the student plan for it exists and I do hear an audible difference with their hifi settings ($19.99/month for hifi plan without a student discount yeeesh).
even using this app on non stock rom can we still get the same high volume output from the stock rom with HIM sound mod?
Sent from my LG-H930 using Tapatalk
chalmizzle said:
Anyone tried the Onkyo HF Player app?
Click to expand...
Click to collapse
just tried it with the Xiaomi Pro HD Hybrid and I get the characteristic strong hissing noise in one of the channels (left channel) - that's the only headphones I get that weird thing with when the quad dac is activated (on stock ROM).
This confirms that the es9218p ("quad dac") also works with Onkyo HF Player on non-Stock :good:
So obviously these applications HF player and USB audio pro player have some line of code that is triggering the quad DAC to be utilized. Correct?
u4icpain said:
So obviously these applications HF player and USB audio pro player have some line of code that is triggering the quad DAC to be utilized. Correct?
Click to expand...
Click to collapse
And one also works with streaming media.
zacharias.maladroit said:
Added: USB Audio Player PRO to the first post
and practical proof/experience that it utilizes the quad dac on non-Stock ROMs (AEX, AOSP Extended as example)
PlayStore Link:
https://play.google.com/store/apps/details?id=com.extreamsd.usbaudioplayerpro
Click to expand...
Click to collapse
Would you still need to use higher ohm headphones to enable the quad DAC , or will this (USB Player Pro) allow any headphones to work with it?
I've got 4 sets of IEMs that I love, and would hate to have to start all over again buying new ones.
christoophat said:
Would you still need to use higher ohm headphones to enable the quad DAC , or will this (USB Player Pro) allow any headphones to work with it?
I've got 4 sets of IEMs that I love, and would hate to have to start all over again buying new ones.
Click to expand...
Click to collapse
Nope, I'm using the quad/dedicated DAC with "normal", low ohm/impedance headphones myself,
the only "difference" is that there isn't much noticeable difference compared to the default (qualcomm) audio DAC
So you'll be fine,
you can choose to get yourself higher ohm headphones in the future (after careful evaluation, of course) take your time to choose the ones that best fit your hearing preferences (sound response, etc.)
Any updates on getting the dac to work with non stock roms?

Does Lenovo P2 supports HQ sound over bluetooth?

Hey,
I'm currently looking for a smartphone with long battery life and support of HQ sound (LDAC preferred).
I found some ROMs with Android 8.0 and I heard that this version of OS supports LDAC. Does it mean that when I install one of these ROMs, I will be able to use LDAC?
Koprzywa said:
Hey,
I'm currently looking for a smartphone with long battery life and support of HQ sound (LDAC preferred).
I found some ROMs with Android 8.0 and I heard that this version of OS supports LDAC. Does it mean that when I install one of these ROMs, I will be able to use LDAC?
Click to expand...
Click to collapse
LDAC is included in AOSP since Oreo so you should be able to use it on every 8+ ROM until someone will remove it from his ROM. It is visible in my codec selection menu on LOS15.1 but I can't test it for you since I'm not in possession of any wireless headphones. I believe that you should look for information and how it works on other phones threads too, not only here. There is possibility that Lineage doesn't support this codec itself since stock haven't supported it but I'm not sure about that since LDAC is part of AOSP unlike AptX for example where your phone needs to be certified to allow developers to include this codec in official builds.
Basically you can add any existing bluetooth audio codec to your phone's ROM. There's not any hardware requirements besides bluetooth so I believe that you should be able to use it.

"miracast" (screen-cast) on Pixel2XL mit Android Q

Yes - I know that Google allows a screencast to Chormcast, but not on smart TVs. Now I have a new LG OLED with WebOS 4.5. A screencast is possible with my wife's Samsung J7, but not with my Pixel2XL - wow!
A "Google"-search didn't really help me.
Magisk module miracast module leads to the bootloop
build.prop cannot be edited with Android Q either, because I cannot mount the system partition in TWRP either.
Does anyone have an idea?
Sounds like "miracast" is the issue. My SmartTV (Philipps 55PUS8804) comes with Android TV and has Chromecast built in. Screencasting works flawlessly. The Pixel2 XL does not come with miracast support out of the box. Maybe you give one of these apps a try: https://play.google.com/store/search?q=miracast
ademmer said:
Sounds like "miracast" is the issue. My SmartTV (Philipps 55PUS8804) comes with Android TV and has Chromecast built in. Screencasting works flawlessly. The Pixel2 XL does not come with miracast support out of the box. Maybe you give one of these apps a try: https://play.google.com/store/search?q=miracast
Click to expand...
Click to collapse
Thanks for the tip. It is actually a "Google - miracast" -issue. Shame on Google - A simple miracast streaming seems to be denied to pixel users!
MartinN6 said:
Thanks for the tip. It is actually a "Google - miracast" -issue. Shame on Google - A simple miracast streaming seems to be denied to pixel users!
Click to expand...
Click to collapse
If you're willing to downgrade you can flash the April factory image and the magisk module will work,i stayed on the April update for a while till Android 10 was released but miracast worked just fine

Question [Q] aosp/linegae based rom that didnt have bluetooth delay

can anyone suggest any aosp/lineage based rom that didnt have bluetooh delay , i had tried crdroid , but it had huge delay on bluetooth earbuds especially when playing gamed , unlike miui based that only had tiny unnoticable delay.
lawong said:
can anyone suggest any aosp/lineage based rom that didnt have bluetooh delay , i had tried crdroid , but it had huge delay on bluetooth earbuds especially when playing gamed , unlike miui based that only had tiny unnoticable delay.
Click to expand...
Click to collapse
The delay/latency is entirely depended on what BT Audio Codec is supported by both the phone and the BT Audio device (unless there's something wrong with the ROM).
"AptX" is recommended. Your BT Audio device may have its own app and a setting called something like "Gaming Mode", which would reduce latency.
Behind the Gaming Mode would basically be "AptX Low Latency" or AptX LL.
If you don't have such settings in your earbuds' corresponding app, and nothing is Bluetooth Settings, you can try and check the Developer Options and try and force a Codec..
AOSP ROMs can have random bugs, so the big delay may be just from that ROM. ^^
dreamytom said:
The delay/latency is entirely depended on what BT Audio Codec is supported by both the phone and the BT Audio device (unless there's something wrong with the ROM).
"AptX" is recommended. Your BT Audio device may have its own app and a setting called something like "Gaming Mode", which would reduce latency.
Behind the Gaming Mode would basically be "AptX Low Latency" or AptX LL.
If you don't have such settings in your earbuds' corresponding app, and nothing is Bluetooth Settings, you can try and check the Developer Options and try and force a Codec..
AOSP ROMs can have random bugs, so the big delay may be just from that ROM. ^^
Click to expand...
Click to collapse
my earbuds had that gaming mode option , but the problem is when using aosp based it still had huge amount of delay.
had tried switching different codec from developer option but nothing works. i dont know if any other aosp based rom had that delay or not because i had only tried crdroid and one more aosp based which i forgot which one LoL!
lawong said:
my earbuds had that gaming mode option , but the problem is when using aosp based it still had huge amount of delay.
had tried switching different codec from developer option but nothing works. i dont know if any other aosp based rom had that delay or not because i had only tried crdroid and one more aosp based which i forgot which one LoL!
Click to expand...
Click to collapse
Hm. In that case I'd do a backup and try an older version of crDroid or a different AOSP..,..,,,.,,..,,,,,,.,,..,,
dreamytom said:
Hm. In that case I'd do a backup and try an older version of crDroid or a different AOSP..,..,,,.,,..,,,,,,.,,..,,
Click to expand...
Click to collapse
older are just as same as the new one ahha , i guess all aosp based are like that?
lawong said:
can anyone suggest any aosp/lineage based rom that didnt have bluetooh delay , i had tried crdroid , but it had huge delay on bluetooth earbuds especially when playing gamed , unlike miui based that only had tiny unnoticable delay.
Click to expand...
Click to collapse
I don't know if it is an aosp based rom but i am currently testing this https://forum.xda-developers.com/t/...elos-aosp-alioth-aliothin-09-05-2022.4392649/. Bluetooth audio lag is very low even lower than miui based roms.

Categories

Resources