-2

I am developing single application mode in android, in which there is no need to request for user's approval.

It even can be done as Native application (ndk) on root device. But still, I am not sure if there is a way to handle it with GPS permissions.

It seems not to be enough to declare permissions in manifest file.

Is there a way to do it without asking user's permission ?

Amar
  • 420
  • 3
  • 14
ransh
  • 1,589
  • 4
  • 30
  • 56
  • 6
    There wouldn't be much use in having permissions if they could be bypassed. – adelphus May 19 '16 at 17:59
  • right... I understand that. But in case of single application there is much logic in that. – ransh May 19 '16 at 19:18
  • you don't need to ask user about permission in run-time when you are targeting API older than 22 (of course permission then will be "asked" during installation and still need to be present in Manifest). but then user runing 6.0 can remove that permission from app and you will not known about it – V-master May 20 '16 at 07:29

1 Answers1

5

I am developing single application mode in android, in which there is no need to request for user's approval.

For privacy reasons system thinks otherwise and unless you build your own system, root your device (and plant some patches) or (perhaps) sign your app with system certificate you are not able to prevent system from asking for user consent prior granting you GPS access.

Marcin Orlowski
  • 72,056
  • 11
  • 123
  • 141