OSDN Git Service

Minimum viable Android M runtime permissions handling for H.
authorzafir <zafir@google.com>
Mon, 29 Jun 2015 05:08:22 +0000 (00:08 -0500)
committerzafir <zafir@google.com>
Tue, 7 Jul 2015 01:20:51 +0000 (18:20 -0700)
commitad44cda82fe6ec5ee090115129223c6314f9e1bb
treec5d9c85d389b19b3ed7334c3d7149d5475202725
parentfd6f316adc5abfa071534642688bdf46f47a3925
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
Change-Id: I603acfb3057ba26b9cfa7935eb4cb24b5d547cb5
AndroidManifest.xml
res/values/strings.xml
src/com/android/camera/CameraActivity.java
src/com/android/camera/PermissionsActivity.java [new file with mode: 0644]
src/com/android/camera/settings/Keys.java