USB debugging permissions - Xiaomi Mi Max 2 Questions & Answers

Is there a consistent way to enable these in developer options? I've tried all the Google suggestions and can only get it randomly and seldom. I want to lower my doing settings now that I've flashed the dev Rom.

Found this and it worked!!!!
"Install via USB" wont work if your Xiaomi phone is running MIUI 8 or above. Looks like when you try to Enable this option, your phone trys to connect to some chinese server and fails.
I got a work around and it worked for me. Idea is to connect to Chinese-Shanghai server through VPN. Try the following:
Install PlexVPN from Playstore and login into it. You will get a 24 hr free VPN service.
Select China-Shanghai server and connect.
From developer option in your Xiaomi phone, Enable "Install via USB".
You can then disconnect the VPN and logout from PlexVPN.
Enjoy!!

Related

[Q] USB and ADB not working on 10.1.3-RC2

Yesterday I flashed cm-10.1.3-RC2 over a relatively recent nightly on my nook HD+, wiped cache and dalvik-cache and rebooted and all seems well except I can't access the nook from my Windows 7 laptop over USB.
When the USB cable is connected between the nook and my laptop, the laptop continually beeps like it does when you plug or unplug the USB even though the cable is plugged in all the time and windows explorer flashes a window open and immediately it closes. I tried setting USB to both MTP and PTP on the nook and neither works.
ADB doesn't work either - it says device not found.
On the nook I still have notifications that USB is connected and ADB is enabled even though the cable has been disconnected all night.
Anyone else experienced this?
Thanks!
You need to uncheck Android Debugging in developers options. But first you need to activate developer options. Go to settings, about tablet and tap the build number several times. Then you can access developer options in settings.
Sent from my Nook HD+ running CM10.1 on emmc.
leapinlar said:
You need to uncheck Android Debugging in developers options. But first you need to activate developer options. Go to settings, about tablet and tap the build number several times. Then you can access developer options in settings.
Click to expand...
Click to collapse
That fixed not being able to access the nook over USB but ADB still doesn't work. The message I get is:
C:\sdk\platform-tools>adb.exe shell
error: device not found
it used to work before I flashed RC2
Thanks!
BuddyP1952 said:
That fixed not being able to access the nook over USB but ADB still doesn't work. The message I get is:
C:\sdk\platform-tools>adb.exe shell
error: device not found
it used to work before I flashed RC2
Thanks!
Click to expand...
Click to collapse
ADB is not easy to set up for windows. Just because it worked before does not mean it will work later. The device id keeps changing in your device driver. The solution is to not use ADB over USB, use wifi. There is a setting in developer options (ADB over network) that is much easier than USB. Just type adb connect and the IP address shown in the developer options. Much easier.
Sent from my Nook HD+ running CM10.1 on emmc.
leapinlar said:
ADB is not easy to set up for windows. Just because it worked before does not mean it will work later. The device id keeps changing in your device driver. The solution is to not use ADB over USB, use wifi. There is a setting in developer options (ADB over network) that is much easier than USB. Just type adb connect and the IP address shown in the developer options. Much easier.
Click to expand...
Click to collapse
Thanks. I was able to accomplish what I needed to using adb over IP

LG Watch Sport: ADB?

Anyone with the new watch, the "LG Watch Sport", figured out how to get a USB or USB-like connection to a Windows computer? WiFi is greyed out and Bluetooth isn't an option on my Win box
BGot ADB up via Wi-Fi:
1) Connect watch and computer to same Wi-Fi network,
2) In Developer options (available after tapping 7 times on Settings > About > Build number)
Turn "ADB debugging" = on
3) Turn "Debug over Wi-Fi" = on
4) To get the watch's ip address go Settings > Connectivity > Wi-Fi
5) Tap on active Wi-Fi connection name
6) start command window
7) Type: adb connect [ip address of watch]
Easy, peezy!
BTW, it's an unbelievable battery killer. 30 min. = maybe 8 hours normal use.
Anybody know where the APN info's stored? Like to pull it, change it & push it back, if ATT didn't lock it down.
roebling said:
BGot ADB up via Wi-Fi:
1) Connect watch and computer to same Wi-Fi network,
2) In Developer options (available after tapping 7 times on Settings > About > Build number)
Turn "ADB debugging" = on
3) Turn "Debug over Wi-Fi" = on
4) To get the watch's ip address go Settings > Connectivity > Wi-Fi
5) Tap on active Wi-Fi connection name
6) start command window
7) Type: adb connect [ip address of watch]
Easy, peezy!
BTW, it's an unbelievable battery killer. 30 min. = maybe 8 hours normal use.
Anybody know where the APN info's stored? Like to pull it, change it & push it back, if ATT didn't lock it down.
Click to expand...
Click to collapse
If you have the watch, can you also check if fastboot can be put into wifi mode?
matejdro said:
If you have the watch, can you also check if fastboot can be put into wifi mode?
Click to expand...
Click to collapse
I've tried "fastboot oem unlock", "fastboot oem get_identifier_token" and "fastboot connect 192.168.1.9"--all fail with "< waiting for any device >"
With watch in bootloader mode, "adb connect 192.168.1.9" also fails, with:
"unable to connect to 192.168.1.9:5555: cannot connect to 192.168.1.9:5555: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060)"
Android Police on 2016/03/04 wrote that wifi fastboot mode exists on Moto G's fastboot menu. No menu option for that on this LG Watch Sport.
Yes I meant the thing from that Android Police article. Well that is a bummer, thanks for checking anyway!
---------- Post added at 03:56 PM ---------- Previous post was at 03:22 PM ----------
Just to clarify, there IS a fastboot menu, but it is a bit useless since there is no Wifi option and you can't connect the cable?
There's a way to load system images on these things, I just don't know what it is.
Know a Verizon tech or the AT&T Store repair guy? There's a code for Wi-Fi or a proprietary cord, perhaps attaching under the back. My money's on a funky cord.
no USB debugging for LG Sport?
Wifi debugging tends to be slow imho
In case anyone didn't know, you can use ADB to push custom ringtones to /sdcard/Ringtones. After rebooting, they'll show up in the ringtone picker. You can set a custom alarm, too. That's a pain in the butt though, requires sideloading ES File Explorer because there's no picker for alarm tones.
Sent from my LG V20 using XDA Labs
roebling said:
BGot ADB up via Wi-Fi:
1) Connect watch and computer to same Wi-Fi network,
2) In Developer options (available after tapping 7 times on Settings > About > Build number)
Turn "ADB debugging" = on
3) Turn "Debug over Wi-Fi" = on
4) To get the watch's ip address go Settings > Connectivity > Wi-Fi
5) Tap on active Wi-Fi connection name
6) start command window
7) Type: adb connect [ip address of watch]
Easy, peezy!
BTW, it's an unbelievable battery killer. 30 min. = maybe 8 hours normal use.
Anybody know where the APN info's stored? Like to pull it, change it & push it back, if ATT didn't lock it down.
Click to expand...
Click to collapse
I did that, but when I try to sideload an app it won't go through, and ADB devices brings up that it's unauthorized.
chrisrodsa210 said:
I did that, but when I try to sideload an app it won't go through, and ADB devices brings up that it's unauthorized.
Click to expand...
Click to collapse
When you first connect device to computer does watch display menu for authorization? If not, try "ADB devices". If so, scroll down to "Always allow connections..."
Picked up this watch last week and its exciting that people are already looking to unlock boot loader. Any idea of when it'll get its own dedicated forum on XDA?
NickWhit1992 said:
In case anyone didn't know, you can use ADB to push custom ringtones to /sdcard/Ringtones. After rebooting, they'll show up in the ringtone picker. You can set a custom alarm, too. That's a pain in the butt though, requires sideloading ES File Explorer because there's no picker for alarm tones.
Click to expand...
Click to collapse
I've connected my watch to my PC and when I command:
adb puch -p sdcard/Ringtones <file name>.mp3
cannot stay 'sdcard/Ringtones': No such file or directory
Can you please elaborate on the command to push through adb? Thanks!
Also, ive tried:
and push -p C:\<local drive>\<file name>.mp3 sdcard\Ringtones
Transferring: 100%
failed to copy '<filepath>\<file name>.mp3' to 'sdcard\Ringtones': couldn't create file: Read-only file system
Is there a way to make it not a read only system?
Maxninja said:
I've connected my watch to my PC and when I command:
adb puch -p sdcard/Ringtones <file name>.mp3
cannot stay 'sdcard/Ringtones': No such file or directory
Can you please elaborate on the command to push through adb? Thanks!
Also, ive tried:
and push -p C:\<local drive>\<file name>.mp3 sdcard\Ringtones
Transferring: 100%
failed to copy '<filepath>\<file name>.mp3' to 'sdcard\Ringtones': couldn't create file: Read-only file system
Is there a way to make it not a read only system?
Click to expand...
Click to collapse
Code:
adb push ringtone.mp3 sdcard/Ringtones
I put the ringtones in the ADB folder and used that for each one, and it worked fine for me. I don't know why it's not working for you, perhaps an update changed things. I forgot my watch at home today, or I'd try it again. If I remember when I get home tonight, I'll look into it.
Sent from my LG V20 using XDA Labs
NickWhit1992 said:
I put the ringtones in the ADB folder and used that for each one, and it worked fine for me. I don't know why it's not working for you, perhaps an update changed things. I forgot my watch at home today, or I'd try it again. If I remember when I get home tonight, I'll look into it.
Click to expand...
Click to collapse
I just pushed it through and used ES explorer to set the mp3 file as ringtone. I put in / for the ringtones instead of \ ; so now it works. Thanks!
Using developer options, and ADB debugging maybe, could this guide be used to change the LTE bands on our watches?
https://forum.xda-developers.com/gal...ds-to-t2886059
Bands
So still no news on getting bands unlocked on our devices?
roebling said:
BGot ADB up via Wi-Fi:
1) Connect watch and computer to same Wi-Fi network,
2) In Developer options (available after tapping 7 times on Settings > About > Build number)
Turn "ADB debugging" = on
3) Turn "Debug over Wi-Fi" = on
4) To get the watch's ip address go Settings > Connectivity > Wi-Fi
5) Tap on active Wi-Fi connection name
6) start command window
7) Type: adb connect [ip address of watch]
Easy, peezy!
BTW, it's an unbelievable battery killer. 30 min. = maybe 8 hours normal use.
Anybody know where the APN info's stored? Like to pull it, change it & push it back, if ATT didn't lock it down.
Click to expand...
Click to collapse
Hey, this article explains how to set the APN through adb: android.stackexchange.com/questions/117125/how-do-i-add-an-apn-via-adb
UPDATE: This is a better APN guide: forum.xda-developers.com/showpost.php?p=73558495&postcount=5
It is for the watch Urbane and freedomPOP, but I imagine that there is not a lot of differences between the two watches and it is, essentially, the same procedure. It does require an unlocked bootloader.
roebling said:
I've tried "fastboot oem unlock", "fastboot oem get_identifier_token" and "fastboot connect 192.168.1.9"--all fail with "< waiting for any device >"
With watch in bootloader mode, "adb connect 192.168.1.9" also fails, with:
"unable to connect to 192.168.1.9:5555: cannot connect to 192.168.1.9:5555: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (10060)"
Android Police on 2016/03/04 wrote that wifi fastboot mode exists on Moto G's fastboot menu. No menu option for that on this LG Watch Sport.
Click to expand...
Click to collapse
Have you tried bluetooth debugging?
Hey user "Grumps" managed to put the watch into download mode with a wifi connection. Could this be used to unlock the bootloader, root and modify the APNs?
URL:
forum.xda-developers.com/watch-sport/help/attempting-to-enter-recovery-mode-t3617141
justice89 said:
Hey, this article explains how to set the APN through adb: android.stackexchange.com/questions/117125/how-do-i-add-an-apn-via-adb
UPDATE: This is a better APN guide: forum.xda-developers.com/showpost.php?p=73558495&postcount=5
It is for the watch Urbane and freedomPOP, but I imagine that there is not a lot of differences between the two watches and it is, essentially, the same procedure. It does require an unlocked bootloader.
Click to expand...
Click to collapse
This only works if you have rooted your watch, otherwise you can't do the su command.
Does anyone know if someone is working on rooting this watch?

HDB driver??

No windows 10 HDB driver it just wont allow me to use hisuite at all, ive looked everywhere but nothing, used different cables and all that stuff so im lost, any ideas.
kingcapning said:
No windows 10 HDB driver it just wont allow me to use hisuite at all, ive looked everywhere but nothing, used different cables and all that stuff so im lost, any ideas.
Click to expand...
Click to collapse
Hi suite works all annoyingly well for me. Dunno what's wrong on your end, buddy.
Annoyingly, because it always pings my desktop and opens whenever I connect to my PC.
kingcapning said:
No windows 10 HDB driver it just wont allow me to use hisuite at all, ive looked everywhere but nothing, used different cables and all that stuff so im lost, any ideas.
Click to expand...
Click to collapse
USB-Configuration in developeroptions checked?
If any Option like it should be, try reinstall of HiSuit on PC?! (! If de & reinstall, SAVE your [email protected] BEFORE uninstall Hisuite!)
Have same issue on two p20 pro, both brand new, and factory settings. Can't figure it out
CaptainKaracho said:
USB-Configuration in developeroptions checked?
If any Option like it should be, try reinstall of HiSuit on PC?! (! If de & reinstall, SAVE your [email protected] BEFORE uninstall Hisuite!)
Click to expand...
Click to collapse
Ill try that now
Edit: I have mpt checked, so i have no idea.
kingcapning said:
No windows 10 HDB driver it just wont allow me to use hisuite at all, ive looked everywhere but nothing, used different cables and all that stuff so im lost, any ideas.
Click to expand...
Click to collapse
Turn off USB debugging.
Completely delete all drivers whilst not connected. In Windows click options show all devices, including hidden.
Install hisuite.
Next connect the phone then let it install.
Then disconnect and turn on USB debugging.
Let it install that too.
Can you see the device?
PS: there's only so many ways it can connect.
Nuking the driver then reconnecting afresh is the best way.
WORKED:
uninstall all of hisuite components with revo uninstaller
restart pc
connect phone via usb
turn on debugging
then open hisuite installer that shows as virtual CD in my computer
install it, and open
now, on phone ALLOW HDB
go to developer options, and as USB CONNECTION TYPE choose charging
and allow your PC to use phone
thats it
hexen88 said:
WORKED:
uninstall all of hisuite components with revo uninstaller
restart pc
connect phone via usb
turn on debugging
then open hisuite installer that shows as virtual CD in my computer
install it, and open
now, on phone ALLOW HDB
go to developer options, and as USB CONNECTION TYPE choose charging
and allow your PC to use phone
thats it
Click to expand...
Click to collapse
Doesnt work
Sorted HiSuite P20 Pro back on running Fixed, Thank's
kingcapning said:
Doesnt work
Click to expand...
Click to collapse
### The only way it worked for me was after being connected to the PC and have opened the HiSuite THEN GO to the last step and it looks is the only way it changes for charging only. If you don't have either the PC connected and on the HiSuite program, it doesn't change at all. Check bellow on the ###.:good:
Well it worked for me any way Thank's hexen88
Quote:
Originally Posted by hexen88
WORKED:
uninstall all of hisuite components with revo uninstaller
restart pc
connect phone via usb
turn on debugging
then open hisuite installer that shows as virtual CD in my computer
install it, and open
now, on phone ALLOW HDB
### go to developer options, and as USB CONNECTION TYPE choose charging
and allow your PC to use phone
thats it
Also check your cable, some cables only allow charge only.
leighfwarren said:
Also check your cable, some cables only allow charge only.
Click to expand...
Click to collapse
It must of been a bug, once i updated to 9.0 it now connects fine and has done since updating.
If it still helps i think i got it.
Use the original huawei charging cable you got with the phone.
I tried it all.. tethering, debugging, hisuite etc.. but nothing worked
1. step Install HiSuite on computer,
2. step plug in your phone with original cable,
3. step HiSuite on computer will run by itself,
4. step select transfer files on your phone,
5. step computer will ask you if you all it to install HiSuite on your phone and click ok,
6. step on your phone pop up will show to install HiSuite on Huawei.
Maybe also go to settings - connections - usb thetering (if needed) and thick it.
Hope it helps, it did for me - but barley lost my mind...
Good luck,
Toni

Android auto not working after phone update

I use a Xiaomi Mi10 (MIUI 12.2.1.0 stable, no root) and here is my problem. Before the update (from android 10 to 11) android auto was working just perfectly. I have an allwinner unit and an android auto dongle( i use the autoplay app version: 2020.12.04.1711). After the update i connect the dongle to my headunit, it always recognizes it, i connect my phone, the app tells me to turn on bluetooth and wifi to complete the setup, and then nothing. I wiped data from google services (phone), from android auto (phone), from autoplay app(headunit) and nothing. Any ideas and/or help?
Do u have USB debugging enabled? I unchecked it and it works now.
Have the same problem. Phone display turns black, WIFI and bluetooth on USB debugging enable, but the car says "connection not possible".
Tried to connect via bluetooth and USB.
Did you try restarting your phone? I had problems at one time and tried a bunch of stuff and totally forgot to just restart my phone. Which fixed it.
DaHype007 said:
I found the solution by myself, but only On Sakura Rom working. But Rom is Great so its OK for me. First i delete the APP. Than I deleted Android Auto Folder from system >system/priv-app and replace it with AndroidAutoStubPrebuilt Folder where the apk inside. Than after Reboot i update the Android Auto App in Google Play.
So now its working great
Click to expand...
Click to collapse
What do you mean prebuilt?

All USB options are greyed out

I can't pick any option when I connect the phone to the computer, they all are greyed out. The only way to transfer files from my phone to my PC is through TWRP or changing the default USB option through developer settings.
Can someone help?
Can you attach screenshots?
Jhon_Locke said:
I can't pick any option when I connect the phone to the computer, they all are greyed out. The only way to transfer files from my phone to my PC is through TWRP or changing the default USB option through developer settings.
Can someone help?
Click to expand...
Click to collapse
This happened with me on my phone's stock image. All the usb options were greyed out. I tended to look for solutions, but couldn't find anything relevant. Then, with a later update, it got fixed. However, now I'm using a custom rom(Resurrection Remix), so there are no issues with USB atm.
I would suggest you to install a suitable and stable custom rom(Lineage OS, is the best) on your device. It might help.
If you are on Lineage (You don't say) just set the USB option to always transfer in developer settings, Plus make sure USB debugging mode is turned off.

Categories

Resources