PackageManager: Let system-defined permissions take precedence over settings

If a permission was already present in the device's settings due to having
no prior system definition, and the system tried to take it over
(after a version upgrade, for example), it'd fail, since the saved
value would clobber the one previously read from the permissions XML.

This breaks system-behavior changes (gid grants, in particular) unless
the user performs a factory reset after upgrading, which isn't acceptable.

Change-Id: If2e44110f6db735ad29cdf1086e814bd1299e290
Fix certain setting writes being incorrectly skipped.

If a value that previously had a very long value (over the 500 char
threshold) is now set to null, isRedundantSetValue would incorrectly
return true even though the value was changed.

Change-Id: Ia5304743024ec01024be98aa51ed260d38caf93c
platform: Fix the gid for the theme manager service

It was mismatched with fs_config, resulting in attribution of the
"-1" gid

Change-Id: Ia6d55af0b39f659da2965f9bc0bda0df5c775ba4
Revert "Increase the buffer"

This reverts commit a3e7697d8a4659d0142b622db68623705499aa00.
Revert "frameworks/base: Increase Zygote preload GC threshold to half the heapgrowthlimit."

This reverts commit 7bce1ede4b9370cb160900a4c28ab6942d141a17.
Notification Shade: add boost hints to onTouchEvent override

PS2: rebase/fix merge conflicts

-VanirAOSP

Change-Id: I5ab5d5a5cc351da5ea3e1dda0d1aba77913a6dd7

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelView.java
Halo: selectively add boost hints

boost only at the start of moving the halo for both reversed and regular
interactions.  Also boost for launching tasks.

-VanirAOSP

Change-Id: I910fa0b13205f80c84894f252ed3668f887d4fed

Conflicts:
	packages/SystemUI/src/com/android/systemui/statusbar/halo/Halo.java
PA Pie : Add SPN and Custom Carrier Label