Revert "fix(manager): update loader failed due to outdated origin apk filename" (#257)

Reverts LSPosed/LSPatch#253
This commit is contained in:
Js0n 2023-11-11 19:12:27 +08:00 committed by GitHub
parent 531acdb924
commit 8b5d06f073
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ class AppManageViewModel : ViewModel() {
for (apk in apkPaths) { for (apk in apkPaths) {
ZipFile(apk).use { zip -> ZipFile(apk).use { zip ->
var entry = zip.getEntry(Constants.ORIGINAL_APK_ASSET_PATH) var entry = zip.getEntry(Constants.ORIGINAL_APK_ASSET_PATH)
if (entry == null) entry = zip.getEntry("assets/lspatch/origin.apk") if (entry == null) entry = zip.getEntry("assets/lspatch/origin_apk.bin")
if (entry == null) throw FileNotFoundException("Original apk entry not found for $apk") if (entry == null) throw FileNotFoundException("Original apk entry not found for $apk")
zip.getInputStream(entry).use { input -> zip.getInputStream(entry).use { input ->
val dst = lspApp.tmpApkDir.resolve(apk.substringAfterLast('/')) val dst = lspApp.tmpApkDir.resolve(apk.substringAfterLast('/'))