修改ro.sf.hwrotation 后hdmi usb 触摸不准问题

diff --git a/frameworks/base/services/core/jni/com_android_server_input_InputManagerService.cpp b/frameworks/base/services/core/jni/com_android_server_input_InputMa
nagerService.cpp
index 30f4929..f866dda 100644
--- a/frameworks/base/services/core/jni/com_android_server_input_InputManagerService.cpp
+++ b/frameworks/base/services/core/jni/com_android_server_input_InputManagerService.cpp
@@ -324,10 +324,12 @@ NativeInputManager::NativeInputManager(jobject contextObj,
         mLocked.pointerGesturesEnabled = true;
         mLocked.showTouches = false;
         mLocked.hardwareRotation = 0;
+       #if 0
    char property[PROPERTY_VALUE_MAX];
         if (property_get("ro.sf.hwrotation", property, "0") > 0) {
             mLocked.hardwareRotation = atoi(property) / 90; 
         }   
+       #endif 
 
     }   
     mInteractive = true;
-- 

你可能感兴趣的:(Android)