GPS location button disable in Android 5.0 - General Topics

Hi,
I am looking out to change the code in Android 5.0, so as to keep GPS always on.
Basically, it needs me to disable the location button in the settings, so that the GPS remains always on, irrespective of whether the location is showing on/off in the settings.
Any pointers on if someone has done this before or how can I do this, please.
Regards.

Related

[Q] Gps activated when screen goes off

Hi, my problem is that every time i turn the screen off the gps goes on. If i lock the screen and turn it on after five seconds the gps icon is active on the status bar.
At first I thought it was some misbehaving app, but now I've frozen almost all apps using the permission ACCESS_FINE_LOCATION, but the problem is still there.
The application using the gps appears to be google maps, is this behavior normal? I don't have latitude activated, autosync is off.
I keep gps on because I have seekdroid installed and on gingerbread apps can't self-enable gps
You don't per chance have Tasker installed or some other location based widget on your home screens do you?
If you do have a location widget working (Like Lattitude or Loopt) there is probably a setting to check to tell it not to automatically turn on location.

[Q] Tasker can't access Secure Settings

I posted earlier today but realized the problem goes deeper than I thought...
Rooted, lollipop 5.0.1, tasker pro & secure settings pro.
I installed helper or whatever it's called now to have root access via secure settings
I set up a task to try and toggle GPS and if I go to test action it works great. However, hitting the play button does nothing (despite giving me a green circle) and if I set a profile to toggle GPS it does nothing either. I tried doing some other things (eg. toggle airplane mode) with no luck. I have been going +task, plugins>secure settings>GPS and hitting toggle. Any one know what could be the issue? Thanks

S6 Weather Widget

I was using the S4 mini ( Android 4.2.2) before I switched to S6 (Android 5.0.2).
On the old device the stock weather widget can detect my location without GPS on. I suppose it uses data from ISP via mobile radio or wifi.
However it is not the same for S6. The stock weather widget required "Location" to be turned on in order to detect my location. When I enabled "Location", the GPS was automatically turned on. I then set the "Locating method" to "Wifi and mobile networks". I thought I could disable GPS whilst still being able to detect my location. Sadly turning off GPS would also disable "Location" and the detection failed.
Is there a way for the S6 widget to act in a way as my old device?
I now understand what has happened. The quick setting button after dragging down the notification bar is a "Location" button and not a "GPS" button. This is extremely inconvenient and causing confusion !!
On 4.2.2 I can select coarse location detection via mobile and wifi and if I need more precise detection I just toggle the GPS button.
On 5.0.2 I have to re-enter the "location" setting menu and re-select "location detection" option to deploy GPS.
Why is the Lollipop so user unfriendly? I lost not only the quick launch buttons on the lockscreen but also a GPS button, sigh.
hobbya said:
Why is the Lollipop so user unfriendly?
Click to expand...
Click to collapse
It's actually an attempt to make it more user friendly. The majority of people using these phones become easily confused when given more options. At least that's what Google and Samsung seem to think...
If you're rooted, you can use a combination of the apps Tasker and Secure Settings to have the phone toggle between "mobile & wifi only" and "mobile & wifi & GPS" as needed.
If you're not rooted, there isn't really anything that can be done about it.

Turn GPS on/off?

Hello, is there a way to turn the gps on/off? I want to keep the location services turned on, but in the quick settings, it has otipon only turn on/off the location services, not only the gps. I have to go to the settings menu if I want to turn the gps off, but keep the location services on.
P.S.: i checked this quick setting on my Lenovo tablet, and it works the same way So it is maybe not an Alcatel related feature, but it is somewhere Lollipop.
Other Lollipo questikn, why they (google?) removed the silent mode? Why I have to set volume to zero, instead of turning off the ringtones?
Use battery saving setting in location services. Turns off GPS.
Yes I kow, it turns off the gps, but, it is notaccessible from the top of the screen quick settings. It disables or enables the whole !ication service. I tried some gps on/off apps, but they don't work.

[SOLVED] WiFi doesn't turn OFF

Hi guys!
I have an XT1540, 2gb/16gb version (Retail US) on Marshmallow.
This is the situation: I'm not always at my house. So, I turn off WiFi when I don't use it. But, even though I turn off WiFi, it remains ON. This does not affect the battery duration. I also notice this when I toggle WiFi on using the tile under quick settings, it seems WiFi was always on because it shows available networks immediately.
Yes, I have turned off "Wi-Fi scanning" under Settings > Location > three dots > Scanning, so there is no reason why WiFi is always ON!
Does any of you have the same issue? I attached some screenies. :good:
Want to hear from you guys...
EDIT: I found the solution. Even though I disabled Always scanning on Settings > Location, Wi-Fi always was ON!
I used to go to *#*#4636#*#* > Wi-Fi information > Wi-Fi status and Supplicant state always said SCANNING.
Went to Developer options and scrolled down to Networking and turned ON "Always allow Wi-Fi Roam Scans". When you turn this on, it disallows the always scanning supplicant state. Now Wi-Fi totally turns off when I select the tile in quick settings!
See attachments!
I think it's common marshmallow bug, not only in Moto devices but even Nexus devices facing this issue.
After some reboots it goes back to normal.
vicky90 said:
I think it's common marshmallow bug, not only in Moto devices but even Nexus devices facing this issue.
After some reboots it goes back to normal.
Click to expand...
Click to collapse
Well, after rebooting my device this "issue" is still present... Anyway thanks for the feedback!
Then maybe resetting network settings and wiping cache in recovery will be the solution, because it has solved my Wi-Fi drains.
vicky90 said:
Then maybe resetting network settings and wiping cache in recovery will be the solution, because it has solved my Wi-Fi drains.
Click to expand...
Click to collapse
I've re flashed the entire firmware but no changes... I'll wait fot Nougat then.
MarckozZ said:
Hi guys!
I have an XT1540, 2gb/16gb version (Retail US) on Marshmallow.
This is the situation: I'm not always at my house. So, I turn off WiFi when I don't use it. But, even though I turn off WiFi, it remains ON. This does not affect the battery duration. I also notice this when I toggle WiFi on using the tile under quick settings, it seems WiFi was always on because it shows available networks immediately.
Yes, I have turned off "Wi-Fi scanning" under Settings > Location > three dots > Scanning, so there is no reason why WiFi is always ON!
Does any of you have the same issue? I attached some screenies. :good:
Want to hear from you guys...
Click to expand...
Click to collapse
It may sound too noobish but just check these-
Are you using the quick setting tile's down arrow to expand the WiFi list? I can't remember the behavior on stock but in cm 13 both clicking of quick setting tile icon and down arrow *enables* and expands the tile. In other roms, clicking wifi icon toggles it and arrow expands it.
Try this. Open settings>wifi and make sure it's off from there. Now pull down notification panel, and again pull down to open quick settings (qs) panel. Check wifi has a slant line going over it. That indicates its off. Now click on wifi icon (not the 'Wi-Fi' text with the arrow). Does the tile expand and shown as turned on? If yes then its normal behavior. It turns on wifi and expands the view to show wifi networks. In other roms, it just turns on wifi and clicking bottom text expands it.
And if you can bother , try this-
Make sure that settings>wifi shows its turned off.
if your rooted then install catlog app from playstore and run it. If you are not rooted then you can connect your phone to PC with usb debugging on and use the following command-
Code:
adb logcat
If wifi is still on in background and sanning then you can see lots of line referring to wpa_supplicant coming in continuously. This is the best way to tell.
The reason I am tellling you to confirm it is because it's rare. Custom roms are reporting wifi was on in battery page even when it was off (logcat method confirms this).
Broadcasted from Zeta Reticuli
Go to your location settings, hit the 3 dot menu button and select scanning. See if Wi-Fi scanning is selected. If so, this will allow the system to use Wi-Fi scanning to help fix your location and will keep Wi-Fi turned on.
Sent from my MotoG3 using Tapatalk
Gravemind2015 said:
It may sound too noobish but just check these-
Are you using the quick setting tile's down arrow to expand the WiFi list? I can't remember the behavior on stock but in cm 13 both clicking of quick setting tile icon and down arrow *enables* and expands the tile. In other roms, clicking wifi icon toggles it and arrow expands it.
Try this. Open settings>wifi and make sure it's off from there. Now pull down notification panel, and again pull down to open quick settings (qs) panel. Check wifi has a slant line going over it. That indicates its off. Now click on wifi icon (not the 'Wi-Fi' text with the arrow). Does the tile expand and shown as turned on? If yes then its normal behavior. It turns on wifi and expands the view to show wifi networks. In other roms, it just turns on wifi and clicking bottom text expands it.
And if you can bother , try this-
Make sure that settings>wifi shows its turned off.
if your rooted then install catlog app from playstore and run it. If you are not rooted then you can connect your phone to PC with usb debugging on and use the following command-
Code:
adb logcat
If wifi is still on in background and sanning then you can see lots of line referring to wpa_supplicant coming in continuously. This is the best way to tell.
The reason I am tellling you to confirm it is because it's rare. Custom roms are reporting wifi was on in battery page even when it was off (logcat method confirms this).
Broadcasted from Zeta Reticuli
Click to expand...
Click to collapse
riggerman0421 said:
Go to your location settings, hit the 3 dot menu button and select scanning. See if Wi-Fi scanning is selected. If so, this will allow the system to use Wi-Fi scanning to help fix your location and will keep Wi-Fi turned on.
Sent from my MotoG3 using Tapatalk
Click to expand...
Click to collapse
Solved.. It was strange but I did it. See OP:

Categories

Resources