Pass additional inputs when spawning apps via the Zygote and add SELinux permission checks.

When spawning an app process, the ActivityManagerService has additional information
about the app package that may be useful in setting a SELinux security context on the
process.  Extend the Process.start() interface to allow passing such information
to the Zygote spawner.  We originally considered using the existing zygoteArgs
argument, but found that those arguments are appended after the class name and
left uninterpreted by ZygoteConnection, merely passed along to the class or wrapper.
Thus we introduce a new seInfo argument for this purpose.

Modify the ZygoteConnection to interpret the new option and convey it to
forkAndSpecialize, as well as passing the nice name as a further input.
Also modify the ZygoteConnection to apply SELinux permission checks on
privileged operations.

Change-Id: I66045ffd33ca9898b1d026882bcc1c5baf3adc17
Add the possibility to modify the View focus rect

This change makes it possible for a view to supply a different rectangle than
the drawing rect to be used by the FocusFinder when finding a new view to give
focus to. This is useful if e.g. the total view area is larger than the
interactive area of the view.

The default implementation of getFocusRect() will return  getDrawingRect().
The existing behaviour is only changed if getFocusRect() is overridden by a
subclass of android.view.View

Change-Id: I52dd95c6fa296b744e354217051dcec1bb3c8e92
Remove redundant ">"

Change-Id: I1d03f95692c975f954e7f60d9520282f8a32636e
Another case of extra ">"

Change-Id: I870af9400b49bcbe6195e9c251adf174783e3507
Merge "Pass additional inputs when spawning apps via the Zygote and add SELinux permission checks."
Initialize mJunkPath to false

Change-Id: Ib48bb1d91736d27f055528c3ba275237ff5ada07
Merge "Initialize mJunkPath to false"
Bluetooth: Suppress bluetoothd connection failures while reattempting connection

On Bluetooth enable, the Bluetooth Event Loop attempts to connect to the bluetoothd-
provided BlueZ D-Bus interface.  Due to initialization order/timing, this call may
fail and the Bluetooth Event Loop will reattempt the connection (failing after a
large number of failed attempts).  This commit suppresses D-Bus connection error
logging until the attempts fail.
Bluetooth: Fix OPP connection failing at first attempt

There is a race between SDP query for RFCOMM channel and UUID_INTENT_DELAY
expiration. By increasing the delay, it allows SDP query to succeed(if it's going
to happen), resolving the problem.

CRs-fixed: 225501
Merge "Add the possibility to modify the View focus rect"
Merge "Remove redundant ">""
Merge "Another case of extra ">""
Merge remote branch 'remotes/aosp/master' into master_branch

Change-Id: Idea2bfb47e50dcbd17769075cfa4814204bf0a2d
Revert changes I66045ffd,Ifcc68cb0,I22d38e3e

Revert "Pass additional inputs when spawning apps via the Zygote and add SELinux permission checks."

This reverts commit 83d9eda9c2c411e3480c52f01e192bf3c86be8e9.

Revert "Add JNI bindings for some of the libselinux interfaces."

This reverts commit c07fca3831baf4d812dd724f506b4ed23dcc39e0.

Revert "Modify installd to set the SELinux security context on package directories."

This reverts commit 0b58e6a1a97eded73cb9cbbe53cdde4c6595ddd6.

Change-Id: I1ea43f46738edc0980f3001384061e2e8c630050