@@ -6,19 +6,25 @@ const val tag = "Morphe Manager"
66const val APK_MIMETYPE = " application/vnd.android.package-archive"
77
88val APK_FILE_MIME_TYPES = arrayOf(
9+ BIN_MIMETYPE ,
910 APK_MIMETYPE ,
10- " application/zip" ,
11- " application/x-zip-compressed" ,
12- " application/x-apkm" ,
13- " application/x-apks" ,
14- " application/x-xapk" ,
15- " application/xapk" ,
16- " application/vnd.android.xapk" ,
17- " application/vnd.android.apkm" ,
18- " application/apkm" ,
19- " application/vnd.android.apks" ,
20- " application/apks" ,
21- BIN_MIMETYPE
11+ // ApkMirror split files of "app-whatever123_apkmirror.com.apk" regularly Android to misclassify
12+ // the file as an application or something incorrect. Renaming the file and
13+ // removing "apkmirror.com" from the file name fixes the issue, but that's not something the
14+ // end user will know or should have to do. Instead, show all files to ensure the user can
15+ // always select no matter what file naming ApkMirror uses.
16+ " application/*" ,
17+ // "application/zip",
18+ // "application/x-zip-compressed",
19+ // "application/x-apkm",
20+ // "application/x-apks",
21+ // "application/x-xapk",
22+ // "application/xapk",
23+ // "application/vnd.android.xapk",
24+ // "application/vnd.android.apkm",
25+ // "application/apkm",
26+ // "application/vnd.android.apks",
27+ // "application/apks",
2228)
2329val APK_FILE_EXTENSIONS = setOf (
2430 " apk" ,
0 commit comments