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

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

Handle exception during system initiated service transitions.



Media FGS related apis are expected to be called by media service(i.e
system_server) and are internal. Any exception will result in
system_server crash and soft restart.

There are legit scenarios when foreground transisiton may result
in exception.
Example:Some apps might be doing media playback without calling
startForegroundService.

Test: atest cts/tests/app/src/android/app/cts/ActivityManagerNotifyMediaFGSTypeTest.java
Flag: com.android.media.flags.enable_notifying_activity_manager_with_media_session_status_change
Bug: 383481936, 281762171

Change-Id: Idf205e7b513dfaca481917c2c15e547504262672
Signed-off-by: default avatarPradeep Sawlani <sawlani@google.com>
parent 11c32c6b
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