“Protected Apps” setting on Huawei phones, and how to handle it

后端 未结 7 1543
-上瘾入骨i
-上瘾入骨i 2020-11-22 09:48

I have a Huawei P8 with Android 5.0 that I\'m using for testing an app. The app needs to be running in the background, as it tracks BLE regions.

I\'ve discovered t

7条回答
  •  天涯浪人
    2020-11-22 10:26

    I'm using @Aiuspaktyn solution which is missing the part of how to detect when stop show the dialog after the user set the app as protected. I'm use a Service to check if the app was terminated or not, checking if it exists.

提交回复
热议问题