I'm running Android Marshmallow on a Nexus 5. I tether it to my laptop via USB. Is there a way to configure things so that the USB tethering happens automatically when I plug things in? (It takes 5-6 touches to turn on the USB tethering.)
Je couronne Android guimauve sur un Nexus 5. Je l'attache à mon ordinateur portable via USB. Existe-t-il un moyen de configurer des choses pour que la cléserie USB se produise automatiquement lorsque je branche des choses? (Il faut 5-6 touches pour activer la clémence USB.)
I'm running Android Marshmallow on a Nexus 5. I tether it to my laptop via USB. Is there a way to configure things so that the USB tethering happens automatically when I plug things in? (It takes 5-6 touches to turn on the USB tethering.)
Après avoir essayé plusieurs réponses à cette question et ne jamais le faire fonctionner, j'ai remarqué sur mon téléphone Xiami exécutant MUI 11 (Android 9) qui allumait "Options de développeur" a maintenant une option pour le paramètre USB par défaut - dont une est la clé USB. Cela fonctionne parfaitement pour moi.
Having tried multiple answers to this question and never getting it to work, I noticed on my Xiami phone running MUI 11 (Android 9) that turning on "Developer Options" now has an option for the default USB setting - one of which is USB tethering. This works flawlessly for me.
Vous pouvez le faire à l'aide du Interact bloc dans
Voici deux captures d'écran explicatives de l'application Automate:
Vous devrez peut-être modifier le 9988777660
ou 9988777661
pour le faire fonctionner avec votre téléphone.
You can do this using the Interact block in Automate. Then it does not require root. Here is a flow to do just that. I first got the idea from a post by llamalab on androidforums.
Here are two explanatory screenshots from the Automate app:
You might have to modify the UI Element Class
or UI Element Text
to make it work with your phone.
à partir de que sur, chaque fois que vous branchez le périphérique avec un PC à l'aide d'un câble USB et
Les paramètres d'options de développeur sont par défaut cachés par défaut. Pour pouvoir leur accéder, vous devez suivre certaines étapes. L'instruction de Google par " Configurer sur -Les options de développeur "sont:
sur Android 4.1 et plus bas, les options de développeur sont disponibles par défaut. Sur Android 4.2 et supérieur, vous devez activer cet écran. Pour activer les options de développeur, appuyez sur le numéro Build Number 7 fois. Vous pouvez trouver cette option dans l'un des emplacements suivants, en fonction de votre version Android:
- Android 9 (niveau d'API 28) et supérieur: Paramètres & GT; À propos de téléphone et gt; Numéro de construction
- Android 8.0.0 (niveau d'API 26) et Android 8.1.0 (niveau d'API 26):
Paramètres & GT; Système et gt; À propos de téléphone et gt; Numéro de construction - Android 7.1 (niveau d'API 25) et inférieur: Paramètres & GT; À propos de téléphone et gt; Numéro de construction
Developer options settings has a setting to set default USB configuration. Its name could vary depending upon your ROM, so try looking for any setting having the name "USB configuration" under Developer options. Click on that, and choose the option which has "USB tethering" or "RNDIS" written.
From than on, whenever you would plug the device with a PC using USB cable and unlock the device, if not unlocked already, USB tethering would automatically be enabled. I tested this on a OnePlus 6 running Android 10 and the settings change persisted across multiple plugging/unplugging and reboots.
Developer options settings are by-default hidden though. To enable the access to them, you would need to follow certain steps. Google's instruction per "Configure on-device developer options" are:
On Android 4.1 and lower, the Developer options screen is available by default. On Android 4.2 and higher, you must enable this screen. To enable developer options, tap the Build Number option 7 times. You can find this option in one of the following locations, depending on your Android version:
- Android 9 (API level 28) and higher: Settings > About Phone > Build Number
- Android 8.0.0 (API level 26) and Android 8.1.0 (API level 26): Settings > System > About Phone > Build Number
- Android 7.1 (API level 25) and lower: Settings > About Phone > Build Number
Note: instructions for your ROM may differ if the aforesaid instructions from Google fail to work to enable Developer options. Your OEM or third-party websites are better alternatives to search for the solution in that case.
try Tasker .
Activer la clé USB lorsque USB est branché dans un PC:
Try Tasker.
Enable USB Tethering when USB is plugged in into a PC:
Source
© 2022 www.demandez.top All Rights Reserved. Questions et réponses Accueil Tous les droits sont réservés