device: input: do not show dialog, more cleanups

do not show dialog while processing.
rather disable all preferences and enable them on result.

Also some code cleanups, adjusting of copyright.

Change-Id: Ie1ec5eb39c44d207b711700ed3b2428aa246652c