1. Problem Overview
Recently, while developing for a Nokia project, I encountered the following issue:
When I plugged in a Nokia X, the computer did not respond at all—it wasn’t recognized. My colleague’s Windows machine also failed to detect it. After searching Google for a long time, I finally found a solution. Since I didn’t record it originally and later forgot how to configure it when helping someone else, I decided to document it here for everyone.
2. Solution
If the adb command indicates that no devices are found, please ensure you have already completed these basic steps:
- Enable USB Debugging (Settings - Developer Options - USB Debugging). If you don’t see Developer Options, go to “About” and tap the Build Number several times.
- Restart Adb with Sudo: Try
sudo adb kill-serverandsudo adb start-server.
If it still doesn’t work, follow the steps below:
2.1. Run lsusb
Check the USB bus to find the device ID:
1 | ~ » lsusb |
2.2. Register udev Rules
Edit /etc/udev/rules.d/51-android.rules:
1 | vim /etc/udev/rules.d/51-android.rules |
Add the following rule (using the IDs found in lsusb, e.g., Vendor ID 0421):
1 | SUBSYSTEM=="usb", ATTR{idVendor}=="0421", ATTR{idProduct}=="06e8", MODE="0666", GROUP="plugdev" |
Save the file and run:
1 | sudo chmod a+rx /etc/udev/rules.d/51-android.rules |
The output should show udev restarting correctly.
2.3. Restart Adb with Sudo
Navigate to your SDK directory and restart the server:
1 | cd ~/tools/android-sdk-linux_x86/platform-tools |
Note: Usually, the above steps are sufficient. However, for specific devices like the Nokia X, you might need one more step:
2.4. Update adb_usb.ini
Open ~/.android/adb_usb.ini and add the Vendor ID (in hex):
1 | # ANDROID 4th PARTY USB VENDOR ID LIST -- DO NOT EDIT. |
After saving, adb devices should now correctly list your device. The process is similar on Windows.
About Me && Blog
Below is my personal intro and related links. I look forward to exchanging ideas with fellow professionals. “When three walk together, one can always be my teacher!”
- Blogger Intro
- Blog Content Navigation: A guide for my blog content.
- Curated Excellent Blog Articles - Android Performance Optimization Must-Knows
- Android Performance Optimization Knowledge Planet
One walks faster alone, but a group walks further together.
