Keytool, the tool of JDK, needs to install JDK environment.
The apk of the target application needs to be provided.
1, get the package name
For example, aapt.exe dumps Badging C: \ users \ administrator \ desktop \ demo-apk-1.0.1.8795438+0.apk > C: \ users \ administrator \ desktop \1.txt.
The obtained package name is com.pakname.swbg.
Step 2 get a signature
sha 1:56:BD:02:6B:9D:53:D7:F5:32:B2:BC:BD:BB:34:5B:f 1:CD:EF:7F:C0
Here, with the help of github's open source apkparser.
Execute the following command in project composer.json or modify the introduction of composer.json
The second method is suitable for the case that there is no JAVA environment. Generally, linux will have openssl environment.
Principle: By analyzing the first method, it is found that after the apk package is decompressed, there will be one. The rsa signature certificate in it is x509 certificate conforming to pki system, and you can view the information through openssl command.