Squashed commit of the theme engine support.

Updated 4.2 support for the old T-Mobile theme engine, as usual
needs the provider and switcher apps installed as well.

I'm finally dropping the 400+ commit history on this, since everybody
else keeps picking it up from CM as a single patch anyway... But
for the record, nothing of this would be possible without Josh, Ed,
and the rest of the TMo guys who wrote and maintained it until 2.2:

amit chabra <amit.chabra@t-mobile.com>
Amit Kohli <amit.kohli@t-mobile.com>
Chris Cogar <chriscogar@t-mobile.com>
Dirk Sigurdson <dirk.sigurdson@t-mobile.com>
Ed Carrigan <edward.carrigan@t-mobile.com>
Gaurav Sharma <gaurav.sharma3@t-mobile.com>
Hui Feng <hui.feng@t-mobile.com>
John Ritz <john.ritz1@t-mobile.com>
Josh Guilfoyle <josh.guilfoyle@t-mobile.com>
Mark Roberts <mark.roberts48@t-mobile.com>
Pankaj Kumar <Pankaj.kumar6@t-mobile.com>
Samuel Cheung <samuel.cheung@t-mobile.com>
Sergey Ten <sergey.ten6@t-mobile.com>

Change-Id: I7148d51be48f28a2dc4bdf9ec9018f04b268ffc4

Conflicts:

	packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java

Conflicts:
	media/java/android/media/RingtoneManager.java
	policy/src/com/android/internal/policy/impl/GlobalActions.java
	services/java/com/android/server/NotificationManagerService.java
	services/java/com/android/server/wm/WindowManagerService.java

 Author:    Ricardo Cerqueira <cyanogenmod@cerqueira.org>
 Changes to be committed:
	modified:   Android.mk
	modified:   core/java/android/app/ActivityManager.java
	modified:   core/java/android/app/ActivityThread.java
	modified:   core/java/android/app/ApplicationPackageManager.java
	modified:   core/java/android/app/ContextImpl.java
	modified:   core/java/android/content/Intent.java
	modified:   core/java/android/content/SyncManager.java
	modified:   core/java/android/content/pm/ActivityInfo.java
	modified:   core/java/android/content/pm/ApplicationInfo.java
	new file:   core/java/android/content/pm/BaseThemeInfo.java
	modified:   core/java/android/content/pm/IPackageManager.aidl
	modified:   core/java/android/content/pm/PackageInfo.java
	modified:   core/java/android/content/pm/PackageManager.java
	modified:   core/java/android/content/pm/PackageParser.java
	new file:   core/java/android/content/pm/ThemeInfo.aidl
	new file:   core/java/android/content/pm/ThemeInfo.java
	modified:   core/java/android/content/res/AssetManager.java
	modified:   core/java/android/content/res/CompatibilityInfo.java
	modified:   core/java/android/content/res/Configuration.java
	new file:   core/java/android/content/res/CustomTheme.java
	new file:   core/java/android/content/res/PackageRedirectionMap.aidl
	new file:   core/java/android/content/res/PackageRedirectionMap.java
	modified:   core/java/android/content/res/Resources.java
	modified:   core/java/android/os/SystemProperties.java
	new file:   core/java/com/android/internal/app/IAssetRedirectionManager.aidl
	new file:   core/java/com/android/internal/app/ThemeUtils.java
	modified:   core/java/com/android/internal/os/ZygoteInit.java
	modified:   core/jni/Android.mk
	modified:   core/jni/AndroidRuntime.cpp
	modified:   core/jni/android_util_AssetManager.cpp
	new file:   core/jni/android_util_PackageRedirectionMap.cpp
	modified:   core/res/AndroidManifest.xml
	modified:   data/etc/platform.xml
	modified:   include/androidfw/AssetManager.h
	new file:   include/androidfw/PackageRedirectionMap.h
	modified:   include/androidfw/ResourceTypes.h
	new file:   include/androidfw/ZipEntry.h
	new file:   include/androidfw/ZipFile.h
	modified:   libs/androidfw/Android.mk
	modified:   libs/androidfw/AssetManager.cpp
	new file:   libs/androidfw/PackageRedirectionMap.cpp
	modified:   libs/androidfw/ResourceTypes.cpp
	modified:   media/java/android/media/AudioService.java
	modified:   media/java/android/media/Ringtone.java
	modified:   media/java/android/media/RingtoneManager.java
	modified:   packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
	modified:   packages/SystemUI/res/layout/status_bar.xml
	modified:   packages/SystemUI/src/com/android/systemui/SystemUI.java
	modified:   packages/SystemUI/src/com/android/systemui/SystemUIService.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/BaseStatusBar.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/NotificationData.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/StatusBarIconView.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBarView.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarWindowView.java
	modified:   packages/SystemUI/src/com/android/systemui/statusbar/tablet/TabletStatusBar.java
	modified:   policy/src/com/android/internal/policy/impl/GlobalActions.java
	modified:   policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
	new file:   services/java/com/android/server/AppsLaunchFailureReceiver.java
	new file:   services/java/com/android/server/AssetRedirectionManagerService.java
	modified:   services/java/com/android/server/DeviceStorageMonitorService.java
	modified:   services/java/com/android/server/InputMethodManagerService.java
	modified:   services/java/com/android/server/NotificationManagerService.java
	modified:   services/java/com/android/server/SystemServer.java
	modified:   services/java/com/android/server/ThrottleService.java
	modified:   services/java/com/android/server/UiModeManagerService.java
	modified:   services/java/com/android/server/am/ActivityManagerService.java
	modified:   services/java/com/android/server/connectivity/Tethering.java
	modified:   services/java/com/android/server/pm/PackageManagerService.java
	modified:   services/java/com/android/server/pm/Settings.java
	modified:   services/java/com/android/server/wm/WindowManagerService.java
	modified:   test-runner/src/android/test/mock/MockPackageManager.java
	modified:   tools/aapt/Bundle.h
	modified:   tools/aapt/Main.cpp
	modified:   tools/aapt/ResourceTable.cpp