Android ADB common commands

Source: Internet
Author: User
Tags root access

1. Installing APK Package Install Command: tools>adb install xxx.apk Enter

2. Uninstall apk package Uninstall command: TOOLS>ADB uninstall Com.cn.android [package name]

3, 1, view logcat information: tools>adb logcat

2, play Logcat information, save as TXT:TOOLS>ADB Logcat >abc.txt

4, press the stack Picture: tools>adb pull/sdcard/image/aaa.jpg c:/ Press the AAA image of the image directory under SDcard to the root of the C drive.

5. Use the ADB shell command:

(1) CD SDcard into the phone memory card

(2) Ls-l View the details of the files inside

(3) Ls-a View the information that contains hidden files, for example, a file that starts with a dot, possibly a system file

(4) Exit

(5) RM 11.png Delete 11 Images

(6) RM *.png Delete all PNG end pictures

6, under the Linux system, and sometimes connected to the mobile phone, DDMS do not recognize the solution:

To switch off the ADB devices with the root account, start it up:

(1) First Enter the root account: su

(2) Enter the password

(3) Enter Tools>sudo./adb kill-server Turn off the server service

(4) Enter Tools>sudo./ADB devices start the existing ADB service

7. Installing JDK steps under Linux system

(1) Download Jdk-6u15-linux-i586.bin file

(2)/usr/java into this directory

(3) First set password for root user: sudo-passwd 123456

(4) mkdir Java CD Java

(5) Modify permissions: chmod +x/home/zzd/downloads/jdk-6u15-linux-i586.bin

(6) Installing the JDK bin file:/home/zzd/downloads/jdk-6u15-linux-i586.bin

(7) Configure environment variables: Add the following environment variables to/etc/profile

Root access profile: sudo gedit/etc/profile

                export java_home=/usr/java/jdk1.6.0_15
                export android_java_home= $JAVA _home
                path= $JAVA _home/bin:/android-sdk-linux_86/tools: $PATH
               export classpath=.: $JAVA _ Home/lib/dt.jar: $JAVA _home/lib/tools.jar

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.