Commit Graph

62 Commits

Author SHA1 Message Date
Sooraj Sasindran
ae03bcef3c Enable IRTPService
Enable IRTPService

Change-Id: I37dd0e10ff082cae8e32fdedb77774adc9f21af5
2017-05-21 19:32:35 -07:00
Wileen Chiu
4e79aefebc Fix in-call audio issue
Update instance name of QcRilAudio HAL.
Mutliple (one per SIM) instances of
QcRilAudio HAL is required.

Change-Id: Ied34684509f1db37727880116bab785fddaaded3
2017-05-21 19:32:35 -07:00
Yifan Hong
31f2043b4f Merge "Fix instance name in manifest.xml for keymaster" 2017-05-19 16:36:00 +00:00
Ahmed ElArabawy
ea9e809ba7 Merge "Revert "power hal: Add power HAL API 1.1 impl for Wahoo"" 2017-05-18 23:57:27 +00:00
Yifan Hong
e25410da1e Fix instance name in manifest.xml for keymaster
Test: m system_compatibility_matrix.xml
Test: device boots with and without data wipe
Change-Id: Ibc75398b8d4c0f751c639d26b92d9736d6401e87
2017-05-18 22:46:49 +00:00
Jaesoo Lee
da9eee4c13 Merge "configstore: applied uprev of configstore (1.0 -> 1.1)" 2017-05-18 13:05:41 +00:00
Ahmed ElArabawy
e9e903f222 Revert "power hal: Add power HAL API 1.1 impl for Wahoo"
This reverts commit c043816b3c.
The reason of the revert is to check for the application start time
regression that may have been caused by the CL

Bug: 38317397
Test: None

Change-Id: I7edaf75eeebcecb848b38a9b7eff2bdb1f233cdb
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2017-05-17 15:21:36 -07:00
Andrew Scull
099196d5e1 Add OemLock HAL to the manifest.
Bug: 38173042
Test: Build and boot
Change-Id: I44a09ca5c4fdffd262700d385571edc96b4c9059
2017-05-17 15:29:19 +01:00
Andrew Scull
850831bfe6 Add Weaver HAL to the manifest.
Bug: 38173757
Test: Build and boot
Change-Id: Icd76ad270dd4a6e99ca61a62c174cbcaf5542765
2017-05-17 15:26:42 +01:00
Jaesoo Lee
aee1b828f7 configstore: applied uprev of configstore (1.0 -> 1.1)
This change applies uprev of configstore to init.hardware.rc and
manifest.xml

Bug: 37727469
Test: Built and tested on sailfish
Change-Id: I64930ca7dfceb66a1cf7a52b43fd378810ff8dad
2017-05-17 15:33:25 +09:00
Thierry Strudel
8e00bda0bb manifest: add android.hardware.bluetooth hwbinder
Change-Id: Ifb2b063e41df91fb87958f91db95b1e60fcea1a5
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-05-15 21:46:59 +00:00
Myles Watson
203ae704b5 wahoo: Add Bluetooth to manifest.xml
Bug: 35807479
Test: VtsHalBluetoothV1_0TargetTest, Pair two phones, LE scan, lshal
Change-Id: Ib6a8c54577ca1f149ec6ae296c049dd3560c0aab
2017-05-12 18:20:06 +00:00
Ahmed ElArabawy
c043816b3c power hal: Add power HAL API 1.1 impl for Wahoo
Add a full binderized implementation for Power hal

Many subsystems (e.g.wifi) could be living on an
independent power island (sourced from VBatt directly)
and might even have their own dedicated XTAL to source
their clocks. Since these SOCs are capable of
autonomously operating (while the platform is in one
of the sleep states), they are still drawing power
from the VBatt. Hence it is critical to understand
the  (SOC) level low power statistics as well when
the battery level changes and be able to find any
correlation in event of unexpected battery drain.

This commit adds the support of the Power Hal 1.1
to wahoo based devices(that includes Muskie/walleye).
This includes the new api for wlan specific power stats

Bug: 29339696
Test: Manual
Change-Id: Iee4e38f2d9ced31f8b6a333b535fa1d9a302ec26
Signed-off-by: Ahmed ElArabawy <arabawy@google.com>
2017-05-09 14:19:49 -07:00
Roshan Pius
c311fcaa79 Merge "wahoo: Add wifi HAL's to vintf" 2017-05-09 15:26:08 +00:00
Roshan Pius
d1459e1d82 wahoo: Add wifi HAL's to vintf
Bug: 36097884
Test: Device boots up and connects to wifi networks.
Change-Id: I1707d0e68cd3a389e86dcbfd0b650e4c9f5b1b7c
2017-05-08 11:07:10 -07:00
TreeHugger Robot
99dbd94e0d Merge "Add configstore to device manfiest." 2017-05-08 17:09:02 +00:00
TreeHugger Robot
c28c74b1bc Merge "Add IOmx and IOmxStore to vintf manifest" 2017-05-06 02:11:08 +00:00
TreeHugger Robot
742dc749d5 Merge "Remove <impl> from manifest" 2017-05-06 02:02:59 +00:00
Yifan Hong
5f5b11391c Add configstore to device manfiest.
Test: boots

Bug: 36097717
Bug: 38001671
Change-Id: I6f2fe251816d6758dd4acd35c7de561e13d6625c
2017-05-05 17:33:58 -07:00
Pawin Vongmasa
3258c390b4 Add IOmx and IOmxStore to vintf manifest
Test: Boots

Bug: 36097717
Change-Id: I92e49c5e4895473022d77fd0493e8c42a82273f8
2017-05-05 17:10:02 -07:00
Pawin Vongmasa
0b4fa928dd Remove <impl> from manifest
Test: Boots

Bug: 36602724
Change-Id: Ib7678b50165030e5ffd4e8c41e3948df9caff443
2017-05-05 16:54:46 -07:00
Naveen Kalla
ccae8ba222 Fix the name and interface of UCE Hal
Change the name and interface of UCE HAL to IUceService/uceservice0

Test: Ensure imsrcsd comes up and connects to UceShimService
      lshal should show the proper HAL

Change-Id: Ic6c1fdbbd44411519fa3313d5d03075616c8f6ce
2017-05-05 14:39:57 -07:00
Brian Duddie
39ccb7186f Merge "Add binderized sensors HAL" 2017-04-26 20:33:38 +00:00
TreeHugger Robot
59590b634b Merge "use QCOM gnss HIDL service" 2017-04-26 19:38:49 +00:00
Brian Duddie
892c70989b Add binderized sensors HAL
Make the sensors HAL binderized, and add the necessary sepolicy entries
to grant it permissions for these denials:

type=1400 audit(5246168.379:61): avc: denied { search } for pid=7558
comm="android.hardwar" name="/" dev="sdd3" ino=2
scontext=u:r:hal_sensors_default:s0 tcontext=u:object_r:persist_file:s0
tclass=dir permissive=0

type=1400 audit(1493161320.949:152): avc: denied { search } for pid=7558
comm="android.hardwar" name="msm_subsys" dev="sysfs" ino=19027
scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=dir permissive=1
type=1400 audit(1493161320.949:153): avc: denied { read } for pid=7558
comm="android.hardwar" name="devices" dev="sysfs" ino=19029
scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=dir permissive=1
type=1400 audit(1493161320.949:154): avc: denied { open } for pid=7558
comm="android.hardwar" path="/sys/bus/msm_subsys/devices" dev="sysfs"
ino=19029 scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=dir permissive=1
type=1400 audit(1493161320.949:155): avc: denied { read } for pid=7558
comm="android.hardwar" name="subsys0" dev="sysfs" ino=34647
scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=lnk_file permissive=1
type=1400 audit(1493161320.949:156): avc: denied { read } for pid=7558
comm="android.hardwar" name="name" dev="sysfs" ino=34639
scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=file permissive=1
type=1400 audit(1493161320.949:157): avc: denied { open } for pid=7558
comm="android.hardwar"
path="/sys/devices/soc/soc:qcom,ipa_fws@1e08000/subsys0/name"
dev="sysfs" ino=34639 scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:sysfs_msm_subsys:s0 tclass=file permissive=1

type=1400 audit(1493161320.959:158): avc: denied { search } for pid=7558
comm="android.hardwar" name="sensors" dev="sdd3" ino=12
scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:persist_sensors_file:s0 tclass=dir permissive=1
type=1400 audit(1493161320.959:159): avc: denied { read } for pid=7558
comm="android.hardwar" name="sensors_settings" dev="sdd3" ino=13
scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:persist_sensors_file:s0 tclass=file permissive=1
type=1400 audit(1493161320.959:160): avc: denied { open } for pid=7558
comm="android.hardwar" path="/persist/sensors/sensors_settings"
dev="sdd3" ino=13 scontext=u:r:hal_sensors_default:s0
tcontext=u:object_r:persist_sensors_file:s0 tclass=file permissive=1

type=1400 audit(1493161320.959:161): avc: denied { create } for pid=7558
comm="android.hardwar" scontext=u:r:hal_sensors_default:s0
tcontext=u:r:hal_sensors_default:s0 tclass=socket permissive=1
type=1400 audit(1493161320.959:162): avc: denied { ioctl } for pid=7558
comm="android.hardwar" path="socket:[85874]" dev="sockfs" ino=85874
ioctlcmd=c304 scontext=u:r:hal_sensors_default:s0
tcontext=u:r:hal_sensors_default:s0 tclass=socket permissive=1
type=1400 audit(1493161320.959:163): avc: denied { write } for pid=7558
comm="android.hardwar" scontext=u:r:hal_sensors_default:s0
tcontext=u:r:hal_sensors_default:s0 tclass=socket permissive=1
type=1400 audit(1493161320.979:164): avc: denied { read } for pid=7558
comm="android.hardwar" scontext=u:r:hal_sensors_default:s0
tcontext=u:r:hal_sensors_default:s0 tclass=socket permissive=1
type=1400 audit(1493161346.039:168): avc: denied { ioctl } for pid=7558
comm="sensors@1.0-ser" path="socket:[85876]" dev="sockfs" ino=85876
ioctlcmd=c302 scontext=u:r:hal_sensors_default:s0
tcontext=u:r:hal_sensors_default:s0 tclass=socket permissive=1

Bug: 36097227
Test: load on device, confirm sensors stack comes up, perform screen
  orientation sanity test, check no selinux denials in kernel log, run
  VTS using:
    vts-tradefed run commandAndExit vts --module VtsHalSensorsV1_0Target
  Note that there are known VTS failures tracked under bug 37710268.
  This change does not introduce any new failures.
Change-Id: I8f6017f3d080cde7ec009182f0f5fbb90980d424
2017-04-26 10:39:13 -07:00
Thierry Strudel
c3758dc42b use QCOM gnss HIDL service
Change-Id: I0cf76851c4fd383b20378a746368776eb56f7209
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-04-25 14:26:28 -07:00
Miao Wang
9898d9d468 Bring-up RenderScript HAL for Muskie / Walleye
Bug: 36097673
Test: mm && tested on Walleye to make sure QCOM driver load.
Test: RS CTS tests pass
Test: Imageprocessing tests pass, and confirming running on GPU.

Change-Id: Iaca74a8e90d9fd10e4327bd55d982e95b700ca0f
2017-04-25 14:11:06 -07:00
Thierry Strudel
02b1b43da5 manifest.xml: add gatekeeper and keymaster definitions
Also fix the drm HIDL indentation

Change-Id: I1c2eb8719adfc0b4f0cf17e21badd188bba36274
Signed-off-by: Thierry Strudel <tstrudel@google.com>
2017-04-21 16:37:22 -07:00
Roopesh Rajashekharaiah Nataraja
50ffa4a8d9 IMS: Define sepolicies for UCE
UCE is user capability exchange functionality where the device notifies
the network its capabilities and can also find out the capabilities of a
different user from the network. Capabilities such as VoLTE,
Video Telephony, etc.

/external/ims/rcs contains the open source code that needs to interact
with the IMS stack in the modem. The UCE HAL acts as a bridge between
the ims stack in the modem and the open source code that provides
the UCE functionality that is used by Android Apps such as Phone and
Contacts.

Previous architecture was as follows:
UCE client app (aosp, system) <--> AIDL (AOSP) <-->
uce_service (system app) <--> (JNI vendor) <-->
(IMS libs: vendor) <--> modem

With Treble we have formed a clean separation between system and
vendor components: UCE app (aosp, system) <--> AIDL (aosp) <-->
UCEService <--> system/priv-app) <--> (HIDL, vendor) <-->
imrcsd (vendor daemon) <--> modem

Hope is that in future the vendor UCE HIDL is absorbed in AOSP and
we can deprecate the UCE Service system app altogether.

Add policies and permissions for UCE HAL service and UCE HAL client to
run and execute.

Bug: 37262741
Test: Check capability in contacts for VT calling

Change-Id: If426c1c046a2acd16ac30f25e15daf4aa0de1383
2017-04-14 17:58:55 -07:00
Roopesh Rajashekharaiah Nataraja
4505392eca ims: Uce Enabling Uce-HIDL-Service on init
Bug: 37262741
Test: Check capability in contacts for VT calling

Change-Id: If2ecb3280368c7ff7bf5d32937efd26a06b6ef24
2017-04-14 17:58:55 -07:00
Mikhail Naganov
e1e3e5bdf7 soundtrigger: Use "default" instance name for HAL service
"default" implies using "primary" legacy device module.
This doesn't change anything for binderized mode, because
the server was only registering itself as "sound_trigger.primary",
so it was the only possibility anyways.

Usage of "stub" (debugging) module is still possible
if audioflinger and corresponding services are built with
USE_LEGACY_LOCAL_AUDIO_HAL=true (added makefile check to ensure
that).

Change-Id: Idc69c2ae1e0a02a7d2134f469f65d6de72aa5fe9
Test: "Ok Google" from screen off state on sailfish
Bug: 36570720
2017-04-14 15:52:23 +00:00
Jeff Tinker
f3877badc0 Change drm/crypto service names to "default"
bug:36371166
Change-Id: Iec29f5fadcc92d53d486d5a6cf67df55794758fd
2017-04-11 13:01:41 -07:00
TreeHugger Robot
c37e2c4107 Merge "Enable binderized Thermal HAL." 2017-04-11 08:09:32 +00:00
Connor O'Brien
3c7822edf1 Merge "wahoo: use binderized boot HAL" 2017-04-06 20:24:11 +00:00
Polina Bondarenko
b58eebe16e Enable binderized Thermal HAL.
Bug: 36097196
Test: vts

Change-Id: I89c154465b57d665932523af907eb72179070281
2017-04-06 16:23:51 +02:00
Yifan Hong
a7e7e26eba Merge "Add type to device manifest." 2017-04-06 06:23:19 +00:00
Jeff Tinker
ea51adeb28 Add drm hal to wahoo
bug:35808472

Test: compiles, I don't have a device to test
Change-Id: I3839a5335f4fd976a6d668f037756bca00676bb8
2017-04-05 14:56:50 -07:00
Yifan Hong
4e21b916bd Add type to device manifest.
Test: pass
Change-Id: I829f074ed3bd5987817fe48138bd365199be58ca
2017-04-04 20:00:49 -07:00
TreeHugger Robot
aa4df693c7 Merge "Add usb service" 2017-04-05 02:45:58 +00:00
Connor O'Brien
2deebd4cb8 wahoo: use binderized boot HAL
Add the binderized boot HAL service to the manifest and grant
necessary SELinux permissions to access block devices.

Bug: 35810130
Test: Device boots & passes boot VTS test
Change-Id: I4df5ec0ff2f170da31e0748e376cda309802b554
Signed-off-by: Connor O'Brien <connoro@google.com>
2017-04-04 16:48:20 -07:00
Brian Duddie
ac4cb203d6 Merge "Add binderized context hub HAL" 2017-04-04 00:28:27 +00:00
TreeHugger Robot
8c6ba4b3ab Merge "Do not assume default names for VINTF." 2017-04-03 22:54:37 +00:00
Brian Duddie
dfdaceabf2 Add binderized context hub HAL
Add context hub HAL implementation to the build, with new sepolicy files
that resolve these denials:

type=1400 audit(4779207.059:418): avc: denied { write } for pid=809
comm="android.hardwar" name="chre" dev="tmpfs" ino=32491
scontext=u:r:hal_contexthub_default:s0
tcontext=u:object_r:socket_device:s0 tclass=sock_file permissive=1

type=1400 audit(5568590.159:45): avc: denied { connectto } for pid=734
comm="android.hardwar" path="/dev/socket/chre"
scontext=u:r:hal_contexthub_default:s0 tcontext=u:r:chre:s0
tclass=unix_stream_socket permissive=1

Bug: 35808469
Test: confirm HAL gets loaded, VTS passes, no denials from
      hal_contexthub_default
Change-Id: I1882571c0541de78242755cd4b3b1548365a388b
2017-04-03 11:49:09 -07:00
Yifan Hong
abd31bddb4 Do not assume default names for VINTF.
Explicitly state each interface for each HAL.

Bug: 36570950
Test: boots, each HAL works
Change-Id: Iae567439933cf6014734f9a15fff0829707c4193
2017-03-31 15:18:36 -07:00
Ruchi Kandoi
fd5682266a nfc: Enable Binderized NFC HAL
Test: Boots and NFC works
Bug: 36097473
Change-Id: I47a89b59fed2111f443960a5d0d2a0dcfa5bea5f
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
2017-03-31 12:02:07 -07:00
Mikhail Naganov
689da96d32 Bring up binderized Audio and Soundtrigger services on new Pixels
Verified: audio in Hangouts, Play Music + EQ, YouTube,
    audio over A2DP and USB.

Soundtrigger seems to be working--the device wakes up to lockscreen,
need to dismiss it manually, and then Assistant prompt appears
immediately by itself. Looks to me more like an issue with Assistant
rather than with s/t.

Bug: 35808308
Bug: 36098105
Test: manual
Change-Id: I03c0e04a8f35b7da0bbef9dd32e606a07067ba36
2017-03-30 11:19:37 -07:00
Craig Donner
29a50004fa Add VR feature flags and HAL.
Bug: 36097960
Bug: 36462741
Test: adb shell lshal on device, successfully ran Daydream Home, though I'm
seeing some crashes in various things.
Change-Id: Id1af18701e2021ab8c3de7889ec71c316fe4420c
2017-03-29 21:51:11 -07:00
Thierry Strudel
c8490d4b7f Merge "power: import and enable binderized power hal" 2017-03-30 04:49:38 +00:00
Adrian Salido
fdfd0407a4 power: import and enable binderized power hal
Bug: 36096835
Test: boot, verify hal is loaded and taking power hints
Change-Id: I75d7ef2f378f6d71de1776f78726be4812bf196f
2017-03-29 21:04:32 -07:00
Jie Song
58d80579d9 Add wahoo dumpstate and sepolicy with smlog
Bug: 33820081

Test: Verify dumpstate service running
Change-Id: I2dffdb063aa3291b1c9ee95df903977d6a928d1e
2017-03-30 02:53:48 +00:00