I am trying to implement a very simple hack. Suppose there are 2 android phones which are connected via wifi and I run an app in Phone B which sends events to phone A like a pinch / swipe / turn.
So conceptually I would have to write an app which opens a socket and whenever there is an event sends an ioctl to kernel driver which injects these virtual events into android input subsystem
I just dont know what part in android that I need to push virtual events any help would be welcome