ProblemReport

class ProblemReport(app: String, created: String, scrubber: ReportScrubber = ReportScrubber(), maxBytes: Int = MAX_BYTES)(source)

A plain-text problem report (the same format in the Android phone app, the Android client and the iPhone app):

=== Tether problem report ===
App: Tether 1.2.2 (1020299) · Android phone app
Created: 2026-11-25 16:20:13 +03:30
Privacy: …

## Device
key: value

Every line goes through scrubber when added and the whole report once more in build. Log sections are cut from their oldest lines so the report stays within maxBytes.

Constructors

Link copied to clipboard
constructor(app: String, created: String, scrubber: ReportScrubber = ReportScrubber(), maxBytes: Int = MAX_BYTES)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
inner class Writer

Functions

Link copied to clipboard
fun build(): String

The report text, scrubbed again as a whole and at most maxBytes bytes in UTF-8.

fun build(maxBytes: Int): String

The same with another size limit (a shorter copy for the clipboard, say).

Link copied to clipboard
fun log(title: String, lines: List<String>)

A log section: lines oldest first; the oldest are dropped first when the report is too big.

Link copied to clipboard

A section of key: value lines (and free lines); returns a writer for it.