[TIMOB-19375] Android: Android M new runtime permissions model
GitHub Issue | n/a |
---|---|
Type | Sub-task |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-10-08T02:38:07.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.1.0 |
Components | Android |
Labels | n/a |
Reporter | Chee Kiat Ng |
Assignee | Hieu Pham |
Created | 2015-08-19T04:48:52.000+0000 |
Updated | 2016-03-10T12:32:34.000+0000 |
Description
This preview introduces a new permissions model, where users can now directly manage app permissions at runtime. This model gives users improved visibility and control over permissions, while streamlining the installation and auto-update processes for app developers. Users can grant or revoke permissions individually for installed apps.
http://developer.android.com/preview/features/runtime-permissions.html
Check permissions for Android-M PR: https://github.com/appcelerator/titanium_mobile/pull/7183 Update appcompat libraries to 23.0.1: https://github.com/appcelerator/titanium_mobile/pull/7215
Merged PR - Update appcompat libraries to 23.0.1: https://github.com/appcelerator/titanium_mobile/pull/7215
[~fokkezb] [~bgrantges@appcelerator.com] FYI. This will be released with 5.1.0. For developers, Nexus 5, 6, 7, 9 and Player will get an upgrade next week, the rest of the devices wont get update until late 2015/earlty 2016.
Merged PR: https://github.com/appcelerator/titanium_mobile/pull/7183
Verified the implementation. *On android M the app asks for access if the permission model is implemented in the app. If not the app does nothing & the functionality which requires access does not work. *Tested using the test sample here : https://wiki.appcelerator.org/display/community/PRD+-+Parity+for+Android%2C+iOS+and+Windows+on+handling+of+permissions *If the permissions are revoked manually the app again requests them when relaunched. *Running the sample app on android version below android M runs the app normally without asking for any permission. Environment: Appc Studio : 4.4.0.201510231805 Ti SDK : 5.1.0.v20151026164636 Ti CLI : 5.0.5 Alloy : 1.7.18 MAC Yosemite : 10.10.5 Appc NPM : 4.2.1-6 Appc CLI : 5.1.0-38 Node: v0.10.37 Nexus 5 - Android 6.0