Signing and installing Android programs with ADB

Source: Internet
Author: User

First you need to prepare the Android SDK package, I am operating on windows, configure in Path

Yout_sdk_path\android-sdk-windows\platform-tools and Yout_sdk_path\android-sdk-windows\tools

This allows you to use the ADB and signing tools directly on the command line.

Refer to the Android Website app signature page and enter the following command on the cmd command line to generate the KeyStore (under window will be generated under the C:\Users\Administrator directory).

---My-release-key.  KeyStore
-alias--2048-10000

Where Alisa_name will be used later in the signature process.

Then enter the following command to sign (the. apk file should also be placed in the same directory).

---digestalg SHA1
-My-release-key. KeyStore my_application. APK alias_name

This way the signature is done.

Connect your phone to USB and type in cmd

ADB devices

To indicate whether the device is connected or not, then continue typing

ADB install-r <path_to_apk>

Next, wait for the installation to complete.

Signing and installing Android programs with ADB

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.