Revert "Revert "Frameworks: Inaccurate proximity switch (2/2)""

This reverts commit 1e1c07da04da0a3eca546d663730839b2540a749.