Make bridge enforcing.

Change-Id: If826dcf523de47e9ec9356de6c9fc314acdb06d6
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
Make qmux enforcing.

Change-Id: Ia07c7b1f251ce1070b38279ad7dc7418bcde322d
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
Make sensors enforcing.

Change-Id: I7e9796958d5a0c21c8a31a5576388d58f1890da2
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
Make time enforcing.

Change-Id: I87afd1f1c0f7b2942dd2091d0fea9dc72ef38260
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
Merge "Make qmux enforcing."
Merge "Make time enforcing."
Make camera enforcing.

Change-Id: I16ab36e31d6601fb2b66712dec8809354b98b8ce
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
Merge "Make camera enforcing."
Merge "Make sensors enforcing."
Merge "Make bridge enforcing."
Allow the radio to access qmux

Addresses the following denial:

<5>[  508.313455] type=1400 audit(1389033492.145:78): avc:  denied  { search } for  pid=3932 comm="QcRilReceiver" name="qmux_radio" dev="tmpfs" ino=6056 scontext=u:r:radio:s0 tcontext=u:object_r:qmuxd_socket:s0 tclass=dir

And the following logcat error messages:

E/QcrilMsgTunnelSocket( 3916): IOExceptionjava.io.IOException: Permission deniedReason: Permission denied
E/QcrilMsgTunnelSocket( 3916): Couldn't find 'qmux_radio/rild_oem0' socket after 8 times, continuing to retry silently

Change-Id: I7894aea69a7b5c956948527e55fc1a7b73f5e165
allow sensors dac_override

sensors needs dac_override, otherwise the folllowing logcat messages occur:

E/Sensors (  192): sns_debug_main.c(438):Debug Config File missing in EFS!
E/Sensors (  192): sns_smr_util.c(104):Unable to initialize service 259 with QCCI, timed out (2000 ms)
E/Sensors (  192): sns_acm_mr.c(388):Error getting info for service 3
E/Sensors (  192): sns_main.c(819):bind error 98
E/Sensors (  192): sns_main.c(819):bind error 98
D/SensorService(  752): nuSensorService starting...
I/qcom_sensors_hal(  752): hal_init: Setting log level to 4
E/qcom_sensors_hal(  752): hal_init: Error in sensor_reg_write(): -4
E/qcom_sensors_hal(  752): hal_check_ltcy_ssi_reg_flag: Error in sensor_reg_read() for reg flag: -4
E/qcom_sensors_hal(  752): hal_check_ltcy_ssi_reg_flag: Error in sensor_reg_read() for reg flag: -4
E/qcom_sensors_hal(  752): hal_check_ltcy_ssi_reg_flag: Error in sensor_reg_read() for reg flag: -4
E/qcom_sensors_hal(  752): hal_check_ltcy_ssi_reg_flag: Error in sensor_reg_read() for reg flag: -4
E/qcom_sensors_hal(  752): hal_check_ltcy_ssi_reg_flag: Error in sensor_reg_read() for reg flag: -4
E/qcom_sensors_hal(  752): _hal_sensors_get_sensors_list: sensor1 init failed
E/qcom_sensors_hal(  752): _hal_sensors_get_sensors_list: sensor1 init failed

One way this bug manifests itself is by breaking screen autorotation.

  PRE-CONDITION:
  - Auto-rotate screen should be enabled (Settings > Accessibility > Auto-rotate screen)

  STEPS TO REPRODUCE:
  1. Launch any of the apps(Chrome,Gmail, Keep..) > change the orientation to landscape mode

  OBSERVED RESULTS:
  - Auto rotate screen not functioning for landscape mode

  EXPECTED RESULTS:
  - Device should display landscape/portrait mode as per user selection when auto-rotate screen option is enabled

Change-Id: I85cabeb28ab9e28a729d3930bfc454522f2a42cf
Merge "Allow the radio to access qmux"
Merge "allow sensors dac_override"
Mark /dev/jpeg* as camera_device

Fixes the following denial:

<5>[  169.494636] type=1400 audit(1389041883.193:26): avc:  denied  { read write } for  pid=3061 comm="cam_data_proc" name="jpeg0" dev="tmpfs" ino=7185 scontext=u:r:mediaserver:s0 tcontext=u:object_r:device:s0 tclass=chr_file

Bug: 12416198
Change-Id: I2671c835c9b7385e77a674843b990ec8e974d444
Merge "Mark /dev/jpeg* as camera_device"
Merge branch 'master' of https://android.googlesource.com/device/lge/hammerhead into HEAD

Conflicts:
	sepolicy/camera.te