Enhance AppOps using Slim's Version

Revert "AppOps: Check user permission before audio recording."

This reverts commit f9995de31ff822ad19b3f3b24bbd5ff6f2a80be4.

Revert "AppOps: add Chinese support for AppOps popup dialog"

This reverts commit 63d9de070b44e4e04d735b8ba9764cdd63855449.

Revert "AppOps: add permission check when enabing nfc"

This reverts commit 3ec332c1b8a684442df833f3f747dae4504b5248.

Revert "AppOps: Squashed commit of Appops enhancements"

This reverts commit 1c6c2eda8c614f1514297a653d21cd23c5011a29.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
	core/res/res/values/arrays.xml
	core/res/res/values/config.xml
	core/res/res/values/strings.xml

Revert "AppOpsService: Add MODE_ASK support to AppOps."

This reverts commit 8f93cabd315d0a26095de920bdc90099ec7b806d.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
	core/res/res/values/config.xml
	core/res/res/values/strings.xml

Privacy Guard Slim version (1/2)

Re-implements slims ehanced privacy guard from 4.3

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
	core/res/res/values/custom_strings.xml
	core/res/res/values/custom_symbols.xml

privacy guard: allow as well image resources for light background

allow to fetch icons which fit on light background if needed. (Settings eg and
later other security features)

Change-Id: I6445bf0fc1a05718af01d83e29fc6d01b8f11c6c
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

fix resource naming derp

sorry

Change-Id: Ib9c120c1400840881c6122fbe99eea619cb6b7fb
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

FB: fix missing hides

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

update api for Privacy Guard

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

update api for Privacy Guard

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

update api

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

AppOps: add permission check when enabing nfc

Add appops permission check for enable function.

Change-Id: Ie98be3e7b3cd9e72b0ad12cc1634d9cd1869a66c
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

AppOps: Check user permission before audio recording.

Add permission check before audio recording.

Change-Id: I55c8397df3169e031bba951cf180fa8c5f4c4ce0

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
media/java/android/media/AudioRecord.java

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

AppOpsService: Add MODE_ASK support to AppOps.

Add support for new mode(MODE_ASK) in AppOpsService to show a permission
dialog box to user to confirm user permission before allowing or ignoring
that operation.
All strict operations (defined in AppOpsManager) are going to be in
MODE_ASK by default.
Operations will be moved to MODE_ALLOWED or MODE_IGNORED according to
user's choice.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Conflicts:
	core/res/res/values/custom_config.xml
	core/res/res/values/strings.xml

AppOps: Add support for AppOps policy file

Add support to read AppOps policy file.
AppOps policy file can be used to configure Ops default policy.

Change-Id: Idb4e3501ff9f58e491b06e74152342aa9574afbf
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

wifi: Confirm user permission before toggling wifi

Check user permissions before enabling/disabling wifi.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

AppOps: Add Bluetooth enable control into AppOps

Check user permission before enabling bluetooth.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

AppOps: Fix mms control in AppOps.

Add support to check user permission before sending MMS.
Also seperate out SMS operations from MMS operations.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

AppOps: Add BOOT_COMPLETED operation

Add BOOT_COMPLETED operation in AppOps.

This operation is used to allow user to control auto start of
applications and services at bootup.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

AppOps: Add nfc enable control into AppOps.

Check user permission before enabling nfc.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

AppOps: change MODE_ASK to ALLOWED for receiving sms

SMS is received via broadcast. The operation checking doesn't
popup dialog to users because of broadcast ANR issue. So if the
mode is MODE_ASK and there is no popup dialog, then sms will be
ignored forever.

Meanwhile, receiving sms operation check is not the requirement
of appops. So one solution is to modify default mode for this
operation from MODE_ASK to ALLOWED and doesn't give user the
chance to modify it.

Change-Id: I2b6f90f13d3b2576bcbc6587ab2c6efa47c8dd52
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

AppOPs: add delete ops for some operations

Delete operation is required to be seprated from modify
operation. Add delete ops for sms, mms, contacts, and
call log.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

AppOps: Add data connect control into AppOps

Check user permission before enabling/disabling mobile data.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

AppOps: change "modify" to "write" in popup dialog

change "modify" to "write" in popup dialog as request.

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

PrivacyGuard : expand array for additional AppOps

Change-Id: I9f91a38a1813bc0c27074c4d6d9a325e57699a1b
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Fixes

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>

Remove Duplicate Strings

Signed-off-by: Chet Kener <Cl3Kener@gmail.com>