In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article introduces you how to understand apk decompilation and repackaging, the content is very detailed, interested friends can refer to, hope to be helpful to you.
Recently, it is a little troublesome to connect to android with anysdk, but it does bring great convenience. You only need to set parameters to connect to the new channel. The only thing to note is to disable debugMode during release.
However, there is a problem with the anysdk under android, that is, all channels must use the same set of resources, and then use the master package to generate channel packages. There is no difference between packages, which is a bit contradictory to our project. There are two ways to solve this problem:
The master package will get the final resources of a channel and then generate the channel package, which is really feasible, but it is too troublesome and difficult to maintain, and the convenience brought by anysdk is greatly reduced.
Generate all channel packages at once, then decompile them with tools such as apktool, add differentiated files, and then re-sign them.
Decompilation is fine, but there is a problem: you need to download an extra apktool.jar. Unexpectedly, the re-signature card has been stuck for a long time, because the commands on the Internet are all jarsigner-verbose-keystore xx.keystore-signedjar-pkg.apk pkg1.apk xx.keystore, and they don't say what each parameter means. They always make mistakes when using them, and it takes a long time to succeed.
The following is the interpretation of the command:
A tool under jarsigner:jdk with the suffix exe
-verbose: output details
-keystore: key file
-signedjar: signature file. The first parameter is the signed file, which is equivalent to the output file, and the second is the unsigned file, input file. It began to turn the other way around, thinking that the first one was input and the second output was cheated.
The last parameter is the alias name of keystore, what is said on the Internet is really misleading, what is the meaning of putting two keystore file names, right?
So the correct command should be: jarsigner-verbose-keystore xx.keystore-signedjar output.apk input.apk alias
On how to understand apk decompilation and repackaging to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.