Closed sentry-io[bot] closed 1 year ago
Fails | |
---|---|
:no_entry_sign: | Please add a feature label to this issue. e.g. 'Stats' |
Generated by :no_entry_sign: dangerJS
Sentry issue: WORDPRESS-ANDROID-2JKE
Sentry issue: JETPACK-ANDROID-719
Sentry issue: JETPACK-ANDROID-7Y7
Sentry issue: JETPACK-ANDROID-7MJ
I spent some time investigating this issue and I believe I found some relevant information. I created a Sentry Dashboard for better visualization of the data.
What seems to be happening is that almost all crashes that happened with this signature were from apps installed from a source different than the Google Play Store (com.android.vending
), which means those users did not get the app officially. The few crashes that were from com.android.vending
install source seem suspicious and might not be the official GP.
Since we distribute the app via AAB
this means those users probably installed an APK
that was generated for other device (from the AAB) and not for their device configuration (e.g.: a user with a xhdpi
phone downloading the mdpi
APK) which causes the APK to not have the resource for their configuration, resulting in the Resources$NotFoundException
crash in runtime.
To reproduce:
Build Bundle(s) from Android Studio.
Use bundletool to extract apks from aab.
bundletool build-apks --bundle=/MyApp/my_app.aab --output=/MyApp/my_app.apks
Decompress apks. You'll see files like this:
Install base-master.apk
.
The app will crash with Resources$NotFoundException
.
@irfano Thanks for finding out a way for reproducing this crash 🙇 This seems to make sense to me though I still wonder how these users get those partial split APKs.
@irfano Thanks for finding out a way for reproducing this crash 🙇 This seems to make sense to me though I still wonder how these users get those partial split APKs.
There are sites that offer various variants of APKs for WordPress and Jetpacks. Unfortunately, I couldn't find a sample site where I can create the crash, but I believe these sites might be the cause of the crash.
Yeah, there're a lot of them. Many of these devices could be from other than major manufacturers like Google, Samsung...
I noticed in the devices list associated with the Sentry event that the top one seems to be an emulator (AOSP on IA Emulator
). This reinforces the theory that this crash might be produced due to installing a partial variant of the app.
This issue occurred three times in the last two versions (23.0
and 23.1-rc
versions). The count is much lower now, but I can't understand why it's still coming. Since the crash count is too low, I won't take any more action for now.
Sentry Issue: JETPACK-ANDROID-1C1