enable instant apps
Change-Id: I91aca48efe3d2b0a5035ffdcff0d6a893ee515e1 Fixes: 30256615
This commit is contained in:
@@ -366,8 +366,8 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
|
||||
static final boolean CLEAR_RUNTIME_PERMISSIONS_ON_UPGRADE = false;
|
||||
|
||||
// STOPSHIP; b/30256615
|
||||
private static final boolean DISABLE_EPHEMERAL_APPS = !Build.IS_DEBUGGABLE;
|
||||
private static final boolean DISABLE_EPHEMERAL_APPS = false;
|
||||
private static final boolean HIDE_EPHEMERAL_APIS = true;
|
||||
|
||||
private static final int RADIO_UID = Process.PHONE_UID;
|
||||
private static final int LOG_UID = Process.LOG_UID;
|
||||
@@ -6283,7 +6283,7 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
|
||||
@Override
|
||||
public ParceledListSlice<EphemeralApplicationInfo> getEphemeralApplications(int userId) {
|
||||
if (isEphemeralDisabled()) {
|
||||
if (HIDE_EPHEMERAL_APIS || isEphemeralDisabled()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -6307,7 +6307,7 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
enforceCrossUserPermission(Binder.getCallingUid(), userId,
|
||||
true /* requireFullPermission */, false /* checkShell */,
|
||||
"isEphemeral");
|
||||
if (isEphemeralDisabled()) {
|
||||
if (HIDE_EPHEMERAL_APIS || isEphemeralDisabled()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -6325,7 +6325,7 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
|
||||
@Override
|
||||
public byte[] getEphemeralApplicationCookie(String packageName, int userId) {
|
||||
if (isEphemeralDisabled()) {
|
||||
if (HIDE_EPHEMERAL_APIS || isEphemeralDisabled()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -6343,7 +6343,7 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
|
||||
@Override
|
||||
public boolean setEphemeralApplicationCookie(String packageName, byte[] cookie, int userId) {
|
||||
if (isEphemeralDisabled()) {
|
||||
if (HIDE_EPHEMERAL_APIS || isEphemeralDisabled()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -6361,7 +6361,7 @@ public class PackageManagerService extends IPackageManager.Stub {
|
||||
|
||||
@Override
|
||||
public Bitmap getEphemeralApplicationIcon(String packageName, int userId) {
|
||||
if (isEphemeralDisabled()) {
|
||||
if (HIDE_EPHEMERAL_APIS || isEphemeralDisabled()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user