Recover apps with malformed certificates.

There was a window of time in Lollipop where we persisted certificates
after they had passed through a decode/encode cycle.  The well-written
OpenSSL library was liberal when decoding (allowing slightly malformed
certs to be parsed), but then strict when encoding, giving us
different bytes for effectively the same certificate.

A related libcore change (0c990ab4a90b8a5492a67b2b728ac9a4a1ccfa1b)
now returns the original bytes verbatim, fixing both pre-Lollipop
installs and installs after that change.

This change recovers any apps that had been installed during the
window of time described above by doing a one-time check to see if
the certs are effectively equal.

Bug: 18228011
Change-Id: Ib82bd6db718d0490d7a26c9c1014b7c8457a7f2d
Merge branch 'lollipop' of https://github.com/TeamHorizon/platform_frameworks_base into HEAD
Factor out preference-in-storage check to overridable method.

Change-Id: I2fff3192802f8a180330fda66388eda394334a5a
Add Profiles.

Change-Id: Id195de6f8c0b1cd08fc0c32b4347c7c97c347bb1
Hardware key custom rebinding (1/2)

Framework changes to allow rebinding of the actions performed on the
following key press events: Home long-press, home double-tap, menu press,
menu long-press, search press, search long-press, app-switch press and
app-switch long-press.

The available actions are: Nothing, open/close menu, recent apps
switcher, search assistant, voice search, in-app search, device sleep,
and launch camera.

Change-Id: I72c0d220a09d79230bfa299e0521ed693e5c25f1
Signed-off-by: iceandfire <arhamjamal@gmail.com>

Conflicts:
	core/java/android/provider/Settings.java
Profiles : Global actions (Power dialog)

Change-Id: I9c7c5440b7b893eafefcfb6421ab6e7fec7401df
SystemUI : Make battery percentage configurable

Change-Id: Ibfc0cf9c5a4efc13ecd3c3e99723bb2b717c50a7
Framework: Generic Blacklist support (4 of 5)

Change-Id: Id6c85c9a537713ec77d00deb7f7fe5a9150be2cd
base: Add blacklist provider permission

Change-Id: I4febc2c0aa1a690d607b2a459e2d60d30ecf5abf
JIRA: CYAN-3727
Issue: https://jira.cyanogenmod.org/browse/CYAN-3727
Signed-off-by: Jorge Ruesga <jorge@ruesga.com>
GlobalActions: public CharSequence getLabelForAccessibility

Change-Id: Ia600163654c9486a09e0cc632d6c8a4e964edda0
Protected apps

Change-Id: Ic690387cd21fdfa09ef5fb19bd3de9305050cf6e
frameworks: add blacklist call logging (1/3)

Change-Id: Id3413a298ba1bdf2ecdcc256d02fda85c3221bb6
Signed-off-by: Roman Birg <roman@cyngn.com>
Profiles: Fix global action for profile

Change-Id: I29f568bf00a30131ceeae819654a8000d727713b
Treat default value that wasn't found as empty value.

Fixes http://code.google.com/p/android/issues/detail?id=33220

Change-Id: If22e8b245f688d922c168aa54c8acf743c0644d7
frameworks/base: support devices with SoftAp that don't require firmware reload

Partial forward port from ICS.
Original Change-Id: If2db6e8ce675c3214ce645231c7a354f41ea0cc6

Change-Id: Iacb2498ec0f567a0a7c4e0dbf9127b70f09223bd
SystemUI: add quick settings pull down with one finger

Logic is currently set to use 1/3 of right hand side of the statusbar to
trigger a quick settings quick pull down, quickly.

Change-Id: I3f536496f724f07d2419a5b2db5fa8f8261609e7
Signed-off-by: Roman Birg <roman@cyngn.com>
SystemUI: fix right hand side gestures on lockscreen

two finger quick pulldown was not accounting for being in the keyguard
adn was eating touch events when it shouldn't be.

Change-Id: I625d48a4002aaaf2d55d7efaed65d892ab7aa13c
Signed-off-by: Roman Birg <roman@cyngn.com>
Fix battery % always showing at < 100%

Change-Id: I9ce697e824e1f85becfd0e53519d3ae36fc65758
SystemUI: Fix data and activity overlay icons

This is just a temporary fix.
Better solution will be to use new vector format of drawables.

Change-Id: I2f27e5cedefefbf542fa9871d6dc125cb1420439
Signed-off-by: kecinzer <kecinzer@gmail.com>
SystemUI: Fix mobile data connection type hiding

* Hide mobile data connection type when WiFi is connected.

Change-Id: Id346bc0040436f2bfc7219445d0a3ba8000eea3b