Audio playback in sideloaded apps on the background stops after 55 seconds

FWIW I tried to investigate this a bit. I noticed an error in the log Stopping service due to app idle: u0a124 -1m6s33ms

By running this adb command I was able to prevent Android from killing the playback service: adb shell cmd deviceidle whitelist +de.danoeh.antennapod

Antennapod was then able to play for about 3m30s before it died, but possibly just due to a crash. The log mentioned something about Duraspeed: DuraSpeed: de.danoeh.antennapod, appType: 0x2181, adj: 0 05-21 23:15:22.337 1064 1077 W ActivityManager: Scheduling restart of crashed service

Looking into this led to this thread: Sideloaded Apps dont stay running in Background! - #8 by miiiiiiiiiiiii

Where they recommend side loading ‘Activity Manager’ then checking duraspeed settings - Duraspeed is a process manager that tries to kill/stop idle apps so the premise is that you can whitelist apps to let them keep running in the background.

That said, I did a second test and played the podcast again and it has played for 10 minutes now without having to do anything further, so I will report back later if it’s at least working thus far.

1 Like