core: fix cpu variant board flag

Change-Id: I6f412d36162e50012a1d2562ab05a331f248582c
(DO NOT MERGE) Fix pub issue #58043: Copy crash in Android 4.3...

...when clipboard listener attached

We need to clear the calling identity before dispatching change
notifications.  Also make this more robust, so that in the face
of any failure we will clean up the broadcast state.

Integrated from master.

Change-Id: I05e1f76ffd486439535631fe4062dabe94bd2ccf
Allow the user to block notifications for foreground services.

Stepping carefully around the fix in change Idc788527, we
perform security (and AppOps, and therefore user block)
checks against the uid passed to enqueueNotificationInternal
rather than the Binder caller.

Bug: 9502541
Change-Id: I91745db92823381df75721c1b8f11013a7fa4ecc
Add version identifier to app ops.

All old versions drop their modes except for the notification op
(which is the only one there is currently a user-visible control for).

Change-Id: I9e09cebe63e9ea81f2adc01aef7d1a5a59f57a56
Revert "Add version identifier to app ops."

This reverts commit 483a6bbfc118409b9c46b226cf0aa6afdc4d9159.

Change-Id: I91d6b8b8d1789089bf9764e734f7fe59d03151a2
Add new app ops method to reset all op modes.

Change-Id: I5ee6764de8dc31d812e5a788914ab0099bbef4c0
Fix issue #10226007: Reset apps restores most of the changed settings...

...to original but not all modified ones

Very stupid mistakes in messing up the iteration when pruning op
entries.

Change-Id: Ie536b9095f797fcd2b86c9a386a72746796430d1
BroadcastReceiver : Get sender of broadcasts

Add internal api for receiving the sender of a broadcast

Change-Id: I28ae614ef92101ab6b9beadc3c965d16b1f393f6
Fix brightness dialog layout.

This reverts part of change I83e8f7eae65d5f40dd7aeb2b663bc1fc3d5324d2.

Change-Id: I1f685357776dcac9c93e592e274acdf0497f4161
SystemUI & core: FI translations

Change-Id: I9feb3fe3c1b97f21ff6e7dfb2a65e506c4b50cd4
Remove obsolete installd

installd is now in frameworks/native

Change-Id: I308b2dbfcc3103262b16d1680630ca744c1a0877
Merge "Remove obsolete installd" into cm-10.2
Merge "core: fix cpu variant board flag" into cm-10.2
Merge "BroadcastReceiver : Get sender of broadcasts" into cm-10.2
Display options: allow configuration of wake on plug behavior (2/2)

The PowerManager now checks Settings.Global.WAKE_WHEN_PLUGGED_OR_UNPLUGGED
to determine wake-on-plug behavior.  The configuration option
config_unplugTurnsOnScreen is used as the default value of the setting.

PS 2: Fix formatting of if statement

Cherry-picked from: I062794828831a2b6faf4293579103d2251f1bdd0

Change-Id: I7eefff468a64c04e536c377cff3c740a7e568ade
Merge "Display options: allow configuration of wake on plug behavior (2/2)" into cm-10.2
Clean up lockscreen target configuration code (1/2)

Get rid of a lot of duplicated code.

Change-Id: I80fb0b0cd9b5f7d79a5760f8fa6ae338d9ca7205
Bluetooth: Disable bluetooth only if BT Sevice is connected

Bluetooth service is imidiately disconnected from the adapter
after SSR OR if any bluetooth services is crashed OR framework
is crashed. As Bluetooth  service is not connected OR Bluetooth
is not enabled, So BT disable should be ignored & bluetooth
persist setting should not be changed.

CRs-Fixed: 499116

Change-Id: I19de939346d014cdf918e11711f2d6066e55d054
platform: Remove mapping of android.permission.CAMERA to camera group

This mapping introduces security risk where any app with android.
permission.CAMERA can open camera driver directly without going
through mediaserver.

CRs-Fixed: 448868
Change-Id: Ic16880cfac0bc85a3e753ccd3261bfc455b02d1a
Merge "SystemUI & core: FI translations" into cm-10.2