sm8250-common: tri-state-key: Fix vibrate position for op8p

This commit is contained in:
Peter Cai 2019-06-21 19:05:24 +08:00 committed by LuK1337
parent 0e782407a5
commit c0a973b2db
2 changed files with 6 additions and 1 deletions

View file

@ -79,8 +79,10 @@ int main() {
return;
}
LOG(INFO) << uevent.state;
bool none = uevent.state.find("USB=0") != std::string::npos;
bool vibration = uevent.state.find("USB_HOST=0") != std::string::npos;
bool vibration = uevent.state.find("USB-HOST=0") != std::string::npos;
bool silent = uevent.state.find("null)=0") != std::string::npos;
int keyCode;

View file

@ -1,3 +1,6 @@
on fs
start tri-state-key_daemon
service tri-state-key_daemon /system/bin/tri-state-key_daemon
class late_start
user system