Android safety test (3) application integrity detection

Two, app application integrity
1. Test environment

SDK: Java JDK, Android SDK.
Tools: 7zip, apktool.jar, signapk.jar

2. Operation steps

The first step: Place the apk to be detected in apktool.jar

share pictures

Step 2: In cmd command line mode, enter the path of apktool.jar, enter:

java -jar apktool.jar d apk file name

Because my apktool.jar is older and will report an error, I downloaded the 2.4.0 version, so the command becomes java -jar apktool_2.4.0.jar d Fui_Biu.apk

Share a picture

Share Picture

Then an apk folder will be generated

< p>Share pictures

Step 3: Enter the new apk folder, Find the corresponding logo, which usually exists in several folders starting with mipmap under the res folder, or directly search for launcher under the apk folder

share picture


Step 4: Download a png image at will, replace the logo, for example, use Replace the icon of iQiyi with the icon in the apk

share pictureshare picture

Step 5: Repackage after successful replacement, enter the directory where the apktool tool is located under the cmd command line,Execute command:

java -jar apktool.jar b apk folder -o the apk file to be generated Name

Share picture

For example: java -jar apktool.jar b Fui_Biu -o Fui_Biu.apk

Share a picture< /p>

share picture

Step 6: For the newly generated apk file to sign, execute the command: java -jar signapk.jar bdd.pem bdd.pk8 original apk file name new apk file name

share picture

share picture

Step 7: Install

Install, run, and confirm whether there is a self-check for the signed APK; It should be noted that if the signature of the previously installed APK and the modified APK are different, then You cannot overwrite the installation directly.Generally speaking, uninstall the previously installed APP first.

If self-checking is not performed, you can open the software normally, and the test fails span>

If the application has been self-verified, the software cannot be launched and the test passes

Share pictures

SDK: Java JDK, Android SDK.

Tools: 7zip, apktool.jar, signapk.jar

java -jar apktool.jar d apk file name

< pre>java -jar apktool.jar b apk folder -o the name of the apk file to be generated

Leave a Comment

Your email address will not be published.