Revert "Revert "Protected apps""

This reverts commit 5677ad378de84102b15fbd84d8f8bf79e7d0d95f.