Develop Android program, always need Plug and unplug, USB port is broken, now ADB can be wireless network, link in the same LAN under the Android device1. Link computers and mobile devices to the same wireless network2. Install "ADB wireless" on Android device3. Open the "
1 after executing adb shell [email protected]:/#是什么意思?This is a common format in Linux terminals.This shell is run as root , the hostname is Android, currently in the root directory/,#代table is the root permission.Typically, the ADB shell is started by default with a UID of $-a shell user , which requires the Android r
Change system permissions1.CP Sud/system/xbin/sud chmod 755/system/xbin/sud //NOTE:SU chmod into 7552.CP su/system/xbin/suchmod 6755/SYSTEM/XBIN/SU //note:su chmod into 67553.CP install-recovery.sh/system/etc/install-recovery.shchmod 755/system/etc/install-recovery.sh //note: install-recovery.sh into 7554.rebootChange Build.propservice.adb.tcp.port=5555The machine is connected to the WiFi: if the machine is connected to the WiFi IP address: 192.168.0.117sudo
In the case of database operations, the execution of operations statements such as queries or deletions often fails, but there is no specific reason for finding them. The following is a command-line way to perform database operations to verify that the database operation statements in Android are correct, and so on.The following are the steps:(1) Enter into the console, enter the ADB shell, into the command
Use ADB forword to communicate with Android mobile phones
The server code is as follows:
import java.io.IOException;import java.io.ObjectOutputStream;import java.net.Socket;import java.net.UnknownHostException;import java.util.Scanner;public class Server {public static final String TAG = "server";public static int PC_LOCAL_PORT = 22222;public static int PHONE_POR
controls the processing of commands from multiple ADB clients, you can control any emulator or device instance through any client (or script).The following sections describe the status of using ADB and the Management emulator/device through commands. It is important to note that if you use an eclipse with the ADT plugin to develop an
PortImport or copy files from Simulators/devicesAdb command listStart shell commandsConnect to the database by running sqllite3 on a remote shell ClientUI/Software Test Procedure MonkeyOther shell commandsEnable logcat logsUse the logcat commandFilter log outputControl log output formatView available log BuffersView stdout and stderrLogcat command listStop adb ServiceSummaryThe Android debugging system is
LogCat is stored in a buffer called circular memory buffers.Usually, you can use the logcat plug-in provided by eclipse to view logcat,In fact, you can also use commands to export logcat so that you can view logcat in certain situations,The following is a simple usage command:
adb logcat -d > logcat.txt
Refer to the materials searched on the Internet and the deve
Use adb to transfer files between your computer and mobile phone, and use the adb mobile phone to transfer files
First, you need the root mobile phone.
Then, "Win + R" opens the cmd window. The following example describes how to copy d: \ 1.txt to the/system/directory.
Adb
The DB is the SDK comes with the tool, can realize the bridge function;ADB shell can interact with the mobile phone system, based on the operation of the Andoid Linux systemadb common commands:1. View the deviceADB devicesThis command is to view the currently connected device, the Android device connected to the computer, or the emulator will list the display2. Installing the SoftwareADB install This comman
occupied, resulting in the inability to connect to the device when using the ADB command
Service running on the PC side: its management client connects to the ADB background process on the Android device
After the ADB service starts, Windows can find the Adb.exe process in Task Manager
The
Tags: android test automation adb
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 ke
Document directory
Connect to the database by running sqllite3 on a remote shell Client
UI/Software Test Procedure Monkey
Other shell commands
Use the logcat command
Filter log output
Control log output format
View available log Buffers
View stdout and stderr
Logcat command list
Android debugging bridge (adb) is a versatile tool that helps you manage
device when using the ADB command
Service running on the PC side: its management client connects to the ADB background process on the Android device
After the ADB service starts, Windows can find the Adb.exe process in Task Manager
The ADB background proc
the device when using the ADB command
Service running on the PC side: its management client connects to the ADB background process on the Android device
After the ADB service starts, Windows can find the Adb.exe process in Task Manager
The ADB backgro
.
Do the following:
Copy Code code as follows:
ubuntu@ubuntu:~$ ls-a//You can find a hidden file with "." Beginning:. Android
ubuntu@ubuntu:~$ CD. Android/
ubuntu@ubuntu:~/.android$ gedit Adb_usb.ini
The contents are generally as follows:
Copy Code code as follows:
# ANDROID
Android Tools: adb Introductionin Android development, the ADB is a tool that developers often use, which Android developers must master. Android Debug Bridge,
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
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.