PackageManager: Prevent themes from going into ASEC containers

Themes on ASEC cause all kinds of random timing/racey issues at boot
time, and more kinds of racey concurrency issues at uninstall/upgrade
time. Stop them from getting into containers at all.

Change-Id: If08e90c51137b22239831a4eca17ea00d5d87d93
Set subscription_mode in the database to a default value

If ro.telephony.default_cdma_sub is set, use that to set the
default CDMA subscription source in the database. If that is not set
use the default preferred value defined in the source code.

Change-Id: I11fff596a5fe721c64f192c889672326517dc43d
Fix resource id of networkAttributes

 * Google didn't make networkAttributes a public resource, so everyone
   is failing CTS after adding new resources to the framework. This
   fixes it.

Change-Id: I1fdade47098bc9030116230dce27a3e6e5aab413
Fix resource id of networkAttributes

 * Google didn't make networkAttributes a public resource, so everyone
   is failing CTS after adding new resources to the framework. This
   fixes it.

Change-Id: I1fdade47098bc9030116230dce27a3e6e5aab413
api: Add networkAttributes to the public resource list

Companion change to I1fdade47098bc9030116230dce27a3e6e5aab413

Change-Id: I54a95f1748d7b60be0c15a9a2f7f7badc13cbbd8
api: Add networkAttributes to the public resource list

Companion change to I1fdade47098bc9030116230dce27a3e6e5aab413

Change-Id: I54a95f1748d7b60be0c15a9a2f7f7badc13cbbd8
WMS: fix no thumbnail image of Gallery in the recent tasks list.

When it takes the screenshot of an application, it will calculate
the minLayer and maxLayer first, and if a window is full screen,
it won't deal with the windows below it. However, the surfaceview
is placed below a window but will be displayed at front, this make
the surface view can not be included when take the screenshot of
an application, then it diaplays a black area in the recent tasks
list.

If the currect window is full screen, no need to finish the
calculation.

CR-Fixed:566752

Change-Id: Iaf3e9a3e6520007571ea545ccc9c05d4b1b416fd
WMS: fix no thumbnail image of Gallery in the recent tasks list.

When it takes the screenshot of an application, it will calculate
the minLayer and maxLayer first, and if a window is full screen,
it won't deal with the windows below it. However, the surfaceview
is placed below a window but will be displayed at front, this make
the surface view can not be included when take the screenshot of
an application, then it diaplays a black area in the recent tasks
list.

If the currect window is full screen, no need to finish the
calculation.

CR-Fixed:566752

Change-Id: Iaf3e9a3e6520007571ea545ccc9c05d4b1b416fd
Merge branch 'cm/cm-10.2'
Merge branch 'cm/stable/cm-10.2'