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
select apk
If there is no key, click New
You need to enter the key storage location, key store password, key alias (Alias), key password, and any data under the Certificate column
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
Select the output path, click release, and then complete
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.
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
Select the apk file you got in the previous step, then it will show start uploading.
After waiting for a while, you will be notified that the hardening is complete. Click OK.
This is the hardened installation package.
3. Perform apk secondary reinforcement
First enter the module settings
Find the sdk location
Enter the build-tools directory
Select the version directory according to the project gradle file
After copying the apk file obtained by hardening to this directory, enter the command line in this directory
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
-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
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
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
After entering the password, the signature is completed. If there is no prompt, the signature is successful!
You're done!