Is it possible to kill a “android:persistent=true” system-level app?

后端 未结 2 1615
长发绾君心
长发绾君心 2021-02-09 03:11

I have an app that is just a service that launches on boot. I am developing at the system level, so I am using android:persistent=true in order to ensure my service

2条回答
  •  盖世英雄少女心
    2021-02-09 03:29

    android:persistent=true
    

    Works for preloaded applications, doesn't work for downloaded applications (e.g. APPs from Play Store, installed from apk or AS) Suggest to use foreground service method - The highest priority process. Official example here, Another full-code example here

提交回复
热议问题