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

Commit 1cdaa23f authored by Atneya Nair's avatar Atneya Nair Committed by Android (Google) Code Review
Browse files

Merge "Change default caps for BOUND_TOP to superset FGS" into main

parents 4ee1ab41 4458f587
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1031,7 +1031,9 @@ public class ActivityManager {
            | PROCESS_CAPABILITY_FOREGROUND_AUDIO_CONTROL;

    /**
     * All implicit capabilities. There are capabilities that process automatically have.
     * All implicit capabilities. This capability set is currently only used for processes under
     * active instrumentation. The intent is to allow CTS tests to always have these capabilities
     * so that every test doesn't need to launch FGS.
     * @hide
     */
    @TestApi
+6 −1
Original line number Diff line number Diff line
@@ -3283,7 +3283,12 @@ public class OomAdjuster {
                baseCapabilities = PROCESS_CAPABILITY_ALL; // BFSL allowed
                break;
            case PROCESS_STATE_BOUND_TOP:
                if (app.getActiveInstrumentation() != null) {
                    baseCapabilities = PROCESS_CAPABILITY_BFSL |
                            PROCESS_CAPABILITY_ALL_IMPLICIT;
                } else {
                    baseCapabilities = PROCESS_CAPABILITY_BFSL;
                }
                break;
            case PROCESS_STATE_FOREGROUND_SERVICE:
                if (app.getActiveInstrumentation() != null) {