Prevent factory reset for short passwords in CryptKeeper

Since patterns and passwords can't be shorter than 4
elements, we shouldn't count them against attempts to unlock
the device.  If we do, we risk resetting the device
due to stray input.

Bug: 18211475
Bug: 18273380

Change-Id: Ib329cd3383471483cda68bfac4278b17d0c09c57

Conflicts:
	src/com/android/settings/CryptKeeper.java

Conflicts:
	src/com/android/settings/CryptKeeper.java
Settings: add built-in superuser

This is a combination of 4 commits.
The first commit's message is:
Settings: built-in superuser

This is the 2nd commit message:

Settings: superuser: fix

This is the 3rd commit message:

Settings: superuser: fix proguard.flags

This is the 4th commit message:

Superuser fixes

Conflicts:
	Android.mk
	proguard.flags
	res/xml/settings_headers.xml

Signed-off-by: mv <michvett.mv@gmail.com>
AppOps: Improve listing of apps

* Consolidate into single category "Operations"
	(original implement in jb43 by  @drcmda)

* Always sort apps alphabetically
* Remove system apps

PS1: Initial implement
PS2: Update ops
PS3: Fix spacing
PS4: Fix duplicates
PS5: Add http://review.cyanogenmod.org/#/c/50139/ to fix misaligned
check boxes (credits to the author)
        & german translation

Change-Id: I9854212d52b30f16b8ca58e973400043339b8988
Signed-off-by: Evan Anderson <evan1124@gmail.com>
Signed-off-by: David Leppla-Weber <xD_e-mail@gmx.de>

Conflicts:
	src/com/android/settings/applications/AppOpsState.java

Signed-off-by: mv <michvett.mv@gmail.com>
AppOps: show all apps (also system apps)
Add new Settings category

Signed-off-by: mv <michvett.mv@gmail.com>

Conflicts:
	res/drawable-xhdpi/ic_settings_system.png
	res/values/mv_strings.xml
	res/xml/system_settings.xml

Conflicts:
	res/xml/settings_headers.xml
Settings: Bring back app ops

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>

Conflicts:
	AndroidManifest.xml
	res/values/pa_strings.xml

Conflicts:
	AndroidManifest.xml
	res/values/mv_strings.xml
	res/xml/settings_headers.xml

Signed-off-by: mv <michvett.mv@gmail.com>
Navigation bar custom height

Conflicts:
	res/values/ras_strings.xml
	res/xml/system_settings.xml

Signed-off-by: mv <michvett.mv@gmail.com>

Conflicts:
	res/values/mv_arrays.xml
	res/values/mv_strings.xml
	res/xml/system_settings.xml
Finally show extra settings (with navbar settings) and AppOps

to much drugs, correct own stupidness, d'oh

Signed-off-by: mv <michvett.mv@gmail.com>
Extra Settings: nicer icon
Revert "Settings: add built-in superuser"

This reverts commit 17d7169fa5b8f3acf02679258a19f3bf737b4484.
Start SuperSU from Development Settings

orig from SimpleAOSP
https://github.com/SimpleAOSP-Lollipop/platform_packages_apps_Settings/commit/10bdc1128067961810eb008a527441fb8e7a56b3
Battery_saver: add more threshold values
Navbar: custom height: add more values

Signed-off-by: mv <michvett.mv@gmail.com>

Conflicts:
	res/values/mv_arrays.xml
	res/values/mv_strings.xml
Settings: add Expanded desktop mode on top of built-in PolicyControls.

Change-Id: Ib673d278d23423fe6885c73f1eb3dd858633e5b6

Conflicts:
	res/values/cm_arrays.xml
	res/values/cm_strings.xml
Remove Extra Settings Category for now

This reverts commit 66337dd700852abeb8189e12dfce3999905bbe60.

Conflicts:
	res/values/mv_strings.xml
	res/xml/extra_settings.xml
Navigation Bar height: move to display settings
(!squash) Readd extra settings category

 This is a combination of 2 commits.
 The first commit's message is:

Readd extra settings category

 This is the 2nd commit message:

Add extra settings activity
Settings: add status bar brightness setting; extra settings little cleanup

Change-Id: I6e0343f5d1e1ec924f6393cb3eb94ee67f179aa6
Signed-off-by: Roman Birg <roman@cyngn.com>

Conflicts:
	res/values/cm_strings.xml
	res/xml/dashboard_categories.xml
Settings: add quick-quick settings pulldown setting

Change-Id: I986ea9d5e7037e58b1d185aba3daaa8fa7f6a9a7
Signed-off-by: Roman Birg <roman@cyngn.com>

Conflicts:
	res/values/cm_strings.xml
Add back a helper pref that holds a system setting.

Change-Id: I7d8978829bde1f1dd15bf59f464557f64aa07beb