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

Add OS security patch level to app context

Open androideveloper opened this issue 2 years ago • 5 comments

Problem Statement

There are security patches from OS vendors, that break critical parts of the storage and break librarires and apps. It happened recently with a security patch from Samsung. See more info here.

Solution Brainstorm

In order to investigate this type of issues, it's valuable to have OS security patch level reported to sentry tags. We've now added it manually on our side, but I think it would be great to have it by default coming from Sentry.

Product Area

Issues

┆Issue is synchronized with this Jira Improvement by Unito

androideveloper avatar Oct 27 '23 09:10 androideveloper

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] avatar Oct 27 '23 09:10 getsantry[bot]

Hi, thank you for the message,

can the patch level be mapped to one of the values we already send in the OS Context?

https://develop.sentry.dev/sdk/event-payloads/contexts/#os-context

Maybe the OS Build number?

Could you share a code snippet of how you added it?

krystofwoldrich avatar Oct 27 '23 15:10 krystofwoldrich

I'm moving this to the sentry-java repository as sentry-react-native uses the Android SDK to collect this kind of information.

krystofwoldrich avatar Oct 27 '23 15:10 krystofwoldrich

We're planning to add this to the app context, which means it'll be visible in the UI on the issue, but not searchable for now due to processing/storage restraints.

For inspiration on how to retrieve the patch level: https://stackoverflow.com/questions/41545674/how-to-determine-the-security-patch-level-of-an-android-device

kahest avatar Nov 08 '23 15:11 kahest

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

getsantry[bot] avatar Nov 30 '23 08:11 getsantry[bot]