Skip to main content
Inspiring
October 29, 2016
Answered

New Android permissions model for Android 6 in AIR SDK 24. Is there a table which lists all possible classes that can ask for Android permissions?

  • October 29, 2016
  • 2 replies
  • 4593 views

Hello, I've read that there's a new API in AIR 24 to ask for permissions in Android 6.0 instead on just having them in the app descriptor. But the Release Notes for AIR SDK 24 only has an example for Camera permissions:

http://fpdownload.macromedia.com/pub/labs/flashruntimes/shared/air24_flashplayer24_releasenotes.pdf

So how do I ask for permissions in an app that needs the following?

<uses-permission android:name="android.permission.INTERNET"/>

<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>

<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

<uses-permission android:name="android.permission.WAKE_LOCK"/>

<uses-permission android:name="android.permission.DISABLE_KEYGUARD"/>

What classes do I have to access to ask for those? Is there a complete list of classes that can ask for permissions?

Thanks and best regards.

This topic has been closed for replies.
Correct answer deesharm

Hi Octavio,

A complete list of classes is below that can ask for permissions using AIRSDK 24:

1. Camera

2. Microphone

3. GeoLocation

4. File

5. File reference

6. CameraUI

Permissions that you asked fall under normal permissions category. Normal Permissions do not pose much risk to the user's privacy or the device's operation. If an app declares in its manifest that it needs a normal permission, the system automatically grants the app that permission at install time.

Please let us know if you face any further problem.

Thanks,

Adobe AIR Team

2 replies

App runner KG
Known Participant
January 12, 2017

Hi, with air sdk 23/24 and Android 6.0 the App doesn't Show anymore the permissions. The Camera is not detected. Only if I switch on the permissions manually I can get the camera working. How to solve this?

Anki_AG_
Adobe Employee
Adobe Employee
January 12, 2017
App runner KG
Known Participant
January 12, 2017

I am using flash builder, not flash itself. The code is at the link is not working with flash builder

deesharm
Adobe Employee
deesharmCorrect answer
Adobe Employee
November 1, 2016

Hi Octavio,

A complete list of classes is below that can ask for permissions using AIRSDK 24:

1. Camera

2. Microphone

3. GeoLocation

4. File

5. File reference

6. CameraUI

Permissions that you asked fall under normal permissions category. Normal Permissions do not pose much risk to the user's privacy or the device's operation. If an app declares in its manifest that it needs a normal permission, the system automatically grants the app that permission at install time.

Please let us know if you face any further problem.

Thanks,

Adobe AIR Team

OMA2kAuthor
Inspiring
November 7, 2016

Thank you!!