I am using overlay permission to display certain information in my app. Running it on API 23 - 25 it works fine (asking for permission, granting, etc. according to
U
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) { WindowManager.LayoutParams.TYPE_SYSTEM_ERROR } else { WindowManager.LayoutParams.TYPE_APPLICATION_OVERLAY }
only change in this parameter of Window manager