One, simple description of java2smali
The java2smali plugin is a very useful plugin on Android Studio. The plug-in can convert Java or Kotlin source files into smali files. Using this plugin can facilitate us to do the following things:
(1), compare java source files to learn smali grammar
(2) Smali instrumentation during apk repacking
Two, plug-in installation graphic tutorial
(1). Click the Android Studio menu "File->Settings..." in turn to open the "Settings" dialog box. As follows:
Picture 1:
Figure II:
Figure 3:
(2) Click the "Plugins" option in the "Settings" dialog box, and then click the input box in the "Marketplace" item and enter "java2smali" to search for plug-ins. As follows:
(3) After the plug-in is searched out, click "Install" to install it. As follows:
(4) After the installation is complete, restart Android Studio. You can see the "Compile to Smali" function item in "Build". As follows:
Three, java to smali effect demonstration
Open any java file in Android Studio, then click "Build->Compile to Smali", after a while, you can see the smali file corresponding to the java file. As follows:
Picture 1: Picture 2:
Figure 3:
The big guys keep a concern before leaving, and follow-up wonderful articles continue