PackageManager: allow build-time disabling of components

Allow components to be specified as disabled at build time
(applied on boot).

This allows stock OTA components to be marked as disabled in
Slim builds.

Change-Id: I6e4499cc40a779792a5ea97a10137399dad7d69f
Privacy Guard Slim version (1/2)

Re-implements slims ehanced privacy guard from 4.3
and addapt it to 4.4 changes

Change-Id: If57de2b541fa6b0a590fd65e8664bf173e259035
fb: volume rocker control (wake up)

Change-Id: I60f5f88e32a129afda80f5b0f4f41cb0a322b691
Damn you git!!!

Change-Id: Ifc97c18e444bd307509c3b2f31d77fa27f582550
privacy guard: allow as well image resources for light background

allow to fetch icons which fit on light background if needed. (Settings eg and
later other security features)

Change-Id: I6445bf0fc1a05718af01d83e29fc6d01b8f11c6c
fix resource naming derp

sorry

Change-Id: Ib9c120c1400840881c6122fbe99eea619cb6b7fb
FB: fix missing hides

Change-Id: Ic0b17f4a87d793cd1c58887ea796a5f31d28578e
FB: PGM correctly set permission map

although the pgm permission map follows the main map not all ops do have in real a manifest permission behind it.
This leads in wrong showing of this permissions.

Simply fix it with maping same way like the manifest permissions

Change-Id: Ib62917c78365abd21a718cd90f1ae097ca8901a0
SettingsProvider: Update icon.

Change-Id: I9e1b540e0268643371dd95593eaefa63d4a1827d
Telephony: Set the value of min match according to one property

CTA requires to match 11 phone numbers, so use the value of the property
"persist.env.c.phone.matchnum" to set it 11 in case of CTA tests, but by
default it is 7 without change.

Change-Id: I8cd4105c06c71af1ad242858d8de474459d96ee1
Telephony: Check the length of phone numbers before use

If the phone number string is null or empty, just return
to avoid null exception.

CRs-Fixed: 399293

Change-Id: I78db37d70e38cd2782c13621f98dc25d8624bfb7
frameworks/base: Use ExtendedRemoteDisplay to launch Wifi Display

- RemoteDisplay class is used to launch WiFi Display
  implementation in the Android framework with a discovered peer.
  There is a need to support proprietary implementation of wifi
  display instead of the framework implementation.

- To enable this support, ExtendedRemoteDisplay is added,
  which launches the proprietary solution. ExtendedRemoteDisplay object
  is created if the class is available in the package. If the class is
  not available the default implementation will be used by creating
  RemoteDisplay.

Change-Id: I2e2a5e552bc86888848c0402bafd873620b05c21
Fix setSurfaceTexture to handle surface caching

Changed the TextureView.setSurfaceTexture to apply the
existing listener to the surface provided in the method.
This is done to allow surface caching to work.
Whenever a new SurfaceTexture gets created, its listener is
created as well, so when the setSurfaceTexture is called
we should be attaching the listener to the new surface.

Change-Id: I4c1a704c587e977ab7a6b1fe3a7d3e0d20d00218
CRs-Fixed: 639136
SystemUI: Add data type and signal icons

Add data type and signal icons.

Change-Id: Iaa97b2d9477d740686e724d6b1c3d2fcbf30692a
Statusbar: Add some resources of signal icon

Add some resources of the signal icon which used in statusbar.

Change-Id: Ie8823d37485bba0cd50ed90142532fda00f4f71d
frameworks/base: Fix to avoid crash when the tab is not set.

Tab is not highlighted in Videoapp unlike Music app.
Instead the list is highlighted with mSelectedTab a negative value
when onFocusChange is called.
Add a check for mSelectedTab.

Change-Id: I930657b8a9be4be4d973f876242a15a667ec6f94
CRs-Fixed: 657606
Audio: Fix title of system ringtone contains messy meta

Title in the Meta information of Bootest.ogg contains
junk characters which is displayed in Settings->Sound-
>Phone ringtones.

Correct the binary file to solve this issue.

Change-Id: I91c0519bb55ee5e74f783b0c147acbde641f6502
CRs-Fixed: 569976
Frameworks: Enhance face detection

Add support for facial processing features:
smile detection, gaze detection and blink detection

CRs-Fixed: 587195
Change-Id: Ic186ff0658e755a8b5287cffa1dd58d9eafebc9a
AppOps: add permission check when enabing nfc

Add appops permission check for enable function.

Change-Id: Ie98be3e7b3cd9e72b0ad12cc1634d9cd1869a66c
Block application install from unknown sources through adb

adb install command  doesn't check source of an application.

This change enforces that adb install command only works if user has
download/install from unknown sources selected in settings app.

Change-Id: Id0d328d1dad36089802d6bec2f5d2f940e045c25