we designed one custom board same as iMX6SLEVK and ported Android(Kitkat) successfully.
In our custom board we used GPIO's instead of Button matrix keys to implement the suspend/resume .
so how to implement GPIO based suspend/resume in android platform?
Ex: If i press switch for 250ms ,if my board is in wakeup mode it should goto sleep mode.
how i can implement this ?