getPackageInfo method