1. Are you ready for the Galaxy S20? Here is everything we know so far!

Turning off permissions of other apps

Discussion in 'Android Apps & Games' started by RazaCodeRepo, Feb 18, 2021.

  1. RazaCodeRepo

    RazaCodeRepo Lurker
    Thread Starter


    I am wondering if its possible to turn off permissions granted in other apps from within my app. e.g. The camera app has been given location permission. I want to if its possible that i then turn off this permission not from the settings but from within my custom app without rooting the phone. There are apps on playstore that are doing this without rooting or using any extra permissions. I am wondering how those apps are working. Please any suggestions would be very helpful.


    1. Download the Forums for Android™ app!


  2. Unforgiven

    Unforgiven ...eschew obfuscation...

    I don't think so and if you could there would be zero security in Android.
    Hadron and ocnbrze like this.
  3. Hadron

    Hadron Smoke me a kipper...
    VIP Member

    I don't know for sure, as I don't know what apps you are thinking of and hence whether/how they work. I agree that if it's possible it's poor design: the only thing worse that one app being able to deny permissions to another would be an app being able to grant permissions to another, and I seem to remember that Play Store rules forbid one app from interfering with another's function, which what you describe would do. So I'd be surprised if you can do it.

    Many apps deal with such things by simply taking you to the place in the Settings where the user can make the change themself. That doesn't require the app to have any special privileges or violate any rules, since the user is simply presented with a system dialogue that they can find themselves. Are you certain these other apps aren't doing that?
    MrJavi and Unforgiven like this.
  4. RazaCodeRepo

    RazaCodeRepo Lurker
    Thread Starter

    Hello Hadron
    Thank you very much for the reply. You right in the second part of your answer that these apps don't have any special permission or privileges and they don't get access to the other apps. I should have mentioned this in my question that these apps normally open the settings screen of a certain app and turn off the permission but they do this automatically. I am just wondering how are they achieving this. Is there any kind of script that we right in android to automate things?
    MrJavi likes this.
  5. puppykickr

    puppykickr Android Expert

    The apps that can successfully keep other apps from accessing the camera on your device use a Device Administrator to do so.

    Basically, this gives the user a prompt to allow this administrator, and then that app can cause the camera to be unavailable.

    The camera will appear to be nonexistant, or already in use by any other USER app that tries to access the camera.

    I emphasize 'user' apps, because it is not known if system apps or other built in apps can bypass this restriction.

    After I typed the above, I went to three different app stores to get the link to the app that I use, so that you could check it out.

    It seems to have disappeared.
    It is called Pandroid Camera, and works just as I explained above.

    As I cannot find the link, I could upload the apk to cloud storage and then post a link to that.

    I use this app on all of my devices, and highly recommended it.


Android Forum


August 27, 2020
Last Updated

Share This Page