CM Privacy Guard (2/2)

settings: Privacy Guard support

 * Add toggle to InstalledAppDetails to enable/disable privacy guard flag on
   a per-application basis.
 * Add toggle to enable privacy guard by default for applications.

Change-Id: If03aa5319c520b6c4a78887f0f46ef1443ddaa83

Conflicts:
	res/layout/installed_app_details.xml
	res/values/cm_strings.xml
	res/xml/security_settings_app_cyanogenmod.xml
	src/com/android/settings/SecuritySettings.java
	src/com/android/settings/applications/InstalledAppDetails.java

Remove sms security, we don't want it.

Change-Id: I44e38698986ea6bed960ea3407e9132b1d922728

privacy guard: Fix crash when uninstalling an app

 * Don't try to update the privacy guard flag while refreshing after an
   uninstall since the PM will throw an exception at us.

Change-Id: Idadb99fefc2861e871f6206b08c844dda742fa68

Add missing string

Change-Id: I499dfaa64fa480293aef1d232160850d7c9112a6

Syntax derp

Change-Id: I74e5b1d8796193d295798b12736b469edc1eb326
Merge pull request #49 from linuxman94/privacyguard

CM Privacy Guard (2/2)
Settings: Introduce Privacy Guard Manager

Due that on the one hand a lot user are not familiar
with permissions and how to read them and on the
other user want to have a faster easy access to
setup privacy guard for several apps this small
manager assist the user to setup.

Privacy Guard Manager shows a list off all installed apps
Per default it shows only user apps which have critical
permissions privacy guard can protect.
The user can optional show in the list as well all system apps
or turn off the filter to show all apps undependent of the
permission the app has. To activate privacy guard for an
app a simple click on the entry activates it so that the user
can go fast trough the list. Longpress opens app detail page.
Initial help dialog tells the user how to use it.

Due the filter user who are unfimiliar with permissions can
fast see which apps are effected without deeper knowledge

cheers

SlimRoms

PatchSet3:
- go inline with AOSP style
- move PrivacyGuard by default into manager
- change behaviour off active icons

PatchSet4:
- change app icon size to 36dip

PatchSet5:
- string change

PatchSet6:
- add reset option to disable privacy guard for
  all shown apps in the list

PatchSet7:
- Cleaned up the intro dialog a bit.

PatchSet8+9:
- cleanup
- fix alignment of top checkbox

PatchSet10:
- fix permission filter

PatchSet11:
- improve icon loading

Change-Id: I6bc886393bf90f8daed92b66d5fee1ce9e1accd0

Conflicts:
	proguard.flags
	res/values/cm_strings.xml
	src/com/android/settings/SecuritySettings.java

Signed-off-by: Evan Anderson <evan1124@gmail.com>

Remove cm_strings

Change-Id: I0b59c96ead635e557e7b268261c137715a023191

Signed-off-by: Evan Anderson <evan1124@gmail.com>

Fix some derps from merge

Change-Id: I6fa3e720738db5f3fb08fa2f60276d496ecd4f6b

Signed-off-by: Evan Anderson <evan1124@gmail.com>

Missing bracket

Change-Id: I12b6499d4e9c24bcf6f6e205c3da8f4d0976b0b1
Signed-off-by: Evan Anderson <evan1124@gmail.com>
Add CM's app security settings

Needed this for privacy guard manager

Change-Id: Idd8609515ca0ae1c76445892b76ab58650f9b3b0
Signed-off-by: Evan Anderson <evan1124@gmail.com>

oops

Change-Id: Id40211ce0245e917a8e02be325dc4b72953c588b
Signed-off-by: Evan Anderson <evan1124@gmail.com>

Handle cancellation of the 'enabling PrivacyGuard' alert box.

I noticed that the option could remain ticked but not actually enabled
if the alert box is cancelled.

Change-Id: If9a4e88641a5e4283d6ea16c17ca4461841580e3

The real fix

Change-Id: I858528589c2c918fbc2e02c9c9a1aa2cf3855916
Signed-off-by: Evan Anderson <evan1124@gmail.com>
Fix derp.

Change-Id: I2766f4c89460c967e32349be008e38b3600b7e76
Merge remote-tracking branch 'github/jellybean' into HEAD

Conflicts:
	res/values/strings.xml

Change-Id: Ia69dbca1510b41ed72fef00f1b5f82b83412214d