diff options
| author | Paul Keith <javelinanddart@gmail.com> | 2019-01-09 13:40:08 +0100 |
|---|---|---|
| committer | Luca Stefani <luca.stefani.ge1@gmail.com> | 2019-02-04 20:48:04 +0100 |
| commit | 4b1c700ff2ab36e6fda78747fc499a8742c18be7 (patch) | |
| tree | 009b4c51e60b950a62bc4d6e2b3366fa73f2d67b | |
| parent | 73c5a16d9b49acadaf136682887651ecebb69dda (diff) | |
| download | android_hardware_lineage_interfaces-4b1c700ff2ab36e6fda78747fc499a8742c18be7.tar.gz android_hardware_lineage_interfaces-4b1c700ff2ab36e6fda78747fc499a8742c18be7.tar.bz2 android_hardware_lineage_interfaces-4b1c700ff2ab36e6fda78747fc499a8742c18be7.zip | |
interfaces: Add trust 1.0 HAL
* For setting USB device restriction in kernel
Change-Id: If4a0abd6bd5475a55ff766d6c3dea6f70e1cb9a4
| -rw-r--r-- | trust/1.0/Android.bp | 14 | ||||
| -rw-r--r-- | trust/1.0/IUsbRestrict.hal | 22 |
2 files changed, 36 insertions, 0 deletions
diff --git a/trust/1.0/Android.bp b/trust/1.0/Android.bp new file mode 100644 index 0000000..8484eae --- /dev/null +++ b/trust/1.0/Android.bp @@ -0,0 +1,14 @@ +// This file is autogenerated by hidl-gen -Landroidbp. + +hidl_interface { + name: "vendor.lineage.trust@1.0", + root: "vendor.lineage", + srcs: [ + "IUsbRestrict.hal", + ], + interfaces: [ + "android.hidl.base@1.0", + ], + gen_java: true, +} + diff --git a/trust/1.0/IUsbRestrict.hal b/trust/1.0/IUsbRestrict.hal new file mode 100644 index 0000000..4d874dc --- /dev/null +++ b/trust/1.0/IUsbRestrict.hal @@ -0,0 +1,22 @@ +/* + * Copyright (C) 2019 The LineageOS Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package vendor.lineage.trust@1.0; + +interface IUsbRestrict { + isEnabled() generates (bool rc); + setEnabled(bool enabled); +}; |
