mirror of
https://github.com/wu736139669/hapi.git
synced 2026-10-13 20:09:55 +00:00
Expedited WorkManager requests needed an FGS fallback on API 26-30, which dragged in FOREGROUND_SERVICE + FOREGROUND_SERVICE_DATA_SYNC and the Play Console foreground-service declaration that comes with them. Not worth it: gate setExpedited on API 31+ (JobScheduler path, no FGS), let 26-30 enqueue as plain work, delete the getForegroundInfo overrides and the worker notification, and strip WorkManager's library-merged FOREGROUND_SERVICE with tools:node=remove. Merged manifest verified FGS-free.