Extra Android permissions always set

3 posts, 1 answers
  1. James
    James avatar
    5 posts
    Member since:
    May 2013

    Posted 10 Jul 2014 Link to this post

    The APK built by the cloud service has more required permissions than I set in my project settings. Here's the relevant section of my .abproject file (verified it's included in the zip):

    ​"AndroidPermissions": [
        "android.permission.ACCESS_COARSE_LOCATION",
        "android.permission.ACCESS_FINE_LOCATION",
        "android.permission.ACCESS_LOCATION_EXTRA_COMMANDS",
        "android.permission.ACCESS_NETWORK_STATE",
        "android.permission.INTERNET"
      ],


    And here's the set of permissions in AndroidManifest.xml in the built apk:
    android.permission.ACCESS_COARSE_LOCATION
    android.permission.ACCESS_FINE_LOCATION
    android.permission.ACCESS_LOCATION_EXTRA_COMMANDS
    android.permission.ACCESS_NETWORK_STATE
    android.permission.INTERNET
    android.permission.WRITE_EXTERNAL_STORAGE
    android.permission.READ_CONTACTS
    android.permission.WRITE_CONTACTS
    android.permission.GET_ACCOUNTS
    android.permission.RECORD_AUDIO
    android.permission.MODIFY_AUDIO_SETTINGS
    android.permission.RECORD_VIDEO
    android.permission.VIBRATE
  2. Answer
    Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 10 Jul 2014 Link to this post

    Hi James,

    These permissions are probably required by the Apache Cordova plugins used in your app.Please note that some plugins might be explicitly setting hardware permissions for your app. In order to check which ones are affecting your app, you need to examine the plugin.xml for each enabled/included plugin and look for any <uses-permission> modifications.

    Here is a small list of commonly used plugins and their permission requirements:

    • Battery: Does not set additional permissions.
    • Camera: Sets WRITE_EXTERNAL_STORAGE
    • Capture: Sets RECORD_AUDIO, RECORD_VIDEO, WRITE_EXTERNAL_STORAGE
    • Device: Does not set additional permissions.
    • Device Orientation: Sets Access_coarse_location & Access_fine_location.
    • File: Sets Write_external_storage
    • Globalization: Does not set additional permissions.
    • InAppBrowser: Does not set additional permissions.
    • Media: Sets Record_audio, Modify_audio_settings, write_external_storage, read_phone_state
    • Network Information:  access_network_state.
    • Notification: Does not set additional permissions.
    • SplashScreen - Does not set additional permissions.
    • StatusBar: Does not set additional permissions.
    • Vibration: vibrate.
    • PushPlugin: Sets access_network_state, get_accounts, wake_lock, vibrate.
    • Telerik Analytics: Sets internet, access_network_State.

    You can also examine the hardware permissions descriptors in this table.

    Regards,
    Tina Stancheva
    Telerik
     

    Share what you think about AppBuilder and Telerik Platform with us in our feedback portal, so we can become even better!

     
  3. James
    James avatar
    5 posts
    Member since:
    May 2013

    Posted 10 Jul 2014 Link to this post

    Thanks Tina. Removing unused plugins solved the issue.
Back to Top