import android.annotation.SdkConstant.SdkConstantType;
import android.annotation.StringRes;
import android.annotation.SystemApi;
-import android.annotation.UserIdInt;
import android.annotation.TestApi;
+import android.annotation.UserIdInt;
import android.annotation.XmlRes;
import android.app.PackageDeleteObserver;
import android.app.PackageInstallObserver;
import android.os.UserHandle;
import android.os.storage.VolumeInfo;
import android.util.AndroidException;
+import android.util.Log;
import com.android.internal.util.ArrayUtils;
* You can find this class through {@link Context#getPackageManager}.
*/
public abstract class PackageManager {
+ private static final String TAG = "PackageManager";
/**
* This exception is thrown when a given package, application, or component
public abstract List<ResolveInfo> queryBroadcastReceiversAsUser(Intent intent,
@ResolveInfoFlags int flags, @UserIdInt int userId);
+ /** {@hide} */
+ @Deprecated
+ public List<ResolveInfo> queryBroadcastReceivers(Intent intent,
+ @ResolveInfoFlags int flags, @UserIdInt int userId) {
+ Log.w(TAG, "STAHP USING HIDDEN APIS KTHX");
+ return queryBroadcastReceiversAsUser(intent, flags, userId);
+ }
+
/**
* Determine the best service to handle for a given Intent.
*
* but the older observer interface will not get additional
* failure details.
*/
- // @SystemApi
public abstract void installPackage(
Uri packageURI, IPackageInstallObserver observer, int flags,
String installerPackageName);
* continue to be supported but the older observer interface
* will not get additional failure details.
*/
- // @SystemApi
public abstract void installPackageWithVerification(Uri packageURI,
IPackageInstallObserver observer, int flags, String installerPackageName,
Uri verificationURI,
* on the system for other users, also install it for the calling user.
* @hide
*/
- // @SystemApi
public abstract int installExistingPackage(String packageName) throws NameNotFoundException;
/**