system signature and write broadcast and service to call the system api, this method is not difficult, so it is generally not recommended.
In fact, the above cross-process solutions are not ideal. For many beginners, it is not too difficult to implement, but the limitations are relatively large. They have never found an ideal solution. It was not until later that we saw a very powerful technical brother on testerhome who made a very complete encapsu
The reason for the error is that the ADB port is occupied by other programs ' processes, so what to do is to find and kill the process. Steps:1. Execute ADB nodaemon server in cmd, see what the ADB's port number is, and generally 5037 (why?) I don't know, maybe the port number used by the software is fixed.2, re-execute Netstat-ano | Findstr "5037", you will see a similar scenario as follows:A little explan
imaging, Inc.Bus 004 device 001: Id 1d6b: 0001 Linux Foundation 1.1 root Hub
Here I am:
Bus 007 device 009: Id 18d1: 4e12
Create a configuration file 51-android.rules under/etc/udev/rules. d /.
Sudovim/Etc/Udev/Rules. d/50-android.rules
Add the following configuration parameters to the file:
Subsystem = "USB", sysfs{"High Tech Computer Corp ."}= "0bb4", mode = "0666"
Save, Set permissions for the configuration file
SudochmodA + RX/Etc/Udev/Rules. d/50-android.rules
Restart
Sudo/Etc/Init. d/Udev
Tags: and command line emulator OID BSP Terminal netstat service ROIadb Android Debug Bridge Bridge set up a link between PC and Android phone (simulator)1.ADB push Put PC PC stuff into mobile phone: adb push lianxi.txt/sdcard/lianxi.txt2.ADB Pull Pull the phone thing to the computer:
Android notes adb Command Parsing 1, androidadb
I have been learning Android for a long time and keep my diary in evernote. I plan to sort the logs in evernote over and over again and publish them to the Internet for sharing as soon as I leave my company idle.
To directly use adb in the cmd command, you need to configure the environment variable: Directory XXX \ sdk \ platform-tools
View the
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
one. ADB server didn ' t ACKafter configuring the Android environment, when you run the first program, you encounter the following error:ADB server didn ' t ACK * Failed to start daemon *It is possible that port 5037 is occupied and needs to find the PID that occupies the 5037 (android default) port, which is entered in CMD:Netstat-ano | findstr "5037"Output process:TCP 127.0.0.1:5037 0.0.0.0:0 LISTENING 9292 TCP 127.0.0.1:5037 127.0.0.1:49422 establi
=" capture. PNG "alt=" wkiom1vwxdwcoplpaaku053sax0576.jpg "src=" http://s3.51cto.com/wyfs02/M02/6C/EF/ Wkiom1vwxdwcoplpaaku053sax0576.jpg "/>3. VerificationSuccessful start of ADB server login phone after end process650) this.width=650; "title=" capture. PNG "alt=" wkiom1vwx3kskmz7aacqv9wzmkw915.jpg "src=" http://s3.51cto.com/wyfs02/M01/6C/EF/ Wkiom1vwx3kskmz7aacqv9wzmkw915.jpg "/>4. Call and SMS via ADB co
have been working with two computers, XP working side, Ubuntu has been just compiling the server, because is engaged in MTK's Android program development, so every flash down work to XP end, but XP end of the rogue software too much (everyone knows), the total footprint of the ADB's port, So we are ready to use Ubuntu (14.04) as a normal debugging platform;
one, the installation of tools and a few instructions (ignore)1. Install as long as you enter the following 3 commands
sudo add-apt-repo
HubBus 001 Device 010:id 0bb4:0c87 high Tech computer Corp.Bus 001 Device 001:id 1d6b:0002 Linux Foundation 2.0 root Hub
List, Bus 001 Device 010:id 0bb4:0c87 high Tech computer Corp. This behavior for the HTC phone's USB port, record the ID of 0BB4 (based on all HTC is this ID).
$sudo Vim/etc/udev/rules.d/70-android.rules
Add the following content:
subsystem== "USB", attrs{idvendor}== "0bb4", attrs{idproduct}== "0c87", mode= "0666"
The Idvendor idproduct refe
available port numbers. For many years, the allocated port has been in the range of 0-255. Recently, the range of allocated ports managed by the IANA has expanded to 0-1023.Register Port numberThe "Registration port" is listed by the IANA and can be used by ordinary user processes or programs executed by ordinary users on most systems. The port used in TCP [RFC793] is used to name the end of a logical connection for a long-term conversation. To provide services to unknown callers, the system de
: 0002 Linux Foundation 2.0 Root HubBus 002 device 001: Id 1d6b: 0001 Linux Foundation 1.1 Root HubBus 001 device 001: Id 1d6b: 0001 Linux Foundation 1.1 Root HubBus 004 device 004: Id 093a:2510 Pixart imaging, Inc.Bus 004 device 001: Id 1d6b: 0001 Linux Foundation 1.1 Root Hub
Here I am:
Bus 007 device 009: Id 18d1: 4e12
Create a configuration file 51-android.rules under/etc/udev/rules. d /.
Sudo Vim /Etc/Udev/Rules. d/50-Android. Rules
Add the following configuration
1. Install adb via Apt-getsudo add-apt-repository ppa:nilarimogard/webupd8sudo apt-get updatesudo apt-get install android-tools-adbConnect your Android device to your computer and the ADB shell will prompt "Error:device not found"2, connect the Android device to the computer, through the LSUSB to view the USB device, the following red section corresponds to the Android device[Email protected]:/etc/udev/rule
I have no intention of reading this article today. I want to use the simulator and ADB commands when I don't know how to operate SQLite at the time. I can't do it when I use a mobile phone. I am busy with the operating system today, and I want to add it to my favorites for the moment. Try again in ~
The full name of ADB is Android debug Bridge. It connects your computer to your mobile phone so that you can
be properly driven by the following tips:
2. Check your phone's identification code
If, if a???????????? is present in the No permissions hint, then you have to manually add the phone driver profile in your system, first check your phone's ID, in the terminal input:LsusbAs you can see, my phone information is displayed on the last line, where the 12D1 is the ID of the phone, and each brand's phone will be different.
3. Manually join the
Ext.: http://blog.csdn.net/wangdong20/article/details/20839533Do Android debugging often encounter, the program is written, ready to connect to the phone debugging, can appear in a few momentsI believe that the students who have done Android debugging have encountered this problem, online said kill off with the ADB-related process, restart eclipseBut I didn't see the obvious ADB process on the Task Manager,
Linux Foundation 2.0 root HubBus 007 Device 001:id 1d6b:0003 Linux Foundation 3.0 root HubBus 008 Device 001:id 1d6b:0002 Linux Foundation 2.0 root HubBus 009 Device 001:id 1d6b:0003 Linux Foundation 3.0 root HubOne of the bus 002 Device 008:id 0bb4:0d02 High Tech Computer Corp. This line is my HTC phone's USB usage port. Remember these two id:0bb4 and 0d02 in the middle.
2, sudo vi/etc/udev/rules.d/70-android.rules
If you do not have this file, you can create it and then add the following
subs
A. Use the adb LAN function to connect the device
1. Run the adb command with a usb connection and change the connection mode to tcpip.Adb tcpip {port} port is the port number2. Unplug the USB cable and run the adb command to connect to the device.Adb connect xxx. xxx (device ip): port (the port number just set)3. Run the adb
1d6b:0001 Linux Foundation 1.1 root hubBus 004 Device 004: ID 093a:2510 Pixart Imaging, Inc.Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Here I am:
Bus 007 Device 009: ID 18d1:4e12
Create a configuration file 51-android.rules under/etc/udev/rules. d /.
sudo vim /etc/udev/rules.d/50-android.rules
Add the following configuration parameters to the file:
SUBSYSTEM=="usb", SYSFS{"High Tech Computer Corp."}=="0bb4", MODE="0666"
Save, Set permissions for the configuration file
sudo c
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.