diff --git a/services/inputflinger/reader/EventHub.cpp b/services/inputflinger/reader/EventHub.cpp
index f08c9a37fe..b11d34fd58 100644--- a/services/inputflinger/reader/EventHub.cpp
+++ b/services/inputflinger/reader/EventHub.cpp
@@ -2154,6+2154,10 @@ void EventHub::openDeviceLocked(const std::string& devicePath){// is possible that the same input event node (for example, /dev/input/event3) will be noticed// in both 'inotify' callback and also in the 'scanDirLocked' pass. To prevent duplicate devices// from getting registered, ensure that this path is not already covered by an existing device.+++// +for(constauto&[deviceId, device]: mDevices){if(device->path == devicePath){return;// device was already registered
@@ -2179,6+2183,14 @@ void EventHub::openDeviceLocked(const std::string& devicePath){
buffer[sizeof(buffer)-1]='\0';
identifier.name = buffer;}+ALOGE("liujunjie ===================== device: %s name:%s ===,%d==",devicePath.c_str(),identifier.name.c_str(),strcmp(identifier.name.c_str(),"SIGMACHIP Usb Mouse")==0);+// liujunjie ADD +if(strcmp(identifier.name.c_str(),"CASUE USB KB Consumer Control")==0||strcmp(identifier.name.c_str(),"SIGMACHIP Usb Mouse")==0||strcmp(identifier.name.c_str(),"CASUE USB KB")==0){+ALOGE("liujunjie ======= retrun ============== device: %s name:%s =====",devicePath.c_str(),identifier.name.c_str());+close(fd);+return;+}+// liujunjie add end // Check to see if the device is on our excluded listfor(size_t i =0; i < mExcludedDevices.size(); i++){