I have red mi note 4 devices after update device with miui version 9 attempt to enable installation via application via USB, it doesn't work and shows "This device is temporarily restricted". The solution I found didn't work. Without that feature, I can't develop an application. Model redmi note 4 miui version: 9.0.5.0
I faced the same issue. I was not able to enable Install Via USB option, however, I found a solution that actually worked.
Here are the steps to enable it.