Added restriction for getPackagesForUid