Merge "Promoting installExistingPackage to SystemApi" into oc-mr1-dev

am: 6561f067bb

Change-Id: If6a3158d88f4ed1590931e0c70efbab3c9115e97
This commit is contained in:
Sunny Goyal
2017-08-11 23:31:29 +00:00
committed by android-build-merger
2 changed files with 6 additions and 0 deletions

View File

@@ -11366,6 +11366,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);
@@ -44845,6 +44847,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);

View File

@@ -4721,6 +4721,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;
/**
@@ -4728,6 +4729,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;