sentry-java icon indicating copy to clipboard operation
sentry-java copied to clipboard

Add Split Apks information as tag

Open ganadist opened this issue 1 year ago • 1 comments

Problem Statement

Now, Google Play forced to use App Bundle, and Android apps are installed as Split Apks from Google Play Store. And Crashes of Android Apps may occur depending on whether parts of Split Apks are installed such as

  • DPI Split Apks (ex: config.xhdpi)
    • If DPI Split apk are not installed, app can be crashed with android.view.InflateException by missing drawables.
  • ABI Split Apks (ex: config.arm64-v8a)
    • If ABI Split apk are not installed, app can be crashed with java.lang.UnsatisfiedLinkError by missing so files.

These crashes occurs because all split apks are not installed from Google Play or the manufacturer's store, and are issues in the distribution process. And if Sentry Android SDK provides these information, project owner can identify these issues are from distribution process or app's logical problem.

Solution Brainstorm

  • Whether installed apk is split apk
    • Need to check com.android.vending.splits.required from metadata of package info
    • https://github.com/google/bundletool/blob/master/src/main/java/com/android/tools/build/bundletool/model/AndroidManifest.java#L263C63-L263C98
  • Which split apks are installed

ganadist avatar Feb 06 '24 04:02 ganadist

@ganadist thanks for creating this issue, we'll provided some feedback in the PR! 🚀

markushi avatar Feb 07 '24 14:02 markushi