Merge "Reduce number of calls to getApplicationInfo"