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

Commit 01a947c8 authored by Sudheer Shanka's avatar Sudheer Shanka Committed by Android (Google) Code Review
Browse files

Merge "Cleanup flag pkg_targeted_battery_changed_not_sticky." into main

parents e5218c16 9f080517
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -1041,12 +1041,7 @@ public final class BatteryService extends SystemService {
        final Intent fgIntent = new Intent(intent);
        fgIntent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
        fgIntent.setPackage(sSystemUiPackage);
        if (com.android.server.flags.Flags.pkgTargetedBatteryChangedNotSticky()) {
        context.sendBroadcastAsUser(fgIntent, UserHandle.ALL, null, options);
        } else {
            ActivityManager.broadcastStickyIntent(fgIntent, AppOpsManager.OP_NONE,
                    options, UserHandle.USER_ALL);
        }

        ActivityManager.broadcastStickyIntent(intent, new String[] {sSystemUiPackage},
                AppOpsManager.OP_NONE, options, UserHandle.USER_ALL);
+0 −11
Original line number Diff line number Diff line
package: "com.android.server.flags"
container: "system"

flag {
    namespace: "backstage_power"
    name: "pkg_targeted_battery_changed_not_sticky"
    description: "Avoid sending the package targeted BATTERY_CHANGED broadcast as sticky"
    bug: "336832816"
    is_fixed_read_only: true
    metadata {
        purpose: PURPOSE_BUGFIX
    }
}

flag {
    namespace: "input"
    name: "modifier_shortcut_manager_multiuser"