How to find the source code of cocos2dx game and analyze how to translate jsc into js
How to find the source code of the cocos2dx game and analyze the jsc solution to js, I believe that many inexperienced people are at a loss about this. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
Next, I'll show you how to quickly get the game source code of cocos2dx.
After you get the APK, the first step is to extract it.
After unzipping, find the jsc file in the src folder in the assets folder.
If what you want is a js file, the point is to crack it.
I found the words of the official website, by reading a number of boss's articles, combined with their own understanding, wrote a section of code, can find the encrypted password, thus successfully cracked the jsc.
However, after seeing the source code, I found that there were bigger problems to be solved.
Prepare these tools: adb,xxtea,zip,apktool,jarsigner, bytecode analysis tool (write your own code to analyze the binary stream)
Step: apktool unpack-> bytecode analysis tool find password-> xxtea decryption file-> zip decompression-> [get js source code]-> zip compression-> xxtea encrypted file-> apktool package-> jarsigner signature-> [get new apk]-> adb push to Android-> [finish]
After reading the above, have you mastered how to find the source code of the cocos2dx game and analyze the method of solving jsc into js? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!