Widget triggering mock location - Android Q&A, Help & Troubleshooting

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.

Related

Notification Listeners in OS 5?

When getting one of my apps after rooting, pebble time, it said it required notification access. When trying to enable this it took me to the sound & notification settings; after looking around I couldn't find any way to allow it to read my notifications (not accessibility settings). Is there any way around this?
Thanks in advance - mymindstorm
(I tried to put in screenshots, but my ranking is too low, sry)
Did you go to the app In Settings>manage all apps? There's a box under Force Stop to "Show Notifications." If you did that and it didn't have the notifications option, there's an Xposed module called AppOpsXposed that should let you turn on notifications.
DoLooper said:
Did you go to the app In Settings>manage all apps? There's a box under Force Stop to "Show Notifications." If you did that and it didn't have the notifications option, there's an Xposed module called AppOpsXposed that should let you turn on notifications.
Click to expand...
Click to collapse
I probably didn't word that right, I need the app to read the notifications. Normally there would be a section in settings for this, but it is removed.

Access vendor-specific 'screen lock settings' from app

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!

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)

Redmi Note 9 Pro Global : Android System Message regarding App Overlay

Dear Community,
I have an issue with my Redmi Note 9 Pro Global Joyeuse with FW QJZMIXM 12.0.1 stable: I use an App named "Orientation Control" which overlays apps to force the screen orientation per my needs ( landscape or portraint or whatever ). Overlay is the method to do so, so its the app's scope to do exactly this. The Android System now generates a permanent Message / Notification saying: "App Orientation Control is overlaying other apps. " Unfortunately there is currently no way to disable this message in the Android System settings, the option is unavailable respectively not clickable.
Does anybody know another method / way to disable this message? Maybe ADB / modification of a file or anything else?
Device: Unrooted, Stock FW
Thx fir any feedback
You may be able to disable the notification from system settings.
Should be able to find, and disable, the notification from Settings->apps->manage apps
Look for "Android System" in the app list and check the notification settings for the one you want to disable.
If you don't see "Android System" in the app list then you need to enable the show all apps option from the 3dot menu in the top right hand corner of the screen.
sir_bazz said:
You may be able to disable the notification from system settings...
Click to expand...
Click to collapse
Hi sir_bazz, thx for your reply, but as already said, this is not possible to deactivate the notification via the "Android System" app settings.
dc_01 said:
Hi sir_bazz, thx for your reply, but as already said, this is not possible to deactivate the notification via the "Android System" app settings.
Click to expand...
Click to collapse
Do you see a list of all the different notification channels at the bottom of that page?
You should also see the active system notifications, like this one.
yes i do see this, and it is not possible to disable. Already tried all these settings. My screenshot is from the active notification of the app Orientation Control. And this butten cannot be deactivated. This is the reason why i asked for another option such as an ADB command which e.g. allows disabling the neotification or setting the timer to a greater value than only 2 hours.

Categories

Resources