Files
device_google_wahoo/manifest.xml

313 lines
9.2 KiB
XML
Raw Normal View History

<manifest version="1.0" type="device">
<hal format="hidl">
<name>android.hardware.audio</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>IDevicesFactory</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.audio.effect</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>IEffectsFactory</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.bluetooth</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IBluetoothHci</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.boot</name>
<transport>hwbinder</transport>
<version>1.0</version>
</hal>
<hal format="hidl">
<name>android.hardware.light</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>ILight</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.biometrics.fingerprint</name>
<transport>hwbinder</transport>
<version>2.1</version>
<interface>
<name>IBiometricsFingerprint</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.bluetooth</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IBluetoothHci</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.camera.provider</name>
<transport>hwbinder</transport>
<version>2.4</version>
<interface>
<name>ICameraProvider</name>
<instance>legacy/0</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.configstore</name>
<transport>hwbinder</transport>
<version>1.1</version>
<interface>
<name>ISurfaceFlingerConfigs</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.contexthub</name>
<transport>hwbinder</transport>
<version>1.0</version>
</hal>
<hal format="hidl">
<name>android.hardware.graphics.allocator</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>IAllocator</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.graphics.composer</name>
<transport>hwbinder</transport>
<version>2.1</version>
<interface>
<name>IComposer</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.graphics.mapper</name>
<transport arch="32+64">passthrough</transport>
<version>2.0</version>
<interface>
<name>IMapper</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.gnss</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IGnss</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.dumpstate</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IDumpstateDevice</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.media.omx</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IOmx</name>
<instance>default</instance>
</interface>
<interface>
<name>IOmxStore</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.memtrack</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IMemtrack</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.power</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IPower</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.vr</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IVr</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.soundtrigger</name>
<transport>hwbinder</transport>
<version>2.0</version>
<interface>
<name>ISoundTriggerHw</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.nfc</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>INfc</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.usb</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IUsb</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.drm</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>ICryptoFactory</name>
<instance>default</instance>
</interface>
<interface>
<name>IDrmFactory</name>
<instance>default</instance>
</interface>
</hal>
<hal>
<name>android.hardware.thermal</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IThermal</name>
<instance>default</instance>
</interface>
</hal>
<!-- IMS UCE Service -->
<hal format="hidl">
<name>com.qualcomm.qti.uceservice</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IUceService</name>
<instance>uceservice0</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.gatekeeper</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IGatekeeper</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.keymaster</name>
<transport>hwbinder</transport>
<version>3.0</version>
<interface>
<name>IKeymasterDevice</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.renderscript</name>
<transport arch="32+64">passthrough</transport>
<version>1.0</version>
<interface>
<name>IDevice</name>
<instance>default</instance>
</interface>
</hal>
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-19 13:45:02 -07:00
<hal format="hidl">
<name>android.hardware.sensors</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>ISensors</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.wifi</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IWifi</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.oemlock</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IOemLock</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>android.hardware.weaver</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IWeaver</name>
<instance>default</instance>
</interface>
</hal>
<hal format="hidl">
<name>vendor.qti.qcril.am</name>
<transport>hwbinder</transport>
<version>1.0</version>
<interface>
<name>IQcRilAudio</name>
<instance>slot1</instance>
<instance>slot2</instance>
</interface>
</hal>
<!-- IMS RTP Service -->
<hal format="hidl">
<name>com.qualcomm.qti.imsrtpservice</name>
<transport>hwbinder</transport>
<impl level="generic"></impl>
<version>1.0</version>
<interface>
<name>IRTPService</name>
<instance>rtpservice0</instance>
</interface>
</hal>
</manifest>