sentry-java
sentry-java copied to clipboard
Add Split Apks information as tag
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.InflateExceptionby missing drawables.
- If DPI Split apk are not installed, app can be crashed with
- ABI Split Apks (ex: config.arm64-v8a)
- If ABI Split apk are not installed, app can be crashed with
java.lang.UnsatisfiedLinkErrorby missing so files.
- If ABI Split apk are not installed, app can be crashed with
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.requiredfrom metadata of package info - https://github.com/google/bundletool/blob/master/src/main/java/com/android/tools/build/bundletool/model/AndroidManifest.java#L263C63-L263C98
- Need to check
- Which split apks are installed
- check
splitNamesfrom PackageInfo
- check
@ganadist thanks for creating this issue, we'll provided some feedback in the PR! 🚀