Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b8cadef3 authored by Jeff Schumacher's avatar Jeff Schumacher
Browse files

Made ActivityManager.forceStopPackage a @SystemApi

This change exposes ActivityManager.forceStopPackage as a @SystemApi so the
Play Store can use it.

Test: Patched in the GTS tests in ag/1753727 and made sure they passed.
Bug: 33021637
Change-Id: I4891f96cde035228ce42aefb726c5fc3c1dd30b3
parent e6a0583b
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3858,6 +3858,7 @@ package android.app {
    method public boolean clearApplicationUserData();
    method public void clearWatchHeapLimit();
    method public void dumpPackageState(java.io.FileDescriptor, java.lang.String);
    method public void forceStopPackage(java.lang.String);
    method public android.util.Size getAppTaskThumbnailSize();
    method public java.util.List<android.app.ActivityManager.AppTask> getAppTasks();
    method public static int getCurrentUser();
+2 −0
Original line number Diff line number Diff line
@@ -3336,6 +3336,8 @@ public class ActivityManager {
     * @see #forceStopPackageAsUser(String, int)
     * @hide
     */
    @SystemApi
    @RequiresPermission(Manifest.permission.FORCE_STOP_PACKAGES)
    public void forceStopPackage(String packageName) {
        forceStopPackageAsUser(packageName, UserHandle.myUserId());
    }