Unable to switch on Install via USB on Redmi Note 4 [duplicate] - android

This question already has answers here:
Install app via usb: The device is temporarily restricted
(35 answers)
Closed 5 years ago.
MI Note 4
Android version: 7.0
MIUI Version: 9.0
I'm unable to switch on Install via USB option for debugging purpose. I have tried switching to mobile data and using MI account . Also, tried turning off MIUI optimization. Nothing worked till now.
I always get the error that says "The device is temporarily restricted"
I'm stuck for 2 days now.
Could anyone here help in resolving this?
Note: It was working fine till I updated the device to Nougat. Kindly help if you're using Nougat along with MIUI 9.0
Edit: Using VPN helped.

Try this to turn off Instant Run
Unlock your phone and go to main Settings on your Xiaomi Redmi devices
Scroll down to find About Device and tap on it.
Locate MIUI Version and tap several times on it.
you will get a message "You're now a developer!" on your device screen.
Go back to main Settings.
Run Additional Settings, and tap Developer options to enable it from there.
Scroll down to find USB Debugging option and enable it.
If you need to turn off Instant Run in android studio , go to
File → Settings → Build, Execution, Deployment → Instant Run and uncheck Enable Instant Run.

#Akash Raj
If below link is not working
1- Install app via usb: The device is temporarily restricted
2- http://en.miui.com/thread-544718-1-1.html
Then try to this way because it's working for me.
Connect your Redimi mobile with device hence come to display many option like below image
Select Transfer file now it's working.

Related

Android Studio is not detecting my phone for debugging. How to fix it?

My android device is Redmi HM 1S and earlier it used to work earlier. Once I uninstalled the Android Studio and again reinstalled it. Since then, Android Studio is not detecting my device. Please help me fixing this.
Go to developer options in your phone and enable usb debugging.
Once you enable it you can see your see in Android Studio.
For enabling developer option use the steps below.
Step 1: Unlock your phone and go to main Settings on your Xiaomi devices.
Step 2: Scroll down to find About phone and tap on it.
Step 3: Locate Miui Version and tap seven times on it.
After you have activated the developer mode by Clicking on
MIUI version : 5 times
Go to
Additional Settings --> Developer Mode
Turn on USB Debugging and turn off MIUI optimization
your device should be ready for debugging

Emulator crashes and phone isn't recognized on Android Studio

I never had problems using Android Studio, while debugging directly on device or via emulator. Today after a long time, i tried to install it on my workstation and it looks like there are unidentified problems, that I didn't find anywhere on google ...
Emulator:
I tried 981234912849821 different settings but i can't start an emulation, it worked only ONE time. When i opened it again, it didn't work again D:
The emulator always starts, then crashes saying:
qemu-system-i386.exe has stopped working
I tried to use it with Graphics: Software - GLES 2.0 and this is the result:
I became bored about it, so i tried to directly use my phone and i discovered that android studio wasn't finding it, even by changing type of usb connection ...
Do you have any idea about this problem guys? ^^
PS: Don't flag it as duplicate, I already saw the answers on who has these problems but nothing worked for me :\
You need an ADB driver for your phone installed on your system. Also make sure that under the Developer Settings in Settings of your phone, USB Debugging is enabled.
Note: If you cannot find Developer Settings, just go to > Settings> About Phone> tap on Build Number for 7 times> then just go back to the settings and you'll see the Developer options.
And regarding the emulator, you might want to buff the resolution and the ram of the virtual device and try again.

Android Studio 2.1.1: "no usb devices or running emulators detected"

Suddenly my Android Studio stopped detecting all my devices, none of them is working. It happen from one execution to another. I've changed a few lines of code (1 min maybe?), hit run (instant run) and then I missed all my devices.
I'm using a Mac and as devices: Nexus 5x, Galaxy s6 and Oneplus One. What can be happening? I've checked previous questions here and tried all this:
Run configurations: no matter if I chose usb device or show the window, it does not work.
Tools > Android > Enable ADB integration: didn't help
Command line adb devices does not detect any either.
I've revoked and granted again USB authorizations. Still not working.
I've tried other apps I have, none work.
Restarted phones
Restarted android studio
Restarted computer
(Note: if I start an emulator it works, but I'd prefer to use physical device since I have to scan real barcodes)
Thanks a lot in advance.
On Lollipop 5.1
Go to About Phone
Click 7 times on Build Number. Now Developer options are enabled
Go back and Click Developer options
Enable USB debugging under Debugging.
Well, I've fixed. The problem in case any faces the same was a Stetho (http://facebook.github.io/stetho/) tab in chrome, the one you open by typing: chrome://inspect/#devices not sure about the reason because it's been open for 2 days now, but it was the cause, once I closed it, it worked.
Found this unaccepted answer here: macbook adb cannot open interface That for sure should be accepted.
EDIT: I've been able to replicate the problem. It happens when you have the devices tab open and try to run a second app that has stetho configured.
It happens if your device drivers not installed Please do this.
In Case of PC
Right click my computer select manage select device manager from left panel if your phone drivers not installed there will be yellow alert on driver right click on it select update driver software then select search automatically for update driver software.
Other
Please install the missing drivers of your phone.
I had the same problem . What I've done to solve it going to Setting >> Additional Setting >> Developer Option
Now select:
Developer option on
USB debugging on
Install via USB on
USB setting security on
Verify apps over USB
OK, what finally worked for me was to go into Settings\Developer options\Select USB Configuration and change it to PTP or MIDI....either one of those worked for me and all of the sudden my phone showed up and I was able to see and run my test app on my android phone.
This woorked for me
Go To Settings
Developer Options
Enable USB Debugging
Enable Verify Apps over USB
Select USB Configuration: Choose MIDI
I hope it also works for you

Enable Android Usb Testing on Hp Phone

I have a hp slate 6 voicetab running android 4.4 and I would like to use it to test an android app that I am developing. The Android phone is not showing up on the list of devices next to the emulator.
Can someone please help me.
P.S I am using android studio and running windows 8.1
Make sure you have USB Debugging Mode and Allow Mock Locations turned-on on your android device. To do that go to settings on the device and scroll down to developer options, then enable usb debugging. Also enable Allow mock locations.
Note if Developer options is not visible, enable it by going to About Phone and tap on the build number repeatedly 5 times.
I have managed to get it working. I used a software called ADBDriver installer, and I disabled the windows certificate check, then enabled developer options on the phone and it was able to show. Thanks for all your help

Android Emulator won't work

When I run the android emulator it gets stuck on the android animation. After I have waited 1 hour it said "Proccess system is not responding". I've tried to delete it and create a new one but it didn't work. I want to start android developing but I'm about to give up because nothing works. Please help.
Thanks in advance.
Try re-installing the avd. or better still you can use an android device an Emulator, which is better and faster. to use an android device follow this steps.
1. Get an android device and a usb cable.
2. Go to settings on your android device and select developer options.
If your device does not have the developer options, goto about phone and click on Build number 7 times., go back to settings (Developer options would have appered by then)
select developer options, turn it on and enable debugging.
3. plug your device into your system.
4. your phone will notify you on access to degug.. Accept.
5. Close any avd you might have opened before..
6. Run your app..
You are good too go...The app should run on your android device..
BUILD NICE APPPPPPPPPSSSSSSSS

Categories

Resources