Unofficial YouTube Music / Spotify Premium client for Android, built in Liquid Glass. Audio effects, Spotify Connect, listening history, 8 languages. Rust core on librespot.
Kotlin alternativeandroidandroid-applicationclientglassmorphisminnertubelibrespotliquid-glassspotifyspotify-connectspotifyapiyoutube-musicyoutube-playerytdlnis
A report of the app's crashes, saved or shared from the settings
Leloniob35c3cc2f1fc
diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xmlindex 7937b58..3e00ca4 100644--- a/app/src/main/AndroidManifest.xml+++ b/app/src/main/AndroidManifest.xml@@ -137,6 +137,16 @@android:name=".update.InstallReceiver"android:exported="false" />+ <!-- The crash report, handed to whatever app it is shared to; see Report. -->+ <provider+ android:name="androidx.core.content.FileProvider"+ android:authorities="${applicationId}.reports"+ android:exported="false"+ android:grantUriPermissions="true">+ <meta-data+ android:name="android.support.FILE_PROVIDER_PATHS"+ android:resource="@xml/report_paths" />+ </provider><meta-dataandroid:name="com.google.android.gms.car.application"android:resource="@xml/automotive_app_desc" />diff --git a/app/src/main/java/dev/lelonio/square/SquareApplication.kt b/app/src/main/java/dev/lelonio/square/SquareApplication.ktindex 5f4cd8a..044bf01 100644--- a/app/src/main/java/dev/lelonio/square/SquareApplication.kt+++ b/app/src/main/java/dev/lelonio/square/SquareApplication.kt@@ -32,6 +32,8 @@ class SquareApplication : Application(), ImageLoaderFactory {override fun onCreate() {super.onCreate()+ // First, so a crash anywhere below is written down; see Report.+ dev.lelonio.square.diagnostics.Report.install(this)// The vendored InnerTube module logs through Timber, and with nothing// planted every one of those lines went nowhere — which is why a// YouTube page that came back in an unexpected shape could only bediff --git a/app/src/main/java/dev/lelonio/square/diagnostics/Report.kt b/app/src/main/java/dev/lelonio/square/diagnostics/Report.ktnew file mode 100644index 0000000..47c79af--- /dev/null+++ b/app/src/main/java/dev/lelonio/square/diagnostics/Report.kt@@ -0,0 +1,286 @@+package dev.lelonio.square.diagnostics++import android.app.ActivityManager+import android.app.ApplicationExitInfo+import android.content.Context+import android.content.Intent+import android.os.Build+import androidx.core.content.FileProvider+import dev.lelonio.square.BuildConfig+import java.io.File+import java.text.SimpleDateFormat+import java.util.Date+import java.util.Locale+import kotlinx.coroutines.Dispatchers+import kotlinx.coroutines.withContext++/**+ * What someone reporting a crash can attach to an issue without a computer.+ *+ * The only way to see why the app stopped used to be `adb logcat`, which asks+ * for a cable, a computer and a terminal of the person who has just had the+ * app close on them. This puts together what the phone already knows — the+ * versions, why Android says the app last ended, and the app's own recent log+ * — takes the account out of it, and hands it to the share sheet.+ *+ * Nothing leaves the phone on its own. The file is written to the cache and+ * goes wherever the person sends it, which is the whole of the privacy model:+ * there is no server this could be sent to even by mistake.+ */+object Report {++ /**+ * Starts keeping crashes, before anything else in the process can have one.+ *+ * Android keeps its own record of why the app ended from Android 11 on,+ * but for a crash in Kotlin it records only that it was one, not where.+ * The system log has the trace, until enough else is written to push it+ * out, which on a busy phone is a matter of minutes. So the trace is also+ * written to a file here, on the way down, and the default handler is left+ * to do what it always did.+ */+ fun install(context: Context) {+ val dir = File(context.filesDir, CRASH_DIR)+ val previous = Thread.getDefaultUncaughtExceptionHandler()+ Thread.setDefaultUncaughtExceptionHandler { thread, error ->+ runCatching {+ dir.mkdirs()+ val trace = android.util.Log.getStackTraceString(error)+ File(dir, "crash-${System.currentTimeMillis()}.txt").writeText(+ "${stamp(System.currentTimeMillis())} on ${thread.name}, " ++ "${BuildConfig.VERSION_NAME}\n$trace",+ )+ // The newest few, which is as far back as anyone asks about.+ dir.listFiles()?.sortedByDescending { it.name }?.drop(CRASHES_KEPT)+ ?.forEach { it.delete() }+ }+ previous?.uncaughtException(thread, error)+ }+ record(context)+ }++ /**+ * Keeps this run's log in a file of its own, while it runs.+ *+ * The system log is not somewhere to come back to: it is one ring shared by+ * everything on the phone, 256 KB on some of them, and it goes round in a+ * few minutes. By the time somebody whose app has just closed finds the+ * settings, what the app said before it went is usually gone. So a logcat+ * of the app's own lines is left writing to a file for as long as the+ * process lives, and dies with it — which is after the last line it had to+ * say. The last few runs are kept, the one that crashed among them.+ */+ private fun record(context: Context) {+ runCatching {+ val dir = File(context.filesDir, LOG_DIR).apply { mkdirs() }+ val runs = dir.listFiles().orEmpty()+ .groupBy { it.name.substringBefore(".log") }+ .toSortedMap(compareByDescending { it })+ runs.values.drop(RUNS_KEPT - 1).flatten().forEach { it.delete() }+ val file = File(dir, "run-${System.currentTimeMillis()}.log")+ ProcessBuilder(+ "logcat", "-v", "threadtime", "-b", "main,system,crash",+ "--pid=${android.os.Process.myPid()}",+ "-f", file.path, "-r", RUN_KB.toString(), "-n", "1",+ ).redirectErrorStream(true).start()+ }.onFailure { android.util.Log.w("SquareReport", "log not recorded: $it") }+ }++ /**+ * Writes the report and returns the file.+ *+ * [names] are strings to take out as well as the ones found in the log:+ * the account's display name, which the app knows and the log does not+ * always say.+ */+ suspend fun build(context: Context, names: List<String>): File = withContext(Dispatchers.IO) {+ val text = buildString {+ appendLine("Square ${BuildConfig.VERSION_NAME} (${BuildConfig.VERSION_CODE}, ${BuildConfig.BUILD_TYPE})")+ appendLine("${Build.MANUFACTURER} ${Build.MODEL}, Android ${Build.VERSION.RELEASE} (API ${Build.VERSION.SDK_INT})")+ appendLine("Written ${stamp(System.currentTimeMillis())}")+ appendLine()++ appendLine("== How the app last ended, as Android recorded it")+ append(exits(context))+ appendLine()++ appendLine("== Crashes the app wrote down")+ val crashes = File(context.filesDir, CRASH_DIR).listFiles()+ ?.sortedByDescending { it.name }.orEmpty()+ if (crashes.isEmpty()) appendLine("None.")+ crashes.forEach { appendLine(it.readText()); appendLine() }+ appendLine()++ appendLine("== Log of the last runs, newest first")+ append(runs(context))+ appendLine()++ appendLine("== What is left in the system log")+ append(log())+ }+ val dir = File(context.cacheDir, REPORT_DIR).apply { mkdirs() }+ dir.listFiles()?.forEach { it.delete() }+ File(dir, "square-report-${BuildConfig.VERSION_NAME}.txt").apply {+ writeText(redact(text, names))+ }+ }++ /** Opens the share sheet on [file]. */+ fun share(context: Context, file: File) {+ val uri = FileProvider.getUriForFile(context, "${context.packageName}.reports", file)+ val send = Intent(Intent.ACTION_SEND)+ .setType("text/plain")+ .putExtra(Intent.EXTRA_STREAM, uri)+ .putExtra(Intent.EXTRA_SUBJECT, file.name)+ .addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION)+ context.startActivity(+ Intent.createChooser(send, null).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK),+ )+ }++ /**+ * Why the app's last few processes ended, from Android 11 on.+ *+ * This is the record that survives a native crash or a freeze, neither of+ * which passes through the handler in [install]: the engine is Rust, and a+ * crash there takes the process with no Kotlin in the way. A freeze comes+ * with Android's dump of every thread, which is the part worth reading.+ */+ private fun exits(context: Context): String {+ if (Build.VERSION.SDK_INT < Build.VERSION_CODES.R) return "Not kept before Android 11.\n"+ val manager = context.getSystemService(ActivityManager::class.java) ?: return "Unavailable.\n"+ val exits = runCatching {+ manager.getHistoricalProcessExitReasons(context.packageName, 0, EXITS_KEPT)+ }.getOrNull().orEmpty()+ if (exits.isEmpty()) return "None recorded.\n"+ return buildString {+ exits.forEach { exit ->+ appendLine(+ "${stamp(exit.timestamp)} ${reason(exit.reason)}" ++ (exit.description?.takeIf { it.isNotBlank() }?.let { " — $it" } ?: "") ++ (if (exit.pss > 0) ", ${exit.pss / 1024} MB" else ""),+ )+ if (exit.reason == ApplicationExitInfo.REASON_ANR) {+ runCatching {+ exit.traceInputStream?.bufferedReader()?.useLines { lines ->+ lines.take(ANR_LINES).forEach { appendLine(" $it") }+ }+ }+ }+ }+ }+ }++ private fun reason(code: Int): String = when (code) {+ ApplicationExitInfo.REASON_CRASH -> "crash (Kotlin)"+ ApplicationExitInfo.REASON_CRASH_NATIVE -> "crash (native)"+ ApplicationExitInfo.REASON_ANR -> "not responding"+ ApplicationExitInfo.REASON_LOW_MEMORY -> "closed for memory"+ ApplicationExitInfo.REASON_EXIT_SELF -> "exited"+ ApplicationExitInfo.REASON_SIGNALED -> "killed by a signal"+ ApplicationExitInfo.REASON_USER_REQUESTED -> "closed by the user"+ ApplicationExitInfo.REASON_USER_STOPPED -> "stopped by the user"+ ApplicationExitInfo.REASON_EXCESSIVE_RESOURCE_USAGE -> "too much battery or CPU"+ ApplicationExitInfo.REASON_DEPENDENCY_DIED -> "something it needed stopped"+ ApplicationExitInfo.REASON_PERMISSION_CHANGE -> "a permission changed"+ ApplicationExitInfo.REASON_INITIALIZATION_FAILURE -> "failed to start"+ ApplicationExitInfo.REASON_OTHER -> "other"+ // Named from Android 13 on; by number, so older SDKs still build.+ 14 -> "frozen"+ 15 -> "the app's state changed"+ 16 -> "the app was updated"+ else -> "other ($code)"+ }++ /** The files [record] kept, the newest run first, each file whole. */+ private fun runs(context: Context): String {+ val files = File(context.filesDir, LOG_DIR).listFiles().orEmpty()+ if (files.isEmpty()) return "None.\n"+ return buildString {+ files.groupBy { it.name.substringBefore(".log") }+ .toSortedMap(compareByDescending { it })+ .forEach { (run, parts) ->+ val started = run.substringAfter("run-").toLongOrNull()?.let(::stamp) ?: run+ appendLine("--- run started $started")+ // The rotated half first: it is the older of the two.+ parts.sortedByDescending { it.name }.forEach { append(it.readText()) }+ appendLine()+ }+ }+ }++ /**+ * The system log, as much of it as is the app's.+ *+ * An app is shown only its own lines, without asking for anything — and+ * those of earlier runs too, while the buffer still holds them, which is+ * what makes this worth reading after a crash rather than only during one.+ * The crash buffer is where Android puts the trace of the crash itself.+ */+ private fun log(): String = runCatching {+ val process = ProcessBuilder(+ "logcat", "-d", "-v", "threadtime", "-b", "main,system,crash", "-t", LOG_LINES.toString(),+ ).redirectErrorStream(true).start()+ process.inputStream.bufferedReader().use { it.readText() }+ .also { process.waitFor() }+ }.getOrElse { "Could not be read: ${it.message}\n" }++ /**+ * Takes out what would say whose phone this is.+ *+ * The account name is found where the engine logs it on sign-in and then+ * removed everywhere it appears, which covers the places nobody thought to+ * list: a URL with it in the path, a playlist owner, a line in a library+ * nobody reads. Then the shapes that are identifying whatever they say —+ * addresses, tokens, codes from a sign-in redirect.+ */+ internal fun redact(text: String, names: List<String>): String {+ val found = NAME_SOURCES.flatMap { pattern ->+ pattern.findAll(text).map { it.groupValues[1] }.toList()+ }+ var out = text+ (found + names)+ .map { it.trim() }+ .filter { it.length >= MIN_NAME }+ .distinct()+ .sortedByDescending { it.length }+ .forEach { out = out.replace(it, "<account>", ignoreCase = true) }+ SHAPES.forEach { (pattern, replacement) -> out = pattern.replace(out, replacement) }+ return out+ }++ private fun stamp(ms: Long): String =+ SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.ROOT).format(Date(ms))++ /** Where the engine and the Web API say the account's name. */+ private val NAME_SOURCES = listOf(+ Regex("""Authenticated as '([^']+)'"""),+ Regex("""username[=:]\s*"?([A-Za-z0-9._-]+)"""),+ Regex("""spotify:user:([A-Za-z0-9._-]+)"""),+ Regex("""/v1/users/([A-Za-z0-9._-]+)"""),+ )++ private val SHAPES = listOf(+ Regex("""[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}""") to "<email>",+ Regex("""(?i)bearer\s+[A-Za-z0-9._~+/=-]+""") to "Bearer <token>",+ Regex("""(?i)((?:access|refresh|id)_token|code|client_secret)(["']?\s*[=:]\s*["']?)[A-Za-z0-9._~+/=-]{8,}""") to "$1$2<token>",+ // What Spotify names new accounts: 31 and twenty-six more, which is an+ // account whether or not the line around it says so.+ Regex("""\b31[a-z0-9]{26}\b""") to "<account>",+ )++ private const val CRASH_DIR = "crashes"+ private const val REPORT_DIR = "reports"+ private const val CRASHES_KEPT = 3+ private const val EXITS_KEPT = 5+ private const val ANR_LINES = 400+ private const val LOG_LINES = 6000+ private const val LOG_DIR = "logs"++ /** Runs kept, the current one included, and how large each may grow, in KB, before it rotates once. */+ private const val RUNS_KEPT = 3+ private const val RUN_KB = 512++ /** Shorter names are words, and taking out every "ed" helps nobody. */+ private const val MIN_NAME = 3+}diff --git a/app/src/main/java/dev/lelonio/square/ui/settings/SettingsScreen.kt b/app/src/main/java/dev/lelonio/square/ui/settings/SettingsScreen.ktindex 4f315b0..3d587be 100644--- a/app/src/main/java/dev/lelonio/square/ui/settings/SettingsScreen.kt+++ b/app/src/main/java/dev/lelonio/square/ui/settings/SettingsScreen.kt@@ -404,6 +404,8 @@ fun SettingsScreen(UpdateRow()RowDivider()Licences()+ RowDivider()+ ReportRows(name = ready?.displayName)}}@@ -1121,6 +1123,82 @@ private fun InfoRow(label: String, value: String) {}}+/**+ * Puts together a report of the app's last crashes and recent log, with the+ * account taken out, and saves it to a folder or opens the share sheet on it;+ * see Report.+ *+ * Saving is the first of the two because the share sheet on many phones has no+ * way to put a file in a folder, and a report that can only be sent to an app+ * cannot be attached to an issue from the browser.+ */+@Composable+private fun ReportRows(name: String?) {+ val context = LocalContext.current+ val scope = rememberCoroutineScope()+ var busy by remember { mutableStateOf(false) }+ // The report waiting for the folder picker to say where it goes.+ var pending by remember { mutableStateOf<java.io.File?>(null) }++ fun failed(error: Throwable) {+ android.util.Log.w("SquareReport", "report failed: $error")+ android.widget.Toast.makeText(context, context.getString(R.string.report_failed), android.widget.Toast.LENGTH_SHORT).show()+ }++ val save = androidx.activity.compose.rememberLauncherForActivityResult(+ androidx.activity.result.contract.ActivityResultContracts.CreateDocument("text/plain"),+ ) { uri ->+ val file = pending+ pending = null+ if (uri == null || file == null) return@rememberLauncherForActivityResult+ scope.launch {+ runCatching {+ kotlinx.coroutines.withContext(kotlinx.coroutines.Dispatchers.IO) {+ context.contentResolver.openOutputStream(uri)?.use { out ->+ file.inputStream().use { it.copyTo(out) }+ } ?: error("no stream for $uri")+ }+ android.widget.Toast.makeText(context, context.getString(R.string.report_saved), android.widget.Toast.LENGTH_SHORT).show()+ }.onFailure(::failed)+ }+ }++ fun prepare(then: (java.io.File) -> Unit) {+ if (busy) return+ busy = true+ scope.launch {+ runCatching { dev.lelonio.square.diagnostics.Report.build(context, listOfNotNull(name)) }+ .onSuccess(then)+ .onFailure(::failed)+ busy = false+ }+ }++ Column {+ ActionRow(+ stringResource(if (busy) R.string.report_preparing else R.string.save_report),+ destructive = false,+ ) {+ prepare { file ->+ pending = file+ save.launch(file.name)+ }+ }+ RowDivider()+ ActionRow(stringResource(R.string.send_report), destructive = false) {+ prepare { file ->+ runCatching { dev.lelonio.square.diagnostics.Report.share(context, file) }.onFailure(::failed)+ }+ }+ Text(+ stringResource(R.string.send_report_note),+ style = MaterialTheme.typography.bodySmall,+ color = InkDim,+ modifier = Modifier.padding(start = 18.dp, end = 18.dp, bottom = 14.dp),+ )+ }+}+@Composableprivate fun ActionRow(label: String, destructive: Boolean, onClick: () -> Unit) {Text(diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xmlindex 5271e80..8c0e091 100644--- a/app/src/main/res/values-de/strings.xml+++ b/app/src/main/res/values-de/strings.xml@@ -162,6 +162,12 @@<string name="about">Info</string><string name="version">Version</string><string name="licences">Lizenzen</string>+ <string name="save_report">Bericht speichern</string>+ <string name="report_saved">Bericht gespeichert</string>+ <string name="send_report">Bericht senden</string>+ <string name="report_preparing">Bericht wird erstellt…</string>+ <string name="report_failed">Der Bericht konnte nicht erstellt werden.</string>+ <string name="send_report_note">Was die App über ihre letzten Abstürze und die letzten Vorgänge aufgezeichnet hat, ohne deine Kontodaten, zum Anhängen an ein Issue auf GitHub. Es wird nichts gesendet, außer du sendest es.</string><string name="scope_top_artists">Künstler, die du hörst</string><string name="scope_history">Verlauf des Kontos</string><string name="scope_devices">Geräteliste</string>diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xmlindex 4e86b7e..9133d1b 100644--- a/app/src/main/res/values-es/strings.xml+++ b/app/src/main/res/values-es/strings.xml@@ -162,6 +162,12 @@<string name="about">Información</string><string name="version">Versión</string><string name="licences">Licencias</string>+ <string name="save_report">Guardar un informe</string>+ <string name="report_saved">Informe guardado</string>+ <string name="send_report">Enviar un informe</string>+ <string name="report_preparing">Preparando el informe…</string>+ <string name="report_failed">No se pudo preparar el informe.</string>+ <string name="send_report_note">Lo que la app registró sobre sus últimos cierres inesperados y la actividad reciente, sin los datos de tu cuenta, para adjuntarlo a un issue en GitHub. No se envía nada a menos que lo envíes tú.</string><string name="scope_top_artists">Artistas que escuchas</string><string name="scope_history">Historial de la cuenta</string><string name="scope_devices">Lista de dispositivos</string>diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xmlindex f79bce8..a14c2f1 100644--- a/app/src/main/res/values-fr/strings.xml+++ b/app/src/main/res/values-fr/strings.xml@@ -162,6 +162,12 @@<string name="about">À propos</string><string name="version">Version</string><string name="licences">Licences</string>+ <string name="save_report">Enregistrer un rapport</string>+ <string name="report_saved">Rapport enregistré</string>+ <string name="send_report">Envoyer un rapport</string>+ <string name="report_preparing">Préparation du rapport…</string>+ <string name="report_failed">Le rapport n\'a pas pu être préparé.</string>+ <string name="send_report_note">Ce que l\'appli a enregistré sur ses derniers plantages et son activité récente, sans les données de ton compte, à joindre à un ticket sur GitHub. Rien n\'est envoyé si tu ne l\'envoies pas.</string><string name="scope_top_artists">Artistes que vous écoutez</string><string name="scope_history">Historique du compte</string><string name="scope_devices">Liste des appareils</string>diff --git a/app/src/main/res/values-hi/strings.xml b/app/src/main/res/values-hi/strings.xmlindex 6a4354b..18f3855 100644--- a/app/src/main/res/values-hi/strings.xml+++ b/app/src/main/res/values-hi/strings.xml@@ -174,6 +174,12 @@<string name="about">परिचय</string><string name="version">संस्करण</string><string name="licences">लाइसेंस</string>+ <string name="save_report">रिपोर्ट सेव करें</string>+ <string name="report_saved">रिपोर्ट सेव हो गई</string>+ <string name="send_report">रिपोर्ट भेजें</string>+ <string name="report_preparing">रिपोर्ट तैयार हो रही है…</string>+ <string name="report_failed">रिपोर्ट तैयार नहीं हो सकी।</string>+ <string name="send_report_note">ऐप ने अपने पिछले क्रैश और हाल की गतिविधि के बारे में जो दर्ज किया, आपके खाते की जानकारी हटाकर, GitHub पर issue के साथ जोड़ने के लिए। जब तक आप न भेजें, कुछ नहीं भेजा जाता।</string><string name="scope_top_artists">जिन कलाकारों को आप सुनते हैं</string><string name="scope_history">खाते का इतिहास</string><string name="scope_devices">डिवाइस सूची</string>diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xmlindex c329cab..923f786 100644--- a/app/src/main/res/values-it/strings.xml+++ b/app/src/main/res/values-it/strings.xml@@ -163,6 +163,12 @@<string name="about">Informazioni</string><string name="version">Versione</string><string name="licences">Licenze</string>+ <string name="save_report">Salva un report</string>+ <string name="report_saved">Report salvato</string>+ <string name="send_report">Invia un report</string>+ <string name="report_preparing">Preparo il report…</string>+ <string name="report_failed">Non è stato possibile preparare il report.</string>+ <string name="send_report_note">Quello che l\'app ha registrato sugli ultimi crash e sulle attività recenti, senza i dati del tuo account, da allegare a un issue su GitHub. Non viene inviato niente se non lo invii tu.</string><string name="scope_top_artists">Artisti che ascolti</string><string name="scope_history">Cronologia dell\'account</string><string name="scope_devices">Elenco dispositivi</string>diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xmlindex 942ea81..74712c5 100644--- a/app/src/main/res/values-pt/strings.xml+++ b/app/src/main/res/values-pt/strings.xml@@ -162,6 +162,12 @@<string name="about">Sobre</string><string name="version">Versão</string><string name="licences">Licenças</string>+ <string name="save_report">Salvar um relatório</string>+ <string name="report_saved">Relatório salvo</string>+ <string name="send_report">Enviar um relatório</string>+ <string name="report_preparing">Preparando o relatório…</string>+ <string name="report_failed">Não foi possível preparar o relatório.</string>+ <string name="send_report_note">O que o app registrou sobre os últimos travamentos e a atividade recente, sem os dados da sua conta, para anexar a um issue no GitHub. Nada é enviado a menos que você envie.</string><string name="scope_top_artists">Artistas que você ouve</string><string name="scope_history">Histórico da conta</string><string name="scope_devices">Lista de dispositivos</string>diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xmlindex 083f662..9fc2948 100644--- a/app/src/main/res/values-ru/strings.xml+++ b/app/src/main/res/values-ru/strings.xml@@ -176,6 +176,12 @@<string name="about">О приложении</string><string name="version">Версия</string><string name="licences">Лицензии</string>+ <string name="save_report">Сохранить отчёт</string>+ <string name="report_saved">Отчёт сохранён</string>+ <string name="send_report">Отправить отчёт</string>+ <string name="report_preparing">Готовлю отчёт…</string>+ <string name="report_failed">Не удалось подготовить отчёт.</string>+ <string name="send_report_note">То, что приложение записало о последних сбоях и недавней работе, без данных вашего аккаунта, чтобы приложить к issue на GitHub. Ничего не отправляется, пока вы сами не отправите.</string><string name="scope_top_artists">Исполнители, которых вы слушаете</string><string name="scope_history">История аккаунта</string><string name="scope_devices">Список устройств</string>diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xmlindex 270fcfa..c2e40af 100644--- a/app/src/main/res/values-tr/strings.xml+++ b/app/src/main/res/values-tr/strings.xml@@ -174,6 +174,12 @@<string name="about">Hakkında</string><string name="version">Sürüm</string><string name="licences">Lisanslar</string>+ <string name="save_report">Rapor kaydet</string>+ <string name="report_saved">Rapor kaydedildi</string>+ <string name="send_report">Rapor gönder</string>+ <string name="report_preparing">Rapor hazırlanıyor…</string>+ <string name="report_failed">Rapor hazırlanamadı.</string>+ <string name="send_report_note">Uygulamanın son çökmeleri ve son etkinliği hakkında kaydettikleri, hesap bilgilerin çıkarılmış olarak, GitHub\'daki bir issue\'ya eklemek için. Sen göndermedikçe hiçbir şey gönderilmez.</string><string name="scope_top_artists">Dinlediğin sanatçılar</string><string name="scope_history">Hesap geçmişi</string><string name="scope_devices">Cihaz listesi</string>diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xmlindex 3eec816..bb6a959 100644--- a/app/src/main/res/values/strings.xml+++ b/app/src/main/res/values/strings.xml@@ -180,6 +180,12 @@<string name="about">About</string><string name="version">Version</string><string name="licences">Licences</string>+ <string name="save_report">Save a report</string>+ <string name="report_saved">Report saved</string>+ <string name="send_report">Send a report</string>+ <string name="report_preparing">Preparing the report…</string>+ <string name="report_failed">The report could not be prepared.</string>+ <string name="send_report_note">What the app recorded about its last crashes and recent activity, with your account taken out, to attach to an issue on GitHub. Nothing is sent unless you send it.</string><string name="scope_top_artists">Artists you listen to</string><string name="scope_history">Account history</string><string name="scope_devices">Device list</string>diff --git a/app/src/main/res/xml/report_paths.xml b/app/src/main/res/xml/report_paths.xmlnew file mode 100644index 0000000..7fda995--- /dev/null+++ b/app/src/main/res/xml/report_paths.xml@@ -0,0 +1,5 @@+<?xml version="1.0" encoding="utf-8"?>+<!-- Only the reports folder, so the share sheet can reach the report and nothing else in the cache. -->+<paths>+ <cache-path name="reports" path="reports/" />+</paths>