Shawn Yang
2dee01248f
Set device spefific logging.rc file
...
Bug: 35647551
Test: Build on target hardware
Change-Id: I8a1d119f3cedab5f3bf2f2067680721cb2d49702
2017-03-17 23:12:20 +00:00
TreeHugger Robot
13e60d1e77
Merge "BoardConfig: Set up WITH_DEXPREOPT/DEX_PREOPT_DEFAULT"
2017-03-17 04:30:53 +00:00
TreeHugger Robot
d5d7967d79
Merge "IBiometricsFingerprint uses "default" service name"
2017-03-17 01:19:52 +00:00
TreeHugger Robot
7109a8b813
Merge "Removing domain_deprecated from .te files"
2017-03-17 00:08:35 +00:00
TreeHugger Robot
e6ecd59180
Merge "Adding ism service allow rules and according ioctl_define"
2017-03-16 23:43:34 +00:00
Max Bires
aa70ae14bb
Removing domain_deprecated from .te files
...
Test: domain_deprecated is not in these files
Change-Id: I5e02744df4bd5e45a6f73d308e76621e25fe69a7
2017-03-16 15:58:12 -07:00
TreeHugger Robot
1ac2ef2579
Merge "Adding contexts and rules to address denials."
2017-03-16 22:50:03 +00:00
Yifan Hong
d8a382a485
IBiometricsFingerprint uses "default" service name
...
The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.
Test: fingerprint works
Bug: 33844934
Change-Id: Ia9cc110e9ddce00ccfc13a1627993ec82196a804
2017-03-16 15:35:01 -07:00
Max Bires
f6b582c420
Adding ism service allow rules and according ioctl_define
...
Adding rules for following denials:
denied { read } for pid=913 comm="imsdatadaemon" scontext=u:r:ims:s0
tcontext=u:r:ims:s0 tclass=socket
denied { read } for pid=1106 comm="imsdatadaemon" scontext=u:r:ims:s0
tcontext=u:r:ims:s0 tclass=netlink_generic_socket
denied { write } for pid=1107 comm="imsdatadaemon"
name="netmgr_connect_socket" dev="tmpfs" ino=29853 scontext=u:r:ims:s0
tcontext=u:object_r:netmgrd_socket:s0 tclass=sock_file
denied { net_raw } for pid=913 comm="imsdatadaemon" capability=13
scontext=u:r:ims:s0 tcontext=u:r:ims:s0 tclass=capability
denied { bind } for pid=913 comm="imsdatadaemon" scontext=u:r:ims:s0
tcontext=u:r:ims:s0 tclass=socket
denied { bind } for pid=913 comm="imsdatadaemon" scontext=u:r:ims:s0
tcontext=u:r:ims:s0 tclass=netlink_generic_socket
denied { create } for pid=913 comm="imsdatadaemon" scontext=u:r:ims:s0
tcontext=u:r:ims:s0 tclass=netlink_generic_socket
denied { write } for pid=913 comm="imsdatadaemon" scontext=u:r:ims:s0
tcontext=u:r:ims:s0 tclass=socket
denied { create } for pid=913 comm="imsdatadaemon" scontext=u:r:ims:s0
tcontext=u:r:ims:s0 tclass=socket
denied { ioctl } for pid=913 comm="imsdatadaemon" path="socket:[25647]"
dev="sockfs" ino=25647 ioctlcmd=c302 scontext=u:r:ims:s0
tcontext=u:r:ims:s0 tclass=socket
denied { read } for pid=808 comm="imsqmidaemon" name="subsys0"
dev="sysfs" ino=33422 scontext=u:r:ims:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=lnk_file
denied { read } for pid=808 comm="imsqmidaemon" name="name" dev="sysfs"
ino=33416 scontext=u:r:ims:s0 tcontext=u:object_r:sysfs_msm_subsys:s0
tclass=file
denied { open } for pid=808 comm="imsqmidaemon"
path="/sys/devices/soc/soc:qcom,ipa_fws@1e08000/subsys0/name"
dev="sysfs" ino=33416 scontext=u:r:ims:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=file
denied { open } for pid=808 comm="imsqmidaemon"
path="/sys/bus/msm_subsys/devices" dev="sysfs" ino=16322
scontext=u:r:ims:s0 tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=dir
denied { read } for pid=808 comm="imsqmidaemon" name="devices"
dev="sysfs" ino=16322 scontext=u:r:ims:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=dir
denied { search } for pid=808 comm="imsqmidaemon" name="msm_subsys"
dev="sysfs" ino=16320 scontext=u:r:ims:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=dir
denied { ioctl } for pid=913 comm="imsdatadaemon" path="socket:[19931]"
dev="sockfs" ino=19931 ioctlcmd=89fd scontext=u:r:ims:s0
tcontext=u:r:ims:s0 tclass=udp_socket
Bug: 34784662
Test: The above denials are no longer present
Change-Id: I84c4c7d75d8d6f3427d8293ef072ec5c3c2392f7
2017-03-16 22:10:52 +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
Shuzhen Wang
8beb329439
BoardConfig: Set up WITH_DEXPREOPT/DEX_PREOPT_DEFAULT
...
Without it, the prebuilt jar file could be empty.
Test: Compile and make sure jar file is valid.
Bug: 36279497
Change-Id: I136bdbdf283977888b128797f328594c751669c0
2017-03-15 16:55:07 -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