• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Android O - How to draw over the status bar as a system app?

lawfx

Lurker
I know that TYPE_SYSTEM_ERROR, TYPE_SYSTEM_OVERLAY, TYPE_SYSTEM_ALERT etc were deprecated in Android O, which basically banned regular apps from being able to draw over critical system components(like the status bar). However, in the Android docs they say:

This constant was deprecated in API level 26. for non-system apps. Use TYPE_APPLICATION_OVERLAY instead.

was deprecated ... for non-system apps

So, from what I understand you can still use TYPE_SYSTEM_[whatever] in some way IF you are developing as a system app(which my app is because I'm signing it with the same key as the OS is signed with) but I can't find any link to help me with that. If I use it as I would for Android N, it just crashes like a regular app.

Does anyone know if there is a way?
 
Back
Top Bottom