Skip to content

Instantly share code, notes, and snippets.

@ariona
Last active October 5, 2022 13:41
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ariona/5e991dcd43b562ef20e359ee6b7dd3da to your computer and use it in GitHub Desktop.
Save ariona/5e991dcd43b562ef20e359ee6b7dd3da to your computer and use it in GitHub Desktop.
Developing React-native App on MIUI

If you are developing React native based Android App and using XIAOMI/MIUI Device, this tips might help you to get rid some headache when debugging the app

Enabling Developer Menu

To enable Developer Menu, you need to tag 7 times on MIUI Version under About Phone Setting menu instead of Build Number. The Developer Menu can be found on Additional Settings

Can't Install Debug APK? "...Failed to establish session"?

  1. enable developer mode - In your phone, go to Settings, About phone and click on MIUI version 7 times. You’ll see a pop up which says you are a developer now.
  2. Go back to Settings, Additional settings, Developer options and enable USB Debugging.
  3. Connect your phone to your PC/Mac and on the phone authorize your computer
  4. go back to Developer options, scroll down to find Turn on MIUI optimization and disable it. Your phone will be rebooted

source

Can't open Dev Menu when Shaking it? or pressing menu button?

Go to Settings > System apps > Security > Permissions > Permission manager

source

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment