Use 360 for apk reinforcement and 2 signatures for the overall process

Because the new version of 360 Reinforcement Assistant needs to pay to automatically sign, so I can only sign manually~

1. Use Android studio to sign for the first time and package the apk

First select the option under build

insert image description here
select apk

insert image description here
If there is no key, click New

insert image description here
You need to enter the key storage location, key store password, key alias (Alias), key password, and any data under the Certificate column

insert image description here

After success, return to the previous page, select your key file, enter the key store password you just set, your alias and key password, and click Next

insert image description here

Select the output path, click release, and then complete

insert image description here

At this point, the build will be performed. After the build is completed, you will see the packaged signed apk in the selected output directory.

insert image description here

2. Use 360 ​​reinforcement tools for reinforcement

First go to the official website to download the tool. There are tutorials on the official website for the download and installation process, so I won’t repeat them here.

Open the 360 ​​hardening tool, register an account and log in, select apk hardening, and add an application

insert image description here

Select the apk file you got in the previous step, then it will show start uploading.

insert image description here

After waiting for a while, you will be notified that the hardening is complete. Click OK.

insert image description here

This is the hardened installation package.

insert image description here

3. Perform apk secondary reinforcement

First enter the module settings

insert image description here
Find the sdk location
insert image description here

Enter the build-tools directory

insert image description here
Select the version directory according to the project gradle file

insert image description here
insert image description here
After copying the apk file obtained by hardening to this directory, enter the command line in this directory

insert image description here
Input command: zipalign -f -p -v 4 The name of the apk to be aligned.apk The name of the apk after alignment.apk for alignment

insert image description here
-f: If the file already exists at the time of output, it will be overwritten
-v: Output detailed log
-c: Confirm whether the apk is aligned

After success, there will be this prompt

insert image description here

Then you will see the aligned apk file in the directory. Copy the file to the lib directory of the directory, and then cmd also enters the directory

insert image description here
Then enter the command: java -jar apksigner.jar sign --ks The detailed path of your key in the first step and the name with suffix --ks-key-alias The apk file you copied from the alias you set.apk

insert image description here

After entering the password, the signature is completed. If there is no prompt, the signature is successful!

You're done!
insert image description here

Guess you like

Origin blog.csdn.net/jiuchena/article/details/129321690