您应该将Android设备直接连接到开发机,不要通过任何中间 hub(集线器)。 如果这是您第一次将此Android设备连接到此开发机,您应该在Inspect Devices(检查设备)对话框中看到一个未授权的未知设备。 如果是这种情况,那么您需要在Android设备上打开Allow USB debugging(允许USB调试)提示并授予权限。
if (!UsbManager.ACTION_USB_STATE.equals(action)) { return; } //: usb show UI //boolean connected = intent.getBooleanExtra(UsbManager.USB_CONNECTED, false); boolean connected = false; //给connect赋值,关掉UI if (!connected) { mActivity.finish(); } //allowUsbDebugging try { IBinder b ...
Huawei: Go to Settings > Tap About Phone > Tap Build number 7 times to enable Developer options. Then go to System & updates > Developer options > Turn on USB debugging. And turn on the Allow USB debugging pop-up dialog after plugging your phone with USB cable. Mi: Go to Settings > ...
如果您的设备显示为Unknown,则在 Android 设备上接受Allow USB Debugging权限提示。Unknown被替换为您的 Android 设备的型号名称。 绿色圆圈和Connected文本表示您已大功告成,可以从开发计算机远程调试您的 Android 设备。 注:如果您在发现流程中遇到任何问题,您可以通过在 Android 设备上选择Settings>Developer Options>Re...
service.allowUsbDebugging(true, mKey); } catch (Exception e) { Log.e(TAG, "Unable to notify Usb service", e); } */} } 直接默认允许通过 2. 修改属性ro.adb.secure=0,关闭认证即可。 不同的android版本修改的地方不一样,主要达到的目的是使得最终的default.prop中的ro.adb.secure=0即可。
Click OK to allow USB debugging on your PC. If you accidentally click Cancel, disconnect your device from your PC and connect it back to make the dialog show up again on your device. Troubleshooting If your Android device is not correctly detected by RAD Studio or the system Device Manager...
Step 1:Restart the computer. Step 2:Press Windows and R key to open the Run window. Step 3:Enter %USERPROFILE% and press OK. Step 4:Open .android folder and delete all files in it. Step 5:Relaunch the software, and connect your phone again....
Part 1. Enable USB Debugging on Android 6.0 or Newer Here is how to enable USB debugging on Android phone running on Android 6.0, Android 7.0, Android 8.0 or newer, such as Samsung S9, Samsung S9 Plus, OnePlus 6, LG G7. STEP 1 Open "Settings". ...
Use OTG to Enable USB Debugging on Android with Broken Screen Works for:Enabling USB debugging on Android devices with an untouchable screen that can still display content as usual. Preparations:An OTG adapter and a mouse. You can connect a mouse to your screen-broken Android phone and control...
如果您的 Android 设备上未显示Allow USB Debugging提示,请尝试: 当DevTools 在开发计算机上处于焦点状态时,断开并重新连接 USB 电缆,此时将会显示 Android 主屏幕。 换言之,有时如果 Android 设备或开发计算机的屏幕锁定,则不会显示此提示。 更新您的 Android 设备和开发计算机的显示设置,以免其进入休眠状态。