sm8250-common: tri-state-key: Fix vibrate position for op8p
This commit is contained in:
parent
0e782407a5
commit
c0a973b2db
2 changed files with 6 additions and 1 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue