source code

Due to the judge's requirements, we provided the artifacts to compiling the source code and the download links of these artifacts are given. The artifacts given in Link1 and Link2 are exactly the same. We backup the same artifacts in github in case the link from google drive fails.


The environment to run the source code:

1. OS: Windows 10 or Windows 11

2. JDK: JDK 11

3. Running tool: IntelliJ IDEA(≥2020.1.4)


The steps of compiling the source code of ANDetect:

*STEP 0: Unzip ANDetect.zip. and resources.zip.*


*STEP 1: Add apktool-2.7.0.jar to local maven repository.*

mvn install:install-file -Dfile=[the path of apktool-2.7.0.jar] -DgroupId=com.custom -DartifactId=apktool -Dversion=2.7.0 -Dpackaging=jar


*STEP 2: Change the output directory in line 33 of pom.xml.*

Change 'E:\target' to suitable path as the result of ANDetect.jar.


*STEP 3: Config the JDK and main class of IDEA.*

Add new 'Application' named 'ANDetect'.

Set 'JRE' as the path of JDK 11.

Set 'Main class' as 'iie.group5.ANDMain'.


*STEP 4: Build the project and Run.*


*STEP 5: Pack the project to jar by Maven.*

Maven-> Lifecycle -> double click 'package' 

Then, the jar will be generated in the path given in STEP2.

Change the name of ANDetectMaven-0.0.1-SNAPSHOT.jar as 'ANDetect.jar'.


Eventually, you can run ANDetect.jar in Ubuntu with the guidance given in 'tool'. Notably, when running ANDetect.jar, the package of 'resources' should be placed in the same directory.

We record the video to demonstrate our successful execution of ANDetect in IDEA. We test two demo APKs same with the APKs in 'tool' page and output the results. The paths of demo APKs are: