Move a bunch of app restrictions logic to SettingsLib

Change-Id: I68cd6304164744fd0676d13ef6badffac79adab5
1 file changed