Fix up open bugs from gs201 AIDL migration

1. Remove unused group "wakelock".
2. Correct the right return value on setCurrentUsbFunctions.

Bug: 266694076
Test: Boot to home and function work
Change-Id: If0925a61e481e4deca560dc8dfc1be80a76c148f
(cherry picked from commit 5c7e338667a7f21c27f5789c16a4781dcbbe8755)
This commit is contained in:
Ricky Niu 2023-02-01 19:40:22 +08:00 committed by Chien Kun Niu
parent 400c1a9ca3
commit 704316d8ba
2 changed files with 2 additions and 5 deletions

View file

@ -530,9 +530,7 @@ ScopedAStatus UsbGadget::setCurrentUsbFunctions(long functions,
} }
ALOGI("Usb Gadget setcurrent functions called successfully"); ALOGI("Usb Gadget setcurrent functions called successfully");
return ScopedAStatus::fromServiceSpecificErrorWithMessage( return ScopedAStatus::ok();
-1, "Usb Gadget setcurrent functions called successfully");
error: error:
ALOGI("Usb Gadget setcurrent functions failed"); ALOGI("Usb Gadget setcurrent functions failed");

View file

@ -1,8 +1,7 @@
service vendor.usb-gadget-hal /vendor/bin/hw/android.hardware.usb.gadget-service service vendor.usb-gadget-hal /vendor/bin/hw/android.hardware.usb.gadget-service
class hal class hal
user system user system
group system shell mtp wakelock group system shell mtp
capabilities WAKE_ALARM BLOCK_SUSPEND
on post-fs on post-fs
chown root system /sys/class/typec/port0/power_role chown root system /sys/class/typec/port0/power_role