FORUMS
Remove All Ads from XDA

can't enable "always on" VPN for OpenVPN in EMUI (but works for other vendors UIs)

2 posts
Thanks Meter: 0
 
By WieselDroid, Junior Member on 4th August 2018, 08:48 PM
Post Reply Email Thread
In Android 8, 3rd party VPN apps can use the new APIs to show up in Androids VPN list and also offer settings like "always on VPN".
I'm using "OpenVPN for Android". On my LG phone with Android 8 it shows up in that list just as a native VPN and I can edit it by clicking the gear icon on that entry in the list. There I can enable the "always on" feature.

But in EMUI, in that same VPN list, the gear icon is only shown for native VPNs. For my OpenVPN entry, theres an arrow icon instead. By clicking, it enters the OpenVPN app instead of showing an Android settings screen. Inside the OpenVPN app I can't do that system setting for "always on", I think that an app cannot set this setting, it must be done by the user in the Androidsettings.

Am I too stupid or did Huawei implemented the settings screens so strange that it is just not possible to access the needed screen?
Are there apps that let you change Android settings instead of using the proprietary setting pages from LG, Huawei, etc?
 
 
4th August 2018, 09:43 PM |#2  
Senior Member
Thanks Meter: 38
 
More
Quote:
Originally Posted by WieselDroid

Are there apps that let you change Android settings instead of using the proprietary setting pages from LG, Huawei, etc?

You can use Nova Launcher, as shown here:

https://forum.xda-developers.com/hua...mui-8-t3795342

You could also try installing Settings Database Editor which allows you to manually alter the settings database.
2nd September 2018, 10:43 AM |#3  
OP Junior Member
Thanks Meter: 0
 
More
Quote:
Originally Posted by thref23

You can use Nova Launcher, as shown here:

https://forum.xda-developers.com/hua...mui-8-t3795342

You could also try installing Settings Database Editor which allows you to manually alter the settings database.

Nova Launcher is just for Homescreen (I'm already using it across all devices) but the Settings keep proprietary (or do I miss some settings of Nova?)

But thank you for the hint to Settings Database Editor, I was able to copy the 2 necessary lines from my LG phone.
For anyone interested in this, the settings are in "Secure Table":
"always_on_vpn_app" -> "de.blinkt.openvpn" (adjust if using another client)
"always_on_vpn_lockdown" -> "1"

But it only takes effect after a reboot. It doesn't matter much for me but what would I need to do after adding those system settings to apply the change? Is there some process to restart or a way to reload the config?
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes