1. First get an apk, decompile it
Rename to Xxx.zip decompression, put the extracted classes.dex to Dex2jar to decompile
Anti-compilation Method:
CMD under CD to e:\ android \ Android Anti-compile directory execution Dex2jar.bat Classes.dex done will generate Classes_dex2jar.jar
2. Open the file with Jd-gui
Get the following code
3. Looking for key points, this time the main solution is in-game in the purchase, found in the game click on the purchase will prompt "Unable to connect to pay service, please try again later!"
Search to locate code
At a glance, buy here there is a switch, completely point out that should not be changed from here, because here, if the deduction of the conditions are correct, still will be deducted fees.
4. There is no time to continue to follow up, changed the card of the machine's tips, the inability to verify your payment here to change the case to the same as the purchase success
Tutorial:
Above this method temporarily did not find back to compile method, you go to Baidu ...
Now find the back-to-compile method as follows:
Drag the apk file onto this to process and generate a folder named APK name
The contents of the folder are mainly these
Smali is all the source code
Let's change the source.
Find this class first
Text File Open
This language is called Smali, .... I've never learned to read it completely.
Search keywords:
OnPostExecute
Copy the purchase success here, replace the above Pswitch.
and then save
Then back to compile, the way to compile is to drag the folder to
It will automatically form an apk and then sign it. Signature Method Baidu Bar
Beauty scissors, cracked, hemp is no longer worried about the inside of a single game to buy