androidacrabugsense

acra: don't send "android id"


My acra bug reports show up in BugSense with a field "Android ID".

enter image description here

I tested this, and it remains constant between application installations. we do not want to send any information that can be used to track the user. Is there a way to avoid sending such data?

I'm not customizing the report data at all, so it's all defaults. I do not grant the READ_PHONE_STATE permission, so I'd expect that would prevent "Android ID" from being sent to BugSense.

any ideas?


Solution

  • You could try customReportContent, per https://github.com/ACRA/acra/wiki/AdvancedUsage#wiki-Choosing_which_fields_to_be_included_in_reports. According to the docs, "Only fields which are set in customReportContent are actually processed".

    From their sample code:

    @ReportsCrashes(formKey = "xxxxxxxxxxxxxxxx", 
                customReportContent = { APP_VERSION, ANDROID_VERSION, PHONE_MODEL, CUSTOM_DATA, STACK_TRACE, LOGCAT },                
                mode = ReportingInteractionMode.TOAST,
                resToastText = R.string.crash_toast_text)