Question

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?

Was it helpful?

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)

OTHER TIPS

Enable/disable including DeviceID #

If you added the READ_PHONE_STATE permission to your application but want to let your user be able to disable the inclusion of their Device ID in crash reports, you can include the following CheckBoxPreference:

 <CheckBoxPreference android:key="acra.deviceid.enable"
    android:title="@string/pref_acra_deviceid"
    android:summaryOn="@string/pref_acra_deviceid_enabled"
    android:summaryOff="@string/pref_acra_deviceid_disabled" 
    android:defaultValue="true"/>

Don't forget to add the required strings in your strings.xml files.

https://github.com/ACRA/acra/wiki/AdvancedUsage#wiki-Enable/disable_including_DeviceID

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top