This is a bit of a science project; I'm trying to better understand launchers as well as the Android restricted profile system. I'm looking for a way to programmatically assign a different default launcher to a restricted profile than a non-restricted profile.
Basically I want to check if the profile is restricted and if so then set the default launcher for this profile to myRestrictedLauncher.apk instead of launcher2.apk.