diff --git a/controller/app/build.gradle b/controller/app/build.gradle
index 6a15417a4..95296dbae 100644
--- a/controller/app/build.gradle
+++ b/controller/app/build.gradle
@@ -54,6 +54,9 @@ android {
buildConfigField "String", "GIT_SHA", "\"${project.ext.gitSha}\""
// True only when google-services.json is present, so AnalyticsClient can compile out cleanly.
buildConfigField "boolean", "ANALYTICS_ENABLED", "${hasGoogleServices}"
+ // Default state of the crash-report opt-in (K2GO-401). True for conventional builds. The
+ // F-Droid recipe overrides this to false so that build ships crash reporting OFF by default.
+ buildConfigField "boolean", "CRASH_REPORTS_DEFAULT_ON", "true"
// The APK carries the product's name, not its technical identifier: these files are
// downloaded by people from a public bucket. The identifier still lives inside the APK.
diff --git a/controller/app/src/main/java/org/appdevforall/k2go/delivery/data/CrashReportConsent.java b/controller/app/src/main/java/org/appdevforall/k2go/delivery/data/CrashReportConsent.java
index eb3ec6091..33883d784 100644
--- a/controller/app/src/main/java/org/appdevforall/k2go/delivery/data/CrashReportConsent.java
+++ b/controller/app/src/main/java/org/appdevforall/k2go/delivery/data/CrashReportConsent.java
@@ -2,11 +2,14 @@
import android.content.Context;
+import org.appdevforall.k2go.BuildConfig;
+
/**
* Opt-in flag for crash / error reporting (GlitchTip via the Sentry SDK). Separate from
* {@link AnalyticsConsent} on purpose: error reports are operational (not behavioural
- * telemetry) and carry no PII, so they can follow a different policy. Default ON; flip the
- * default here if administration decides error reports must also be opt-in.
+ * telemetry) and carry no PII, so they can follow a different policy. The unset default comes
+ * from {@code BuildConfig.CRASH_REPORTS_DEFAULT_ON}: true for conventional builds, false for the
+ * F-Droid build (K2GO-401), so that build ships crash reporting OFF by default.
*/
public final class CrashReportConsent {
@@ -17,7 +20,8 @@ private CrashReportConsent() {
}
public static boolean isEnabled(Context ctx) {
- return ctx.getSharedPreferences(PREFS, Context.MODE_PRIVATE).getBoolean(KEY, true);
+ return ctx.getSharedPreferences(PREFS, Context.MODE_PRIVATE)
+ .getBoolean(KEY, BuildConfig.CRASH_REPORTS_DEFAULT_ON);
}
public static void setEnabled(Context ctx, boolean enabled) {
diff --git a/controller/app/src/main/java/org/appdevforall/k2go/redesign/SettingsSubFragment.java b/controller/app/src/main/java/org/appdevforall/k2go/redesign/SettingsSubFragment.java
index f81b412d9..889c6bbd8 100644
--- a/controller/app/src/main/java/org/appdevforall/k2go/redesign/SettingsSubFragment.java
+++ b/controller/app/src/main/java/org/appdevforall/k2go/redesign/SettingsSubFragment.java
@@ -198,6 +198,13 @@ private void buildAbout(Context ctx, LinearLayout list) {
org.appdevforall.k2go.analytics.AnalyticsClient.with(ctx).applyConsent();
});
}
+ // K2GO-401: crash reports (Sentry -> GlitchTip) are FOSS and unconditional, so the toggle
+ // always shows. Pref-only: DiskGuard honors it per capture (immediate); the startup-gated
+ // Sentry init applies on the next launch. (Immediate runtime apply was dropped: a mid-session
+ // Sentry re-init disturbs the uncaught-handler order IIABApplication establishes at startup.)
+ SettingsUi.toggle(ctx, list, getString(R.string.k2go_settings_crash_reports),
+ org.appdevforall.k2go.delivery.data.CrashReportConsent.isEnabled(ctx),
+ checked -> org.appdevforall.k2go.delivery.data.CrashReportConsent.setEnabled(ctx, checked));
SettingsUi.preview(ctx, list, getString(R.string.k2go_settings_licenses), null);
SettingsUi.preview(ctx, list, getString(R.string.k2go_settings_privacy), null);
}
diff --git a/controller/app/src/main/res/values-ar/strings.xml b/controller/app/src/main/res/values-ar/strings.xml
index 953d030e7..06ec4798c 100644
--- a/controller/app/src/main/res/values-ar/strings.xml
+++ b/controller/app/src/main/res/values-ar/strings.xml
@@ -582,6 +582,7 @@
التحقّق من التحديثات
الأذونات
مشاركة إحصاءات الاستخدام
+ إرسال تقارير الأعطال
تراخيص المصدر المفتوح
الخصوصية
للمستخدمين المتقدّمين.
diff --git a/controller/app/src/main/res/values-az/strings.xml b/controller/app/src/main/res/values-az/strings.xml
index 392dc14ee..afc466020 100644
--- a/controller/app/src/main/res/values-az/strings.xml
+++ b/controller/app/src/main/res/values-az/strings.xml
@@ -602,6 +602,7 @@
Yeniləmələri yoxla
İcazələr
İstifadə statistikasını paylaş
+ Qəza hesabatlarını göndər
Açıq mənbə lisenziyaları
Məxfilik
Təcrübəli istifadəçilər üçün.
diff --git a/controller/app/src/main/res/values-bg/strings.xml b/controller/app/src/main/res/values-bg/strings.xml
index 1b48dcec9..984a33c41 100644
--- a/controller/app/src/main/res/values-bg/strings.xml
+++ b/controller/app/src/main/res/values-bg/strings.xml
@@ -589,6 +589,7 @@
Проверка за актуализации
Разрешения
Споделяне на статистика за използване
+ Изпращане на отчети за сривове
Лицензи с отворен код
Поверителност
За напреднали потребители.
diff --git a/controller/app/src/main/res/values-bn/strings.xml b/controller/app/src/main/res/values-bn/strings.xml
index 05f199c82..bcba8a3d6 100644
--- a/controller/app/src/main/res/values-bn/strings.xml
+++ b/controller/app/src/main/res/values-bn/strings.xml
@@ -595,6 +595,7 @@
আপডেট পরীক্ষা করুন
অনুমতিসমূহ
ব্যবহার পরিসংখ্যান শেয়ার করুন
+ ক্র্যাশ রিপোর্ট পাঠান
ওপেন-সোর্স লাইসেন্স
গোপনীয়তা
পাওয়ার ব্যবহারকারীদের জন্য।
diff --git a/controller/app/src/main/res/values-cs/strings.xml b/controller/app/src/main/res/values-cs/strings.xml
index 730e67b0c..1679996c1 100644
--- a/controller/app/src/main/res/values-cs/strings.xml
+++ b/controller/app/src/main/res/values-cs/strings.xml
@@ -589,6 +589,7 @@
Zkontrolovat aktualizace
Oprávnění
Sdílet statistiky používání
+ Odesílat hlášení o pádech
Licence open-source
Soukromí
Pro pokročilé uživatele.
diff --git a/controller/app/src/main/res/values-de/strings.xml b/controller/app/src/main/res/values-de/strings.xml
index 9864d0b55..c96eb7338 100644
--- a/controller/app/src/main/res/values-de/strings.xml
+++ b/controller/app/src/main/res/values-de/strings.xml
@@ -582,6 +582,7 @@
Nach Updates suchen
Berechtigungen
Nutzungsstatistiken teilen
+ Absturzberichte senden
Open-Source-Lizenzen
Datenschutz
Für Power-User.
diff --git a/controller/app/src/main/res/values-el/strings.xml b/controller/app/src/main/res/values-el/strings.xml
index 7da76004e..95a8638a5 100644
--- a/controller/app/src/main/res/values-el/strings.xml
+++ b/controller/app/src/main/res/values-el/strings.xml
@@ -589,6 +589,7 @@
Έλεγχος για ενημερώσεις
Άδειες
Κοινή χρήση στατιστικών χρήσης
+ Αποστολή αναφορών σφαλμάτων
Άδειες ανοιχτού κώδικα
Απόρρητο
Για προχωρημένους χρήστες.
diff --git a/controller/app/src/main/res/values-es/strings.xml b/controller/app/src/main/res/values-es/strings.xml
index c47d40fba..193da6f9e 100644
--- a/controller/app/src/main/res/values-es/strings.xml
+++ b/controller/app/src/main/res/values-es/strings.xml
@@ -658,6 +658,7 @@
Buscar actualizaciones
Permisos
Compartir estadísticas de uso
+ Enviar informes de fallos
Licencias de código abierto
Privacidad
Para usuarios avanzados.
diff --git a/controller/app/src/main/res/values-fa/strings.xml b/controller/app/src/main/res/values-fa/strings.xml
index 67a84e288..66667d699 100644
--- a/controller/app/src/main/res/values-fa/strings.xml
+++ b/controller/app/src/main/res/values-fa/strings.xml
@@ -582,6 +582,7 @@
بررسی بهروزرسانیها
دسترسیها
اشتراکگذاری آمار استفاده
+ ارسال گزارشهای خرابی
مجوزهای متنباز
حریم خصوصی
برای کاربران حرفهای.
diff --git a/controller/app/src/main/res/values-fr/strings.xml b/controller/app/src/main/res/values-fr/strings.xml
index 4a174c258..bcf81fb4c 100644
--- a/controller/app/src/main/res/values-fr/strings.xml
+++ b/controller/app/src/main/res/values-fr/strings.xml
@@ -659,6 +659,7 @@
Rechercher des mises à jour
Autorisations
Partager les statistiques d\'utilisation
+ Envoyer les rapports de plantage
Licences open source
Confidentialité
Pour les utilisateurs avancés.
diff --git a/controller/app/src/main/res/values-gu/strings.xml b/controller/app/src/main/res/values-gu/strings.xml
index 18f946245..16f02038c 100644
--- a/controller/app/src/main/res/values-gu/strings.xml
+++ b/controller/app/src/main/res/values-gu/strings.xml
@@ -595,6 +595,7 @@
અપડેટ્સ તપાસો
પરવાનગીઓ
વપરાશ આંકડા શેર કરો
+ ક્રેશ રિપોર્ટ મોકલો
ઓપન-સોર્સ લાઇસન્સ
ગોપનીયતા
પાવર યુઝર્સ માટે.
diff --git a/controller/app/src/main/res/values-hi/strings.xml b/controller/app/src/main/res/values-hi/strings.xml
index 352d3acc8..0d5bd69b5 100644
--- a/controller/app/src/main/res/values-hi/strings.xml
+++ b/controller/app/src/main/res/values-hi/strings.xml
@@ -659,6 +659,7 @@
अपडेट जाँचें
अनुमतियाँ
उपयोग आँकड़े साझा करें
+ क्रैश रिपोर्ट भेजें
ओपन-सोर्स लाइसेंस
गोपनीयता
पावर यूज़र्स के लिए।
diff --git a/controller/app/src/main/res/values-hu/strings.xml b/controller/app/src/main/res/values-hu/strings.xml
index 2d9a6248e..6bcc6dc01 100644
--- a/controller/app/src/main/res/values-hu/strings.xml
+++ b/controller/app/src/main/res/values-hu/strings.xml
@@ -582,6 +582,7 @@
Frissítések keresése
Engedélyek
Használati statisztikák megosztása
+ Összeomlási jelentések küldése
Nyílt forráskódú licencek
Adatvédelem
Haladó felhasználóknak.
diff --git a/controller/app/src/main/res/values-in/strings.xml b/controller/app/src/main/res/values-in/strings.xml
index c18e29326..ef2e91fb4 100644
--- a/controller/app/src/main/res/values-in/strings.xml
+++ b/controller/app/src/main/res/values-in/strings.xml
@@ -589,6 +589,7 @@
Periksa pembaruan
Izin
Bagikan statistik penggunaan
+ Kirim laporan kerusakan
Lisensi sumber terbuka
Privasi
Untuk pengguna mahir.
diff --git a/controller/app/src/main/res/values-it/strings.xml b/controller/app/src/main/res/values-it/strings.xml
index e1f48b5da..25be15abb 100644
--- a/controller/app/src/main/res/values-it/strings.xml
+++ b/controller/app/src/main/res/values-it/strings.xml
@@ -582,6 +582,7 @@
Controlla aggiornamenti
Autorizzazioni
Condividi statistiche di utilizzo
+ Invia i rapporti di arresto anomalo
Licenze open-source
Privacy
Per utenti esperti.
diff --git a/controller/app/src/main/res/values-ja/strings.xml b/controller/app/src/main/res/values-ja/strings.xml
index 1568d6224..5ea98141a 100644
--- a/controller/app/src/main/res/values-ja/strings.xml
+++ b/controller/app/src/main/res/values-ja/strings.xml
@@ -583,6 +583,7 @@
アップデートを確認
権限
使用統計を共有
+ クラッシュレポートを送信
オープンソースライセンス
プライバシー
上級ユーザー向け。
diff --git a/controller/app/src/main/res/values-ko/strings.xml b/controller/app/src/main/res/values-ko/strings.xml
index 64df2f93b..1eab991de 100644
--- a/controller/app/src/main/res/values-ko/strings.xml
+++ b/controller/app/src/main/res/values-ko/strings.xml
@@ -583,6 +583,7 @@
업데이트 확인
권한
사용 통계 공유
+ 충돌 보고서 보내기
오픈소스 라이선스
개인정보 보호
고급 사용자용.
diff --git a/controller/app/src/main/res/values-lt/strings.xml b/controller/app/src/main/res/values-lt/strings.xml
index 84719bca2..7f38ea12e 100644
--- a/controller/app/src/main/res/values-lt/strings.xml
+++ b/controller/app/src/main/res/values-lt/strings.xml
@@ -589,6 +589,7 @@
Tikrinti, ar yra naujinių
Leidimai
Bendrinti naudojimo statistiką
+ Siųsti strigčių ataskaitas
Atvirojo kodo licencijos
Privatumas
Patyrusiems naudotojams.
diff --git a/controller/app/src/main/res/values-nl/strings.xml b/controller/app/src/main/res/values-nl/strings.xml
index 2d38aba91..6cf3f7f01 100644
--- a/controller/app/src/main/res/values-nl/strings.xml
+++ b/controller/app/src/main/res/values-nl/strings.xml
@@ -582,6 +582,7 @@
Controleren op updates
Machtigingen
Gebruiksstatistieken delen
+ Crashrapporten verzenden
Opensource-licenties
Privacy
Voor gevorderde gebruikers.
diff --git a/controller/app/src/main/res/values-no/strings.xml b/controller/app/src/main/res/values-no/strings.xml
index 6d0085fdb..de4d12f94 100644
--- a/controller/app/src/main/res/values-no/strings.xml
+++ b/controller/app/src/main/res/values-no/strings.xml
@@ -582,6 +582,7 @@
Se etter oppdateringer
Tillatelser
Del bruksstatistikk
+ Send krasjrapporter
Åpen kildekode-lisenser
Personvern
For avanserte brukere.
diff --git a/controller/app/src/main/res/values-pl/strings.xml b/controller/app/src/main/res/values-pl/strings.xml
index eae4c07ca..112710418 100644
--- a/controller/app/src/main/res/values-pl/strings.xml
+++ b/controller/app/src/main/res/values-pl/strings.xml
@@ -582,6 +582,7 @@
Sprawdź aktualizacje
Uprawnienia
Udostępniaj statystyki użytkowania
+ Wysyłaj raporty o awariach
Licencje open-source
Prywatność
Dla zaawansowanych użytkowników.
diff --git a/controller/app/src/main/res/values-pt/strings.xml b/controller/app/src/main/res/values-pt/strings.xml
index 3f00a4f25..9c825b513 100644
--- a/controller/app/src/main/res/values-pt/strings.xml
+++ b/controller/app/src/main/res/values-pt/strings.xml
@@ -661,6 +661,7 @@
Procurar atualizações
Permissões
Partilhar estatísticas de utilização
+ Enviar relatórios de falhas
Licenças de código aberto
Privacidade
Para utilizadores avançados.
diff --git a/controller/app/src/main/res/values-ro/strings.xml b/controller/app/src/main/res/values-ro/strings.xml
index 7a5cdc367..edf5d12d6 100644
--- a/controller/app/src/main/res/values-ro/strings.xml
+++ b/controller/app/src/main/res/values-ro/strings.xml
@@ -582,6 +582,7 @@
Caută actualizări
Permisiuni
Partajează statisticile de utilizare
+ Trimite rapoarte de eroare
Licențe open-source
Confidențialitate
Pentru utilizatori avansați.
diff --git a/controller/app/src/main/res/values-ru-rRU/strings.xml b/controller/app/src/main/res/values-ru-rRU/strings.xml
index dd7844e15..ba29502f1 100644
--- a/controller/app/src/main/res/values-ru-rRU/strings.xml
+++ b/controller/app/src/main/res/values-ru-rRU/strings.xml
@@ -658,6 +658,7 @@
Проверить обновления
Разрешения
Делиться статистикой использования
+ Отправлять отчёты о сбоях
Лицензии с открытым исходным кодом
Конфиденциальность
Для опытных пользователей.
diff --git a/controller/app/src/main/res/values-sk/strings.xml b/controller/app/src/main/res/values-sk/strings.xml
index 0ae2135e4..df4bd4859 100644
--- a/controller/app/src/main/res/values-sk/strings.xml
+++ b/controller/app/src/main/res/values-sk/strings.xml
@@ -589,6 +589,7 @@
Skontrolovať aktualizácie
Povolenia
Zdieľať štatistiky používania
+ Odosielať hlásenia o zlyhaniach
Licencie open-source
Súkromie
Pre pokročilých používateľov.
diff --git a/controller/app/src/main/res/values-sr/strings.xml b/controller/app/src/main/res/values-sr/strings.xml
index 38d91d886..208c5118b 100644
--- a/controller/app/src/main/res/values-sr/strings.xml
+++ b/controller/app/src/main/res/values-sr/strings.xml
@@ -595,6 +595,7 @@
Провери ажурирања
Дозволе
Дели статистику коришћења
+ Пошаљи извештаје о падовима
Лиценце отвореног кода
Приватност
За напредне кориснике.
diff --git a/controller/app/src/main/res/values-sw/strings.xml b/controller/app/src/main/res/values-sw/strings.xml
index 52aa2e5f8..882d5a60d 100644
--- a/controller/app/src/main/res/values-sw/strings.xml
+++ b/controller/app/src/main/res/values-sw/strings.xml
@@ -602,6 +602,7 @@
Angalia masasisho
Ruhusa
Shiriki takwimu za matumizi
+ Tuma ripoti za hitilafu
Leseni za chanzo huria
Faragha
Kwa watumiaji wa hali ya juu.
diff --git a/controller/app/src/main/res/values-ta/strings.xml b/controller/app/src/main/res/values-ta/strings.xml
index 2fc518bb7..373394264 100644
--- a/controller/app/src/main/res/values-ta/strings.xml
+++ b/controller/app/src/main/res/values-ta/strings.xml
@@ -602,6 +602,7 @@
புதுப்பிப்புகளைச் சரிபார்
அனுமதிகள்
பயன்பாட்டு புள்ளிவிவரங்களைப் பகிர்
+ செயலிழப்பு அறிக்கைகளை அனுப்பு
திறந்த-மூல உரிமங்கள்
தனியுரிமை
மேம்பட்ட பயனர்களுக்கு.
diff --git a/controller/app/src/main/res/values-tr/strings.xml b/controller/app/src/main/res/values-tr/strings.xml
index 6cc3e9c6f..e89ebddba 100644
--- a/controller/app/src/main/res/values-tr/strings.xml
+++ b/controller/app/src/main/res/values-tr/strings.xml
@@ -582,6 +582,7 @@
Güncellemeleri denetle
İzinler
Kullanım istatistiklerini paylaş
+ Çökme raporları gönder
Açık kaynak lisansları
Gizlilik
İleri düzey kullanıcılar için.
diff --git a/controller/app/src/main/res/values-uk/strings.xml b/controller/app/src/main/res/values-uk/strings.xml
index 7a1e4fff1..449b58ab2 100644
--- a/controller/app/src/main/res/values-uk/strings.xml
+++ b/controller/app/src/main/res/values-uk/strings.xml
@@ -582,6 +582,7 @@
Перевірити оновлення
Дозволи
Надсилати статистику використання
+ Надсилати звіти про збої
Ліцензії з відкритим кодом
Конфіденційність
Для досвідчених користувачів.
diff --git a/controller/app/src/main/res/values-vi/strings.xml b/controller/app/src/main/res/values-vi/strings.xml
index 46c4027b1..ff482a722 100644
--- a/controller/app/src/main/res/values-vi/strings.xml
+++ b/controller/app/src/main/res/values-vi/strings.xml
@@ -582,6 +582,7 @@
Kiểm tra cập nhật
Quyền
Chia sẻ số liệu sử dụng
+ Gửi báo cáo sự cố
Giấy phép nguồn mở
Quyền riêng tư
Dành cho người dùng nâng cao.
diff --git a/controller/app/src/main/res/values-yo/strings.xml b/controller/app/src/main/res/values-yo/strings.xml
index 79be5ff31..d4310e71c 100644
--- a/controller/app/src/main/res/values-yo/strings.xml
+++ b/controller/app/src/main/res/values-yo/strings.xml
@@ -602,6 +602,7 @@
Ṣàyẹ̀wò fún ìmúdójúìwọ̀n
Àwọn ìyọ̀ǹda
Pín ìṣirò ìlò
+ Fi awọn ijabọ ìparun ránṣẹ́
Àwọn ìwé àṣẹ orísun-ṣíṣí
Àṣírí
Fún àwọn olùlò tó jáfáfá.
diff --git a/controller/app/src/main/res/values-zh-rCN/strings.xml b/controller/app/src/main/res/values-zh-rCN/strings.xml
index d9a6d7422..9d64a9193 100644
--- a/controller/app/src/main/res/values-zh-rCN/strings.xml
+++ b/controller/app/src/main/res/values-zh-rCN/strings.xml
@@ -583,6 +583,7 @@
检查更新
权限
共享使用统计
+ 发送崩溃报告
开源许可证
隐私
适合高级用户。
diff --git a/controller/app/src/main/res/values/strings.xml b/controller/app/src/main/res/values/strings.xml
index c95505b0f..69d93270d 100644
--- a/controller/app/src/main/res/values/strings.xml
+++ b/controller/app/src/main/res/values/strings.xml
@@ -711,6 +711,7 @@
Check for updates
Permissions
Share usage statistics
+ Send crash reports
Open-source licenses
Privacy
For power users.