diff --git a/NOTE.txt b/NOTE.txt new file mode 100644 index 0000000..ff9a8f7 --- /dev/null +++ b/NOTE.txt @@ -0,0 +1,8 @@ +Api level 26 (or whatever the minsdkver of the apk is) is necessary to be specified to smali.jar, or else it will use 15, which is quite old +and is sure not to work. + +I got the latest 3.0.5 by cloning Google's fork (https://github.com/google/smali) and building it with gradle (./gradlew build) +I built it on Arch (via gradle build, because gradlew kept complaining about jdk in /usr/lib/jvm/java17-openjdk despite there being one) +because on Windows it would complain about some ANTLR grammar parsing..... for some reason. + +Anyway, that's how i did it. But I used the fat jar, and renamed it accordingly (the dirty fat one.) \ No newline at end of file diff --git a/buildtool/task/compile_smali.py b/buildtool/task/compile_smali.py index b253447..b45ec8b 100644 --- a/buildtool/task/compile_smali.py +++ b/buildtool/task/compile_smali.py @@ -32,4 +32,4 @@ def compile_smali(): continue print(f"Compiling {smali_dir.name} => {dest_dex.name}...") - _ = subprocess.run(["java", "-jar", "tools/smali-2.5.2.jar", "a", smali_dir, "-o", dest_dex]) \ No newline at end of file + _ = subprocess.run(["java", "-jar", "tools/smali-3.0.5.jar", "a", "-a", "26", smali_dir, "-o", dest_dex]) \ No newline at end of file diff --git a/tools/smali-2.5.2.jar b/tools/smali-2.5.2.jar deleted file mode 100644 index 2aa9752..0000000 Binary files a/tools/smali-2.5.2.jar and /dev/null differ diff --git a/tools/smali-3.0.5.jar b/tools/smali-3.0.5.jar new file mode 100644 index 0000000..cf1c341 Binary files /dev/null and b/tools/smali-3.0.5.jar differ