shadows/framework/src/main/java/org/robolectric/shadows/ShadowPackageManager.java
public PackageSetting getPackageSetting(String packageName) {
    PackageSetting setting = packageSettings.get(packageName);
    return setting == null ? null : new PackageSetting(setting);
  }
public PackageSetting getPackageSetting(String packageName) {
    PackageSetting setting = packageSettings.get(packageName);
    return setting == null ? null : new PackageSetting(setting);
  }
Returns the current {@link PackageSetting} of {@code packageName}.

If {@code packageName} is not present in this {@link ShadowPackageManager}, this method will
return null.