Revert "fix(manager): update loader failed due to outdated origin apk filename" (#257)
Reverts LSPosed/LSPatch#253
This commit is contained in:
parent
531acdb924
commit
8b5d06f073
|
|
@ -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('/'))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue