Move a bunch of app restrictions logic to SettingsLib

Change-Id: I54106d1175ba8bff8586c8c4dcef87e51fd1483b
1 file changed