From the Android tracker v.1.2.1 you can take advantage of the Global Contexts feature in order to add custom contexts to the events, even those automatically generated.
ContextPrimitive customCtx = new SelfDescribingJson(<schema of your context>, <data of context>);
RuleSet ruleSet =
new RuleSet("iglu:com.snowplowanalytics.snowplow/application_error/jsonschema/1-0-*", null);
GlobalContext contextProvider = new RuleSetProvider("appErrorTag", ruleSet, customCtx);
The snippet of code above has to be declared at the tracker setup.
When an application_error is automatically tracked, the tracker will check if the event schema match and will add automatically the context you have generated
Global Contexts feature can be used with all the events and it has a rich API enabling lot of freedom in the way to add custom contexts on the events.
More details in the docs: https://docs.snowplowanalytics.com/docs/collecting-data/collecting-from-own-applications/android-tracker/android-1-5-0/#global-contexts
If you have any further questions, please don’t hesitate to get back to us.