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

Skip to content
Commit a4faf620 authored by Pradeep Sawlani's avatar Pradeep Sawlani
Browse files

ActivityManagerService: Add method to set media fgs active.



Changes adds
-  New method in activity manager service to set
   foreground service of type media playback active. This method
   is expected to be called from MediaSessionService when media session
   is "user-engaged" from "user-disengaged" state. This method will move
   service to foreground.
-  New command in am
   am set-media-foreground-service inactive [--user USER_ID] <PACKAGE> <NOTIFICATION_ID>
   Notification ID associated with media service can be found out
   using 'dumpsys activity services` and looking for foregrondId.

Flag: com.android.media.flags.enable_notifying_activity_manager_with_media_session_status_change
BUG: 281762171
Test: atest cts/tests/app/src/android/app/cts/ActivityManagerNotifyMediaFGSTypeTest.java
Change-Id: If4c31c9ecae9bda0c1731dab0cc13d88e1225e1a
Signed-off-by: default avatarPradeep Sawlani <sawlani@google.com>
parent 222c7b1e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment