Apk resource file confusion [WeChat open source method]

1, WeChat compression method_01:
  1) Generated demo.apk;
  2) Download AndResGuard-cli-1.1.0.jar (or go to github to download the open source code https://github.com/shwenzhang/AndResGuard );
  3) Configuration file config.xml [Configuration whitelist, signature file, compressed file format] [There is a configuration method on github https://github.com/shwenzhang/AndResGuard ]
  4) Install 7zip [under the window system, copy and modify 7zip 7z.exe in the directory bin is 7za.exe]
  5) Use the command: java -jar AndResGuard-cli-1.1.0.jar -config config.xml demo.apk -out out_file -7zip C:\Program_Files\7-Zip \7za -zipalign D:\Android\sdk\build-tools\22.0.1\zipalign

2, Method_02:
  Download the tool zip package , extract it to get the AndResGuard folder. After modifying the path configuration in setting.txt, put the apk in this folder, and run run.bat to get the compressed apk. [You can put N apks in this folder at the same time and then run run.bat].
  The meaning of the variables in the setting.txt file: second_split means that when there are N apks, the time interval between each apk is compressed, in seconds. If there are too many apks and the time interval is too short, it will cause a freeze. It is recommended The time interval is 20 seconds.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327016371&siteId=291194637