Framework-res: Add and resize MDPI drawables
Merge pull request #3 from NiharG15/revolt2

Framework-res: Add and resize MDPI drawables
Frameworks: Customizable Softkeys

Port forward from jb branch from SteveSpear

This allows enabling, and setting of sort and long press options
for softkeys.

Basiclly this catches the keycode in the PhoneWindowManager
before it is passed to be handled.

That being said it will obviously have the same effect on the navbar
since we just simulate those keys being pressed. To avoid this and
leave an option for a stock feel I basiclly have an if statement that
revolves around the enable checkbox in rc, which navbar devices wont
have access to. This is different from how cm did it but I think it
does a better job at preserving the stock behaviors if that is desired.

Also unlike CM I gave the all the buttons the ability to change both soft
and long press in true AOKP fashion. I can only test the short presses with
my navbar so long press it untested.

Change-Id: I90ada8e245d5a9e3eb7bc209ca239a23216ad2c7

Conflicts:

	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java

Conflicts:
	policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
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
Audio: Fix abnormal keytone playback during silent mode changing

Change-Id: Icfc4003c9756b3c33578c137e59dc4a2b4f25647
Author: Chenyang Du <chenyang.du@intel.com>
Signed-off-by: Ertao Zhao <ertaox.zhao@intel.com>
Signed-off-by: Shuo Gao <shuo.gao@intel.com>
Signed-off-by: Bruce Beare <bruce.j.beare@intel.com>
Signed-off-by: Jack Ren <jack.ren@intel.com>
Author-tracking-BZ: 19084 4898
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
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
set default to LONG_PRESS_HOME_RECENT_SYSTEM_UI
Merge remote-tracking branch 'revolt/revolt2' into revolt2
Merge "Revert "framework: Privacy Guard"" into cm-10.2
Conflicts:
	core/java/android/app/ApplicationPackageManager.java
	core/java/android/provider/Settings.java
	core/res/res/drawable-hdpi/stat_notify_privacy_guard.png
	core/res/res/drawable-mdpi/stat_notify_privacy_guard.png
	core/res/res/drawable-xhdpi/stat_notify_privacy_guard.png
	core/res/res/drawable-xxhdpi/stat_notify_privacy_guard.png
	core/res/res/values/cm_strings.xml
	core/res/res/values/symbols.xml
	services/java/com/android/server/pm/Settings.java
Merge "Privacy Guard : Reimplement backed by AppOps" into cm-10.2
Conflicts:
	core/res/res/drawable-hdpi/stat_notify_privacy_guard.png
	core/res/res/drawable-mdpi/stat_notify_privacy_guard.png
	core/res/res/drawable-xhdpi/stat_notify_privacy_guard.png
	core/res/res/drawable-xxhdpi/stat_notify_privacy_guard.png
	core/res/res/values/cm_strings.xml
	services/java/com/android/server/pm/PackageManagerService.java
fix merge
make the background of the power widgets transparent like the brightness slider
Moar Batteries :)

Change-Id: I45149c7501cdbd07749f68fd5b7250fcad0d6b70

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/policy/SbBatteryController.java