{"id":263,"date":"2024-05-29T14:40:24","date_gmt":"2024-05-29T14:40:24","guid":{"rendered":"https:\/\/robotqa.com\/blog\/?p=263"},"modified":"2024-05-29T14:40:24","modified_gmt":"2024-05-29T14:40:24","slug":"wireless-debugging-with-android-debug-bridge-adb","status":"publish","type":"post","link":"https:\/\/robotqa.com\/blog\/wireless-debugging-with-android-debug-bridge-adb\/","title":{"rendered":"Wireless Debugging Android Debug Bridge (adb)"},"content":{"rendered":"<h3 class=\"md-nonanchor-heading\"><strong>Requirements for Wireless Debugging<\/strong><\/h3>\n<ol>\n<li>Ensure that your workstation and device are connected to the same wireless network.<\/li>\n<li>Your device must be running Android 11 (API level 30) or higher for phones or Android 13 (API level 33) or higher for TV and Wear OS.<\/li>\n<\/ol>\n<h3 class=\"md-nonanchor-heading\">Pairing Your Device with Your Workstation<\/h3>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\n<li>Enable developer options on your device.<br \/>\n<table>\n<tbody style=\"border-right: 1px solid #dee2e6; border-left: 1px solid #dee2e6;\">\n<tr>\n<th>Device<\/th>\n<th>Setting<\/th>\n<\/tr>\n<tr>\n<td>Google Pixel<\/td>\n<td>Settings\u00a0&gt;\u00a0About phone\u00a0&gt;\u00a0Build number<\/td>\n<\/tr>\n<tr>\n<td>Samsung Galaxy<\/td>\n<td>Settings\u00a0&gt;\u00a0About phone\u00a0&gt;\u00a0Software information\u00a0&gt;\u00a0Build number<\/td>\n<\/tr>\n<tr>\n<td>LG G6 and later<\/td>\n<td>Settings\u00a0&gt;\u00a0About phone\u00a0&gt;\u00a0Software info\u00a0&gt;\u00a0Build number<\/td>\n<\/tr>\n<tr>\n<td>HTC<\/td>\n<td>Settings\u00a0&gt;\u00a0About\u00a0&gt;\u00a0Software information\u00a0&gt;\u00a0More\u00a0&gt;\u00a0Build number\u00a0or\u00a0Settings\u00a0&gt;\u00a0System\u00a0&gt;\u00a0About phone\u00a0&gt;\u00a0Software information\u00a0&gt;\u00a0More\u00a0&gt;\u00a0Build number<\/td>\n<\/tr>\n<tr>\n<td>OnePlus<\/td>\n<td>Settings\u00a0&gt;\u00a0About phone\u00a0&gt;\u00a0Build number<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Tap the\u00a0<b>Build Number<\/b>\u00a0option seven times until you see the message\u00a0<code translate=\"no\" dir=\"ltr\">You are now a developer!<\/code>\u00a0This enables developer options on your device.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<ol>\n<li>Open Android Studio and select &#8220;Pair Devices Using Wi-Fi&#8221; from the run configurations menu.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-270\" src=\"http:\/\/blog.robotqa.com\/wp-content\/uploads\/2024\/05\/2024052914491216.png\" alt=\"Adb wireless debugging\" width=\"611\" height=\"514\" srcset=\"https:\/\/blog.robotqa.com\/wp-content\/uploads\/2024\/05\/2024052914491216.png 1174w, https:\/\/blog.robotqa.com\/wp-content\/uploads\/2024\/05\/2024052914491216-300x252.png 300w, https:\/\/blog.robotqa.com\/wp-content\/uploads\/2024\/05\/2024052914491216-1024x862.png 1024w, https:\/\/blog.robotqa.com\/wp-content\/uploads\/2024\/05\/2024052914491216-768x646.png 768w\" sizes=\"auto, (max-width: 611px) 100vw, 611px\" \/><\/li>\n<li>Follow the on-screen instructions to pair your device with a QR code or a pairing code.<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-273\" src=\"http:\/\/blog.robotqa.com\/wp-content\/uploads\/2024\/05\/202405291451216.png\" alt=\"\" width=\"348\" height=\"380\" srcset=\"https:\/\/blog.robotqa.com\/wp-content\/uploads\/2024\/05\/202405291451216.png 348w, https:\/\/blog.robotqa.com\/wp-content\/uploads\/2024\/05\/202405291451216-275x300.png 275w\" sizes=\"auto, (max-width: 348px) 100vw, 348px\" \/><\/li>\n<li>Your device is now paired, and you can deploy your app wirelessly.<\/li>\n<\/ol>\n<h3 class=\"md-nonanchor-heading\">Using adb Wirelessly via Command Line<\/h3>\n<ol>\n<li>Enable developer options on your device.<\/li>\n<li>Enable Wireless debugging on your device.<\/li>\n<li>Open a terminal window on your workstation and navigate to the platform-tools directory.<\/li>\n<li>Find your device&#8217;s IP address, port number, and pairing code.<\/li>\n<li>Run the command\u00a0<code>adb pair ipaddr:port<\/code>\u00a0using the IP address and port number obtained.<\/li>\n<li>Enter the pairing code when prompted to establish the connection.<\/li>\n<\/ol>\n<h3 class=\"md-nonanchor-heading\">Troubleshooting Wireless Connection Issues<\/h3>\n<ol>\n<li>Check that your workstation and device meet the prerequisites for wireless debugging.<\/li>\n<li>Verify that your Wi-Fi network allows p2p connections for wireless debugging.<\/li>\n<li>If adb over Wi-Fi turns off automatically, reconnect to the network to resolve the issue.<\/li>\n<li>If the device does not connect after pairing successfully, manually connect using\u00a0<code>adb connect ip:port<\/code>\u00a0due to mDNS restrictions.<\/li>\n<\/ol>\n<p>By following these steps, developers can leverage adb wirelessly to streamline app deployment and debugging processes without the constraints of USB connections. Embracing wireless debugging can enhance efficiency and flexibility in Android development workflows.<\/p>\n<p>Remember to stay updated with the latest Android Studio and SDK Platform Tools versions to ensure seamless wireless debugging experiences.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Requirements for Wireless Debugging Ensure that your workstation and device are connected to the same wireless network. Your device must be running Android 11 (API level 30) or higher for phones or Android 13 (API level 33) or higher for&#8230;<\/p>\n","protected":false},"author":1,"featured_media":273,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19],"tags":[26,18,27],"class_list":["post-263","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-app-debugging","tag-adb","tag-android-debugging","tag-wireless-debugging"],"_links":{"self":[{"href":"https:\/\/robotqa.com\/blog\/wp-json\/wp\/v2\/posts\/263","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/robotqa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/robotqa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/robotqa.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/robotqa.com\/blog\/wp-json\/wp\/v2\/comments?post=263"}],"version-history":[{"count":0,"href":"https:\/\/robotqa.com\/blog\/wp-json\/wp\/v2\/posts\/263\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/robotqa.com\/blog\/wp-json\/wp\/v2\/media\/273"}],"wp:attachment":[{"href":"https:\/\/robotqa.com\/blog\/wp-json\/wp\/v2\/media?parent=263"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/robotqa.com\/blog\/wp-json\/wp\/v2\/categories?post=263"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/robotqa.com\/blog\/wp-json\/wp\/v2\/tags?post=263"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}