PEEK: Sensors improvements

- Bring some fixes to the algorithm thanks to @D4rKn3sSyS
- Cleanup

Signed-off-by: Carlo Savignano <stevewatersy@gmail.com>
(cherry picked from commit 3a3e324387a89adf33a68cb5d262adedb880a6ea)
Updating ActivityIntentResolver so that queryIntents doesn't return protected applications.

Change-Id: I037cddaf91b6943b8cc837c5b046cf320c4caa5f
(cherry picked from commit 4f2cd234e686448561a9e7c5b3e8d41bbc01aa91)