![]() To use adb with a device connected over USB, you must enable USB debugging in the device system settings, under Developer options. To use adb with a device connected over Wi-Fi, see Connect to a device over Wi-Fi. ![]() On Android 4.2 and higher, the Developer options screen is hidden by default. To make it visible, go to Settings > About phone and tap Build number seven times. Return to the previous screen to find Developer options at the bottom. On some devices, the Developer options screen might be located or named differently. You can now connect your device with USB. If connected, you’ll see the device name listed as a “device.” You can verify that your device is connected by executing adb devices from the android_sdk/platform-tools/ directory. Note: When you connect a device running Android 4.2.2 or higher, the system shows a dialog asking whether to accept an RSA key that allows debugging through this computer. Connect to a device over Wi-Fi (Android 11+) This security mechanism protects user devices because it ensures that USB debugging and other adb commands cannot be executed unless you’re able to unlock the device and acknowledge the dialog.įor more information about connecting to a device over USB, read Run Apps on a Hardware Device. Note: The instructions below do not apply to Wear devices running Android 11. See the guide to debugging a Wear OS app for more information.Īndroid 11 and higher supports deploying and debugging your app wirelessly from your workstation using Android Debug Bridge (adb). ![]() ![]() For example, you can deploy your debuggable app to multiple remote devices without physically connecting your device via USB. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |