fix: system app basename with split apk issue

This commit is contained in:
KOWX712
2025-05-01 16:32:57 +08:00
parent 3015181d4d
commit b1851ff718
2 changed files with 2 additions and 5 deletions

View File

@@ -43,8 +43,7 @@ export async function fetchAppList() {
};
}
const appName = await execCommand(`
base_apk=$(pm path ${packageName} | grep "base.apk" | awk -F: '{print $2}')
[ -n "$base_apk" ] || base_apk=$(pm path ${packageName} | grep ".apk" | awk -F: '{print $2}')
base_apk=$(pm path ${packageName} | head -n1 | awk -F: '{print $2}')
${basePath}/common/aapt dump badging $base_apk 2>/dev/null | grep "application-label:" | sed "s/application-label://; s/'//g"
`);
return {