https://bugs.kde.org/show_bug.cgi?id=404163

--- Comment #5 from kmahyyg <i...@kmahyyg.xyz> ---
Part 3: Maybe a solution?

(Cuz I'm NOT a native speaker of English, the word may not be so suitable. So
sorry for that. Also, I'm just a geek for Android, not a developer, hope the
following things may be useful to you. These methods may be black magic, use
with caution and maybe just Using them on some ROMs(eg. Huawei EMUI) is okay.)

0. Ask user to whitelist this app and enable persistent notification by default
if some custom ROM detected.

1. Double processes to keep service alive via AIDL (based on `onStartCommand()
return START_STICKY`)

2. Trying to decrease the value of `oom_adj`:
- Listen to lock screen broadcast and then open a single pixel activity.
- Loop play some "empty" audio
- Use JobScheduler to wake service up if killed

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to