How to manage installation from Unknown Sources in Android Oreo?

For starters, your application needs to declare a targetSdkVersion of 26 (API level of Android Oreo) or higher in your build.gradle or AndroidManifest.xml for all this to work. Then on to answer the questions above: How to check whether I’m allowed to request a package install? You can check this using getPackageManager().canRequestPackageInstalls() anywhere in your … Read more