package android.content.pm; import android.os.IBinder; public interface IPackageManager { String[] getPackagesForUid(int uid); PackageInfo getPackageInfo(String packageName, long flags, int userId); PackageInfo getPackageInfo(String packageName, int flags, int userId); ParceledListSlice getInstalledPackages(int flags, int userId); ParceledListSlice getInstalledPackages(long flags, int userId); int checkPermission(String permName, String pkgName, int userId); class Stub { public static IPackageManager asInterface(IBinder binder) { throw new UnsupportedOperationException("STUB!"); } } }