Two error code restore rules
If...else statement:
Anti-compilation Code
if (Paramboolean) Paramtextview.settextcolor ( -16727809); while (true) { return; Paramtextview.settextcolor ( -1315861); }
After restore
if (Paramboolean) { paramtextview.settextcolor ( -16727809); } else { paramtextview.settextcolor ( -1315861); }
Will put if. Esle decompile into If ... while (true) structure.
Anti-compilation Code
if (paramInt1! = 1) break label185; if (this.countchild_1 = = null) { this.countchild_1 = new Pokercountchild (this.mcontext); This.countchild_1 = new Pokercountchild (this.mcontext); This.countChild_1.setPosition ((int) (0.83D * basegameactivity.screenwidth
-This.countChild_1.getWidth ()), (int) (0.2D * basegameactivity.screenheight)); This.countChild_1.setCount (ParamInt2); Addonechild (this.countchild_1); if (ParamInt2 = = 0) this.countChild_1.setAlpha (0); } This.countChild_1.setCount (ParamInt2); } label185: do return; while (paramInt1! = 2); if (this.countchild_2 = = null) { this.countchild_2 = new Pokercountchild (this.mcontext); This.countchild_2 = new Pokercountchild (this.mcontext); This.countChild_2.setPosition ((int) (0.17D * basegameactivity.screenwidth),
(int) (0.2D * basegameactivity.screenheight)); This.countChild_2.setCount (ParamInt2); Addonechild (this.countchild_2); if (ParamInt2 = = 0) this.countChild_2.setAlpha (0); } This.countChild_2.setCount (ParamInt2);
Restores
if (i = = 1) { if (countchild_1 = = null) { countchild_1 = new Pokercountchild (mcontext); Countchild_1 = new Pokercountchild (mcontext);
(int) (0.2D * (double) basegameactivity.screenheight)); Countchild_1.setcount (j); Addonechild (countchild_1); if (j = = 0) countchild_1.setalpha (0); } Countchild_1.setcount (j); } else if (i = = 2) { if (countchild_2 = = null) { countchild_2 = new Pokercountchild (mcontext); Countchild_2 = new Pokercountchild (mcontext);
(double) Basegameactivity.screenwidth), (int) (0.2D *
(double) Basegameactivity.screenheight)); Countchild_2.setcount (j); Addonechild (countchild_2); if (j = = 0) countchild_2.setalpha (0); } Countchild_2.setcount (j); return; } The statement is reversed and a break label structure appears
Anti-compilation Code
Jd-gui sometimes translates the Whilei statement into if, where the if is changed to a while
Switch statement
Anti-compilation Code
Switch (This.mband) { default: Case 0: Case 1: Case 2: } while (true) { return; This.mBand.setText ("FM1"); Continue; This.mBand.setText ("FM2"); Continue; This.mBand.setText ("AM"); } Restores
Switch (Mband) {case 0: mband.settext ("FM1"); break; Case 1: mband.settext ("FM2"); break; Case 2: mband.settext ("AM"); break; Default: }
The switch rule is a continue that corresponds to a case. Be aware that the outer continue is the only thing that counts, and the continue in if does not count.
Enum enum
Restores
Jd-gui
Http://www.qiaodiqiu.com/how-to-read-java-confusion-after-the-anti-compiled-code.html
http://blog.csdn.net/xyz_fly/article/details/8014455
http://blog.csdn.net/hp_2008/article/details/8626010
Jad
http://blog.csdn.net/z3h/article/details/2515287
http://blog.csdn.net/z3h/article/details/2640522
Android anti-compilation and code interpretation