AndroidDeveloperLB / apk-parser

BSD 2-Clause "Simplified" License
22 stars 9 forks source link

Bug: Unable to fetch app icons of some apps properly #2

Open AndroidDeveloperLB opened 2 years ago

AndroidDeveloperLB commented 2 years ago

Running the sample, I've found these apps that it failed to get their app-icons:

can't get app icon for "com.google.android.flipendo" in: "/system_ext/app/Flipendo/Flipendo.apk" isSystemApp?true can't get app icon for "com.google.android.permissioncontroller" in: "/apex/com.android.permission/priv-app/GooglePermissionController@M_2022_05/GooglePermissionController.apk" isSystemApp?true can't get app icon for "com.google.android.packageinstaller" in: "/system/priv-app/GooglePackageInstaller/GooglePackageInstaller.apk" isSystemApp?true can't get app icon for "com.google.android.gms" in: "/data/app/~~GwZpIzS5WIcv3titJUfL1Q==/com.google.android.gms-lBioJwnNFoNoiZOfntH9wQ==/base.apk" isSystemApp?true can't get app icon for "com.android.settings" in: "/system_ext/priv-app/SettingsGoogle/SettingsGoogle.apk" isSystemApp?true can't get app icon for "com.android.bluetooth" in: "/system/app/Bluetooth/Bluetooth.apk" isSystemApp?true

Might be related: https://github.com/hsiafan/apk-parser/issues/132 https://github.com/hsiafan/apk-parser/issues/113 https://github.com/hsiafan/apk-parser/issues/108

Attached some of these problematic APK files :

apks.zip

For SettingsGoogle.apk:

SettingsGoogle.zip

For base.apk , it became quite large, so I had to split it. Rename "base.zip" to "base.zip.001" and "base2.zip" to "base.zip.002":

base.zip

base2.zip

EDIT: more cases:

can't get app icon for "com.google.pixel.exo" in: "/system_ext/app/Exo/Exo.apk" can't get app icon for "com.android.bips" in: "/system/priv-app/BuiltInPrintService/BuiltInPrintService.apk" can't get app icon for "com.android.systemui" in: "/system_ext/priv-app/SystemUIGoogle/SystemUIGoogle.apk" can't get app icon for "com.android.traceur" in: "/system/app/Traceur/Traceur.apk"

apks.zip

SystemUIGoogle.zip

AndroidDeveloperLB commented 2 years ago

Another example, originated from Vivo V23:

can't get app icon for "com.vivo.crontab" in: "/system/app/BBKCrontab/BBKCrontab.apk" isSystemApp?true can't get app icon for "com.bbk.updater" in: "/system/app/Updater/Updater.apk" isSystemApp?true can't get app icon for "com.vivo.gamecube" in: "/system/app/GameCube/GameCube.apk" isSystemApp?true can't get app icon for "com.android.settings.intelligence" in: "/system/priv-app/SettingsIntelligence/SettingsIntelligence.apk" isSystemApp?true can't get app icon for "com.vivo.globalanimation" in: "/system/app/GlobalAnimation/GlobalAnimation.apk" isSystemApp?true can't get app icon for "com.android.settings" in: "/system/priv-app/Settings/Settings.apk" isSystemApp?true

GlobalAnimation.zip apks.zip

For Settings.apk , it became quite large, so I had to split it. Rename "Settings.zip" to "Settings.zip.001" and "Settings2.zip" to "Settings.zip.002":

Settings.zip Settings2.zip

AndroidDeveloperLB commented 2 years ago

Another example, from Samsung Galaxy A32:

can't get app icon for "com.android.nfc" in: "/system/app/NfcNci/NfcNci.apk" isSystemApp?true can't get app icon for "com.samsung.knox.securefolder" in: "/system/priv-app/SecureFolder/SecureFolder.apk" isSystemApp?true can't get app icon for "com.samsung.advp.imssettings" in: "/system/app/ImsSettings/ImsSettings.apk" isSystemApp?true can't get app icon for "com.samsung.crane" in: "/system/priv-app/Crane/Crane.apk" isSystemApp?true

apks.zip

AndroidDeveloperLB commented 2 years ago

Got more examples:

Attached for some, as this is quite a long list...

files.zip