From 5f6c901ad062cd7d88db09b555e28ee354ca66c6 Mon Sep 17 00:00:00 2001 From: Yorke Lee Date: Fri, 24 Jul 2015 12:27:46 -0700 Subject: Protect against lack of WRITE_SYSTEM_SETTINGS AppOp Guard the following entry points with checks against the AppOp 1) Launch of SoundSettingsFragment Fallback: Send to system sound settings instead 2) onResume of SoundSettingsFragment (this can happen if the AppOp is toggled by the user in the background) Fallback: Return to main Dialer settings instead 3) Toggling of various perferences (this can happen in monkey tests) Fallback: Show toast, ignore settings chance Bug: 22660372 Change-Id: Ief5d74166d35a9718ea664f378f6930e777f2923 --- res/values/ids.xml | 1 + res/values/strings.xml | 3 +++ 2 files changed, 4 insertions(+) (limited to 'res/values') diff --git a/res/values/ids.xml b/res/values/ids.xml index e2f0ff593..d8f4aa877 100644 --- a/res/values/ids.xml +++ b/res/values/ids.xml @@ -17,4 +17,5 @@ + diff --git a/res/values/strings.xml b/res/values/strings.xml index eec9b0ca7..5e2476db0 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -813,4 +813,7 @@ To place a call,\n turn on the Phone permission. + + + Phone app does not have permission to write to system settings. -- cgit v1.2.3