mirror of
				https://github.com/oplus-giulia-dev/android_hardware_oplus
				synced 2025-11-04 05:45:34 +08:00 
			
		
		
		
	fingerprint: Do not notify AIDL HAL about touch events
As previously noticed with uff fingerprint HIDL HAL, Oplus makes use of touch down/up events for product testing. With the most recent AIDL HAL, entering the code paths for factory tests breaks fingerprint registration. By setting halHandlesDisplayTouches prop to true, the framework will skip passing the display touch events in ISession#onPointerDown and ISession#onPointerUp down to the HAL. Change-Id: I194719f27c182d044c0f4e349c3e0ef032361fbd
This commit is contained in:
		
				
					committed by
					
						
						dianlujitao
					
				
			
			
				
	
			
			
			
						parent
						
							a6435e6bc0
						
					
				
				
					commit
					fd03aaaed9
				
			@@ -61,6 +61,10 @@ SensorProps SensorPropsInit(SensorProps props) {
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    props.halHandlesDisplayTouches =
 | 
			
		||||
            props.sensorType == FingerprintSensorType::UNDER_DISPLAY_OPTICAL ||
 | 
			
		||||
            props.sensorType == FingerprintSensorType::UNDER_DISPLAY_ULTRASONIC;
 | 
			
		||||
 | 
			
		||||
    return props;
 | 
			
		||||
}
 | 
			
		||||
}  // anonymous namespace
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user