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