Specify foreground service type, namely on the MediaSessionService
Regarding changes to granting partial access to photos and videos, nothing was changed, so it relies on compatibility mode.
More here
The default compatibility mode works more or less ok, and adding specific logic to handle partial access wouldn't help much and would confuse the code.