PackageManager: Restrict system packages to protected storage

Don't allow packages signed with the platform key to be
installed into user (or app) controlled storage

(cherry-picked from 64fa8092090d067d78163b8ebce45baa1123ce9d
 with changed file path)

Patch set 2: Fix compile error due to changed function name

Change-Id: I7390b3bdf5289411f7a335c69635bed9f74bbfb3
SystemUI: Fix data activity overlay not being removed when data is disabled

If mobile data connection is disabled while there is active data
activity, the data activity overlay will not be removed and will
be stuck there. This patch fixes that.

Change-Id: Iaa22270ae4e149caf639c8213cd8989148d38635
HardwareRenderer: Make sure preserve_buffer Swap is set properly

Change-Id: I322c6bad79fa56b10488ef14fd02d12eaed52a76
frameworks/base: Increase the buffer size to hold the whole content of the file.

When we have more cpufreq steps and cpufreq's time_in_state stats file
can grow beyond 256.

This buffer size was not enough because the file has more than 300
characters. So it read part of the file and the parsing failed.
This runs from ActivityManager, so when the ActivityManager dies
framework reboots.Increasing the buffer size will help use to get
the whole file into the buffer.

Change-Id: I3f95dc7534fdaf5e139966c0d1be8d79d6413a0f
WifiService: Fix wifi re-enabling after user exits airplane mode (lost in merge)

Same as I4b501139b660255fc935d6a12fd6ecf44d06ec6e, which was lost
in the merge

Change-Id: I0208731a35b81e2df8f6c45615fe16caed66b558
Crespo4G: Fix file downloads via browser over WiMax - 1 of 2

Change-Id: I7971c65a712830388bbd81e0412548ce88a0f488
@hide DownloadManager.Request.NETWORK_WIMAX

This field is not in the official API and @hide prevents the api
checker from complaining about it (and aborting the build)

Change-Id: I77068e18ec2b68499052927aed4b8e834f5739aa
Add extended power menu
surfaceflinger: allow 180 degree hardware rotation

Change-Id: Id6991021701b15f2ce1e5513474238a09d8862bf
Add SURFACEFLINGER_FORCE_SCREEN_RELEASE to fix screen off flicker

Needed on (at least) crespo, aries and galaxys2

Change-Id: Iaff5379775b9a19bd3cd8598e885e885cc0e8492
frameworks/base: Increase Zygote preload GC threshold to half the heapgrowthlimit.

Increase Zygote preload GC threshold to half the heapgrowthlimit,
to reduce boot up time.

Change-Id: I6ea0f115e5f96836adec5ba9b796f54e6e898643
Hiding media from folder with .nomedia file.

This patch allows media files present in a folder with
a .nomedia file to be hidden after these files have been
previously indexed.

Bug: http://code.google.com/p/android/issues/detail?id=24162

Change-Id: Ia42133d0a7b119c76b5eaaffabd054aa1a739817
Signed-off-by: David Sobreira Marques <dpsmarques@gmail.com>
stagefright: Fix playback for mkv files with lacing

Most mkv files having 'lacing' in their audio section to save space.
Android did not handle this properly, sending all frames in the block
with the same time code, which causes stuttery playback.

Change-Id: I4dc76e7c2a53126c7fbdd3628fe7d339d2e3364e
Allow applications that can write to the primary storage write to the external storage

Fixes issues with some apps on Xoom
Keyguard: Add accelerometer override to lockscreen

On ICS tablets, by default the lockscreen will rotate irrespective
of the auto-rotate switch. Go back to Honeycomb-like behavior of
the switch controlling the lockscreen.

Change-Id: I697fe588c6a7d20e03e0f8ff5927834f8819c871
Changed settings to show PowerMenu on Tablets

Shows powermenu on Tablet, instead of Instant Off

Change-Id: I47175f53a014e3593834765cc733da4462986416
Auto-dim backlight setting

Thanks solarnz
Added CombinedBar Auto Hide

This allows to enable autoHiding of CombinedBar like on ICS phones.

Added CombinedBar Auto Hide (3/2) (FIX)

This fix shows the bar again when touching screen, as it does on GN.

PatchSet 2 fixes crash on some fullscreen apps.

Change-Id: I8fbbbddd551ee2c053efe1cd6e0666f932200e93

Framework : Add annotations for CombinedBar
Allow config to hide mobile signal drawables when connected to Wi-Fi
OCD: Move tablet status bar clock to the right, fix padding