Linux under the ADB drive problemLinux under the use of mobile phone USB debugging mode to connect ADB to the Android program debugging, configuration driver without windows to intuitive.The first step is to confirm that the phone is connected to the computer, LSUSB check the device record.[Email protected]:~$ LsusbBus 007 Device 009:id 18d1:4e12Bus 007 Device 00
Address: http://fsysky.blog.163.com/blog/static/11381650920114260420177/
Pid/vid definition file ---- kernel_imx \ drivers \ USB \ storage \ unusual_devs.h
After the PID vid of the USB driver is modified in the Linux Kernel of the Android device, the ADB tool may not be able to identify the device, and the prompt "device not found" will be printed, especially f
recently, the company has given a task, the app needs a mobile phone external USB camera, the problem is that the phone outside the other USB devices, the phone can not connect with the PC, can not be on the PC side through Eclipse and other viewing log information, Debugging is particularly troublesome, because even if the program jumps, you do not see log or the cause of the program crashes. Just one co
Different ways to enter the phone may not be the same, I use a Nubian phone.For reference here: Http://adbshell.com/commands/adb-connectUse ADB:ADB connect 1. Open the developer mode in the phone settings: about Mobile---> Version number (multiple click version number)2. Connect the computer via USB3. Enter the CMD interface of the computer, enter: ADB devices, the device indicates that the phone is connect
When the USB Gadget driver is loaded with the USB and Android ADB/ums is supported, UBUNTU will find the android USB device,
SD 15: 0: 0: 0: [SDB] Attached SCSI removable disk
[2, 23501.123719] USB 1-2: USB disconnect, address 16[
What is the difference between the root permission and the USB adb permission of android apk? androidapkUSB adb permission means that when adb connects to the mobile phone, the permission of the daemon adbd in the mobile phone is root, so that its sub-process also has root permission. Generally, If
setting up the USB connection configuration for ADBThis address: Http://blog.csdn.net/caroline_wendyconnect the phone that needs to be tested to the computer, find the USB connection configuration through the system, and find the vendor ID:Add the ID into the adb_usb.ini;Use the command:such as:0x27170x9bb5Use the adb command :
setting up the USB connection configuration for ADBThis address: Http://blog.csdn.net/caroline_wendyconnect the phone that needs to be tested into the computer. Find the USB connection configuration through the system and locate the vendor ID:Add the ID into the adb_usb.ini;Use the command:such as:0x27170x9bb5Use the adb command :
Program nameP.startinfo.useshellexecute =false;//turn off the use of the shellP.startinfo.redirectstandardinput =true;//REDIRECT standard inputP.startinfo.redirectstandardoutput =true;//REDIRECT standard outputP.startinfo.redirectstandarderror =true;//REDIRECT error outputP.startinfo.createnowindow =true;//settings do not display WindowsP.startinfo.errordialog =false; P.startinfo.windowstyle=Processwindowstyle.hidden; P.start (); P.standardinput.writeline (@"
the handset connects the PC through the USB cable, realizes the PC to send the message voluntarily to the handset;
one, get all the mobile phones connected with the computer
public static list
Second, port mapping; Start the app at the end of the phone
public static void Portforwardbydevice (Devices device) {String a = null;
String B = null;
String c = null;
String d = null;
Log logger = Logfactory.getlog (Devicefinder.class);
A =
1. Run sudovi/etc/udev/rules. d/51-Android.rules, create the 51-android.rules configuration file 2, add an entry according to the following data format: SUBSYSTEM = "usb", ATTR {idVendor} = "xxxx1 ", ATTR {idProduct }== "xxxx2", MODE = "0600", OWNER = "xxx
1. Run sudo vi/etc/udev/rules. d/51-Android.rules to create the 51-android.rules configuration file.
2. Add an entry in the following data format:
SUBSYSTEM = "
1. Run sudo vi/etc/udev/rules. d/51-Android.rules to create the 51-android.rules configuration file.
2. Add an entry in the following data format:
SUBSYSTEM = "usb", ATTR {idVendor} = "xxxx1", ATTR {idProduct} = "xxxx2", MODE = "0600", OWNER = "xxxx3"
3. Enter xxx1, xxx2, and xxx3 based on your device information.
Where,
(1) xxx3 is the user name when you log on to mongout.
(2) how to search for xxx1 and xxx2,
Run the command lsusb to find
1. Open the management-Device Manager of the computer and connect the Android device with USB (for Android devices to Enable USB debugging). You can see the USB device with a yellow question mark.2. Right-click the device to view properties-details, and select hardware ID in properties. You can see the hardware ID, for example:
the following modules:
1.1 The ADB server
1.1 ADB Server
This is a background process that runs on the host machine. Its purpose if to sense the USB ports to know when devices are attached/removed, as well as when emulator instances start/stop.
This is inRunning on host devices (PCS/development machines)A background process. It is used to sniff when a device is
directories and files to any location on an emulator/device instance. to copy a file or directory from a simulator or device, use the following (life):adb pull To copy a file or directory to an emulator or device, use (command below)adb push In these commands, Here's an example:adb push Foo.txt/sdcard/foo.txtadb command ListThe following table lists all the commands supported by
the file or directory to the simulator or device and run the following command)Adb push In these commands, The following is an example ::Adb push foo.txt/sdcard/foo.txtAdb command listThe following table lists all commands supported by adb and describes their meanings and usage.Category Command Description CommentsOptions-d manage abd only through the
Heaven Zhuhai Branch Rudder note : Originally this series is to prepare a book, details please see the earlier blog "to seek partners to write the deep understanding of Monkeyrunner" books. But for many reasons, there is no wish. So the draft is shared here, so mistakes are unavoidable. If necessary, please refer to the following, the forwarding of the word also keep the end of each article source and other information.
About the ADB implementati
there is an increase/removal device or device status changes will be active to the connection to the client to send a new device list information (4 bytes 16 binary length + content). Doing so allows DDMS these tools to track the status of all connected devices in real time, without requiring the client to connect to the ADB server each time to obtain the corresponding information.Host:emulator:
This is a special request that will be sent to th
to sense (monitor) whether the USB port has a device mounted or removed, and of course includes monitoring the startup and shutdown of the emulator instance.So it maintains a series of "connected devices" information, and each connected device is given one of the following statuses: Offline,bootloader,recovery or online (there will be more support for other states later).The ADB server can indeed be called
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.