mercredi 11 février 2015

[Q] Temporarily disable /dev/input/eventX topic






I've installed the app Screen Time on my son's devices.
I'm happy with its functionality, except, he's hacked it.
He must have found out that the application is only active once it's loaded.
That means he has this time window right after booting his device in which he can set the time in order to manipulate what he's allowed and what he's not.
I'd like to prevent him from doing that.
That prevention has to happen quite early on during/after the boot process in order to be effective.
My idea was to write an init.d script that disables touch input until well after all startup applications are loaded and started.
I've found out that the digitizer inputs are accessible on his device through /dev/input/event0.
If I delete it, there's no touch input. Unfortunately, if I reinstate it, touch inputs don't come back. I figure, removing event0 is just to harsh for the layers above to cope.
So I'm wondering, does anyone have an idea if and how it's possible to temporarily disable events being sent through the /dev/input/eventX interface. I looked around in /proc and /sys but couldn't find anything that fits.
If that's not possible, does anyone have another idea how I might be able to solve my problem?






Aucun commentaire:

Enregistrer un commentaire