wifi: Confirm user permission before toggling wifi

Check user permissions before enabling/disabling wifi.

Change-Id: I1ddae6e47f42b6d3fc831c2c135ece75cf9e935d
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
AppOps: Add Bluetooth enable control into AppOps

Check user permission before enabling bluetooth.

Change-Id: I9af341157df05104d3c5a52874538eefdbe14c4b
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.

Change-Id: Ia5b73e6b6a2c48b608a0ef1d199429c6c0e21f75
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.

Change-Id: Ie8488ec1b4683c8617ca569cfc858709f0d35ba2
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
AppOps: Add nfc enable control into AppOps.

Check user permission before enabling nfc.

Change-Id: Ia84e33c299e4fdecfd66ee933d9e7d37ed29c340
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.

Change-Id: I19ca4757884ba31a05b403a092796cc03042d31c
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
AppOps: Add data connect control into AppOps

Check user permission before enabling/disabling mobile data.

Change-Id: I6e1895b130788dfccbc0a8523dadf1559b698988
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.

Change-Id: I7d451c85fcf80a7b2142fe3acf3c464717e355b1
Signed-off-by: Chet Kener <Cl3Kener@gmail.com>
Added validity check for Pointer Index

Checking if the pointer index is valid before querying for X & Y
coordinates. This is done to avoid IllegalArgumentException.

Change-Id: Ic7f3022d33c313a0bfe8b55c9bc89019b33d23b7
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>
Frameworks: Add several Slim helper classes and constants back

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