How to manage installation from Unknown Sources in Android Oreo? : <p>In Android Oreo (8.0), several changes where made on how to allow the installation of apps from Unknown Sources  (from the user's point of view) and to the process of getting permission to install them (from the developer's point of view).</p>

<p>Since I found it particularly hard to find all the steps necessary on the developer side, I thought it to be useful to ask here for the solution and answer the question myself, now that I found the answers, for future reference to those, who are facing the same obstacles.</p>

<p>The answer will include the following questions:</p>

<ol>
<li>How to check whether I'm allowed to request a package install?</li>
<li>What exact permission do I have to request?</li>
<li>How can I prompt the user to grant this permission?</li>
<li>How do I prompt the user to install a specified .apk?</li>
</ol>

<p>(If I still miss anything here, I'd be grateful for any additional answers or comments pointing that out.)</p>
