Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71b5d299 authored by Felipe Leme's avatar Felipe Leme Committed by Android (Google) Code Review
Browse files

Merge "Added serial number in the bugreport message body."

parents 89664601 a89c6e42
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -136,9 +136,10 @@ public class BugreportReceiver extends BroadcastReceiver {
        // EXTRA_TEXT should be an ArrayList, but some clients are expecting a single String.
        // So, to avoid an exception on Intent.migrateExtraStreamToClipData(), we need to manually
        // create the ClipData object with the attachments URIs.
        intent.putExtra(Intent.EXTRA_TEXT, SystemProperties.get("ro.build.description"));
        final ClipData clipData = new ClipData(
                null, new String[] { mimeType },
        String messageBody = String.format("Build info: %s\nSerial number:%s",
                SystemProperties.get("ro.build.description"), SystemProperties.get("ro.serialno"));
        intent.putExtra(Intent.EXTRA_TEXT, messageBody);
        final ClipData clipData = new ClipData(null, new String[] { mimeType },
                new ClipData.Item(null, null, null, bugreportUri));
        clipData.addItem(new ClipData.Item(null, null, null, screenshotUri));
        intent.setClipData(clipData);