From: Rashed Abdel-Tawab Date: Wed, 21 Aug 2019 23:55:03 +0000 (-0700) Subject: exynos9610: Rename USB HAL suffix to exynos9610 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=134ce42e659e011fc3a634c148b12bbb6c6deb35;p=GitHub%2FLineageOS%2Fandroid_device_motorola_exynos9610-common.git exynos9610: Rename USB HAL suffix to exynos9610 Change-Id: Iffc638b3bf747be07e9ce34278edeb546b905948 --- diff --git a/hidl/usb/Android.bp b/hidl/usb/Android.bp index f5bde70..263be6c 100644 --- a/hidl/usb/Android.bp +++ b/hidl/usb/Android.bp @@ -13,9 +13,9 @@ // See the License for the specific language governing permissions and // limitations under the License. cc_binary { - name: "android.hardware.usb@1.1-service.wahoo", + name: "android.hardware.usb@1.1-service.exynos9610", relative_install_path: "hw", - init_rc: ["android.hardware.usb@1.1-service.wahoo.rc"], + init_rc: ["android.hardware.usb@1.1-service.exynos9610.rc"], srcs: ["service.cpp", "Usb.cpp"], cflags: [ "-Wall", diff --git a/hidl/usb/Usb.cpp b/hidl/usb/Usb.cpp index 5f8bdce..46124d0 100644 --- a/hidl/usb/Usb.cpp +++ b/hidl/usb/Usb.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -#define LOG_TAG "android.hardware.usb@1.1-service.wahoo" +#define LOG_TAG "android.hardware.usb@1.1-service.exynos9610" #include #include diff --git a/hidl/usb/android.hardware.usb@1.1-service.exynos9610.rc b/hidl/usb/android.hardware.usb@1.1-service.exynos9610.rc new file mode 100644 index 0000000..a9226e5 --- /dev/null +++ b/hidl/usb/android.hardware.usb@1.1-service.exynos9610.rc @@ -0,0 +1,12 @@ +service vendor.usb-hal-1-1 /vendor/bin/hw/android.hardware.usb@1.1-service.exynos9610 + class hal + user root + group root system + +on boot + chown root system /sys/class/typec/port0/power_role + chown root system /sys/class/typec/port0/data_role + chown root system /sys/class/typec/port0/port_type + chmod 664 /sys/class/typec/port0/power_role + chmod 664 /sys/class/typec/port0/data_role + chmod 664 /sys/class/typec/port0/port_type diff --git a/hidl/usb/android.hardware.usb@1.1-service.wahoo.rc b/hidl/usb/android.hardware.usb@1.1-service.wahoo.rc deleted file mode 100644 index 1bb4977..0000000 --- a/hidl/usb/android.hardware.usb@1.1-service.wahoo.rc +++ /dev/null @@ -1,12 +0,0 @@ -service vendor.usb-hal-1-1 /vendor/bin/hw/android.hardware.usb@1.1-service.wahoo - class hal - user root - group root system - -on boot - chown root system /sys/class/typec/port0/power_role - chown root system /sys/class/typec/port0/data_role - chown root system /sys/class/typec/port0/port_type - chmod 664 /sys/class/typec/port0/power_role - chmod 664 /sys/class/typec/port0/data_role - chmod 664 /sys/class/typec/port0/port_type diff --git a/hidl/usb/service.cpp b/hidl/usb/service.cpp index 5fffc4c..0fbb3b1 100644 --- a/hidl/usb/service.cpp +++ b/hidl/usb/service.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -#define LOG_TAG "android.hardware.usb@1.1-service.wahoo" +#define LOG_TAG "android.hardware.usb@1.1-service.exynos9610" #include #include "Usb.h"