Skip to main content
Inspiring
Oct 29, 2016 3:14 PM UTC
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?

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 is closed to new replies. Start a new post to keep the conversation going.
deesharm
deesharmCorrect answer
Adobe Employee
Nov 1, 2016 4:16 AM UTC

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

6 replies

App runner KG
Known Participant
Jan 12, 2017 7:56 AM UTC

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?

Translate
Anki_AG_
Adobe Employee
Adobe Employee
Jan 12, 2017 8:09 AM UTC

Please check Release Notes Flash Player 24 AIR 24 .

Translate
App runner KG
Known Participant
Jan 12, 2017 3:56 PM UTC

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

Translate
deesharm
Adobe Employee
deesharmCorrect answer
Adobe Employee
Nov 1, 2016 4:16 AM UTC

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

Translate
OMA2kAuthor
Inspiring
Nov 7, 2016 5:43 PM UTC

Thank you!!

Translate