protocol to implement the "ADB shell" request of the command line client, but of course it will wrap up the input information before sending it to the target device (see COMMANDLINE.C's Interactive_shell ())Remount
Request ADBD to re-mount the device read-only file system to a read-write mode file system. This is usually necessary before performing an "adb sync" or "
before sending it to the target device (see COMMANDLINE.C's Interactive_shell ())RemountRequest ADBD to re-mount the device read-only file system to a read-write mode file system. This is usually necessary before performing an "adb sync" or "adb push" request. This request may fail in some versions because it is not supportedDev:pathOpens a device file and reads and writes to the device through the client
/system/bin/vold/system/bin/ //replace Vold in Phone, receive path best not to write system/bin, there will be problems
ADB pull files from the phone
ADB pull/data/data/com.android.providers.settings/databases/settings.db./ /Set the database on the phone to take out the ADB pull/data/anr/. / //Remove all files in the ANR directory, including T
is using the-r option
If you need to install the APK with Chinese name in Windows, you need to change the ADB, Baidu can find the ADB to make changes, support the Chinese command apk, please search by yourself
ADB Uninstall, uninstall the application, followed by the parameter is 应用的包名 , please distinguish fromapk 文件名
'-K ' means
you need to install the APK with Chinese name in Windows, you need to change the ADB, Baidu can find the ADB to make changes, support the Chinese command apk, please search by yourself
ADB Uninstall, uninstall the application, followed by the parameter is 应用的包名 , please distinguish fromapk 文件名
'-K ' means keep the data and the cache directori
make changes, support the Chinese command apk, please search by yourself
ADB Uninstall, uninstall the application, followed by the parameter is 应用的包名 , please distinguish fromapk 文件名
'-K ' means keep the data and the cache directories,-k option, saving the database and caching directory when uninstalling
ADB pull to copy files or folders on your Android device to a localFor example, copy
command
$ adb-d Install helloworld.apk
Installing an app using the ADB install command to copy an application from a development computer and install it on a simulator or phone, the adb install command must specify the path to the. apk file to be installed:
adb install [-LRTSDG] (-L: Lock the program)
1 common command-line tools in the Android SDKThere are many command-line tools in the 2 starting and shutting down the ADB service (ADB start-server and ADB kill-server)After testing by the author, the ADB service is possible (this service can be found in the Windows process after the simulator has been running for a
search by yourself
ADB Uninstall, uninstall the application, followed by the parameter is 应用的包名 , please distinguish fromapk 文件名
'-K ' means keep the data and the cache directories,-k option, saving the database and caching directory when uninstalling
ADB pull to copy files or folders on your Android device to a localFor example, copy the Pull.txt file under SDcard to the D drive:
@ android: // # mount-o ro, remount/dev/block/mmcblk0p20/system
Execute copyD: \> adb push 1.txt/system
Failed to copy '1.txt 'to'/system/1.txt ': Permission denied
Run the ls-l command to view the file permissions. You can see that the shell user does not have the read/write permissions and modifies the file permissions
After testing by the author, the ADB service is possible (this service can be found in the Windows process, which is used for the emulator or a real-time service connected via a USB cable), after the simulator has been running for a while. The ADB service needs to be re-closed and restarted. Of course, restarting eclipse may solve the problem. But that's more troublesome. If you want to close the
packages, etc.
instruction
Description
Notes
List Packages
List all packages that meet the filter criteria
List Permissions
List all permissions for this group
List features
See which feature the system supports
such as Bluetooth, WiFi, camera and so on.
Install
Safety Load
Label:Install software: adb install apk (file name. apk)Reinstall the SOFTWARE: adb install-r apk (file name. apk)Uninstall APK software: adb uninstall APK (package name. apk)Check the run log on your phone, which can be used to check for errors: adb logcatSee if your phone is connected, and how many phones are connect
ObjectiveWelcome everyone I share and recommend useful code Snippets ~ ~StatementWelcome reprint, but please keep the original source of the article:CSDN:http://www.csdn.netrainy season o mo away:http://blog.csdn.net/luckkofBody[Description]How to turn on and off the ADB authentication mechanism (Google adb secure)[Keyword]ADB secure, ro.adb.secure,
-R to force the installation, user application.
As indicated by the above two, the main differences between the ADB install and the ADB push apk are:
Push
Install
Directory
System/app
Data/app
Permissions
System level (full access)
User level (not fully open)
Unloadin
in multiple devices (simulators), you need to specify a device number when you want to view the status of one of them directly with Logcat, or when you install the app directly on the target device. ADB devicesThis command can get the serial number of the current device (serialnumber). like a simulator, usually a emulator-5554 .After the ADB directive, add the parameter-s You can specify the target of the
(). I have read a total of 0 comments for 36 times.10:29:15
When you want to use logcat to view the status of one of multiple devices (simulators), or directly install an application on the target device, you must specify the device number.Adb devicesThis command can obtain the serial number of the current device (serialNumber ).For example, a simulator is usually emulator-5554Add the parameter-s You can specify the adb Command target.It is useful whe
* * The processing method when encountering Mount:read only file system or ADB remount:read only file system when using ADB is as follows: The
method described in this article applies to situations where the/system read-only permission (RO) cannot be modified with the Mout command. in
General
, when the/system does not have RW permission, the system can not push, and so on, in general, through the mount
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.