add sanity check for full battery level (no 103%)
Based on these commits:
https://github.com/Quarx2k/android_frameworks_base/commit/e8d2b7a167738457066142adc9c7d1bfd09b6902
https://github.com/CyanogenMod/android_frameworks_base/commit/44c99a0910d2d7ff5a3f0c9631f9bddf0eabaeaf
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
Code Cleaning
Merge pull request #86 from Anu6is/cleanup

Code Cleaning
StatusBar: Scale date text by 1dp.

looks better on 2 line view.
Merge pull request #83 from alteredlikeness/jb43-legacy1

add sanity check for full battery level (no 103%)
Merge branch 'jb43' of https://github.com/ParanoidAndroid/android_frameworks_base into jb43-legacy

Conflicts:
	packages/SystemUI/res/values/dimens.xml

Change-Id: Iccaa8dddbaf3ed5865c13c2838490aa0ff2cb738
PhoneWindowManager: Hardware key handling fixes and cleanup

-   Call cancelPreloadRecentApps for long presses and double taps of the home
    key at the right time based on the assigned actions.
    (Reverted Ibd16ff07b9910605c95180b54040f3e2b78939cb as the issue is fixed)
-   Do not allow any menu key events through to apps if
    mPressOnMenuBehavior is not KEY_ACTION_MENU.
-   Don't cancelPreloadRecentApps when menu key is released after a long press.
    (Reverted Idf1d27aa725547e0ddc44905e27da6c1b4540fab as the issue is fixed)
-   For the menu, app switch and assist keys don't cancelPreloadRecentApps on
    long press if the long press has no action assigned to it.

Patch Set 2: -  Fixed not cancelling preload on long press of home when double
                tap is bound to recent apps.
             -  Reduced delta against AOSP.
Patch Set 3: -  Do not perform long press action when key continues to be held
                down after a double tap on home.

Change-Id: I3cc8f9528e5dbd3e0b78308b03440abd9d9351f6
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
Merge branch 'jb43-legacy' of https://github.com/ParanoidAndroid/android_frameworks_base into PA