i was blocking access to the status bar using the code
mlp.InitializeNewInstance("android.view.WindowManager$LayoutParams", Array(vtype, Height0, 2010,296, pixelFormat))
this code runs on devices with android 4 up to android 7.
However, trying to run the same code on devices running android 8.0 and 8.1 generates this error:
Caused by: android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@f3e70bc -- permission denied for window type 2010
As far as i can see, it is no longer allowed to draw over the status bar.
Is it still possible to block access to the status bar and if so, how should that be done?
mlp.InitializeNewInstance("android.view.WindowManager$LayoutParams", Array(vtype, Height0, 2010,296, pixelFormat))
this code runs on devices with android 4 up to android 7.
However, trying to run the same code on devices running android 8.0 and 8.1 generates this error:
Caused by: android.view.WindowManager$BadTokenException: Unable to add window android.view.ViewRootImpl$W@f3e70bc -- permission denied for window type 2010
As far as i can see, it is no longer allowed to draw over the status bar.
Is it still possible to block access to the status bar and if so, how should that be done?