When I toggle on the install via USB in developer mode:
For me on a rooted MIUI v.8.5.1 I just need to:
after doing that both Install via USB and USB debugging started to work.