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

Commit fb93dfbc authored by Pradeep Sawlani's avatar Pradeep Sawlani
Browse files

Enable media fgs state tranistion for app with targetSdkVersion >=34.



Current API level for android is 36 (Android 16). Existing app to ensure
discoverability have upto two years to update i.e on devices with
Android 16, apps with targetSdkVersion >=34 can be discovered on play
store.

Test: atest cts/tests/app/FgsTest/src/android/app/cts/fgstest/ActivityManagerNotifyMediaFGSTypeTest.java
Test: Manually verified an app for app store with targetSdkVersion '34'
Flag: com.android.media.flags.enable_notifying_activity_manager_with_media_session_status_change
BUG: 281762171

Change-Id: I39287cab5fa361531c66451b642f3ec128be5800
Signed-off-by: default avatarPradeep Sawlani <sawlani@google.com>
parent 5b68f436
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -393,7 +393,7 @@ public final class ActiveServices {
     * <li>{@link android.content.pm.ServiceInfo#FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK}</li>
     */
    @ChangeId
    @EnabledSince(targetSdkVersion = VERSION_CODES.VANILLA_ICE_CREAM)
    @EnabledSince(targetSdkVersion = VERSION_CODES.UPSIDE_DOWN_CAKE)
    @Overridable
    public static final long MEDIA_FGS_STATE_TRANSITION = 281762171L;