1. Download our Official Android App: Forums for Android!

Apps how to programmatically modify permissions?

Discussion in 'Android Development' started by maher640, Apr 2, 2016.

  1. maher640

    maher640 Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Apr 2, 2016

    Apr 2, 2016
    1
    0
    5
    Male
    Hi,
    Is it doable through code to get an app's permissions and modify them (enable - disable for example) ?
     

    Advertisement

  2. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #16
    Points:
    1,488
    Posts:
    6,701
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    6,701
    9,403
    1,488
    Male
    Software developer
    South West of England
    You can't programmatically change an app's permissions, this would a security risk. The permissions are only configured through the manifest, and confirmed with the user at install time.
     
    scary alien likes this.

Share This Page

Loading...