Go through this. This is an official statement by google.
The patch restricts the installation of overlays to pre-installed or system-signed apps, in response to a legitimate security issue raised in Android Oreo. Android P also includes this critical security patch, so it restricts overlays in the same way as does Android Oreo. This means we no longer will be able to see substratum theme or gcams.