Android ADB common commands

Source: Internet
Author: User

Adb-help Help

ADB devices View all devices

Adb-s "emulator-5554" get-state for specific device operations

adb-s emulator-5554 kill-server shutdown Simulator

Adb-s emulator-5554 Start-server Open Simulator

ADB push D:\456.txt/data/app/123.txt to copy files to your phone

ADB pull/data/app/123.txt d:\567.txt Copy your phone files to your computer

ADB install e:\HBusAPP.apk apk

ADB install-r e:\HBusAPP.apk re-install APK

ADB uninstall Com.hubs.hubsapp Uninstall APK

ADB shell enters Shell state

Exit shell Status

1. Use the command line to generate the signature apk file (Java environment variables must be configured, otherwise unsuccessful)

A) Generate KeyStore signature files from the command line using Keytool

C:\users\user>e:

E:\>CD Release

E:\release>keytool-genkey-alias hbusapp.keystore-keyalg rsa-validity 30000-keystore HBusAPP.keystore

b) sign the unsigned apk with the Jarsigner tool

E:\release>jarsigner-keystore Hbusapp.keystore hbusapp.apk Hbusapp.keystore

c) Verify that the signature is signed

E:\release>jarsigner-verify hbusapp.apk

Android ADB common commands

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.