Loading services/core/java/com/android/server/am/ActiveServices.java +13 −0 Original line number Diff line number Diff line Loading @@ -4869,6 +4869,19 @@ public final class ActiveServices { return true; } if (r.app != null) { ActiveInstrumentation instr = r.app.getActiveInstrumentation(); if (instr != null && instr.mHasBackgroundActivityStartsPermission) { return true; } } final boolean hasAllowBackgroundActivityStartsToken = r.app != null ? !r.app.mAllowBackgroundActivityStartsTokens.isEmpty() : false; if (hasAllowBackgroundActivityStartsToken) { return true; } if (mAm.checkPermission(START_ACTIVITIES_FROM_BACKGROUND, callingPid, callingUid) == PERMISSION_GRANTED) { return true; Loading Loading
services/core/java/com/android/server/am/ActiveServices.java +13 −0 Original line number Diff line number Diff line Loading @@ -4869,6 +4869,19 @@ public final class ActiveServices { return true; } if (r.app != null) { ActiveInstrumentation instr = r.app.getActiveInstrumentation(); if (instr != null && instr.mHasBackgroundActivityStartsPermission) { return true; } } final boolean hasAllowBackgroundActivityStartsToken = r.app != null ? !r.app.mAllowBackgroundActivityStartsTokens.isEmpty() : false; if (hasAllowBackgroundActivityStartsToken) { return true; } if (mAm.checkPermission(START_ACTIVITIES_FROM_BACKGROUND, callingPid, callingUid) == PERMISSION_GRANTED) { return true; Loading