Merge "Restored original behavior of getApplicationRestrictions"