From f6ced59d086a755d6f720600181c023c29d202ca Mon Sep 17 00:00:00 2001 From: zafir Date: Mon, 29 Jun 2015 00:08:22 -0500 Subject: Minimum viable Android M runtime permissions handling for H. Creates new activity for permissions handling: both checking for permissions and handling error condition when critical permissions are not present. The reason for creating a new activity is so the app does not attempt to continue executing OnCreate, OnResume etc, which opens the camera while the dialogs are showing. This should not slow the app down because the permissions activity will only run when a) the first time the app has insufficient permissions and b) when a critical permission is missing and the app needs to shut down. Bug: 21273463 CRs-Fixed: 1019847 Change-Id: I603acfb3057ba26b9cfa7935eb4cb24b5d547cb5 (cherry picked from commit ad44cda82fe6ec5ee090115129223c6314f9e1bb) --- AndroidManifest.xml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'AndroidManifest.xml') diff --git a/AndroidManifest.xml b/AndroidManifest.xml index ac727e2a2..12a86bb9b 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -20,7 +20,6 @@ - @@ -83,6 +82,15 @@ android:resource="@layout/keyguard_widget" /> + + + +