Commit Graph

51 Commits

Author SHA1 Message Date
TreeHugger Robot
1ac2ef2579 Merge "Adding contexts and rules to address denials." 2017-03-16 22:50:03 +00:00
Max Bires
ab5b59745d Adding contexts and rules to address denials.
These changes address the following denials:
denied  { read } for  pid=560 comm="e2fsck" name="sda43" dev="tmpfs"
ino=22736 scontext=u:r:fsck:s0 tcontext=u:object_r:block_device:s0
tclass=blk_file

denied  { open } for  pid=560 comm="e2fsck" path="/dev/block/sda43"
dev="tmpfs" ino=22736 scontext=u:r:fsck:s0
tcontext=u:object_r:block_device:s0 tclass=blk_file

denied  { write } for  pid=560 comm="e2fsck" name="sda43" dev="tmpfs"
ino=22736 scontext=u:r:fsck:s0 tcontext=u:object_r:block_device:s0
tclass=blk_file

denied { read } for pid=666 comm="sensors.qcom" name="name" dev="sysfs"
ino=33510 scontext=u:r:sensors:s0 tcontext=u:object_r:sysfs:s0
tclass=file

denied { open } for pid=666 comm="sensors.qcom"
path="/sys/devices/soc/1d0101c.qcom,spss/subsys2/name" dev="sysfs"
ino=33510 scontext=u:r:sensors:s0 tcontext=u:object_r:sysfs:s0
tclass=file

denied { net_raw } for pid=666 comm="sensors.qcom" capability=13
scontext=u:r:sensors:s0 tcontext=u:r:sensors:s0 tclass=capability

denied { read write } for pid=678 comm="sensors.qcom" name="sns.reg"
dev="sdd3" ino=33 scontext=u:r:sensors:s0
tcontext=u:object_r:persist_sensors_file:s0 tclass=file

denied { search } for pid=794 comm="thermal-engine" name="msm_subsys"
dev="sysfs" ino=16320 scontext=u:r:thermal-engine:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=dir

denied { read } for pid=794 comm="thermal-engine" name="devices"
dev="sysfs" ino=16322 scontext=u:r:thermal-engine:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=dir

denied { open } for pid=794 comm="thermal-engine"
path="/sys/bus/msm_subsys/devices" dev="sysfs" ino=16322
scontext=u:r:thermal-engine:s0 tcontext=u:object_r:sysfs_msm_subsys:s0
tclass=dir

denied { read } for pid=794 comm="thermal-engine" name="subsys0"
dev="sysfs" ino=33422 scontext=u:r:thermal-engine:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=lnk_file

denied { read } for pid=794 comm="thermal-engine" name="name"
dev="sysfs" ino=33416 scontext=u:r:thermal-engine:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=file

denied { open } for pid=794 comm="thermal-engine"
path="/sys/devices/soc/soc:qcom,ipa_fws@1e08000/subsys0/name"
dev="sysfs" ino=33416 scontext=u:r:thermal-engine:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=file

denied { open } for pid=794 comm="thermal-engine" path="/sys/devices"
dev="sysfs" ino=4 scontext=u:r:thermal-engine:s0
tcontext=u:object_r:sysfs:s0 tclass=dir

denied { read } for pid=794 comm="thermal-engine" name="devices"
dev="sysfs" ino=4 scontext=u:r:thermal-engine:s0
tcontext=u:object_r:sysfs:s0 tclass=dir

Bug: 34784662
Test: These denials are no longer present
Change-Id: I68665950fe7c2b25c11acb36b32a147049fa76e5
2017-03-16 21:47:32 +00:00
Thierry Strudel
49242478b9 Build libgnss and liblocation_api to get back GPS
Bug: 36231017
Change-Id: Ie6c00117da9a5cebe2aa28ec31975ea25752415d
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-15 22:19:18 -07:00
Shawn Yang
70caec45b2 Merge "dumpstate clean up" 2017-03-15 21:46:18 +00:00
TreeHugger Robot
b478107c25 Merge "Set descriptor attributes to right values" 2017-03-15 21:36:05 +00:00
Badhri Jagan Sridharan
2882a4990a Set descriptor attributes to right values
bcdDevice and bcdUSB were set to incorrect values causing windows
machine's usb state machine to reset once after the initial exchange
of descriptors. This was causing an additional delay for the Android
device to show up as media device when configured in MTP mode.

Bug: 35857451
Test: Manually test mtp enumeration
Change-Id: Icd8ac8235ccfa70202a0601fc4ef56a158d3a2f3
2017-03-15 13:25:35 -07:00
TreeHugger Robot
082b437728 Merge changes I5828ce50,I3652a697
* changes:
  android.hardware.gnss to 1.0-impl-qti + 1.0-service-qti
  Enable charger mode
2017-03-15 17:27:51 +00:00
TreeHugger Robot
8c4f8af486 Merge "Set display configuration options" 2017-03-15 00:54:52 +00:00
TreeHugger Robot
2a47b8cc94 Merge changes I8d8c7f55,I3429eb4b
* changes:
  bdroid_buildcfg.h: set standard compile options
  init.power.sh: enable CPU lower power states
2017-03-15 00:46:03 +00:00
TreeHugger Robot
c1dbd142f3 Merge "Add nfc conf files and policy files" 2017-03-15 00:37:51 +00:00
Shawn Yang
136ac6be8d dumpstate clean up
Change-Id: I9983b3ddcca6c6ee954620aefe1358ba1a540b2e
2017-03-14 16:58:38 -07:00
Thierry Strudel
9c5095d402 android.hardware.gnss to 1.0-impl-qti + 1.0-service-qti
Change-Id: I5828ce5028d9bb6a83efecb27721060a0b687ccb
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-14 16:44:37 -07:00
Courtney Goeltzenleuchter
5a88dfd5db Set display configuration options
Device has wide-color OLED display so set TARGET_HAS_WIDE_COLOR.
Test: make

Change-Id: I5aff4d94fa393155e4c02f5154642c024e11ce7b
2017-03-14 16:44:37 -07:00
Sunny Kapdi
ad8c23f452 bdroid_buildcfg.h: set standard compile options
Bug: 36201158
Change-Id: I8d8c7f5590ea5d06ca623e2cf7ab56cd8045f273
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-14 16:44:37 -07:00
Ruchi Kandoi
e5bf808287 Add nfc conf files and policy files
Test: Read Nfc tag
Change-Id: Ifd6e5d26184dc36387be3092d8dac87994d7dcda
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2017-03-14 16:44:37 -07:00
Yueyao Zhu
a18de9021d Enable charger mode
1) device.mk: add charger_res_images to PRODUCT_PACKAGES
to use the default charger mode images
2) init.hardware.rc: configure charger service class
3) BoardConfig.mk: enable suspend in charger mode

Bug: 36046603
Change-Id: I3652a69784b8ecd4e670f26fdd66b7c68d578f9f
Signed-off-by: Yueyao Zhu <yueyao@google.com>
2017-03-14 16:44:37 -07:00
Thierry Strudel
20cc626961 init.power.sh: enable CPU lower power states
Also cleanup some non applicable HMP procfs nodes

Test: /sys/module/lpm_levels/parameters/sleep_disabled is N
Change-Id: I3429eb4b78f154f1cd2757d5bfde94b256fba2cf
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-14 16:44:37 -07:00
Nick Desaulniers
8d1710923b muskie: fingerprint: swap left/right navigation key codes
Change-Id: Idbcc5c1a90e4c63e8347118ee0b4c70553f29aa7
Fixes: 35963505
2017-03-14 16:15:45 -07:00
Thierry Strudel
9a7fcca850 manifest.xml: graphics.allocator & graphics.composer to passthrough
This is a work around waiting for a fix.

Bug: 36199345
Change-Id: Ie127f0cd7d8537125f44afdbc06cb0f97fbcf96c
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-14 13:46:15 -07:00
TreeHugger Robot
f4568cad1e Merge "Remove obsolete ENABLE_TREBLE references." 2017-03-14 14:41:46 +00:00
Steven Moreland
fe098879cd Remove obsolete ENABLE_TREBLE references.
ENABLE_TREBLE compiler flags are no longer used. They have been replaced
with use of the VINTF object.

Bug: 32978887
Test: pass
Change-Id: I2c368d37e529e56c47ebf354a4fcc68e4ddd11ed
2017-03-14 00:16:37 -07:00
TreeHugger Robot
99c674b714 Merge "hal_wifi: Allow wifi hal to access /proc/debug" 2017-03-13 23:41:01 +00:00
Roshan Pius
98da724c36 hal_wifi: Allow wifi hal to access /proc/debug
This is needed for fetching debug info from the wifi driver.

Denials:
03-10 19:16:58.207   452   452 W android.hardwar: type=1400
audit(0.0:319): avc: denied { read } for name="fwdump" dev="proc"
ino=4026547172 scontext=u:r:hal_wifi_default:s0
tcontext=u:object_r:proc:s0 tclass=file permissive=0
03-10 19:16:58.207   452   452 W android.hardwar: type=1400
audit(0.0:320): avc: denied { read } for name="driverdump" dev="proc"
ino=4026547174 scontext=u:r:hal_wifi_default:s0
tcontext=u:object_r:proc:s0 tclass=file permissive=0

03-10 19:16:58.209   452   452 I WifiHAL : handleResponse: Memory Dump
size: 327680
03-10 19:16:58.209   452   452 E WifiHAL : Failed to open
/proc/debug/fwdump file
03-10 19:16:58.209   452   452 V WifiHAL : Successfully removed event
handler for vendor 0x1374
03-10 19:16:58.210   452   452 E WifiHAL : Failed to open
/proc/debugdriver/driverdump file

BUG: 36126608
Test: Device boots up and the denials no longer seen.
Change-Id: Id3789f4ceeb90c36df14989e6d5d9dc09f9bf558
2017-03-13 15:26:45 -07:00
Vineeta Srivastava
409a5d3943 Remove unnecessary cache mount
Cache is not used on the device using AB update. In that case, init just
waits
for timeout 5s.

[   18.904216] init: Command 'mount_all fstab.${ro.hardware}' action=fs
(/init.taimen.rc:33) returned 1 took 767.808ms.
[   23.911072] init: Command 'wait /dev/block/bootdevice/by-name/cache'
action=fs (/init.taimen.rc:40) returned -1 took 5006.36ms.

Test: Build and tested on a device
Change-Id: Iaee76961c98b7b7873e532a7003d560ebf6c4752
2017-03-13 15:04:49 -07:00
Shawn Yang
aa2f20cf82 Merge "sepolicy: Support subsystem ramdump selinux config Enable modem subsystem restart and ramdump" 2017-03-13 21:23:54 +00:00
TreeHugger Robot
59e8126215 Merge "manifest.xml: android.hardware.graphics.allocator => hwbinder" 2017-03-10 23:46:21 +00:00
Shawn Yang
e3225201b1 sepolicy: Support subsystem ramdump selinux config
Enable modem subsystem restart and ramdump

Bug: 35859062
Change-Id: Ib23fe3d849e7a5b4ada0ba794107e12b661c7fdc
Signed-off-by: Salmax_Chang <salmax_chang@htc.com>
2017-03-10 23:27:39 +00:00
TreeHugger Robot
3cc3faaef3 Merge "Enable and binderize hwcomposer hal" 2017-03-10 23:12:10 +00:00
Thierry Strudel
37f909056d manifest.xml: android.hardware.graphics.allocator => hwbinder
Bug: 35809668
Change-Id: I7b45e004ae093e8a69c0fff463d4ef6d4b67670d
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-10 14:52:39 -08:00
Tao Bao
f1f15a7e54 Merge "Add update_engine_client, update_engine_sideload, bootctl." 2017-03-10 22:14:21 +00:00
Chia-I Wu
ae4a5780eb Enable and binderize hwcomposer hal
Bug: 35810133
Test: boots
Change-Id: I01b917e870fc9e9f95103404c4b8da0bca7eda2d
2017-03-10 14:04:03 -08:00
Tao Bao
09b87b5ce2 Add update_engine_client, update_engine_sideload, bootctl.
update_engine_client and bootctl will be included in debuggable builds
only.
 - update_engine_client allows talking to update_engine directly;
 - bootctl talks to boot control HAL and queries its state.

update_engine_sideload goes into recovery image.
 - update_engine_sideload is to allow sideloading OTAs under recovery.

Test: `m dist`
Change-Id: I692e1fb54fa41d7b19e1f2cf2a7ddaf7cf8cb41a
2017-03-10 12:26:11 -08:00
Shawn Yang
de4541524a IMS config
Change-Id: Ic8587247eb105b2f479c124f9f01a7812b22cc3d
2017-03-10 01:00:18 -08:00
Thierry Strudel
e8f2d0389c Import pixel2017 common inherit-product
Change-Id: If606e4669311769c43f17f11337623ffa5a83f03
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-10 01:00:10 -08:00
Thierry Strudel
f5c5f77146 BoardConfig: enable USES_HWC2 + USES_HWC2ON1ADAPTER
Change-Id: I60da06143999e5c2075f2c2ec34fb90497effbdc
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-09 22:25:38 -08:00
Mikhail Naganov
1238fe2b24 Partial revert "audio: enable usb audio tunnel support"
This partially reverts commit 6616d417ce84c0f235396af90bb66e4c83f5c550.

Bug: 36049443
Change-Id: I5ee9de31ab5e80620d2f63ce7e0208fe3a199ce6
Test: none
2017-03-09 09:17:11 -08:00
Yifan Hong
d2f0696c36 Merge "Add bitness information to manifest.xml" 2017-03-08 23:34:42 +00:00
Ecco Park
e902f3ec6e Update config.xml
1) enable Hotspot & Tethering
2) set Brightness
3) GPS configuration
4) wifi configuration
5) USB port setting
6) tcp buffer tune parameter
7) modem setting
8) Bluetooth Setting
9) camera setting
Bug: 35442182

Change-Id: I3e893b93243a4a604d5355bbee13522df1c800bd
Signed-off-by: Ecco Park <eccopark@google.com>
2017-03-08 14:30:23 +00:00
TreeHugger Robot
f9bbc6211c Merge "BoardConfig: default to console OFF" 2017-03-08 03:13:46 +00:00
Yifan Hong
a6a066a10c Add bitness information to manifest.xml
Bug: 35966597
Test: walleye boots
Change-Id: I0e8d02fa5886c29df6c231b788bce6b136c5bc4c
2017-03-07 19:03:01 -08:00
TreeHugger Robot
07f481796c Merge "Preload APNs for Muskie/Walleye/Taimen" 2017-03-08 02:13:42 +00:00
TreeHugger Robot
e8534fe61e Merge "fstab.hardware: userdata add 'formattable' flag" 2017-03-08 01:31:56 +00:00
Shawn Yang
3d3c640e97 Preload APNs for Muskie/Walleye/Taimen
Bug:36007523
Change-Id: I0c55a044650e0895d593aaf2459011ff209d8fcd
2017-03-07 16:43:38 -08:00
Thierry Strudel
7a89dd8b49 BoardConfig: default to console OFF
Change-Id: I920323a5d3e3b0e89f20ac911f800b3c0d8629a2
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-07 16:27:33 -08:00
Thierry Strudel
343ccbc641 fstab.hardware: userdata add 'formattable' flag
Allows device to boot when it's empty or erased.

Change-Id: I0cd4dc775b72ba73a42ed974e67fa43b31d08e8b
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-07 14:21:21 -08:00
Jim Miller
8e3373b6ed Add fingerprint navigation support to muskie
Test: manual; enable navigation and ensure direction is correct and
that keys no longer navigate in launcher.
Fixes: 35758627
Change-Id: I0df5a060aacaed75db84d21c9378f6ed3e180c1b
2017-03-07 11:51:57 -08:00
John Dias
8ce93aa9d4 Merge "wahoo: fbe: share fstab between devices" 2017-03-07 08:27:33 +00:00
Nick Desaulniers
f6b2bb9a69 wahoo: fbe: share fstab between devices
Bug: 34250938
Change-Id: Ifaaf89b7dac034a0a1cf0248216162c6b4c57cd7
2017-03-06 14:08:41 -08:00
Roshan Pius
64c7518054 hal_wifi: Allow wifi hal to access LOWI server
HAL wifi creates a LOWI client for accessing the LOWI server to share
wifi gscan results for location purposes.

Denials:
03-04 04:20:09.956  4796  4796 I android.hardwar: type=1400
audit(0.0:97): avc: denied { search } for name="location" dev="sda35"
ino=3850313 scontext=u:r:hal_wifi_default:s0
tcontext=u:object_r:location_data_file:s0 tclass=dir permissive=1
03-04 04:20:09.956  4796  4796 I android.hardwar: type=1400
audit(0.0:98): avc: denied { write } for name="location-mq-s"
dev="sda35" ino=3850337 scontext=u:r:hal_wifi_default:s0
tcontext=u:object_r:location_data_file:s0 tclass=sock_file permissive=1
03-04 04:20:09.956  4796  4796 I android.hardwar: type=1400
audit(0.0:99): avc: denied { connectto } for
path="/data/misc/location/mq/location-mq-s"
scontext=u:r:hal_wifi_default:s0 tcontext=u:r:location:s0
tclass=unix_stream_socket permissive=1

Bug: 35959128
Test: Device boots up and able to connect to wifi network.
Denials no longer seen. Previously some wifi HAL calls would take
a long time to complete because it tries to create a LOWI client for
every request and fail.

Change-Id: Ic882901098820a56ae171432b2d56e9604d2388a
2017-03-06 11:27:36 -08:00
Thierry Strudel
4e18dc435b Import common file from device specific directory
Test: boot, basic functionality
Change-Id: I9c07718b481730c3388f99c5e1eff17c9fd75a7b
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-03-04 23:34:45 -08:00