title: Android - Request accessibility permission on Xiaomi
body: <p>what is the proper way to request accessibility permission on xiaomi/miui devices programmatically?</p>
  <p>The code snippet below on all other devices takes you to the screen with the option to enable accessibility. But on Xiaomi devices it takes to a screen with the following options: &quot;Volume Shortcut&quot;, &quot;Accessibility Menu&quot; and &quot;Downloaded Services&quot;, and none of these options enable the accessibility system.</p>
  <pre><code>Intent intent = new Intent(&quot;android.settings.ACCESSIBILITY_SETTINGS&quot;);
  startActivity(intent);
  startActivityForResult(intent, 0);
  </code></pre>
  <p>Thaks a lot!</p>