CM11 Themes: Common overlay for sharing resources. [2/2]

Change-Id: Ied21ede2f36ba16dd190bc1e6cec44fd8560ca90
Merge "CM11 Themes: Common overlay for sharing resources. [2/2]" into cm-11.0
SF: Reduce size of DisplayFrame according to "transparent region"

Calculating SourceCrop according to "transparent region" is taken care but
not DisplayFrame. DisplayFrame also need to be calculated according to
"transparent region" to avoid mismatch in SourceCrop and DisplayFrame.
This will avoid unwanted Scaling introduced because of mismatch.

CRs-Fixed: 651365
Change-Id: I33733c084702d46de1c9eb6663533fb083f9788a
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>
Revert "SF: Reduce size of DisplayFrame according to "transparent region""

This reverts commit 3fda6efcd830dab28cd3c8a2d0a5cf8aa1dd1829.

Change-Id: I0b2e7b88c01e06b6e4e4a93094b39e0a0f0f7579
Themes: Fix -110 install error [1/2]

aapt was being called from PM with a ' ' at the end of the cmd. This would
cause installd to read unexpected parts of memory which sometimes
causes it to parse the command incorrectly.

Change-Id: Id9f1170db05b40f030d6ea5009bed38bc9fc3b5f
Avoid calling idmap w/ trailing whitespace [2/2]

installd performs a buffer over-read if trailing ws is sent to it.
No observable effect found yet for idmap, but until installd is
fixed upstream, best to play it safe.

Change-Id: I002de7a9d177df16f91b47e7f87af59457c1f421
Merge "Ensure that app lib symlinks are correctly labeled when created." into cm-11.0
Merge branch 'github/kitkat'

Change-Id: Ibfa20e209d9a3bbbf1f0fd33575993127f023a39