Article Directory
First of all, we need to prepare an Android emulator here. The lightning emulator I use here can also be selected by other emulators.
After downloading WeChat on the emulator and logging in, you can find the corresponding subprogram and click to open it (due to compatibility issues, the WeChat subprogram may crash in the Android emulator, but this does not affect subsequent operations. The subprogram data package has been Downloaded as a self-contained version).
Here we first need to enter WeChat and find a small program
Then we can save it in the Android path: /data/data/com.tencent.mm/MicroMsg/{User ID}/appbrand/pkg/; the iOS save path: /var/mobile/Containers/Data/Application/{ Program UUID}/Library/WechatPrivate/{user ID}/WeApp/LocalCache/release/{small program ID}/) to find the small program package.
Find the path above.
First select all of them and
click to open the Android folder.
You can see the extracted
files. We use wxappUnpacker to unpack the tool (download link: https://data.hackinn.com/tools/wxappUnpacker.zip (remember) Copy here to Thunder to open the download), this download package is a second optimized version), directly use the "node wuWxapkg.js small package name" command to unpack it in one click (node.js and other components need to be installed in advance, Detailed instructions for use in the package), very convenient: install nodejs, unpack it,
and
then put it in the WeChat development applet for analysis. WeChat development applet download