Skip to content

Commit df09e1d

Browse files
committed
More APK Container File-Types
1 parent 074b222 commit df09e1d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/main/java/the/bytecode/club/bytecodeviewer/resources/ResourceType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public enum ResourceType
3636
CLASS_FILE(IconResources.classIcon, "class"),
3737
JAVA_ARCHIVE(IconResources.jarIcon, "jar", "war", "ear"),
3838
ZIP_ARCHIVE(IconResources.zipIcon, "zip"),
39-
ANDROID_ARCHIVE(IconResources.androidIcon, "apk", "wapk", "dex", "xapk", "apkm"),
39+
ANDROID_ARCHIVE(IconResources.androidIcon, "apk", "dex", "aab", "wapk", "xapk", "apkm", "apks"),
4040
IMAGE_FILE(IconResources.imageIcon, "png", "jpg", "jpeg", "bmp", "wbmp", "gif", "tif", "webp"),
4141
CONFIG_TEXT_FILE(IconResources.configIcon, "properties", "xml", "jsp", "mf", "config", "csv", "yml", "yaml", "ini",
4242
"json", "sql", "gradle", "dockerfile", "htaccess", "plugin", "attachprovider", "transportservice", "connector"),

src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/Import.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public enum Import
3535
//TODO war needs to add the /libs correctly similar to XAPK
3636
ZIP(new ZipResourceImporter(), "zip", "jar", "war", "ear"),
3737
CLASS(new ClassResourceImporter(), "class"),
38-
XAPK(new XAPKResourceImporter(), "xapk", "apkm"),
38+
APK_CONTAINER(new APKContainerResourceImporter(), "aab", "xapk", "apkm", "apks"),
3939
APK(new APKResourceImporter(), "apk"),
4040
DEX(new DEXResourceImporter(), "dex");
4141

src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/XAPKResourceImporter.java renamed to src/main/java/the/bytecode/club/bytecodeviewer/resources/importing/impl/APKContainerResourceImporter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@
3838
import static the.bytecode.club.bytecodeviewer.Constants.TEMP_DIRECTORY;
3939

4040
/**
41-
* Compressed APKs (XAPK)
41+
* APK Containers (.AAB, .XAPK, .APKM, .APKS)
4242
*
4343
* @author Konloch
4444
* @since 6/26/2021
4545
*/
46-
public class XAPKResourceImporter implements Importer
46+
public class APKContainerResourceImporter implements Importer
4747
{
4848
@Override
4949
public void open(File file) throws Exception

0 commit comments

Comments
 (0)