Skip to content

Commit

Permalink
Settings: Bring back app ops
Browse files Browse the repository at this point in the history
Google didn't expose app ops yet, but we want to.  Places the app ops fragment
under the System header in settings

Thanks @bigbrother1984 for the drawables

ps2: fix indents
ps3: really fix indents
ps4: fix parentActivity key name

Change-Id: I09ec8c0b6d3b681f6b008d140a93f8112814228a
Signed-off-by: Evan Anderson <evan1124@gmail.com>
  • Loading branch information
evan-a-a committed Nov 18, 2013
1 parent 0a54aff commit 54ad5ab
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion AndroidManifest.xml
Expand Up @@ -800,7 +800,8 @@

<activity android:name="Settings$AppOpsSummaryActivity"
android:label="@string/app_ops_settings"
android:taskAffinity=""
android:taskAffinity="com.android.settings"
android:parentActivityName="Settings"
android:excludeFromRecents="true" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
Binary file added res/drawable-hdpi/ic_app_ops.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-mdpi/ic_app_ops.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xhdpi/ic_app_ops.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added res/drawable-xxhdpi/ic_app_ops.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions res/values/pa_strings.xml
Expand Up @@ -24,6 +24,8 @@
<!--Lockscreen see through-->
<string name="see_through_title">See through</string>
<string name="see_through_summary">Shows the content behind your lockscreen. Your data may be visible to those around you</string>
<!--AppOps-->
<string name="appops_settings_title">App privacy</string>
<!--PA version-->
<string name="pa_version">ParanoidAndroid version</string>
<string name="pa_version_default">Unknown</string>
Expand Down
7 changes: 7 additions & 0 deletions res/xml/settings_headers.xml
Expand Up @@ -174,6 +174,13 @@
<header android:id="@+id/system_section"
android:title="@string/header_category_system" />

<!-- AppOps -->
<header
android:fragment="com.android.settings.applications.AppOpsSummary"
android:icon="@drawable/ic_app_ops"
android:title="@string/appops_settings_title"
android:id="@+id/appops_settings" />

<!-- Date & Time -->
<header
android:id="@+id/date_time_settings"
Expand Down

0 comments on commit 54ad5ab

Please sign in to comment.