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"?
- 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.
- Go back to Settings, Additional settings, Developer options and enable USB Debugging.
- Connect your phone to your PC/Mac and on the phone authorize your computer