Bypass Android's hidden API restrictions : <p>Starting with Android Pie, <a href="https://developer.android.com/distribute/best-practices/develop/restrictions-non-sdk-interfaces" rel="noreferrer">access to certain hidden classes, methods and fields was restricted</a>. Before Pie, it was pretty easy to use these hidden non-SDK components by simply using reflection. </p>

<p>Now, however, apps targeting API 28 (Pie) or later will be met with ClassNotFoundException, NoSuchMethodError or NoSuchFieldException when trying to access components such as <code>Activity#createDialog()</code>. For most people this is fine, but as someone who likes to hack around the API, it can make things difficult.</p>

<p>How can I work around these restrictions?</p>
