Revert "Combine privacy guard and AppOps to use it kinda like Permission management"

This reverts commit d9b5170863c328924675545566bd1f96b575738f.

Change-Id: Ibae154a234b4e761d57fd2bf225fd355b68f8978
(cherry picked from commit 16717c820fd86ff1796664d8a9ee4c8c3ab5cb4e)

Conflicts:
	res/values/strings.xml
Make AppOps accessible again (and awesome)

I7405f1e8639ca04cc2d7edac144f1738d13dc59f AppOps: Enable App Ops under security setting.
I32183d77b88c326168557444a445765b5a69de6f AppOps: Add more operations in app ops settings.
I7405f1e8639ca04cc2d7edac144f1738d13dc59f AppOps: Enable App Ops under security setting
Ia27737155c33e934df9a2a1fcff88379240fd096 [1/2] AppOps: Show allowed/ignored counts
Ic739519cb9df9d2c67d65e3572a119b4d55145f0 [1/2] AppOps: Add alarm wakeup op

Change-Id: Ic3c15424adffe43a2c38eb48d064b861dd9f4916
(cherry picked from commit cd2de7f5708ccc3a1e271b7231467e0de445cdbd)

Conflicts:
	res/values/cm_arrays.xml
privacy guard: changes part 1

the new cm implementation from our privacy guard is not the best.
Some changes we needd to do next week. For first give back the ability
to filter critical apps + do not show apps without any permissions
to do
- enable only the critical permissions the app is using
- add another active icon to notify the user if he modiefied another permission then the default ones
- add ability to disable notifications

Change-Id: I38207cb2639a2dc7f56bdce4ba2b9c4d325efe4a
(cherry picked from commit 4ba5d1557096427e5e371ca236744d4fee91d73d)
Settings: Privacy Guard part 2 (2/2)

Current implementation does not really merge both awesome features
appops and privacy guard. As well it is from UX perspective too complicated

So this commits changes:

- Move int array to logical correct place AppOpsManager
- Switch only the privacy guard permissions which the app
  really requests and not all...this irritates the user
- give support for custom permission set and reflect this state
  with an icon in notification and pgm
- add pack filterpermission feature due that user mainly are interested
  in the apps which use critical personal data
- permit by default as well writing off personal data
- do not show apps where either permissions are not changeable due
  off appops or apps which do not have permissions at all
- ability to hide pg notification
- remove pg checkbox in InstalledAppdetails and add a button to
  modify appops. Button is disabled if either the app does not have
  permissions or appops does not support it. As well for platform
  certificate apps
- add on appops detail screen reset and privacy guard button to quick
  change all states
- rework of the complete dialog handling in pgm and add several dialogs
- move all notify icon for pgm and notification to frameworks base
- and a lot more minor fixes and fc fixes

cheers

PatchSet:
- correct privacy guard filter logic
- add pgm map
- add status icons.....PGM shows either off/partly enabled/enabled
  in addition to it other set permissions shows a red plus sign on
  the top right corner of the PGM icon on all states
- tapping on PGM and menu pgm button on detail appops screen turns on/off
  only PGM permissions to be more consistent
- some minor fixes

PatchSet:
- remove permanent appops filter in pgm
- add hint on appops detail screen if no permission can be set

PatchSet:
- save listview state when calling another activity and going
  back

Change-Id: Iec35fc58e16ce2eb750b265d4187b5891a79d6e5
(cherry picked from commit cc35c9b7df774716743ffa4a41daf86d60921090)
suspend actions (2/2) && wakelock blocker (2/2)

Change-Id: I2e810be41a4d498486c565799d0476c35b22b27c
(cherry picked from commit f5a2d744a2f1bbc949b22f041bf8ec8185b90765)
Settings: Security: implement a pin keypad shuffler [2/2]

this is to further prevent people using the tablet guessing your pin based on fingerprints left on the screen
example of the expected outcome - https://www.dropbox.com/sh/r3xb2q53ksaqni9/Oz1Eu8Dm7O

PatchSet:
- fix checkbox was wrong assigned
- enable only for PIN Password lock
- small cleanup of old code

PatchSet:
- cleanup

PatchSet:
- add modes.....disabled/always/on request

Change-Id: I7e485827f6d62ee239015cfa96f2a20169d28486
(cherry picked from commit 9e3b3c70b421c960927ce2fae8a79a3e0e259ff0)

Conflicts:
	res/values/cm_arrays.xml
Pie: Add master switch to disable Pie (2/2)

Change-Id: I45adfa089c3802721118f04fd26a0cb24e745c88
(cherry picked from commit 4b64308338d169951d6173304a35a8669b860d1d)

Conflicts:
	res/values/strings.xml
add times for fullscreen statusbar timeout and active display

Change-Id: I68af68200b86d3e9af4eadd9b713090e797c47fb
(cherry picked from commit 3369062becc50b63919c031673d7e3e48162a0ec)
Derp