Access vendor-specific 'screen lock settings' from app - Android Q&A, Help & Troubleshooting

Hey everyone,
we are developing an app and at one step it should open the settings for the screen lock. Normally this is located in the security settings (Settings.ACTION_SECURITY_SETTINGS), but some vendors like LG and I believe Samsung have additional 'screen lock settings' (see screenshot). Is it possible to access them from an app? Or would you need a vendor-specific SDK for that?
http://abload.de/image.php?img=screen_lock_settingsf7pzu.png
Thanks!

Related

Hidding and Locking apps in Android

I'm looking from an app that would:
1) Hide target app's icon, status bar and list of open applications
2) Have a disguised icon for the app itself, when I click it it asks for a password.
3) After entering the password, I get the list of apps that i've hidden
4) clicking an app lunches it
5) when screen locks the app disapear from list of open application and must enter password again to access that app (or perhaps time based).
Thanks.

[Q] "Apps Drawer" gesture

Is there an option so that when I use the "Apps Drawer" gesture / hotspot I can set it so that it will display the "Apps" tab? What I'm finding is that it will display whatever tab was last used (e.g. Favorites, Categories). Is there option or other gesture that I should use so that selecting "Apps Drawer" displays the "Apps" tab?
bob_61 said:
Is there an option so that when I use the "Apps Drawer" gesture / hotspot I can set it so that it will display the "Apps" tab? What I'm finding is that it will display whatever tab was last used (e.g. Favorites, Categories). Is there option or other gesture that I should use so that selecting "Apps Drawer" displays the "Apps" tab?
Click to expand...
Click to collapse
Hi,
There isn't an option for this yet, but that's a great idea and we'll speak to the team about it

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

can't enable "always on" VPN for OpenVPN in EMUI (but works for other vendors UIs)
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?
WieselDroid said:
Are there apps that let you change Android settings instead of using the proprietary setting pages from LG, Huawei, etc?
Click to expand...
Click to collapse
You can use Nova Launcher, as shown here:
https://forum.xda-developers.com/hu...isable-displaying-apps-huawei-emui-8-t3795342
You could also try installing Settings Database Editor which allows you to manually alter the settings database.
thref23 said:
You can use Nova Launcher, as shown here:
https://forum.xda-developers.com/hu...isable-displaying-apps-huawei-emui-8-t3795342
You could also try installing Settings Database Editor which allows you to manually alter the settings database.
Click to expand...
Click to collapse
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?

Homescreen shortcut to enable/disable mock location app

I want to be able to select a mock location app briefly for testing and then turn it off again when not needed. Going into developer options and selecting the mock location app is quite a process when it has to be repeated often so would really like a way to be able to do that as a single click from the homescreen or nav bar.
The problem though is that the mock location app needs to be selected when enabling the option so not sure if there is any mechanism that would be able to do this as a shortcut.
Does anyone know of a way to do this or if there are any shortcut/widget apps that would be able to create a shortcut for this?
I'm running Android 9 (Havoc 2 treble ROM)

Widget triggering mock location

Hello, I have just got a simple question - is there any app or possible way to make a widget on the the home screen that triggers mock location (eventually can choose the app to trigger with)? Thank you.
kouzelnik3 said:
Hello, I have just got a simple question - is there any app or possible way to make a widget on the the home screen that triggers mock location (eventually can choose the app to trigger with)? Thank you.
Click to expand...
Click to collapse
Many apps are available. GIYF ...
IMHO only will be possible if
in APK's 'manifest.xml' using mock location is allowed
Code:
uses-permission android:name="android.permission.ACCESS_MOCK_LOCATION"
in Android's Settings -> Developer Options option 'Select mock location app' is available/selectable.

Categories

Resources