OSDN Git Service

Bug: 22718745 Intents to 'draw over other apps' should go direct to the package's
authorBilly Lau <billylau@google.com>
Mon, 27 Jul 2015 11:57:07 +0000 (12:57 +0100)
committerBilly Lau <billylau@google.com>
Wed, 29 Jul 2015 22:04:57 +0000 (23:04 +0100)
commitfee785645b57c519a31ed403e60e8f76dcc8abbb
treee49c811994cd72fd8bbc94391b694cf839088a39
parente37e12321b125731dfff69240b6e49bd00de2a3c
Bug: 22718745 Intents to 'draw over other apps' should go direct to the package's
page instead of the top level one

Settings:
Added two activities to handle app-specific Intent when app invoke permission
management UI.

SettingsActivity:
Added two fragment classes to handle app-specific Intent when app invoke permission
management UI.

AndroidManifest.xml:
We handle both Intent to top level settings and app-specific management UI for
app ops protected permissions.

AppStateAppOpsBridge:
Added a new field to PermissionState to keep track of permission declared vs one
that is actually granted during install time.

AppState{Overlay/Usage/WriteSettings}Bridge:
Updated the fields affected by changes in PermissionState.

{DrawOverlay/UsageAccess/WriteSettings}Details:
Disabled the toggling of permission if the app did not declare for the asked
permission.

Change-Id: Ibf63e4d9a4fbf7899a93d2176abb1204c4f75557
AndroidManifest.xml
src/com/android/settings/Settings.java
src/com/android/settings/SettingsActivity.java
src/com/android/settings/applications/AppStateAppOpsBridge.java
src/com/android/settings/applications/AppStateOverlayBridge.java
src/com/android/settings/applications/AppStateUsageBridge.java
src/com/android/settings/applications/AppStateWriteSettingsBridge.java
src/com/android/settings/applications/DrawOverlayDetails.java
src/com/android/settings/applications/UsageAccessDetails.java
src/com/android/settings/applications/WriteSettingsDetails.java