I am working on phone locator app and need turn on location automatically if off. The scenario is something like if phone is lost, location disabled and internet on, i can turn on the location remotely, find my phone. Need this to work for Android N and Oreo also. Can device administrator do the job or is there any other special permission which will allow me to enable/disable location without any user interaction? Not looking for any prompt from location manager. If there isnt, is there any other way we can achieve same goal?
Asked
Active
Viewed 199 times
-2
-
1Your only hope would be device admin/owner APIs. Anything else would be a security flaw. – CommonsWare Oct 08 '17 at 12:01
1 Answers
0
Yeah this functionality can be achieved on pre-lollipop devices.
But post-lollipop or marshmallow, devices needs to allow the permissions.

Shashank Kapsime
- 799
- 5
- 10