Looking for example on making a one shot (trigger) sensor for Android

Hey,

I’m trying to figure out how to make a one-shot sensor kernel module + Android HAL. Can anyone point me in the right direction? Thanks.