Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
fix(manager): update loader failed due to wrong origin apk filename
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonKhew96 committed Nov 2, 2023
1 parent c9c5708 commit 00783bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class AppManageViewModel : ViewModel() {
for (apk in apkPaths) {
ZipFile(apk).use { zip ->
var entry = zip.getEntry(Constants.ORIGINAL_APK_ASSET_PATH)
if (entry == null) entry = zip.getEntry("assets/lspatch/origin_apk.bin")
if (entry == null) entry = zip.getEntry("assets/lspatch/origin.apk")
if (entry == null) throw FileNotFoundException("Original apk entry not found for $apk")
zip.getInputStream(entry).use { input ->
val dst = lspApp.tmpApkDir.resolve(apk.substringAfterLast('/'))
Expand Down

0 comments on commit 00783bf

Please sign in to comment.