the permission is insufficient.
D) ADB get-ProductObtain the device ID.
E) ADB get-serialnoObtains the serial number of a device.
F) ADB DevicesObtains the list of running Simulators/devices and the status of each instance.
G) ADB bugreportView bug reports
5. Common
Issue background: Install apk is reported error:protocol faultThe following problems occur:Solution One,Windows:Task Manager, see the ADB process, shut down, and then restart ADB start-server.Linux (my machine is Ubuntu system)Execute commandGnome-system-monitorOpen the Task Manager and turn off the ADB.Solution Two:1, after starting the simulator,2. Enter the cmd command and enter the CD D:\Android\sdk\pla
1. Use ADB to get application information, version information of an APK in the phone, adb shell Dumpsys package com.sy.a2682. List all adb shell Dumpsys 3. Launch apk adb shell am star with ADB T-n Com.sy.a268/com.sy.a268.mainactivity4. Randomly generates an event to an app
command
Perform
ADB shell
Access to the Android operating system command-line mode, so you can manage and query the Android operating system directory and execute related commands.
Because the Android operating system is one of the Linux operating systems, the shell commands are the same as the Linux operating system, such as the LS command displays the file directory, the CD command changes the file directory, the mkdir command creates the direc
Tags: android adbADB server port Open cmd Run ADB Nodaemon server first to see what the ADB server port is
C:\Users\xxxx>adbnodaemonserver cannotbind‘tcp:5037‘
Then execute the next Netstat-ano | Findstr "5037"
C:\Users\xxxxxx>netstat-ano|findstr"5037"tcp127.0.0.1:50370.0.0.0:0LISTENING4236 tcp127.0.0.1:5037127.0.
shell command, you can use the following methods:ADB shell [command]For example, ADB shell dmesg prints the kernel debugging information.(The Linux Shell of Android has been greatly simplified, and many common Linux commands are not supported)Upload File: ADB pushDownload file: ADB pullInstaller: ADB install Uninstall
Wireless AP:
AP for access point abbreviation, generally translated as "Wireless Access Node", which is mainly to provide wireless workstations to the wired LAN and wireless workstations from the wired LAN access to the wireless workstation in the access points covered by
the list of running Simulators/devices and the status of each instance:ADB Devices
26. view the bug report:ADB bugreport27. Record wireless communication logs:
In general, there are a lot of wireless communication logs and there is no need to record them during operation, but we can still set the record through the command:ADB ShellLogcat-B radio
28. Obtain the device ID and serial number:
Http://www.myexception.cn/operating-system/1636963.htmlThe steps are as follows:1. Start Terminal Terminal (if you already have a. bash_profile file under the current User folder, skip directly to 5)2. Go to the current user's HOME directory (command line input echo $HOME)3. Create a. Bash_profile (command line Input touch. Bash_profile)4. Open the. bash_profile file (command line input open-e. bash_profile)5. Edit the. bash_profile fileEnter in the. bash_profile fileExport path=/users/jiandan/d
Tags: erase img Fast BSP Use nbsp Wait zip bootReboot to Recovery interfaceADB reboot RecoveryReboot to Bootloader interfaceADB reboot bootloaderADB wait-for-device #等待设备ADB reboot-bootloader #这个是重启到bootloader界面 default is FastBoot. You can restart here first and then brush into boot.img.FastBoot Flash boot boot.img #这个是刷入boot的命令. The official solution should be brushed manually once.FastBoot Flash Recovery recovery.img #刷入recovery already have recove
The reason for the error is that the port of ADB is occupied by the process of other programs, so what to do is to find and kill the process. Steps:1. Run adb nodaemon server in cmd, see what the port number of ADB is, and under normal circumstances is 5037 (why? I don't quite understand, maybe the port number used by the software is fixed)2. Re-run Netstat-ano |
the list of running Simulators/devices and the status of each instance:ADB Devices
26. view the bug report:ADB bugreport27. Record wireless communication logs:
In general, there are a lot of wireless communication logs and there is no need to record them during operation, but we can still set the record through the command:ADB ShellLogcat-B radio
28. Obtain the device ID and serial number:
the list of running Simulators/devices and the status of each instance:Adb devices
26. view the bug report:Adb bugreport27. Record wireless communication logs:
In general, there are a lot of wireless communication logs and there is no need to record them during operation, but we can still set the record through the command:Adb shellLogcat-B radio
28. Obtain the device ID and serial number:
commands2. Installing the SoftwareADB installADB install Android Series tutorial (vi) An explanation of ADB operation commands3. Uninstalling the SoftwareADB uninstall ADB uninstall-k If you add the-K parameter, the software is uninstalled but the configuration and cache files are preserved.4. Enter the shell of the device or simulator:ADB shellFrom the above command, you can enter the device or emulator s
remount (re-mount the system partition so that the system partition is re-writable).ADB shellCD System/appRM *.apk21. Get Administrator Privileges:ADB root22. Start activity:ADB shell am START-N package Name/package name + class name (-N class name,-a action,-d date,-m mime-type,-c category,-e Extended data, etc.).23. Release Port:You can set any port number as the request port for the host to the emulator or device. Such as:ADB forward tcp:5555 tcp:
Error:could not find adb, please install the Android SDK and set path to ADBEnvironment: Win7 64bit Eclipse 1.4.1Android-sdk_r21-windowsProblem Description: Put Asm.jar in the user directory of C drive, execute Java-jar Asm.jar, jump out as promptedCause analysis: The SDK directory settings are incorrect.1. SDK Environment settingsSystem environment variables, environment variables, advanced system settings, properties, computersA) New variable Androi
Adb functions and adb Functions
Of course, you must first enter the cmd command line to run the adb shell.
The following describes some commands that we often need but do not use.
1. df-sh view the space occupied by the current folder
2. view the current memory usage of the system using du.
3. input text xxxxxxxxxxx xxxxxxxx indicates the content to be ent
How many commands are used to handle adb, and how many commands are used to handle adb?Android Development Board:Start adb:Start adbdReset the adbd Port:# Stop adbd# Setprop service. adb. tcp. port 5555# Start adbd# Ifconfig eth0Set a temporary IP Address:# BusyboxIfconfig eth0 192.168.0.59 netmask 255.255.255.0Set a temporary Gateway:# BusyboxRoute add default g
2016.9.11 Android Studio will also have this problem, the solution is just like the error message different ADB connection Error:an existing connection is forcibly closed by the R Emote Host--------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------
When the phone is connected to the computer port to run the
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.