Ensure that app lib symlinks are correctly labeled when created.

At present, the app lib symlinks are created before setting
the package directory security context, and therefore default
to system_data_file.  Upon a later restorecon_recursive,
they are relabeled to the same type as the package directory,
e.g. app_data_file.  Avoid this inconsistency by setting the
package directory security context before creating the symlink
so that it inherits the same security context.

Change-Id: I1ee6ccd8a2aa63a4d2efda67f313c97932235911
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Merge remote-tracking branch 'cm/cm-11.0' into cm11mod-linaro
Mira Cast Part 6/7

This series of patches is from s107ken's xda post here:
http://forum.xda-developers.com/galaxy-nexus/development/rom-maguro-meets-kitkat-miracast-t2540694/post52562917
The Tuna community, states it is working as intented

Mira4u is the work of kensuke
https://github.com/kensuke/How-to-Miracast-on-AOSP

Parts:
Build 1/7 (This will likely be abandoned in favor of building from device and/or vendor)
Device/samy/tuna 2/7
external/wpa 3/7
fw_av 4/7
fw_base  5/7
fw_native 6/7
packages/apps/mira4u 7/7

WTF is Miracast?... basically, the open source chromecast
http://en.wikipedia.org/wiki/Miracast

Please note,... the way this was patches has a great possibly to step on other commits, I will attempt to ensure this does not happen

Change-Id: I901d3227e0f7d4251c1c6cffa2cfb53fa9e1c2da
Change xhdpi-1024-dalvik to legacy values to support legacy devices in the modern world

This should improve compatibilty with legacy devices with new features like theme engine

Change-Id: I3f155b456073a9a8d9cd522746288f6aef409587
Signed-off-by: DHOMD <DHO@dho.im>
Merge "Ensure that app lib symlinks are correctly labeled when created." into cm-11.0
Merge remote-tracking branch 'cm/cm-11.0' into cm11mod-linaro
Calculate application sizes correctly

Thanks to Pierre-Hugues Husson for looking at my code and finding out
that the application sizes were not being calculated properly!

Change-Id: I68af6a9e5d1b2b7e60c0409b55d8ee578e567a69