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

Commit 3e250ec9 authored by Achim Thesmann's avatar Achim Thesmann
Browse files

Add additional info to log message.

Android 14/15 BAL hardening will not automatically be enabled with the
OS upgrade, but will only affect the app if it upgrades the target_sdk.

Test: atest BackgroundActivityLaunchTest
Bug: 306059525
Change-Id: Ibef2270aad257aafbde139f027d0b913dcdf2e55
parent 17407daf
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -513,7 +513,9 @@ public class BackgroundActivityStartController {
                == ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_SYSTEM_DEFINED) {
            // Both caller and real caller allow with system defined behavior
            Slog.wtf(TAG,
                    "With Android 15 BAL hardening this activity start would be blocked"
                    "With Android 15 BAL hardening this activity start may be blocked"
                            + " if the PI creator upgrades target_sdk to 35+"
                            + " AND the PI sender upgrades target_sdk to 34+! "
                            + " (missing opt in by PI creator)! "
                            + state.dump(resultForCaller, resultForRealCaller));
            showBalRiskToast("BAL would be blocked", state);
@@ -525,7 +527,8 @@ public class BackgroundActivityStartController {
                == ActivityOptions.MODE_BACKGROUND_ACTIVITY_START_SYSTEM_DEFINED) {
            // Allowed before V by creator
            Slog.wtf(TAG,
                    "With Android 15 BAL hardening this activity start would be blocked"
                    "With Android 15 BAL hardening this activity start may be blocked"
                            + " if the PI creator upgrades target_sdk to 35+! "
                            + " (missing opt in by PI creator)! "
                            + state.dump(resultForCaller, resultForRealCaller));
            showBalRiskToast("BAL would be blocked", state);
@@ -537,7 +540,8 @@ public class BackgroundActivityStartController {
            // Allowed before U by sender
            if (state.mBalAllowedByPiSender.allowsBackgroundActivityStarts()) {
                Slog.wtf(TAG,
                        "With Android 14 BAL hardening this activity start would be blocked"
                        "With Android 14 BAL hardening this activity start will be blocked"
                                + " if the PI sender upgrades target_sdk to 34+! "
                                + " (missing opt in by PI sender)! "
                                + state.dump(resultForCaller, resultForRealCaller));
                showBalBlockedToast("BAL would be blocked", state);