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
Anonymous user stats

Original code by CM, AOKP

Change-Id: Ib8ce18b8c20274a978e29fd42b540af37c90ec28
Introduce some helper functions
Add LCD density setting

Change-Id: I3d55615127cc735ea0443d519520d0cb6cfbfb38
Add adfree setting
Switch to new Superuser

Change-Id: I9d91392ad6fbc9953d19059ab59b91d214c00e0c
Fix scrollbars appearing out of place in Superuser.

Change-Id: Ia206623716192e479901c02cf94de84a29e0479e
SECURITY FIX: Fix package uids being reused

Fix package uids being reused between uninstall and reinstall of different
packages.  Policies for older packages were being granted to the newly
installed package that got the recyled uid.

Change-Id: I6c74cf6762e8da10e09d5cf5d94e9f826e47f24d