What apps to whitelist in ProtonVPN for Miracast to work in LineageOS 17?

As the title say, I am running LineageOS 17 (Android 10) in my phone, with no Gapps (no PlayStore, no Google Services).

I have installed the ProtonVPN app and everything is working fine, except that when the VPN is on, casting to my TV using Miracast does not work. When the VPN is off the casting works fine.

I have tried adding a couple of com.qualcomm.xxxxxx apps from the exclude list of the split tunneling, but I can not find the right app that I have to exclude from the VPN for Miracast to work.

Any suggestions?

Hmmm you could add the IP if it is static. But otherwise yeah, by adding the app to the split tunneling should work. Make sure that “block connection without VPN” is disabled though.

Try asking in the XDA forums and see if someone knows which app it might be.

About the second part, I had a similar issue, and disabling solved the issue.

If you use OpenVPN, you have the ability to split tunnel all local traffic, which will probably allow this to work.

The problem is that I do not know what App should I add to the split tunnel exclude list. Miracast support is part of AOSP and therefore is included in LineageOS. I have not installed any app, and that is the reason I don’t know which app I have to include.

Why should I disable “block connection without VPN”? AFAIK the apps in the split tunneling exclude list will not be affected by that settings and will able to access the internet regardless.

I managed to make it work by adding Wfd service to the exclude list AND disabling “Block connections without VPN”. With only one of them it does not work, both are needed for Miracast to work with the VPN on. It actually says it very clearly in the ProtonVPN app that if you activate “Block connections without VPN” the exclude list won’t work.

It is a shame because I like to have the “Block connections without VPN” option on. It seems a bit retarded that it also targets the apps in the excluded list, since you are actively excluding them.

Anyway, thanks for the help.

I have already asked in XDA. Waiting for an answer.

It would be a shame if I have to disable that option because I would like it on.

I might have to install OpenVPN and try, which is a shame because I like the ProtonVPN app.

The ProtonVPN app has an option for OpenVPN in its settings.

I see the option of choosing OpenVPN in the profile once you deactivate smart protocol. I’m not very sure how to activate the split tunnel all local traffic if I chose the OpenVPN option. Once I select OpenVPN the only option I get is if I want to use TCP or UDP. Do I need to also install the OpenVPN app?

No, if you select OpenVPN, an option will pop up under it that says “Allow LAN connections”. If you flick it on, then it will split tunnel local connections.

I am using ProtonVPN app v2.1.5 and I just checked again. When I create a new profile, uncheck smart protocol, select OpenVPN, the only option that appears is to select between TCP and UDP.

deep breaths You need to go into settings, not create a profile. Go into settings → protocol → change to OpenVPN → turn “Allow LAN connections” to on.

OK, thanks. I found it now.