diff --git a/BmwDeepObd/ActivityCommon.cs b/BmwDeepObd/ActivityCommon.cs index 74ef75d9c..b8b9c46d9 100644 --- a/BmwDeepObd/ActivityCommon.cs +++ b/BmwDeepObd/ActivityCommon.cs @@ -11510,23 +11510,11 @@ public bool ExtraktPackageAssemblies(string outputPath, bool forceUpdate = false Directory.Delete(outputPath, true); } - string ext = Path.GetExtension(packageFilePath); bool result = false; - ApkUncompress.ApkUncompressCommon apkUncompress = new ApkUncompress.ApkUncompressCommon(); - if (string.Compare(".apk", ext, StringComparison.OrdinalIgnoreCase) == 0) + ApkUncompress2.ApkUncompressCommon apkUncompress = new ApkUncompress2.ApkUncompressCommon(); + if (apkUncompress.UncompressFromAPK(packageFilePath, outputPath)) { - if (apkUncompress.UncompressFromAPK(packageFilePath, ApkUncompress.ApkUncompressCommon.AssembliesPathApk, null, outputPath)) - { - result = true; - } - } - - if (string.Compare(".aab", ext, StringComparison.OrdinalIgnoreCase) == 0) - { - if (apkUncompress.UncompressFromAPK(packageFilePath, ApkUncompress.ApkUncompressCommon.AssembliesPathAab, null, outputPath)) - { - result = true; - } + result = true; } if (result && Directory.Exists(outputPath)) @@ -11601,7 +11589,7 @@ public static List GetCurrentAbiDirs() if (isArm) { // the release version uses _ and debug uses - - return is64Bit ? ["arm64_v8a", "arm64-v8a"] : ["armeabi_v7a", "armeabi-v7a"]; + return is64Bit ? ["arm64", "arm64_v8a", "arm64-v8a"] : ["armeabi", "armeabi_v7a", "armeabi-v7a"]; } // only the _ variant is used for release and debug @@ -11634,6 +11622,13 @@ public static List GetCurrentAbiDirs() if (!File.Exists(location)) { string fileName = Path.GetFileName(location); + string ext = Path.GetExtension(fileName); + + if (string.IsNullOrEmpty(ext) || string.Compare(ext, ".dll", StringComparison.OrdinalIgnoreCase) != 0) + { + fileName += ".dll"; + } + location = Path.Combine(assembliesDir, fileName); if (!File.Exists(location)) { diff --git a/BmwDeepObd/BmwDeepObd.csproj b/BmwDeepObd/BmwDeepObd.csproj index 29f7935c8..0fef2d749 100644 --- a/BmwDeepObd/BmwDeepObd.csproj +++ b/BmwDeepObd/BmwDeepObd.csproj @@ -18,7 +18,6 @@ False True True - False 1701;1702;CS8632 @@ -26,7 +25,6 @@ False r8 True - True @@ -57,16 +55,19 @@ - - - - - - - - - - + + + + + + + + + + + + + @@ -109,6 +110,7 @@ + diff --git a/BmwDeepObd/Directory.Build.targets b/BmwDeepObd/Directory.Build.targets index 48c342168..1c7ac30d7 100644 --- a/BmwDeepObd/Directory.Build.targets +++ b/BmwDeepObd/Directory.Build.targets @@ -1,6 +1,7 @@  - $(DefineConstants);ANDROID_AUTO + $(DefineConstants);ANDROID_AUTO + True