Loading services/core/java/com/android/server/wm/BackgroundActivityStartController.java +6 −9 Original line number Original line Diff line number Diff line Loading @@ -727,8 +727,7 @@ public class BackgroundActivityStartController { if (state.mBalAllowedByPiCreator.allowsBackgroundActivityStarts()) { if (state.mBalAllowedByPiCreator.allowsBackgroundActivityStarts()) { Slog.wtf(TAG, "With Android 15 BAL hardening this activity start may be blocked" Slog.wtf(TAG, "With Android 15 BAL hardening this activity start may be blocked" + " if the PI creator upgrades target_sdk to 35+! " + " if the PI creator upgrades target_sdk to 35+! " + " (missing opt in by PI creator)! " + " (missing opt in by PI creator)!" + state.dump()); + state.dump()); showBalRiskToast(); showBalRiskToast(); return allowBasedOnCaller(state); return allowBasedOnCaller(state); } } Loading @@ -738,16 +737,14 @@ public class BackgroundActivityStartController { if (state.mBalAllowedByPiSender.allowsBackgroundActivityStarts()) { if (state.mBalAllowedByPiSender.allowsBackgroundActivityStarts()) { Slog.wtf(TAG, "With Android 14 BAL hardening this activity start will be blocked" Slog.wtf(TAG, "With Android 14 BAL hardening this activity start will be blocked" + " if the PI sender upgrades target_sdk to 34+! " + " if the PI sender upgrades target_sdk to 34+! " + " (missing opt in by PI sender)! " + " (missing opt in by PI sender)!" + state.dump()); + state.dump()); showBalRiskToast(); showBalRiskToast(); return allowBasedOnRealCaller(state); return allowBasedOnRealCaller(state); } } } } // caller or real caller could start the activity, but would need to explicitly opt in // caller or real caller could start the activity, but would need to explicitly opt in if (callerCanAllow || realCallerCanAllow) { if (callerCanAllow || realCallerCanAllow) { Slog.wtf(TAG, "Without BAL hardening this activity start would be allowed " Slog.w(TAG, "Without BAL hardening this activity start would be allowed"); + state.dump()); } } // neither the caller not the realCaller can allow or have explicitly opted out // neither the caller not the realCaller can allow or have explicitly opted out return abortLaunch(state); return abortLaunch(state); Loading @@ -770,7 +767,7 @@ public class BackgroundActivityStartController { } } private BalVerdict abortLaunch(BalState state) { private BalVerdict abortLaunch(BalState state) { Slog.w(TAG, "Background activity launch blocked! " Slog.wtf(TAG, "Background activity launch blocked! " + state.dump()); + state.dump()); showBalBlockedToast(); showBalBlockedToast(); return statsLog(BalVerdict.BLOCK, state); return statsLog(BalVerdict.BLOCK, state); Loading Loading
services/core/java/com/android/server/wm/BackgroundActivityStartController.java +6 −9 Original line number Original line Diff line number Diff line Loading @@ -727,8 +727,7 @@ public class BackgroundActivityStartController { if (state.mBalAllowedByPiCreator.allowsBackgroundActivityStarts()) { if (state.mBalAllowedByPiCreator.allowsBackgroundActivityStarts()) { Slog.wtf(TAG, "With Android 15 BAL hardening this activity start may be blocked" Slog.wtf(TAG, "With Android 15 BAL hardening this activity start may be blocked" + " if the PI creator upgrades target_sdk to 35+! " + " if the PI creator upgrades target_sdk to 35+! " + " (missing opt in by PI creator)! " + " (missing opt in by PI creator)!" + state.dump()); + state.dump()); showBalRiskToast(); showBalRiskToast(); return allowBasedOnCaller(state); return allowBasedOnCaller(state); } } Loading @@ -738,16 +737,14 @@ public class BackgroundActivityStartController { if (state.mBalAllowedByPiSender.allowsBackgroundActivityStarts()) { if (state.mBalAllowedByPiSender.allowsBackgroundActivityStarts()) { Slog.wtf(TAG, "With Android 14 BAL hardening this activity start will be blocked" Slog.wtf(TAG, "With Android 14 BAL hardening this activity start will be blocked" + " if the PI sender upgrades target_sdk to 34+! " + " if the PI sender upgrades target_sdk to 34+! " + " (missing opt in by PI sender)! " + " (missing opt in by PI sender)!" + state.dump()); + state.dump()); showBalRiskToast(); showBalRiskToast(); return allowBasedOnRealCaller(state); return allowBasedOnRealCaller(state); } } } } // caller or real caller could start the activity, but would need to explicitly opt in // caller or real caller could start the activity, but would need to explicitly opt in if (callerCanAllow || realCallerCanAllow) { if (callerCanAllow || realCallerCanAllow) { Slog.wtf(TAG, "Without BAL hardening this activity start would be allowed " Slog.w(TAG, "Without BAL hardening this activity start would be allowed"); + state.dump()); } } // neither the caller not the realCaller can allow or have explicitly opted out // neither the caller not the realCaller can allow or have explicitly opted out return abortLaunch(state); return abortLaunch(state); Loading @@ -770,7 +767,7 @@ public class BackgroundActivityStartController { } } private BalVerdict abortLaunch(BalState state) { private BalVerdict abortLaunch(BalState state) { Slog.w(TAG, "Background activity launch blocked! " Slog.wtf(TAG, "Background activity launch blocked! " + state.dump()); + state.dump()); showBalBlockedToast(); showBalBlockedToast(); return statsLog(BalVerdict.BLOCK, state); return statsLog(BalVerdict.BLOCK, state); Loading