Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add security patch level to metadata? #1588

Open
machty opened this issue Jan 24, 2022 · 1 comment
Open

Add security patch level to metadata? #1588

machty opened this issue Jan 24, 2022 · 1 comment
Labels
backlog We hope to fix this feature/bug in the future feature request Request for a new feature

Comments

@machty
Copy link

machty commented Jan 24, 2022

Description

My Android Bugsnag crash reports include the integer Android version, i.e. Android 11, but they don't include the security patch version; this would be useful to have when diagnosing whether an Android security patch is the cause of a crash/exception. Apparently this was added in API level 23: https://developer.android.com/reference/android/os/Build.VERSION#SECURITY_PATCH

Describe the solution you'd like

Please add SECURITY_PATCH to the default report metadata.

Describe alternatives you've considered
I could probably figure out how to add it manually but this seems like the correct default.

@johnkiely1
Copy link
Member

Hi @machty.

Thanks for this. I have passed this on to our products team for consideration. I'll let you know of updates.

In the meantime, something like the following should include it manually for you:

import android.os.Build.VERSION

val config = Configuration.load(this)
//other config options
config.addMetadata("Patch ", "Version", Build.VERSION.SECURITY_PATCH)

@mattdyoung mattdyoung added backlog We hope to fix this feature/bug in the future feature request Request for a new feature labels Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog We hope to fix this feature/bug in the future feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

3 participants