Any way to disable GPS on Android 9.0 Pie? - OnePlus 5 Questions & Answers

Hi!
Just flashed the new Open Beta 22 based on Android 9.0. A bit surprised and disappointed to see that there does not seem to have any way to disable the GPS while keeping other location method (Wifi+cellular) activated. All we seem to be able to do is either:
- completely disable location services;
- enable location and enable 'Google Location Accuracy' -- akin to the previous "High accuracy" option from Android 8.1 and previous;
- enable location and disable 'Google Location Accuracy' -- akin to the previous "Device only" option from Android 8.1 and previous.
Is there any way to enable the equivalent of the previous-8.1 "Battery saving" option in Location options, which would allow apps to access location using only wifi+cellular information?

It seems not

Thank you GOOGLE

Anyone found a fix?

Only if you're rooted.. Tasker + secure settings, can still do the trick.

Enable/disable GPS only is possible. For example using a Macrodroid application after enable permission settings via ADB command:
"pm grant com.arlosoft.macrodroid android.permission.WRITE_SECURE_SETTINGS". Personally tested and operated.

Related

How to mock location without enabling the setting on rooted device

I am looking for a way to be able to mock location without needing to use ACCESS_MOCK_LOCATION. My app works but requires "allow mock location" setting to work. When "allow mock location" setting is disabled, the app just crashes when it's about to spoof location. Just moving it to the system partition doesn't help..
I'd be glad for tips for Lilipop and Marshmallow (as far as I learned, they work differently...)

"screen overlay detected" even when all are switched off

So, I've just updated to the latest Pure Nexus - did a wipe and clean install - and I'm trying to get my apps set up again, but I can't grant permissions through system settings. If an app actually pops up and requests a permission, I can allow it; but for some apps, this doesn't happen. Home Remote Control, for example, won't request the storage permission it needs to access my ssh key. So I go into settings->apps, find the app, tap permissions, try to enable the storage permission, and..."screen overlay detected". Except there is no screen overlay active. I have disabled every app's "draw over other apps" permission. I even found the "show system" option in the list and disabled all system apps' ability to draw over other apps. At this point, SYSTEMUI can't draw over anything else! And I'm still getting "screen overlay detected" when I try to change permissions. Any advice? Is there another way to manage permissions in Marshmallow (like maybe an xposed module)?
EDIT: Thought I should also mention, the issue persists in Safe Mode.
tardis_42 said:
So, I've just updated to the latest Pure Nexus - did a wipe and clean install - and I'm trying to get my apps set up again, but I can't grant permissions through system settings. If an app actually pops up and requests a permission, I can allow it; but for some apps, this doesn't happen. Home Remote Control, for example, won't request the storage permission it needs to access my ssh key. So I go into settings->apps, find the app, tap permissions, try to enable the storage permission, and..."screen overlay detected". Except there is no screen overlay active. I have disabled every app's "draw over other apps" permission. I even found the "show system" option in the list and disabled all system apps' ability to draw over other apps. At this point, SYSTEMUI can't draw over anything else! And I'm still getting "screen overlay detected" when I try to change permissions. Any advice? Is there another way to manage permissions in Marshmallow (like maybe an xposed module)?
EDIT: Thought I should also mention, the issue persists in Safe Mode.
Click to expand...
Click to collapse
Do you have twilight or lux installed?
The reason it's warning you is BECAUSE they're disabled. Enable all the toggles and the prompts will go away. You can then choose to disable one by one until you figure which app is throwing the error.
Sent from my Nexus 6P using Tapatalk
Turned out to be because GravityBox pie controls were enabled. Doesn't show up in the "draw over" list, but trips the overlay detection regardless. Disabling pie controls in the GravityBox app let me change permissions.
Hi,
Try to flash this by Custom Recovery.
http://www.mediafire.com/?ouxua6rkkagi3g9
tardis_42 said:
Turned out to be because GravityBox pie controls were enabled. Doesn't show up in the "draw over" list, but trips the overlay detection regardless. Disabling pie controls in the GravityBox app let me change permissions.
Click to expand...
Click to collapse
Thanks man. I have been going crazy for the past few days trying to figure this out lol. Just posted asking for help as well. Such a random and rare issue, that i couldnt find anything on it.

NFC toggle Off Automatically During Call - Clicking Workaround

**EDIT - THIS IS NO LONGER REQUIRED AS OF .025, ISSUE HAS BEEN RESOLVED VIA GOOGLE UPDATE**
Hey Guys,
I know a lot of you (myself included) are experiencing the NFC clicking issue on your Pixel 2's.
I wanted to show you a workaround, which will automatically disable NFC during a call, and re-enable it when the call ends. This is a temporary fix which you can use until the following promise is fulfilled...:
"Hey All,
We are validating a software update to address faint clicking sounds on some Pixel 2 devices. The update will be made available in the coming weeks. The clicking noise being reported does not affect the performance of your device but if you find it bothersome you can temporarily turn off NFC in Settings > Connected devices > NFC. "
Posted by Orrin - Community Manager, Found on:
https://productforums.google.com/fo...-place=topicsearchin/phone-by-google/clicking
This workaround uses the Macrodroid application. It requires root (Not yet available as far as I am aware) or an ADB Hack (What I used) for this to work.
You can grant Macrodroid "System" access by performing the following (ADB Hack):
https://www.tapatalk.com/groups/mac...23&p=10455&hilit=WRITE_SECURE_SETTINGS#p10455
This will allow Macrodroid to enable and disable NFC WITHOUT root.
Once access has been granted create the following macros:
Macro #1:
Name: NFC Off
Triggers: Call Active (Any Contact, Any Number, Non Contact, Unknown Caller)
Actions: NFC Off
Macro #2:
Name: NFC On
Triggers: Call Ended (Any Contact, Any Number, Non Contact, Unknown Caller)
Action: NFC On
You can disable the persistent notification icon by opening Macrodroid, going to settings > Notification Bar Options > Force Hide Icon.
This has been working great for me, and I know it looks like a lot of work but its a great alternative to manually toggling NFC off and on.
Macrodroid is also super useful in general so, enjoy!
Thanks for this. Very good idea until we get a fix from Google.
I too saw the MacroDroid page you refer to and was just going to post here about it - but saw you'd beaten me to it by several days! It works really well!
I also use Macrodroid to put my phone into silent mode overnight when it's charging AND connected to my home wifi AND it's after 9pm. Disconnecting the power reverts it to normal mode. I love MacroDroid - it's much easier to understand if you're not a programmer than any of its competitors like Tasker.

Default-App: Assistant resets on Chinese version of Mate8

Hey there,
I have a Mate 8 Chinese version. Build Number NXT-AL10C00B592. My Phone is rooted.
My goal is to replace the HiVoice with the Google Assistant.
What I've done so far:
- Remove the HiVoice App described as here https://forum.xda-developers.com/p9/how-to/how-to-replace-hivoice-vocal-assistant-t3465522/amp/
Even this was a P9 article, I gave it a try. Well.. the HiVoice is gone now.
- Installed the Google app, configured the speech assistant. In order to do this I had to set the Google Assistant as default assistant in my app settings. (apps - settings - default app - assistant - assistant-app =Google). Once this was done I was able to press the Home-Button to activate the Google Assistant. Awesome.. I thought so.. after approx. 15 minutes, it wasn't working anymore. The default assistant app was set to None..
So I thought it is maybe because of the Depp-sleep-device-idle Huawei-special-whatever.. so I tried to disable this one via adb.. works fine.. my WhatsApp messages arrive immediately,even if the app is closed.. yay, but that was not my goal..
I am at the end of my knowledge. Do you guys have any idea how to set the Google Assistant as default permanently? Maybe there is a config file that I could modify or something..
Thanks mates,
Shyarly
I'm experiencing the same problem here, and I'm also looking for solutions. I tried using Ice Box and successfully disabledthe Hivoice App. After playing around for a while Iwould say that force stopping the Google app would reset the assist app to none. I tried setting the assist app to Cortana and force closing it but the setting remains. On the other hand however, In my experience on a global model it seems the Google app (as a system app) cannot be force stopped, unless you disable and re-enable it, which also causes the assist app to be reset. maybe there's a switch that makes the google app persistent, and I hope that helps.
I seem to be able to solve this issue, but I'm on EMUI 8.1 and on P20Pro, not sure if it's suitable for your case - probably it's the same case for all recent Huawei phones (Chinese ver.) so I just post it here:
1. Go to settings > Apps & notifications > Apps > Google > Advanced > Set write system setting to "Yes".
2. On the same page, change the Google app launch to "Manage manually" and turn on Auto-launch, Secondary launch, and Run in background.
3. If you still have HiVoice installed, just turn off the write system setting permission on HiVoice in case it's overwriting the Google voice command.
I have checked in an hour or two so far, tried to restart my phone too, the default app for voice is still with Google and "OK Google" works smoothly. Still with one flaw, once you call the Google assistance, don't close/clean it otherwise the setting will be reset.
Thanks to Ronald.Cheng I have followed your first step and decided to add my own steps and so far I have been using my phone for whole day and even restare how I modified the setting.
1. Go to settings > Apps & notifications > Apps > Google > Set write system setting to "Yes".
2. Go to settings > Apps & notifications > Apps > Google > Battery > uncheck "close after the screen locked"
If it is possible, repeat 2. On assistant
I hope it works with your Huawei.
Same problem unsolved
Hello,
I have a honor note 10 (Chinese mui 8.2) and the same problem. First I struggled to install and use Google assistant and had to force enable it, and now it works until it resets itself. I followed the instructions below but I doesn't seem to do anything. Is there any way I can make Google a system app or with similar rights using adb or whatever ?
Tim
Hello I have a Huawei Honor 8 max chineese version and need a change home launcher fix as cant change launcher help help please.....jock UK
ronald.cheng said:
I seem to be able to solve this issue, but I'm on EMUI 8.1 and on P20Pro, not sure if it's suitable for your case - probably it's the same case for all recent Huawei phones (Chinese ver.) so I just post it here:
1. Go to settings > Apps & notifications > Apps > Google > Advanced > Set write system setting to "Yes".
2. On the same page, change the Google app launch to "Manage manually" and turn on Auto-launch, Secondary launch, and Run in background.
3. If you still have HiVoice installed, just turn off the write system setting permission on HiVoice in case it's overwriting the Google voice command.
I have checked in an hour or two so far, tried to restart my phone too, the default app for voice is still with Google and "OK Google" works smoothly. Still with one flaw, once you call the Google assistance, don't close/clean it otherwise the setting will be reset.
Click to expand...
Click to collapse
Doing the following only worked for me:
1. Go to settings > Apps & notifications > Apps > Google > Advanced > Set write system setting to "Yes"
Thanks much.
Device: Honor 8x

Screen keeps waking up after changing Greenify settings

I enabled the following settings I found in a post to see if I can boost my SoT:
"After installing from playstore ,Activate greenify module in xposed installer app and reboot, then follow these settings-
1 - Goto greenify> settings > Aggressive doze > activate ( Activate notifications also, if you want to know for how much time the device has gone into doze mode)
2- Enable Wake-up Tracker > enable "advanced wake-up cut-off'
3- Enable automatic hibernation and quick action notification
4- Xposed based features > enable 'doze on the go' and 'wakeup time Coalescing' ( you can also enable "don't remove notifications")
5- now add apps to greenify by tapping on '+' add all the GCM( google cloud messaging ) apps and bulky apps and games such as facebook , PUBG etc"
I am not 100% sure that this caused it but now every 5-10 minutes or so my screen wakes up for no reason continuously throughout the day. I installed a wakelock detector and it says chrome and google news are doing it but it's not always the same culprits.
Is there a workaround to this? It's very annoying and I've disabled wake up notifications obviously so it's not owed to that. Thanks in advance.
bump!
Are you shure Greenify is configured for "root mode" ?
Yes greenify is set to root mode.

Categories

Resources