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

Commit 07f41fb6 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Promoting installExistingPackage to SystemApi

Bug: 38269105
Test: N/A
Change-Id: If45076b00e91cd4cc8a887b0f36d427d8a5cdaf3
parent bd9884a3
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -11368,6 +11368,8 @@ package android.content.pm {
    method public abstract void grantRuntimePermission(java.lang.String, java.lang.String, android.os.UserHandle);
    method public abstract boolean hasSystemFeature(java.lang.String);
    method public abstract boolean hasSystemFeature(java.lang.String, int);
    method public abstract int installExistingPackage(java.lang.String) throws android.content.pm.PackageManager.NameNotFoundException;
    method public abstract int installExistingPackage(java.lang.String, int) throws android.content.pm.PackageManager.NameNotFoundException;
    method public abstract boolean isInstantApp();
    method public abstract boolean isInstantApp(java.lang.String);
    method public abstract boolean isPermissionRevokedByPolicy(java.lang.String, java.lang.String);
@@ -44746,6 +44748,8 @@ package android.test.mock {
    method public void grantRuntimePermission(java.lang.String, java.lang.String, android.os.UserHandle);
    method public boolean hasSystemFeature(java.lang.String);
    method public boolean hasSystemFeature(java.lang.String, int);
    method public int installExistingPackage(java.lang.String) throws android.content.pm.PackageManager.NameNotFoundException;
    method public int installExistingPackage(java.lang.String, int) throws android.content.pm.PackageManager.NameNotFoundException;
    method public boolean isInstantApp();
    method public boolean isInstantApp(java.lang.String);
    method public boolean isPermissionRevokedByPolicy(java.lang.String, java.lang.String);
+2 −0
Original line number Diff line number Diff line
@@ -4700,6 +4700,7 @@ public abstract class PackageManager {
     * on the system for other users, also install it for the calling user.
     * @hide
     */
    @SystemApi
    public abstract int installExistingPackage(String packageName) throws NameNotFoundException;

    /**
@@ -4707,6 +4708,7 @@ public abstract class PackageManager {
     * on the system for other users, also install it for the calling user.
     * @hide
     */
    @SystemApi
    public abstract int installExistingPackage(String packageName, @InstallReason int installReason)
            throws NameNotFoundException;