diff --git a/controller/app/src/main/java/org/iiab/controller/redesign/LibraryHomeFragment.java b/controller/app/src/main/java/org/iiab/controller/redesign/LibraryHomeFragment.java index 7c800b077..6a7759908 100644 --- a/controller/app/src/main/java/org/iiab/controller/redesign/LibraryHomeFragment.java +++ b/controller/app/src/main/java/org/iiab/controller/redesign/LibraryHomeFragment.java @@ -50,7 +50,10 @@ public class LibraryHomeFragment extends Fragment { H_FAILED = 4, H_INSTALLING = 5, // ADFA-5143: a clone in flight, told apart by side. The receiver is the only one with a // percentage, so it is the one whose loss matters; the donor has a QR and a Stop. - H_CLONE_RECEIVING = 6, H_CLONE_SHARING = 7; + H_CLONE_RECEIVING = 6, H_CLONE_SHARING = 7, + // ADFA-5147: a system is on disk but was left unbootable (a killed install or clone). Split + // out of H_NO_LIBRARY, which offered to install over it — this offers to repair it instead. + H_DAMAGED = 8; // ADFA-4837: how long a card stays amber (patient) once the box is up before it's called stuck. private static final long CARD_RED_GRACE_MS = 60000L; @@ -115,6 +118,16 @@ public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup c openGetMore(); return; } + // ADFA-5147: a damaged system is repaired, not installed over. Exactly what the launch + // recovery dialog does on "Recover" — the recovery screen offers restore-a-backup or + // reinstall, both of which work without a healthy rootfs. No finish() here, unlike the + // dialog: the dialog closes so the user cannot fall back onto a held boot gate, but Home + // is now an honest surface — back out of recovery and it still says "needs repair". + if (headerState == H_DAMAGED) { + startActivity(new android.content.Intent(requireContext(), SetupLibraryActivity.class) + .putExtra(SetupLibraryActivity.EXTRA_BACKUP_RESTORE, true)); + return; + } // ADFA-5143: both clone states go to the Clone tab. For the receiver that is the only // place the percentage exists — the donor has no progress to lose, only a QR — which // is why this is the half of the ticket that carries the priority. @@ -563,7 +576,29 @@ private void updateHeaderFromCards() { setHeader(H_CLONE_SHARING); return; } - if (!installed) { setHeader(H_NO_LIBRARY); return; } + if (!installed) { + // ADFA-5147: "not installed" is two states, and this line used to collapse them. A truly + // empty phone has no install marker; a killed install or clone leaves the marker set and + // the system unbootable. isSystemInstalled() folds both into false, so a damaged system + // read as "no library" and the header offered to install over it — the misdiagnosis that + // sent a whole night at rsync while the cloned system was intact. + // + // Ask the one owner of that distinction — the same verdict the launch recovery dialog uses + // (InterruptedInstallDetector) — so Home and the dialog cannot disagree about what a marker + // means. The full form is required here: a live install, module queue or deep op holds the + // marker legitimately and must NOT read as damage (ADFA-4971). This is the destination made + // honest, so the diagnosis no longer depends on which launch branch was taken to reach it. + boolean marker = org.iiab.controller.InstallGuard.inProgress(requireContext()); + boolean instRunning = org.iiab.controller.install.presentation.InstallProgressRepository.get().current().isRunning(); + boolean modRunning = org.iiab.controller.install.presentation.ModuleQueueRepository.get().isRunning(); + boolean deepOp = org.iiab.controller.env.EnvironmentLock.ownerHeld(requireContext()); + org.iiab.controller.install.domain.InterruptedInstallDetector.Verdict v = + org.iiab.controller.install.domain.InterruptedInstallDetector.evaluate( + marker, instRunning, modRunning, deepOp, alive); + setHeader(v == org.iiab.controller.install.domain.InterruptedInstallDetector.Verdict.DAMAGED_REINSTALL + ? H_DAMAGED : H_NO_LIBRARY); + return; + } // ADFA-5074: content being added outranks everything below. It is the only state // the user can act on from here, and reporting "ready" over a running install is // how the install became unreachable in the first place. Sessions only, not banked @@ -618,6 +653,10 @@ private void setHeader(int h) { // busy with something the user started — that is "wait", which is what amber says here. case H_CLONE_RECEIVING: text = getString(R.string.k2go_home_clone_receiving); dotColor = R.color.k2go_amber; break; case H_CLONE_SHARING: text = getString(R.string.k2go_home_clone_sharing); dotColor = R.color.k2go_amber; break; + // ADFA-5147: clay, like H_FAILED — both are "the system won't run and needs you". The + // difference is the remedy: FAILED can retry a healthy system, DAMAGED must repair a broken + // one, so it carries the Recover action below rather than Retry. + case H_DAMAGED: text = getString(R.string.k2go_home_damaged); dotColor = R.color.k2go_clay; break; default: text = getString(R.string.k2go_starting_library); dotColor = R.color.k2go_amber; break; } homeStatus.setText(text); @@ -644,7 +683,9 @@ private void setHeader(int h) { // meaningful thing to do to a transfer. Each side is offered the place that matters: // the receiver its progress, the donor its QR. : h == H_CLONE_RECEIVING ? R.string.k2go_home_see_progress - : h == H_CLONE_SHARING ? R.string.k2go_home_clone_view : 0; + : h == H_CLONE_SHARING ? R.string.k2go_home_clone_view + // ADFA-5147: repair, not install. Routes to the recovery screen the launch dialog uses. + : h == H_DAMAGED ? R.string.k2go_home_recover : 0; if (homeStatusAction != null) { homeStatusAction.setVisibility(action != 0 ? View.VISIBLE : View.GONE); if (action != 0) homeStatusAction.setText(action); diff --git a/controller/app/src/main/res/values-ar/strings_k2go.xml b/controller/app/src/main/res/values-ar/strings_k2go.xml index 03b7af576..8348f10b9 100644 --- a/controller/app/src/main/res/values-ar/strings_k2go.xml +++ b/controller/app/src/main/res/values-ar/strings_k2go.xml @@ -399,6 +399,8 @@ اختر لغة المحتوى إخفاء لا توجد مكتبة بعد — انقر على المزيد لتثبيت المحتوى وإضافته + المكتبة بحاجة إلى إصلاح — لم يكتمل الإعداد الأخير + إصلاح المكتبة جاهزة — انقر على المزيد لإضافة محتوى /ث المزيد diff --git a/controller/app/src/main/res/values-az/strings_k2go.xml b/controller/app/src/main/res/values-az/strings_k2go.xml index c9cd9779d..46813df9b 100644 --- a/controller/app/src/main/res/values-az/strings_k2go.xml +++ b/controller/app/src/main/res/values-az/strings_k2go.xml @@ -399,6 +399,8 @@ Məzmun dilini seçin Gizlət Hələ kitabxana yoxdur — məzmun quraşdırmaq və əlavə etmək üçün Daha çox al-a toxunun + Kitabxananın təmiri lazımdır — son quraşdırma tamamlanmadı + Bərpa et Kitabxana hazırdır — məzmun əlavə etmək üçün Daha çox al-a toxunun /s Daha çox al diff --git a/controller/app/src/main/res/values-bg/strings_k2go.xml b/controller/app/src/main/res/values-bg/strings_k2go.xml index 96eaf2a96..6e46b5ed8 100644 --- a/controller/app/src/main/res/values-bg/strings_k2go.xml +++ b/controller/app/src/main/res/values-bg/strings_k2go.xml @@ -399,6 +399,8 @@ Изберете език на съдържанието Скрий Все още няма библиотека — докоснете Още, за да инсталирате и добавите съдържание + Библиотеката се нуждае от поправка — последната настройка не завърши + Възстанови Библиотеката е готова — докоснете Още, за да добавите съдържание /сек Още diff --git a/controller/app/src/main/res/values-bn/strings_k2go.xml b/controller/app/src/main/res/values-bn/strings_k2go.xml index e349101e5..f66979d49 100644 --- a/controller/app/src/main/res/values-bn/strings_k2go.xml +++ b/controller/app/src/main/res/values-bn/strings_k2go.xml @@ -399,6 +399,8 @@ কনটেন্টের ভাষা বেছে নিন লুকান এখনো কোনো লাইব্রেরি নেই — ইনস্টল করে কনটেন্ট যোগ করতে ‘আরও নিন’-এ ট্যাপ করুন + লাইব্রেরি মেরামত প্রয়োজন — শেষ সেটআপ সম্পূর্ণ হয়নি + মেরামত লাইব্রেরি প্রস্তুত — কনটেন্ট যোগ করতে ‘আরও নিন’-এ ট্যাপ করুন /সে আরও নিন diff --git a/controller/app/src/main/res/values-cs/strings_k2go.xml b/controller/app/src/main/res/values-cs/strings_k2go.xml index d50d0d587..c7c5e6b0d 100644 --- a/controller/app/src/main/res/values-cs/strings_k2go.xml +++ b/controller/app/src/main/res/values-cs/strings_k2go.xml @@ -399,6 +399,8 @@ Vyberte jazyk obsahu Skrýt Zatím žádná knihovna — klepněte na Získat další pro instalaci a přidání obsahu + Knihovna potřebuje opravu — poslední nastavení se nedokončilo + Opravit Knihovna připravena — klepněte na Získat další pro přidání obsahu /s Získat další diff --git a/controller/app/src/main/res/values-de/strings_k2go.xml b/controller/app/src/main/res/values-de/strings_k2go.xml index 2cd1690a5..823ce2bb2 100644 --- a/controller/app/src/main/res/values-de/strings_k2go.xml +++ b/controller/app/src/main/res/values-de/strings_k2go.xml @@ -400,6 +400,8 @@ Inhaltssprache wählen Ausblenden Noch keine Bibliothek — tippe auf Mehr laden, um Inhalte zu installieren und hinzuzufügen + Bibliothek muss repariert werden — die letzte Einrichtung wurde nicht abgeschlossen + Reparieren Bibliothek bereit — tippe auf Mehr laden, um Inhalte hinzuzufügen /s Mehr laden diff --git a/controller/app/src/main/res/values-el/strings_k2go.xml b/controller/app/src/main/res/values-el/strings_k2go.xml index e242014b6..da657bb7a 100644 --- a/controller/app/src/main/res/values-el/strings_k2go.xml +++ b/controller/app/src/main/res/values-el/strings_k2go.xml @@ -400,6 +400,8 @@ Επιλέξτε γλώσσα περιεχομένου Απόκρυψη Δεν υπάρχει ακόμη βιβλιοθήκη — πατήστε Αποκτήστε περισσότερα για εγκατάσταση και προσθήκη περιεχομένου + Η βιβλιοθήκη χρειάζεται επιδιόρθωση — η τελευταία εγκατάσταση δεν ολοκληρώθηκε + Επιδιόρθωση Η βιβλιοθήκη είναι έτοιμη — πατήστε Αποκτήστε περισσότερα για προσθήκη περιεχομένου /δ Αποκτήστε περισσότερα diff --git a/controller/app/src/main/res/values-es/strings_k2go.xml b/controller/app/src/main/res/values-es/strings_k2go.xml index b3d136968..90238dfda 100644 --- a/controller/app/src/main/res/values-es/strings_k2go.xml +++ b/controller/app/src/main/res/values-es/strings_k2go.xml @@ -399,6 +399,8 @@ Elegir idioma del contenido Ocultar Aún no hay biblioteca — toca Obtener más para instalar y añadir contenido + La biblioteca necesita reparación — la última configuración no se completó + Reparar Biblioteca lista — toca Obtener más para añadir contenido /s Obtener más diff --git a/controller/app/src/main/res/values-fa/strings_k2go.xml b/controller/app/src/main/res/values-fa/strings_k2go.xml index af2c88e4c..8c43a8336 100644 --- a/controller/app/src/main/res/values-fa/strings_k2go.xml +++ b/controller/app/src/main/res/values-fa/strings_k2go.xml @@ -399,6 +399,8 @@ انتخاب زبان محتوا پنهان کردن هنوز کتابخانه‌ای نیست — برای نصب و افزودن محتوا روی «دریافت بیشتر» ضربه بزنید + کتابخانه به تعمیر نیاز دارد — راه‌اندازی آخر کامل نشد + تعمیر کتابخانه آماده است — برای افزودن محتوا روی «دریافت بیشتر» ضربه بزنید /ثانیه دریافت بیشتر diff --git a/controller/app/src/main/res/values-fr/strings_k2go.xml b/controller/app/src/main/res/values-fr/strings_k2go.xml index 20b9e86a8..dfc2c2a9d 100644 --- a/controller/app/src/main/res/values-fr/strings_k2go.xml +++ b/controller/app/src/main/res/values-fr/strings_k2go.xml @@ -401,6 +401,8 @@ Choisir la langue du contenu Masquer Pas encore de bibliothèque — appuyez sur Obtenir plus pour installer et ajouter du contenu + La bibliothèque doit être réparée — la dernière configuration ne s\'est pas terminée + Réparer Bibliothèque prête — appuyez sur Obtenir plus pour ajouter du contenu /s diff --git a/controller/app/src/main/res/values-gu/strings_k2go.xml b/controller/app/src/main/res/values-gu/strings_k2go.xml index d9b507e03..8a3e128e9 100644 --- a/controller/app/src/main/res/values-gu/strings_k2go.xml +++ b/controller/app/src/main/res/values-gu/strings_k2go.xml @@ -399,6 +399,8 @@ કન્ટેન્ટ ભાષા પસંદ કરો છુપાવો હજી કોઈ લાઇબ્રેરી નથી — ઇન્સ્ટોલ કરવા અને કન્ટેન્ટ ઉમેરવા Get more ટૅપ કરો + લાઇબ્રેરીને સમારકામની જરૂર છે — છેલ્લું સેટઅપ પૂર્ણ થયું નથી + સમારકામ લાઇબ્રેરી તૈયાર — કન્ટેન્ટ ઉમેરવા Get more ટૅપ કરો /સે વધુ મેળવો diff --git a/controller/app/src/main/res/values-hi/strings_k2go.xml b/controller/app/src/main/res/values-hi/strings_k2go.xml index 728e47cdc..f8ed388ff 100644 --- a/controller/app/src/main/res/values-hi/strings_k2go.xml +++ b/controller/app/src/main/res/values-hi/strings_k2go.xml @@ -399,6 +399,8 @@ सामग्री भाषा चुनें छिपाएँ अभी कोई लाइब्रेरी नहीं — सामग्री इंस्टॉल और जोड़ने के लिए और पाएँ टैप करें + लाइब्रेरी की मरम्मत ज़रूरी है — पिछला सेटअप पूरा नहीं हुआ + मरम्मत लाइब्रेरी तैयार — सामग्री जोड़ने के लिए और पाएँ टैप करें /से और पाएँ diff --git a/controller/app/src/main/res/values-hu/strings_k2go.xml b/controller/app/src/main/res/values-hu/strings_k2go.xml index 71ef32377..2572840c1 100644 --- a/controller/app/src/main/res/values-hu/strings_k2go.xml +++ b/controller/app/src/main/res/values-hu/strings_k2go.xml @@ -399,6 +399,8 @@ Válassz tartalomnyelvet Elrejtés Még nincs könyvtár — koppints a Továbbiakra a tartalom telepítéséhez és hozzáadásához + A könyvtárat javítani kell — az utolsó beállítás nem fejeződött be + Javítás A könyvtár kész — koppints a Továbbiakra tartalom hozzáadásához /s Továbbiak diff --git a/controller/app/src/main/res/values-in/strings_k2go.xml b/controller/app/src/main/res/values-in/strings_k2go.xml index c702a73b9..e7ef6b356 100644 --- a/controller/app/src/main/res/values-in/strings_k2go.xml +++ b/controller/app/src/main/res/values-in/strings_k2go.xml @@ -399,6 +399,8 @@ Pilih bahasa konten Sembunyikan Belum ada pustaka — ketuk Dapatkan lagi untuk memasang dan menambahkan konten + Pustaka perlu diperbaiki — penyiapan terakhir tidak selesai + Perbaiki Pustaka siap — ketuk Dapatkan lagi untuk menambahkan konten /d Dapatkan lagi diff --git a/controller/app/src/main/res/values-it/strings_k2go.xml b/controller/app/src/main/res/values-it/strings_k2go.xml index 3d786e717..73c380e1a 100644 --- a/controller/app/src/main/res/values-it/strings_k2go.xml +++ b/controller/app/src/main/res/values-it/strings_k2go.xml @@ -399,6 +399,8 @@ Scegli la lingua dei contenuti Nascondi Ancora nessuna libreria — tocca Aggiungi altro per installare e aggiungere contenuti + La libreria va riparata — l\'ultima configurazione non è stata completata + Ripara Libreria pronta — tocca Aggiungi altro per aggiungere contenuti /s Aggiungi altro diff --git a/controller/app/src/main/res/values-ja/strings_k2go.xml b/controller/app/src/main/res/values-ja/strings_k2go.xml index b482c5204..8ae3adc3d 100644 --- a/controller/app/src/main/res/values-ja/strings_k2go.xml +++ b/controller/app/src/main/res/values-ja/strings_k2go.xml @@ -399,6 +399,8 @@ コンテンツの言語を選択 隠す ライブラリがまだありません — 「もっと入手」をタップしてインストールし、コンテンツを追加してください + ライブラリの修復が必要です — 前回のセットアップが完了しませんでした + 修復 ライブラリの準備完了 — 「もっと入手」をタップしてコンテンツを追加してください /秒 もっと入手 diff --git a/controller/app/src/main/res/values-ko/strings_k2go.xml b/controller/app/src/main/res/values-ko/strings_k2go.xml index 83895a02e..40fbb02b9 100644 --- a/controller/app/src/main/res/values-ko/strings_k2go.xml +++ b/controller/app/src/main/res/values-ko/strings_k2go.xml @@ -399,6 +399,8 @@ 콘텐츠 언어 선택 숨기기 아직 라이브러리가 없음 — ‘더 받기’를 탭하여 설치하고 콘텐츠를 추가하세요 + 라이브러리 복구가 필요함 — 마지막 설정이 완료되지 않음 + 복구 라이브러리 준비 완료 — ‘더 받기’를 탭하여 콘텐츠를 추가하세요 /초 더 받기 diff --git a/controller/app/src/main/res/values-lt/strings_k2go.xml b/controller/app/src/main/res/values-lt/strings_k2go.xml index 5627f7fbe..3e13492f4 100644 --- a/controller/app/src/main/res/values-lt/strings_k2go.xml +++ b/controller/app/src/main/res/values-lt/strings_k2go.xml @@ -401,6 +401,8 @@ Pasirinkite turinio kalbą Slėpti Dar nėra bibliotekos — bakstelėkite Gauti daugiau, kad įdiegtumėte ir pridėtumėte turinio + Biblioteką reikia taisyti — paskutinė sąranka nebaigta + Taisyti Biblioteka paruošta — bakstelėkite Gauti daugiau, kad pridėtumėte turinio /s diff --git a/controller/app/src/main/res/values-nl/strings_k2go.xml b/controller/app/src/main/res/values-nl/strings_k2go.xml index 76ef46ca5..fe9ee9427 100644 --- a/controller/app/src/main/res/values-nl/strings_k2go.xml +++ b/controller/app/src/main/res/values-nl/strings_k2go.xml @@ -399,6 +399,8 @@ Kies inhoudstaal Verbergen Nog geen bibliotheek — tik op Meer ophalen om inhoud te installeren en toe te voegen + Bibliotheek moet worden hersteld — de laatste installatie is niet voltooid + Herstellen Bibliotheek klaar — tik op Meer ophalen om inhoud toe te voegen /s Meer ophalen diff --git a/controller/app/src/main/res/values-no/strings_k2go.xml b/controller/app/src/main/res/values-no/strings_k2go.xml index a40cb99f8..843d00d6e 100644 --- a/controller/app/src/main/res/values-no/strings_k2go.xml +++ b/controller/app/src/main/res/values-no/strings_k2go.xml @@ -401,6 +401,8 @@ Velg innholdsspråk Skjul Ikke noe bibliotek ennå — trykk Hent mer for å installere og legge til innhold + Biblioteket må repareres — det siste oppsettet ble ikke fullført + Reparer Bibliotek klart — trykk Hent mer for å legge til innhold /s diff --git a/controller/app/src/main/res/values-pl/strings_k2go.xml b/controller/app/src/main/res/values-pl/strings_k2go.xml index 72c51c563..e583100f1 100644 --- a/controller/app/src/main/res/values-pl/strings_k2go.xml +++ b/controller/app/src/main/res/values-pl/strings_k2go.xml @@ -401,6 +401,8 @@ Wybierz język treści Ukryj Brak jeszcze biblioteki — dotknij Pobierz więcej, aby zainstalować i dodać treść + Biblioteka wymaga naprawy — ostatnia konfiguracja nie zakończyła się + Napraw Biblioteka gotowa — dotknij Pobierz więcej, aby dodać treść /s diff --git a/controller/app/src/main/res/values-pt/strings_k2go.xml b/controller/app/src/main/res/values-pt/strings_k2go.xml index e17afe107..e3b5a2f09 100644 --- a/controller/app/src/main/res/values-pt/strings_k2go.xml +++ b/controller/app/src/main/res/values-pt/strings_k2go.xml @@ -399,6 +399,8 @@ Escolher idioma do conteúdo Ocultar Ainda sem biblioteca — toque em Obter mais para instalar e adicionar conteúdo + A biblioteca precisa de reparo — a última configuração não foi concluída + Reparar Biblioteca pronta — toque em Obter mais para adicionar conteúdo /s Obter mais diff --git a/controller/app/src/main/res/values-ro/strings_k2go.xml b/controller/app/src/main/res/values-ro/strings_k2go.xml index a775c33d6..6954d7bc8 100644 --- a/controller/app/src/main/res/values-ro/strings_k2go.xml +++ b/controller/app/src/main/res/values-ro/strings_k2go.xml @@ -399,6 +399,8 @@ Alege limba conținutului Ascunde Încă fără bibliotecă — atinge Mai multe pentru a instala și adăuga conținut + Biblioteca necesită reparare — ultima configurare nu s-a finalizat + Repară Bibliotecă gata — atinge Mai multe pentru a adăuga conținut /s Mai multe diff --git a/controller/app/src/main/res/values-ru-rRU/strings_k2go.xml b/controller/app/src/main/res/values-ru-rRU/strings_k2go.xml index 25c27af60..95180e93d 100644 --- a/controller/app/src/main/res/values-ru-rRU/strings_k2go.xml +++ b/controller/app/src/main/res/values-ru-rRU/strings_k2go.xml @@ -399,6 +399,8 @@ Выберите язык контента Скрыть Библиотеки пока нет — нажмите «Добавить ещё», чтобы установить и добавить контент + Библиотеке нужен ремонт — последняя настройка не завершилась + Восстановить Библиотека готова — нажмите «Добавить ещё», чтобы добавить контент /с Добавить ещё diff --git a/controller/app/src/main/res/values-sk/strings_k2go.xml b/controller/app/src/main/res/values-sk/strings_k2go.xml index 8d368c454..b17ec3628 100644 --- a/controller/app/src/main/res/values-sk/strings_k2go.xml +++ b/controller/app/src/main/res/values-sk/strings_k2go.xml @@ -399,6 +399,8 @@ Vyberte jazyk obsahu Skryť Zatiaľ žiadna knižnica — klepnite na Získať viac pre inštaláciu a pridanie obsahu + Knižnica potrebuje opravu — posledné nastavenie sa nedokončilo + Opraviť Knižnica pripravená — klepnite na Získať viac pre pridanie obsahu /s Získať viac diff --git a/controller/app/src/main/res/values-sr/strings_k2go.xml b/controller/app/src/main/res/values-sr/strings_k2go.xml index e77647543..f4189adf1 100644 --- a/controller/app/src/main/res/values-sr/strings_k2go.xml +++ b/controller/app/src/main/res/values-sr/strings_k2go.xml @@ -399,6 +399,8 @@ Изаберите језик садржаја Сакриј Још нема библиотеке — додирните Преузми још да инсталирате и додате садржај + Библиотеку треба поправити — последње подешавање није завршено + Поправи Библиотека спремна — додирните Преузми још да додате садржај /s Преузми још diff --git a/controller/app/src/main/res/values-sw/strings_k2go.xml b/controller/app/src/main/res/values-sw/strings_k2go.xml index 59faf69f6..c1c53605d 100644 --- a/controller/app/src/main/res/values-sw/strings_k2go.xml +++ b/controller/app/src/main/res/values-sw/strings_k2go.xml @@ -399,6 +399,8 @@ Chagua lugha ya maudhui Ficha Bado hakuna maktaba — gusa Pata zaidi ili kusakinisha na kuongeza maudhui + Maktaba inahitaji kurekebishwa — usanidi wa mwisho haukukamilika + Rekebisha Maktaba tayari — gusa Pata zaidi ili kuongeza maudhui /sek Pata zaidi diff --git a/controller/app/src/main/res/values-ta/strings_k2go.xml b/controller/app/src/main/res/values-ta/strings_k2go.xml index 640f314b0..de43f3ff2 100644 --- a/controller/app/src/main/res/values-ta/strings_k2go.xml +++ b/controller/app/src/main/res/values-ta/strings_k2go.xml @@ -399,6 +399,8 @@ உள்ளடக்க மொழியைத் தேர்வுசெய்க மறை இன்னும் நூலகம் இல்லை — நிறுவி உள்ளடக்கத்தைச் சேர்க்க ‘மேலும் பெறு’-ஐத் தட்டவும் + நூலகத்தை சரிசெய்ய வேண்டும் — கடைசி அமைப்பு முடியவில்லை + சரிசெய் நூலகம் தயார் — உள்ளடக்கத்தைச் சேர்க்க ‘மேலும் பெறு’-ஐத் தட்டவும் /வி மேலும் பெறு diff --git a/controller/app/src/main/res/values-tr/strings_k2go.xml b/controller/app/src/main/res/values-tr/strings_k2go.xml index eb302d27b..a2b241bc0 100644 --- a/controller/app/src/main/res/values-tr/strings_k2go.xml +++ b/controller/app/src/main/res/values-tr/strings_k2go.xml @@ -399,6 +399,8 @@ İçerik dilini seçin Gizle Henüz kitaplık yok — kurmak ve içerik eklemek için Daha fazlası\'na dokunun + Kitaplık onarım gerektiriyor — son kurulum tamamlanmadı + Onar Kitaplık hazır — içerik eklemek için Daha fazlası\'na dokunun /sn Daha fazlası diff --git a/controller/app/src/main/res/values-uk/strings_k2go.xml b/controller/app/src/main/res/values-uk/strings_k2go.xml index 31fb71bbf..ffa316c5d 100644 --- a/controller/app/src/main/res/values-uk/strings_k2go.xml +++ b/controller/app/src/main/res/values-uk/strings_k2go.xml @@ -399,6 +399,8 @@ Оберіть мову контенту Сховати Поки немає бібліотеки — торкніться «Отримати ще», щоб встановити й додати контент + Бібліотеку потрібно відновити — останнє налаштування не завершилося + Відновити Бібліотека готова — торкніться «Отримати ще», щоб додати контент /с Отримати ще diff --git a/controller/app/src/main/res/values-vi/strings_k2go.xml b/controller/app/src/main/res/values-vi/strings_k2go.xml index 3da5e03be..11ace6ac6 100644 --- a/controller/app/src/main/res/values-vi/strings_k2go.xml +++ b/controller/app/src/main/res/values-vi/strings_k2go.xml @@ -399,6 +399,8 @@ Chọn ngôn ngữ nội dung Ẩn Chưa có thư viện — chạm Tải thêm để cài và thêm nội dung + Thư viện cần sửa chữa — lần cài đặt trước chưa hoàn tất + Sửa chữa Thư viện sẵn sàng — chạm Tải thêm để thêm nội dung /giây Tải thêm diff --git a/controller/app/src/main/res/values-yo/strings_k2go.xml b/controller/app/src/main/res/values-yo/strings_k2go.xml index edbd553d2..2997f989e 100644 --- a/controller/app/src/main/res/values-yo/strings_k2go.xml +++ b/controller/app/src/main/res/values-yo/strings_k2go.xml @@ -399,6 +399,8 @@ Yan èdè àkóónú Fi pamọ́ Kò sí ilé-ìkàwé síbẹ̀ — tẹ Rí i síi láti fi sórí ẹ̀rọ kí o sì fi àkóónú kún + Ilé-ìkàwé nílò àtúnṣe — ìṣètò tó gbẹ̀yìn kò parí + Àtúnṣe Ilé-ìkàwé múra tán — tẹ Rí i síi láti fi àkóónú kún /ìs Rí i síi diff --git a/controller/app/src/main/res/values-zh-rCN/strings_k2go.xml b/controller/app/src/main/res/values-zh-rCN/strings_k2go.xml index a49383a17..9cb87f998 100644 --- a/controller/app/src/main/res/values-zh-rCN/strings_k2go.xml +++ b/controller/app/src/main/res/values-zh-rCN/strings_k2go.xml @@ -399,6 +399,8 @@ 选择内容语言 隐藏 暂无图书馆 — 点按“获取更多”以安装并添加内容 + 图书馆需要修复 — 上次设置未完成 + 修复 图书馆就绪 — 点按“获取更多”以添加内容 /秒 获取更多 diff --git a/controller/app/src/main/res/values/strings_k2go.xml b/controller/app/src/main/res/values/strings_k2go.xml index 68acdbbfd..30f178a18 100644 --- a/controller/app/src/main/res/values/strings_k2go.xml +++ b/controller/app/src/main/res/values/strings_k2go.xml @@ -469,6 +469,10 @@ Choose content language Hide No library yet — tap Get more to install and add content + + Library needs repair — the last setup didn\'t finish + Recover Library ready — tap Get more to add content /s diff --git a/controller/docs/operation-model-roadmap.svg b/controller/docs/operation-model-roadmap.svg index 1cc3bc8c8..3203c791c 100644 --- a/controller/docs/operation-model-roadmap.svg +++ b/controller/docs/operation-model-roadmap.svg @@ -1,4 +1,4 @@ - + Operation model — ticket map, dependencies, and the standing directive Three columns that mean delivered / in flight / next, with arrows for what directs what. Teal cards are hubs: arrows leave them because the rest of the board reads them. The band at the top is the standing directive and its ledger of facts — every change that touches a fact updates a row. Flip a dot's class as work lands: s-done, s-doing, s-todo. diff --git a/controller/docs/state-spine.svg b/controller/docs/state-spine.svg index 4f585489c..a990b0c01 100644 --- a/controller/docs/state-spine.svg +++ b/controller/docs/state-spine.svg @@ -222,7 +222,7 @@ DEAD ENDS, WORST FIRST — traps, then one-way doors, then exits nobody can find, then controls that do nothing -Ranked by how hard the state is to escape, not by how ugly it looks. As of 13 Aug: findings 1, 3 and 5 are closed, and 4 lost one of its three blind spots. Finding 8 was found by using the app, not by reading it. +Ranked by how hard the state is to escape, not by how ugly it looks. As of 14 Aug: findings 1, 3, 5 and 8 are closed, and 4 lost one of its three blind spots. Finding 8 was found by using the app, not by reading it — and one of its claims turned out to be wrong for the same reason. Findings 1, 2, 3 and 4 are one sentence four times: a fact nobody clears. They are rows in the standing directive's ledger at the top of operation-model-roadmap.svg — fix them there, not here. @@ -241,7 +241,7 @@ all refuse, all with the same message — "An install is already running" — while nothing is running. It is not durable: every source it reads is in-memory, so closing the app clears it. That is the whole problem. The exit exists and nobody will find it, because no one closes an app to unblock a button. env/EnvironmentLock.java:69-87 (all four sources are process-scoped), 97-100 (the file names this and points at ADFA-4874). -Opens with: an age past which a session is ignored, and a message that says what is actually holding the lock. Belongs with ADFA-5106 — the expiry needs the per-session timestamp that ticket produces. +ADFA-5146. An age past which a session is ignored, and a message that names what is actually holding the lock. The expiry needs only an in-memory timestamp, not the durable record — the stale flag dies with the process, so 4897 is a different problem. 3 · CLOSED (13 Aug, ADFA-5137) — the flag that could disagree with reality no longer exists @@ -253,14 +253,14 @@ system/domain/SystemPresence (the rule, eight-row truth table) · system/data/SystemFactsReader.hereOrOnTheWay (the three reads) · the preference key is gone from 34 files. Ledger consequence: the setup_complete row is deleted rather than turned green. The first row of the standing directive's own table stops existing. - -4 · HIDDEN EXIT — a damaged system reached by the wrong door is never diagnosed -The recovery dialog only runs when the launch takes the "recovering" branch. If a lock is held, or an install or a module queue is running, the branch is skipped and -the user lands on Home — where the install marker forces isSystemInstalled() false, so it presents as "no system": no dialog, no Retry, no mention of damage. The -exits from there are the ones in finding 5, and none of them says anything about a damaged system, so the user is looking for the wrong problem. -LibraryActivity.java:168-177 (the predicate), :187-204 (the redirects that pre-empt it), :287-293 (a held lock lifts the gate) · SystemStateEvaluator:43-45. -Opens with: computing health where it is displayed rather than only in the launch branch — it is already computed app-wide and read by exactly one screen. ADFA-5119 removed one of the three pre-emptions: a failure DURING a live install now -diagnoses itself, because the gate's own observer shows the recovery dialog and latches the gate shut. A held lock and a running module queue still skip the branch. + +4 · CLOSED (14 Aug, ADFA-5147) — a damaged system is now diagnosed where it is shown, not only in the launch branch +Was: the recovery dialog ran only on the "recovering" branch. A held lock, a running install or module queue skipped it, the user landed on Home, and the install +marker forced isSystemInstalled() false — so a damaged system read as "no system": no dialog, no mention of damage. Now Home asks InterruptedInstallDetector, the +same owner the launch dialog uses, and shows H_DAMAGED — "Library needs repair" with a Recover action — so the diagnosis no longer depends on which door was taken. +LibraryHomeFragment.updateHeaderFromCards (the !installed branch) + H_DAMAGED · InterruptedInstallDetector.evaluate · SystemStateEvaluator.isSystemInstalled. +Device-verified: a killed clone reached through recovery → wizard → clone lands on Home saying "needs repair", not "no library". Scope was the diagnosis; the surfaces a +systemless user can still wander (the module sheet, Add-modules, Connect) are findings 5 and 7, now owned by ADFA-5150 and ADFA-5151. 5 · CLOSED (13 Aug, ADFA-5137) — the state is unrepresentable now, and the screen was given an exit anyway @@ -287,13 +287,14 @@ redesign/ConnectFragment.java — browseUrl():126; no reference to SystemFacts, ServerStateRepository or EnvironmentLock anywhere in the file. - -8 · DEAD CONTROL — while a clone is being shared, Home says the system failed to start, and the Retry it offers boots the server mid-transfer -The server is stopped on purpose while a share runs. The header reads !alive and, with no start in progress, concludes H_FAILED — "Couldn't start — tap to retry" — so it -states something false about a perfectly healthy device. And canStartServer() checks seven conditions, none of which is CloneSendSession.isActive(), so that Retry passes -every guard and starts the server on top of a live transfer. Same shape as the module Cancel ADFA-5119 took off the notification: a visible control that breaks the thing -it is attached to. It also repeats finding 5 in a new place — Stop lives inside the Clone flow, so a user who navigated away cannot end the share, or get their system -back, from where they now are. -LibraryActivity.canStartServer():1004-1012 · LibraryHomeFragment.updateHeaderFromCards():519-545 · CloneSendSession.isActive(). -ADFA-5143. The guard first, because it is what removes the destructive control; then an amber header state with Stop. Found on a device, by navigating — no grep would have. + +8 · CLOSED — a clone in flight said the system had failed to start, and offered no way back to the transfer +The server is stopped on purpose while a clone runs. The header read !alive and, with no start in progress, concluded H_FAILED — "Couldn't start — tap to retry" — so it +stated something false about a perfectly healthy device, and the only route back into the transfer was to remember which tab it lived in. Now H_CLONE_RECEIVING and +H_CLONE_SHARING are asked before "is anything installed", so a clone in flight has its own amber state and its action returns to the Clone tab. +One claim written here was wrong and is worth keeping visible: that the Retry would boot the server on top of a live transfer. It would not — handleServerLaunchClick +refuses while EnvironmentLock.ownerHeld, and the guard was already there. The dead control was a lie on the header, not a destructive one, and it was ranked one +priority too high until the code was read instead of inferred. +LibraryHomeFragment.H_CLONE_RECEIVING/H_CLONE_SHARING · LibraryActivity.canStartServer() · openCloneTab() · CloneFragment.showReceiveTerminal(). +ADFA-5143, with the recovery loop and the ownership release. Leftover: the release runs when the UI reaches the terminal, so a receive whose tab is never reopened still keeps the marker.