feat: add unknown keybox option

This commit is contained in:
KOWX712
2025-04-27 23:15:57 +08:00
parent 1818b2be4e
commit 9c0f958147
18 changed files with 89 additions and 24 deletions

View File

@@ -79,6 +79,7 @@
<li class="ripple-element" id="deselect-unnecessary" data-i18n="menu.deselect_unnecessary"></li> <li class="ripple-element" id="deselect-unnecessary" data-i18n="menu.deselect_unnecessary"></li>
<li class="ripple-element" id="add-system-app" data-i18n="menu.add_system_app"></li> <li class="ripple-element" id="add-system-app" data-i18n="menu.add_system_app"></li>
<li class="ripple-element" id="aospkb" data-i18n="menu.set_aosp_keybox"></li> <li class="ripple-element" id="aospkb" data-i18n="menu.set_aosp_keybox"></li>
<li class="ripple-element" id="devicekb" data-i18n="menu.set_unknow_keybox"></li>
<li class="ripple-element" id="validkb" data-i18n="menu.set_valid_keybox"></li> <li class="ripple-element" id="validkb" data-i18n="menu.set_valid_keybox"></li>
<li class="ripple-element" id="customkb" data-i18n="menu.set_custom_keybox"></li> <li class="ripple-element" id="customkb" data-i18n="menu.set_custom_keybox"></li>
<li class="ripple-element" id="boot-hash" data-i18n="menu.set_verified_boot_hash"></li> <li class="ripple-element" id="boot-hash" data-i18n="menu.set_verified_boot_hash"></li>

View File

@@ -23,7 +23,7 @@
"set_custom_keybox": "Set Custom Keybox", "set_custom_keybox": "Set Custom Keybox",
"set_custom_keybox_description": "Import keybox from your device storage. Only support xml file.", "set_custom_keybox_description": "Import keybox from your device storage. Only support xml file.",
"set_security_patch": "Set Security Patch", "set_security_patch": "Set Security Patch",
"set_security_patch_description": "Set custom security patch spoof. Auto config will use security patch from PIF module, enabled by default. Leave blank and save to disable auto config.", "set_security_patch_description": "Set custom security patch spoof. Auto config will use security patch from PIF module. Leave blank and save to disable auto config.",
"set_verified_boot_hash": "Set Verified Boot Hash", "set_verified_boot_hash": "Set Verified Boot Hash",
"set_verified_boot_hash_description": "Get verifiedBootHash value from Key Attestation Demo. Fix abnormal boot state by resetting ro.boot.vbmeta.digest." "set_verified_boot_hash_description": "Get verifiedBootHash value from Key Attestation Demo. Fix abnormal boot state by resetting ro.boot.vbmeta.digest."
}, },
@@ -52,6 +52,7 @@
"deselect_unnecessary": "Deselect Unnecessary", "deselect_unnecessary": "Deselect Unnecessary",
"add_system_app": "Add System App", "add_system_app": "Add System App",
"set_aosp_keybox": "Set AOSP Keybox", "set_aosp_keybox": "Set AOSP Keybox",
"set_unknow_keybox": "Set Unknown Keybox",
"set_valid_keybox": "Set Valid Keybox", "set_valid_keybox": "Set Valid Keybox",
"set_custom_keybox": "Set Custom Keybox", "set_custom_keybox": "Set Custom Keybox",
"set_verified_boot_hash": "Set Verified Boot Hash", "set_verified_boot_hash": "Set Verified Boot Hash",
@@ -76,6 +77,7 @@
"no_internet": "Please check your Internet connection", "no_internet": "Please check your Internet connection",
"aosp_key_set": "AOSP keybox set successfully", "aosp_key_set": "AOSP keybox set successfully",
"key_set_error": "Failed to update keybox", "key_set_error": "Failed to update keybox",
"unknown_key_set": "Unknown keybox set successfully",
"valid_key_set": "Valid keybox set successfully", "valid_key_set": "Valid keybox set successfully",
"no_valid_fallback": "No valid keybox found, replaced with AOSP keybox.", "no_valid_fallback": "No valid keybox found, replaced with AOSP keybox.",
"boot_hash_set": "Verified Boot Hash saved successfully", "boot_hash_set": "Verified Boot Hash saved successfully",

View File

@@ -23,7 +23,7 @@
"set_custom_keybox": "تعيين Keybox مخصص", "set_custom_keybox": "تعيين Keybox مخصص",
"set_custom_keybox_description": "استيراد keybox من تخزين جهازك. يدعم فقط ملف xml.", "set_custom_keybox_description": "استيراد keybox من تخزين جهازك. يدعم فقط ملف xml.",
"set_security_patch": "تعيين تصحيح الأمان", "set_security_patch": "تعيين تصحيح الأمان",
"set_security_patch_description": "تعيين تصحيح أمان مخصص. سيستخدم التكوين التلقائي تصحيح الأمان من وحدة PIF، مفعل بشكل افتراضي. اتركه فارغًا واحفظه لتعطيل التكوين التلقائي.", "set_security_patch_description": "تعيين تصحيح أمان مخصص. سيستخدم التكوين التلقائي تصحيح الأمان من وحدة PIF. اتركه فارغًا واحفظه لتعطيل التكوين التلقائي.",
"set_verified_boot_hash": "تعيين تجزئة التمهيد الموثوق", "set_verified_boot_hash": "تعيين تجزئة التمهيد الموثوق",
"set_verified_boot_hash_description": "احصل على قيمة verifiedBootHash من عرض إثبات المفتاح. إصلاح حالة التمهيد غير الطبيعية عن طريق إعادة تعيين ro.boot.vbmeta.digest." "set_verified_boot_hash_description": "احصل على قيمة verifiedBootHash من عرض إثبات المفتاح. إصلاح حالة التمهيد غير الطبيعية عن طريق إعادة تعيين ro.boot.vbmeta.digest."
}, },
@@ -52,6 +52,7 @@
"deselect_unnecessary": "إلغاء تحديد غير الضروري", "deselect_unnecessary": "إلغاء تحديد غير الضروري",
"add_system_app": "إضافة تطبيق نظام", "add_system_app": "إضافة تطبيق نظام",
"set_aosp_keybox": "تعيين Keybox AOSP", "set_aosp_keybox": "تعيين Keybox AOSP",
"set_unknow_keybox": "تعيين Keybox غير معروف",
"set_valid_keybox": "تعيين Keybox صالح", "set_valid_keybox": "تعيين Keybox صالح",
"set_custom_keybox": "تعيين Keybox مخصص", "set_custom_keybox": "تعيين Keybox مخصص",
"set_verified_boot_hash": "تعيين تجزئة التمهيد الموثوق", "set_verified_boot_hash": "تعيين تجزئة التمهيد الموثوق",
@@ -76,6 +77,7 @@
"no_internet": "يرجى التحقق من اتصالك بالإنترنت", "no_internet": "يرجى التحقق من اتصالك بالإنترنت",
"aosp_key_set": "تم تعيين keybox AOSP بنجاح", "aosp_key_set": "تم تعيين keybox AOSP بنجاح",
"key_set_error": "فشل في تحديث keybox", "key_set_error": "فشل في تحديث keybox",
"unknown_key_set": "تم تعيين Keybox غير معروف بنجاح",
"valid_key_set": "تم تعيين keybox صالح بنجاح", "valid_key_set": "تم تعيين keybox صالح بنجاح",
"no_valid_fallback": "لم يتم العثور على keybox صالح، تم الاستبدال بـ keybox AOSP.", "no_valid_fallback": "لم يتم العثور على keybox صالح، تم الاستبدال بـ keybox AOSP.",
"boot_hash_set": "تم حفظ تجزئة التمهيد الموثوق بنجاح", "boot_hash_set": "تم حفظ تجزئة التمهيد الموثوق بنجاح",

View File

@@ -23,7 +23,7 @@
"set_custom_keybox": "Özəl Keybox təyin et", "set_custom_keybox": "Özəl Keybox təyin et",
"set_custom_keybox_description": "Keybox-u cihaz yaddaşından idxal et. Yalnız xml faylını dəstəkləyir.", "set_custom_keybox_description": "Keybox-u cihaz yaddaşından idxal et. Yalnız xml faylını dəstəkləyir.",
"set_security_patch": "Təhlükəsizlik Təkmilləşdirməsini təyin et", "set_security_patch": "Təhlükəsizlik Təkmilləşdirməsini təyin et",
"set_security_patch_description": "Xüsusi təhlükəsizlik təkmilləşdirməsini dəyişdir. Avtomatik konfiqurasiya, PIF modulundan təhlükəsizlik təkmilləşdirməsini istifadə edəcək, bu seçimi aktivdir. Avtomatik konfiqurasiyanı dayandırmaq üçün boş buraxın və yadda saxlayın.", "set_security_patch_description": "Xüsusi təhlükəsizlik təkmilləşdirməsini dəyişdir. Avtomatik konfiqurasiya, PIF modulundan təhlükəsizlik təkmilləşdirməsini istifadə edəcək. Avtomatik konfiqurasiyanı dayandırmaq üçün boş buraxın və yadda saxlayın.",
"set_verified_boot_hash": "Təsdiqlənmiş Boot Hash təyin et", "set_verified_boot_hash": "Təsdiqlənmiş Boot Hash təyin et",
"set_verified_boot_hash_description": "Key Attestation Demo-dan verifiedBootHash dəyərini əldə et. ro.boot.vbmeta.digest-ni sıfırlayaraq qeyri-adi boot vəziyyətini düzəlt." "set_verified_boot_hash_description": "Key Attestation Demo-dan verifiedBootHash dəyərini əldə et. ro.boot.vbmeta.digest-ni sıfırlayaraq qeyri-adi boot vəziyyətini düzəlt."
}, },
@@ -52,6 +52,7 @@
"deselect_unnecessary": "Lazımsızları seçmə", "deselect_unnecessary": "Lazımsızları seçmə",
"add_system_app": "Sistem Tətbiqi Əlavə et", "add_system_app": "Sistem Tətbiqi Əlavə et",
"set_aosp_keybox": "AOSP Keybox təyin et", "set_aosp_keybox": "AOSP Keybox təyin et",
"set_unknow_keybox": "Naməlum Keybox təyin et",
"set_valid_keybox": "Etibarlı Keybox təyin et", "set_valid_keybox": "Etibarlı Keybox təyin et",
"set_custom_keybox": "Özəl Keybox təyin et", "set_custom_keybox": "Özəl Keybox təyin et",
"set_verified_boot_hash": "Təsdiqlənmiş Boot Hash təyin et", "set_verified_boot_hash": "Təsdiqlənmiş Boot Hash təyin et",
@@ -76,6 +77,7 @@
"no_internet": "İnternet bağlantınızı yoxlayın", "no_internet": "İnternet bağlantınızı yoxlayın",
"aosp_key_set": "AOSP keybox uğurla təyin olundu", "aosp_key_set": "AOSP keybox uğurla təyin olundu",
"key_set_error": "Keybox-u yeniləmək mümkün olmadı", "key_set_error": "Keybox-u yeniləmək mümkün olmadı",
"unknown_key_set": "Naməlum keybox uğurla təyin olundu",
"valid_key_set": "Etibarlı keybox uğurla təyin olundu", "valid_key_set": "Etibarlı keybox uğurla təyin olundu",
"no_valid_fallback": "Etibarlı keybox tapılmadı, AOSP keybox ilə dəyişdirildi.", "no_valid_fallback": "Etibarlı keybox tapılmadı, AOSP keybox ilə dəyişdirildi.",
"boot_hash_set": "Təsdiqlənmiş Boot Hash uğurla yadda saxlanıldı", "boot_hash_set": "Təsdiqlənmiş Boot Hash uğurla yadda saxlanıldı",

View File

@@ -23,7 +23,7 @@
"set_custom_keybox": "Set Custom Keybox", "set_custom_keybox": "Set Custom Keybox",
"set_custom_keybox_description": "Import keybox from your device storage. Only support xml file.", "set_custom_keybox_description": "Import keybox from your device storage. Only support xml file.",
"set_security_patch": "Set Security Patch", "set_security_patch": "Set Security Patch",
"set_security_patch_description": "Set custom security patch spoof. Auto config will use security patch from PIF module, enabled by default. Leave blank and save to disable auto config.", "set_security_patch_description": "Set custom security patch spoof. Auto config will use security patch from PIF module. Leave blank and save to disable auto config.",
"set_verified_boot_hash": "Set Verified Boot Hash", "set_verified_boot_hash": "Set Verified Boot Hash",
"set_verified_boot_hash_description": "Get verifiedBootHash value from Key Attestation Demo. Fix abnormal boot state by resetting ro.boot.vbmeta.digest." "set_verified_boot_hash_description": "Get verifiedBootHash value from Key Attestation Demo. Fix abnormal boot state by resetting ro.boot.vbmeta.digest."
}, },
@@ -52,6 +52,7 @@
"deselect_unnecessary": "Deselect Unnecessary", "deselect_unnecessary": "Deselect Unnecessary",
"add_system_app": "Add System App", "add_system_app": "Add System App",
"set_aosp_keybox": "Set AOSP Keybox", "set_aosp_keybox": "Set AOSP Keybox",
"set_unknow_keybox": "Set Unknown Keybox",
"set_valid_keybox": "Set Valid Keybox", "set_valid_keybox": "Set Valid Keybox",
"set_custom_keybox": "Set Custom Keybox", "set_custom_keybox": "Set Custom Keybox",
"set_verified_boot_hash": "Set Verified Boot Hash", "set_verified_boot_hash": "Set Verified Boot Hash",
@@ -76,6 +77,7 @@
"no_internet": "Please check your Internet connection", "no_internet": "Please check your Internet connection",
"aosp_key_set": "AOSP keybox set successfully", "aosp_key_set": "AOSP keybox set successfully",
"key_set_error": "Failed to update keybox", "key_set_error": "Failed to update keybox",
"unknown_key_set": "Unknown keybox set successfully",
"valid_key_set": "Valid keybox set successfully", "valid_key_set": "Valid keybox set successfully",
"no_valid_fallback": "No valid keybox found, replaced with AOSP keybox.", "no_valid_fallback": "No valid keybox found, replaced with AOSP keybox.",
"boot_hash_set": "Verified Boot Hash saved successfully", "boot_hash_set": "Verified Boot Hash saved successfully",

View File

@@ -23,7 +23,7 @@
"set_custom_keybox": "Establecer Keybox Personalizado", "set_custom_keybox": "Establecer Keybox Personalizado",
"set_custom_keybox_description": "Importar keybox desde el almacenamiento de tu dispositivo. Solo soporta archivos xml.", "set_custom_keybox_description": "Importar keybox desde el almacenamiento de tu dispositivo. Solo soporta archivos xml.",
"set_security_patch": "Configurar Parche de Seguridad", "set_security_patch": "Configurar Parche de Seguridad",
"set_security_patch_description": "Configurar parche de seguridad personalizado. La configuración automática usará el parche de seguridad de PIF, habilitado por defecto. Deja en blanco y guarda para deshabilitar la configuración automática.", "set_security_patch_description": "Configurar parche de seguridad personalizado. La configuración automática usará el parche de seguridad de PIF. Deja en blanco y guarda para deshabilitar la configuración automática.",
"set_verified_boot_hash": "Configurar Boot Hash Verificado", "set_verified_boot_hash": "Configurar Boot Hash Verificado",
"set_verified_boot_hash_description": "Obtén el valor de verifiedBootHash del Key Attestation Demo. Corrige un estado de arranque anormal reiniciando ro.boot.vbmeta.digest." "set_verified_boot_hash_description": "Obtén el valor de verifiedBootHash del Key Attestation Demo. Corrige un estado de arranque anormal reiniciando ro.boot.vbmeta.digest."
}, },
@@ -52,6 +52,7 @@
"deselect_unnecessary": "Deseleccionar innecesarios", "deselect_unnecessary": "Deseleccionar innecesarios",
"add_system_app": "Agregar Aplicación del Sistema", "add_system_app": "Agregar Aplicación del Sistema",
"set_aosp_keybox": "Configurar AOSP Keybox", "set_aosp_keybox": "Configurar AOSP Keybox",
"set_unknow_keybox": "Configurar Keybox Desconocido",
"set_valid_keybox": "Configurar Keybox Válido", "set_valid_keybox": "Configurar Keybox Válido",
"set_custom_keybox": "Establecer Keybox Personalizado", "set_custom_keybox": "Establecer Keybox Personalizado",
"set_security_patch": "Configurar Parche de Seguridad", "set_security_patch": "Configurar Parche de Seguridad",
@@ -76,6 +77,7 @@
"no_internet": "Por favor, verifica tu conexión a Internet", "no_internet": "Por favor, verifica tu conexión a Internet",
"aosp_key_set": "AOSP Keybox configurado correctamente", "aosp_key_set": "AOSP Keybox configurado correctamente",
"key_set_error": "Error al actualizar el Keybox", "key_set_error": "Error al actualizar el Keybox",
"unknown_key_set": "Keybox desconocido configurado correctamente",
"valid_key_set": "Keybox válido configurado correctamente", "valid_key_set": "Keybox válido configurado correctamente",
"no_valid_fallback": "No se encontró un keybox válido, reemplazado con AOSP Keybox.", "no_valid_fallback": "No se encontró un keybox válido, reemplazado con AOSP Keybox.",
"boot_hash_set": "Boot Hash verificado guardado correctamente", "boot_hash_set": "Boot Hash verificado guardado correctamente",

View File

@@ -23,7 +23,7 @@
"set_custom_keybox": "Définir une Keybox personnalisée", "set_custom_keybox": "Définir une Keybox personnalisée",
"set_custom_keybox_description": "Importer une keybox depuis le stockage de votre appareil. Seuls les fichiers XML sont pris en charge.", "set_custom_keybox_description": "Importer une keybox depuis le stockage de votre appareil. Seuls les fichiers XML sont pris en charge.",
"set_security_patch": "Définir le patch de sécurité", "set_security_patch": "Définir le patch de sécurité",
"set_security_patch_description": "Définir un patch de sécurité personnalisé. La configuration automatique utilisera le patch de sécurité du module PIF, activée par défaut. Laisser vide et enregistrer pour désactiver la configuration automatique.", "set_security_patch_description": "Définir un patch de sécurité personnalisé. La configuration automatique utilisera le patch de sécurité du module PIF. Laisser vide et enregistrer pour désactiver la configuration automatique.",
"set_verified_boot_hash": "Définir le hash Verified Boot", "set_verified_boot_hash": "Définir le hash Verified Boot",
"set_verified_boot_hash_description": "Obtenir la valeur verifiedBootHash depuis Key Attestation Demo. Corriger un état de démarrage anormal en réinitialisant ro.boot.vbmeta.digest." "set_verified_boot_hash_description": "Obtenir la valeur verifiedBootHash depuis Key Attestation Demo. Corriger un état de démarrage anormal en réinitialisant ro.boot.vbmeta.digest."
}, },
@@ -52,6 +52,7 @@
"deselect_unnecessary": "Désélectionner les applications inutiles", "deselect_unnecessary": "Désélectionner les applications inutiles",
"add_system_app": "Ajouter une application système", "add_system_app": "Ajouter une application système",
"set_aosp_keybox": "Définir une Keybox AOSP", "set_aosp_keybox": "Définir une Keybox AOSP",
"set_unknow_keybox": "Définir une Keybox inconnue",
"set_valid_keybox": "Définir une Keybox valide", "set_valid_keybox": "Définir une Keybox valide",
"set_custom_keybox": "Définir une Keybox personnalisée", "set_custom_keybox": "Définir une Keybox personnalisée",
"set_verified_boot_hash": "Définir le hash Verified Boot", "set_verified_boot_hash": "Définir le hash Verified Boot",
@@ -76,6 +77,7 @@
"no_internet": "Veuillez vérifier votre connexion Internet", "no_internet": "Veuillez vérifier votre connexion Internet",
"aosp_key_set": "Keybox AOSP définie avec succès", "aosp_key_set": "Keybox AOSP définie avec succès",
"key_set_error": "Échec de la mise à jour de la Keybox", "key_set_error": "Échec de la mise à jour de la Keybox",
"unknown_key_set": "Keybox inconnue définie avec succès",
"valid_key_set": "Keybox valide définie avec succès", "valid_key_set": "Keybox valide définie avec succès",
"no_valid_fallback": "Aucune Keybox valide trouvée, remplacée par le Keybox AOSP.", "no_valid_fallback": "Aucune Keybox valide trouvée, remplacée par le Keybox AOSP.",
"boot_hash_set": "Hash Verified Boot enregistré avec succès", "boot_hash_set": "Hash Verified Boot enregistré avec succès",

View File

@@ -23,7 +23,7 @@
"set_custom_keybox": "Gunakan Keybox Kustom", "set_custom_keybox": "Gunakan Keybox Kustom",
"set_custom_keybox_description": "Impor keybox dari penyimpanan perangkat. Hanya mendukung file XML.", "set_custom_keybox_description": "Impor keybox dari penyimpanan perangkat. Hanya mendukung file XML.",
"set_security_patch": "Atur Patch Keamanan", "set_security_patch": "Atur Patch Keamanan",
"set_security_patch_description": "Sesuaikan patch keamanan. Konfigurasi otomatis akan menggunakan patch dari modul PIF dan aktif secara default. Kosongkan dan simpan untuk menonaktifkan konfigurasi otomatis.", "set_security_patch_description": "Sesuaikan patch keamanan. Konfigurasi otomatis akan menggunakan patch dari modul PIF. Kosongkan dan simpan untuk menonaktifkan konfigurasi otomatis.",
"set_verified_boot_hash": "Atur Verified Boot Hash", "set_verified_boot_hash": "Atur Verified Boot Hash",
"set_verified_boot_hash_description": "Ambil nilai verifiedBootHash dari aplikasi Key Attestation Demo. Perbaiki status boot yang bermasalah dengan mereset ro.boot.vbmeta.digest." "set_verified_boot_hash_description": "Ambil nilai verifiedBootHash dari aplikasi Key Attestation Demo. Perbaiki status boot yang bermasalah dengan mereset ro.boot.vbmeta.digest."
}, },
@@ -52,6 +52,7 @@
"deselect_unnecessary": "Batalkan Pilihan yang Tidak Perlu", "deselect_unnecessary": "Batalkan Pilihan yang Tidak Perlu",
"add_system_app": "Tambahkan Aplikasi Sistem", "add_system_app": "Tambahkan Aplikasi Sistem",
"set_aosp_keybox": "Gunakan Keybox AOSP", "set_aosp_keybox": "Gunakan Keybox AOSP",
"set_unknow_keybox": "Gunakan Keybox Tidak Dikenal",
"set_valid_keybox": "Gunakan Keybox Valid", "set_valid_keybox": "Gunakan Keybox Valid",
"set_custom_keybox": "Gunakan Keybox Kustom", "set_custom_keybox": "Gunakan Keybox Kustom",
"set_verified_boot_hash": "Atur Verified Boot Hash", "set_verified_boot_hash": "Atur Verified Boot Hash",
@@ -76,6 +77,7 @@
"no_internet": "Periksa koneksi internet Anda", "no_internet": "Periksa koneksi internet Anda",
"aosp_key_set": "Keybox AOSP berhasil digunakan", "aosp_key_set": "Keybox AOSP berhasil digunakan",
"key_set_error": "Gagal memperbarui keybox", "key_set_error": "Gagal memperbarui keybox",
"unknown_key_set": "Keybox tidak dikenal berhasil digunakan",
"valid_key_set": "Keybox valid berhasil digunakan", "valid_key_set": "Keybox valid berhasil digunakan",
"no_valid_fallback": "Tidak ada keybox valid, menggunakan keybox AOSP.", "no_valid_fallback": "Tidak ada keybox valid, menggunakan keybox AOSP.",
"boot_hash_set": "Verified Boot Hash berhasil disimpan", "boot_hash_set": "Verified Boot Hash berhasil disimpan",

View File

@@ -23,7 +23,7 @@
"set_custom_keybox": "Imposta Keybox Personalizzata", "set_custom_keybox": "Imposta Keybox Personalizzata",
"set_custom_keybox_description": "Importa keybox dalla memoria del tuo dispositivo. Supporta solo file xml.", "set_custom_keybox_description": "Importa keybox dalla memoria del tuo dispositivo. Supporta solo file xml.",
"set_security_patch": "Imposta Patch di Sicurezza", "set_security_patch": "Imposta Patch di Sicurezza",
"set_security_patch_description": "Imposta spoofing patch di sicurezza personalizzato. La configurazione automatica utilizzerà la patch di sicurezza dal modulo PIF, abilitato di default. Lascia vuoto e salva per disabilitare la configurazione automatica.", "set_security_patch_description": "Imposta spoofing patch di sicurezza personalizzato. La configurazione automatica utilizzerà la patch di sicurezza dal modulo PIF. Lascia vuoto e salva per disabilitare la configurazione automatica.",
"set_verified_boot_hash": "Imposta Boot Hash Verificato", "set_verified_boot_hash": "Imposta Boot Hash Verificato",
"set_verified_boot_hash_description": "Ottieni il valore verifiedBootHash da Key Attestation Demo. Correggi lo stato di avvio anomalo reimpostando ro.boot.vbmeta.digest." "set_verified_boot_hash_description": "Ottieni il valore verifiedBootHash da Key Attestation Demo. Correggi lo stato di avvio anomalo reimpostando ro.boot.vbmeta.digest."
}, },
@@ -52,6 +52,7 @@
"deselect_unnecessary": "Deseleziona Non necessari", "deselect_unnecessary": "Deseleziona Non necessari",
"add_system_app": "Aggiungi App di Sistema", "add_system_app": "Aggiungi App di Sistema",
"set_aosp_keybox": "Imposta Keybox AOSP", "set_aosp_keybox": "Imposta Keybox AOSP",
"set_unknow_keybox": "Imposta Keybox Sconosciuta",
"set_valid_keybox": "Imposta Keybox Valida", "set_valid_keybox": "Imposta Keybox Valida",
"set_custom_keybox": "Imposta Keybox Personalizzata", "set_custom_keybox": "Imposta Keybox Personalizzata",
"set_verified_boot_hash": "Imposta Boot Hash Verificato", "set_verified_boot_hash": "Imposta Boot Hash Verificato",
@@ -76,6 +77,7 @@
"no_internet": "Controlla la tua connessione Internet", "no_internet": "Controlla la tua connessione Internet",
"aosp_key_set": "Keybox AOSP impostata correttamente", "aosp_key_set": "Keybox AOSP impostata correttamente",
"key_set_error": "Impossibile aggiornare keybox", "key_set_error": "Impossibile aggiornare keybox",
"unknown_key_set": "Keybox sconosciuta impostata correttamente",
"valid_key_set": "Keybox valida impostata correttamente", "valid_key_set": "Keybox valida impostata correttamente",
"no_valid_fallback": "Nessuna keybox valida trovata, sostituito con keybox AOSP.", "no_valid_fallback": "Nessuna keybox valida trovata, sostituito con keybox AOSP.",
"boot_hash_set": "Boot Hash Verificato salvato correttamente", "boot_hash_set": "Boot Hash Verificato salvato correttamente",

View File

@@ -52,6 +52,7 @@
"deselect_unnecessary": "不要な選択を解除", "deselect_unnecessary": "不要な選択を解除",
"add_system_app": "システムアプリを追加", "add_system_app": "システムアプリを追加",
"set_aosp_keybox": "AOSP Keybox を設定", "set_aosp_keybox": "AOSP Keybox を設定",
"set_unknow_keybox": "不明な Keybox を設定",
"set_valid_keybox": "有効な Keybox を設定", "set_valid_keybox": "有効な Keybox を設定",
"set_custom_keybox": "カスタム Keybox を設定", "set_custom_keybox": "カスタム Keybox を設定",
"set_verified_boot_hash": "確認付きブートハッシュを設定", "set_verified_boot_hash": "確認付きブートハッシュを設定",
@@ -76,6 +77,7 @@
"no_internet": "インターネット接続を確認してください。", "no_internet": "インターネット接続を確認してください。",
"aosp_key_set": "AOSP Keybox の設定に成功しました。", "aosp_key_set": "AOSP Keybox の設定に成功しました。",
"key_set_error": "Keybox の更新に失敗しました。", "key_set_error": "Keybox の更新に失敗しました。",
"unknown_key_set": "不明な Keybox の設定に成功しました。",
"valid_key_set": "有効な Keybox の設定に成功しました。", "valid_key_set": "有効な Keybox の設定に成功しました。",
"no_valid_fallback": "有効な Keybox がありません。AOSP Keybox に置き換えます。", "no_valid_fallback": "有効な Keybox がありません。AOSP Keybox に置き換えます。",
"boot_hash_set": "確認付きブートハッシュの更新に成功しました。", "boot_hash_set": "確認付きブートハッシュの更新に成功しました。",

View File

@@ -23,7 +23,7 @@
"set_custom_keybox": "Ustaw niestandardowy klucz", "set_custom_keybox": "Ustaw niestandardowy klucz",
"set_custom_keybox_description": "Importuj klucz z pamięci urządzenia. Obsługuje tylko pliki xml.", "set_custom_keybox_description": "Importuj klucz z pamięci urządzenia. Obsługuje tylko pliki xml.",
"set_security_patch": "Ustaw poprawkę bezpieczeństwa", "set_security_patch": "Ustaw poprawkę bezpieczeństwa",
"set_security_patch_description": "Ustaw niestandardową poprawkę bezpieczeństwa. Automatyczna konfiguracja użyje poprawki bezpieczeństwa z modułu PIF, domyślnie włączonego. Pozostaw puste i zapisz, aby wyłączyć automatyczną konfigurację.", "set_security_patch_description": "Ustaw niestandardową poprawkę bezpieczeństwa. Automatyczna konfiguracja użyje poprawki bezpieczeństwa z modułu PIF. Pozostaw puste i zapisz, aby wyłączyć automatyczną konfigurację.",
"set_verified_boot_hash": "Ustaw zweryfikowany skrót rozruchowy", "set_verified_boot_hash": "Ustaw zweryfikowany skrót rozruchowy",
"set_verified_boot_hash_description": "Pobierz wartość verifiedBootHash z Key Attestation Demo. Napraw nieprawidłowy stan rozruchu, resetując ro.boot.vbmeta.digest." "set_verified_boot_hash_description": "Pobierz wartość verifiedBootHash z Key Attestation Demo. Napraw nieprawidłowy stan rozruchu, resetując ro.boot.vbmeta.digest."
}, },
@@ -52,6 +52,7 @@
"deselect_unnecessary": "Odznacz niepotrzebne", "deselect_unnecessary": "Odznacz niepotrzebne",
"add_system_app": "Dodaj aplikację systemową", "add_system_app": "Dodaj aplikację systemową",
"set_aosp_keybox": "Ustaw klucz AOSP", "set_aosp_keybox": "Ustaw klucz AOSP",
"set_unknow_keybox": "Ustaw nieznany klucz",
"set_valid_keybox": "Ustaw ważny klucz", "set_valid_keybox": "Ustaw ważny klucz",
"set_custom_keybox": "Ustaw niestandardowy klucz ", "set_custom_keybox": "Ustaw niestandardowy klucz ",
"set_verified_boot_hash": "Ustaw zweryfikowany skrót rozruchowy", "set_verified_boot_hash": "Ustaw zweryfikowany skrót rozruchowy",
@@ -76,6 +77,7 @@
"no_internet": "Sprawdź swoje połączenie internetowe", "no_internet": "Sprawdź swoje połączenie internetowe",
"aosp_key_set": "Klucz AOSP ustawiony pomyślnie", "aosp_key_set": "Klucz AOSP ustawiony pomyślnie",
"key_set_error": "Nie udało się zaktualizować klucza", "key_set_error": "Nie udało się zaktualizować klucza",
"unknown_key_set": "Nieznany klucz został pomyślnie ustawiony",
"valid_key_set": "Prawidłowy klucz został pomyślnie ustawiony", "valid_key_set": "Prawidłowy klucz został pomyślnie ustawiony",
"no_valid_fallback": "Nie znaleziono prawidłowego klucza. Zastąpiono kluczem AOSP.", "no_valid_fallback": "Nie znaleziono prawidłowego klucza. Zastąpiono kluczem AOSP.",
"boot_hash_set": "Zweryfikowano skrót rozruchowy, który został pomyślnie zapisany", "boot_hash_set": "Zweryfikowano skrót rozruchowy, który został pomyślnie zapisany",

View File

@@ -23,7 +23,7 @@
"set_custom_keybox": "Definir uma Keybox personalizada", "set_custom_keybox": "Definir uma Keybox personalizada",
"set_custom_keybox_description": "Importar Keybox do armazenamento do seu dispositivo. Suporta apenas o arquivo XML.", "set_custom_keybox_description": "Importar Keybox do armazenamento do seu dispositivo. Suporta apenas o arquivo XML.",
"set_security_patch": "Definir patch de segurança", "set_security_patch": "Definir patch de segurança",
"set_security_patch_description": "Definir spoof de patch de segurança personalizado. Config automática usará o patch de segurança do módulo PIF, ativado por padrão. Deixe em branco e salve para desativar a configuração automática.", "set_security_patch_description": "Definir spoof de patch de segurança personalizado. Config automática usará o patch de segurança do módulo PIF. Deixe em branco e salve para desativar a configuração automática.",
"set_verified_boot_hash": "Definir Hash de boot verificado", "set_verified_boot_hash": "Definir Hash de boot verificado",
"set_verified_boot_hash_description": "Obter valor de verifiedBootHash de Key Attestation Demo. Corrige abnormal boot state Redefinindo ro.boot.vbmeta.digest. " "set_verified_boot_hash_description": "Obter valor de verifiedBootHash de Key Attestation Demo. Corrige abnormal boot state Redefinindo ro.boot.vbmeta.digest. "
}, },
@@ -52,6 +52,7 @@
"deselect_unnecessary": "Desmarcar desnecessário", "deselect_unnecessary": "Desmarcar desnecessário",
"add_system_app": "Adicionar app do sistema", "add_system_app": "Adicionar app do sistema",
"set_aosp_keybox": "Definir AOSP Keybox", "set_aosp_keybox": "Definir AOSP Keybox",
"set_unknow_keybox": "Definir Keybox Desconhecido",
"set_valid_keybox": "Definir Keybox Válida", "set_valid_keybox": "Definir Keybox Válida",
"set_custom_keybox": "Definir Keybox Custom", "set_custom_keybox": "Definir Keybox Custom",
"set_verified_boot_hash": "Definir Hash de Boot Verificado", "set_verified_boot_hash": "Definir Hash de Boot Verificado",
@@ -76,6 +77,7 @@
"no_internet": "Por favor, verifique sua conexão com a Internet", "no_internet": "Por favor, verifique sua conexão com a Internet",
"aosp_key_set": "AOSP keybox definida com sucesso", "aosp_key_set": "AOSP keybox definida com sucesso",
"key_set_error": "Falha ao atualizar o Keybox", "key_set_error": "Falha ao atualizar o Keybox",
"unknown_key_set": "Keybox desconhecido definido com sucesso",
"valid_key_set": "Keybox válida definida com sucesso", "valid_key_set": "Keybox válida definida com sucesso",
"no_valid_fallback": "Nenhuma Keybox encontrada, substituída por uma Keybox AOSP.", "no_valid_fallback": "Nenhuma Keybox encontrada, substituída por uma Keybox AOSP.",
"boot_hash_set": "Hash de Boot Verificado salvo com sucesso", "boot_hash_set": "Hash de Boot Verificado salvo com sucesso",

View File

@@ -23,7 +23,7 @@
"set_custom_keybox": "Установить пользовательский Keybox", "set_custom_keybox": "Установить пользовательский Keybox",
"set_custom_keybox_description": "Импортируйте файл keybox из вашего устройства в хранилище. Поддерживаются только xml файлы.", "set_custom_keybox_description": "Импортируйте файл keybox из вашего устройства в хранилище. Поддерживаются только xml файлы.",
"set_security_patch": "Установить Security Patch", "set_security_patch": "Установить Security Patch",
"set_security_patch_description": "Установите пользовательский патч безопасности. Автоматическая настройка будет использовать патч безопасности из модуля PIF, включен по умолчанию. Оставьте пустым и сохраните, чтобы отключить автоматическую настройку.", "set_security_patch_description": "Установите пользовательский патч безопасности. Автоматическая настройка будет использовать патч безопасности из модуля PIF. Оставьте пустым и сохраните, чтобы отключить автоматическую настройку.",
"set_verified_boot_hash": "Установить Verified Boot Hash", "set_verified_boot_hash": "Установить Verified Boot Hash",
"set_verified_boot_hash_description": "Получите значение verifiedBootHash из Key Attestation Demo. Исправьте аномальное состояние загрузки, сбросив ro.boot.vbmeta.digest." "set_verified_boot_hash_description": "Получите значение verifiedBootHash из Key Attestation Demo. Исправьте аномальное состояние загрузки, сбросив ro.boot.vbmeta.digest."
}, },
@@ -52,6 +52,7 @@
"deselect_unnecessary": "Отменить выбор ненужных", "deselect_unnecessary": "Отменить выбор ненужных",
"add_system_app": "Добавить системное приложение", "add_system_app": "Добавить системное приложение",
"set_aosp_keybox": "Установить AOSP Keybox", "set_aosp_keybox": "Установить AOSP Keybox",
"set_unknow_keybox": "Установить неизвестный Keybox",
"set_valid_keybox": "Установить действующий Keybox", "set_valid_keybox": "Установить действующий Keybox",
"set_custom_keybox": "Установить пользовательский Keybox", "set_custom_keybox": "Установить пользовательский Keybox",
"set_security_patch": "Установить Security Patch", "set_security_patch": "Установить Security Patch",
@@ -76,6 +77,7 @@
"no_internet": "Пожалуйста, проверьте ваше подключение к интернету", "no_internet": "Пожалуйста, проверьте ваше подключение к интернету",
"aosp_key_set": "AOSP keybox успешно установлен", "aosp_key_set": "AOSP keybox успешно установлен",
"key_set_error": "Не удалось обновить keybox", "key_set_error": "Не удалось обновить keybox",
"unknown_key_set": "Неизвестный keybox успешно установлен",
"valid_key_set": "Действующий keybox успешно установлен", "valid_key_set": "Действующий keybox успешно установлен",
"no_valid_fallback": "Не найден действующий keybox, заменен на AOSP keybox.", "no_valid_fallback": "Не найден действующий keybox, заменен на AOSP keybox.",
"boot_hash_set": "Verified Boot Hash успешно сохранен", "boot_hash_set": "Verified Boot Hash успешно сохранен",

View File

@@ -23,7 +23,7 @@
"set_custom_keybox": "I-set ang Custom Keybox", "set_custom_keybox": "I-set ang Custom Keybox",
"set_custom_keybox_description": "Mag-import ng custom keybox mula sa iyong device storage. Sumusuporta lamang ng xml file.", "set_custom_keybox_description": "Mag-import ng custom keybox mula sa iyong device storage. Sumusuporta lamang ng xml file.",
"set_security_patch": "I-set ang Security Patch", "set_security_patch": "I-set ang Security Patch",
"set_security_patch_description": "I-set ang custom security patch. Ang auto config ay mag-use ng security patch mula sa PIF module, default enabled. I-leave blank at i-save para i-disable ang auto config.", "set_security_patch_description": "I-set ang custom security patch. Ang auto config ay mag-use ng security patch mula sa PIF module. I-leave blank at i-save para i-disable ang auto config.",
"set_verified_boot_hash": "I-set ang Verified Boot Hash", "set_verified_boot_hash": "I-set ang Verified Boot Hash",
"set_verified_boot_hash_description": "Kunin ang verifiedBootHash mula sa Key Attestation Demo. Ayusin ang abnormal na boot state sa pamamagitan ng pag-reset ng ro.boot.vbmeta.digest." "set_verified_boot_hash_description": "Kunin ang verifiedBootHash mula sa Key Attestation Demo. Ayusin ang abnormal na boot state sa pamamagitan ng pag-reset ng ro.boot.vbmeta.digest."
}, },
@@ -52,6 +52,7 @@
"deselect_unnecessary": "Huwag Pumili ng Hindi Kinakailangan", "deselect_unnecessary": "Huwag Pumili ng Hindi Kinakailangan",
"add_system_app": "Magdagdag ng System App", "add_system_app": "Magdagdag ng System App",
"set_aosp_keybox": "I-set ang AOSP Keybox", "set_aosp_keybox": "I-set ang AOSP Keybox",
"set_unknow_keybox": "I-set ang Hindi Kilalang Keybox",
"set_valid_keybox": "I-set ang Valid Keybox", "set_valid_keybox": "I-set ang Valid Keybox",
"set_custom_keybox": "I-set ang Custom Keybox", "set_custom_keybox": "I-set ang Custom Keybox",
"set_verified_boot_hash": "I-set ang Verified Boot Hash", "set_verified_boot_hash": "I-set ang Verified Boot Hash",
@@ -76,6 +77,7 @@
"no_internet": "Pakitingnan ang iyong koneksyon sa Internet", "no_internet": "Pakitingnan ang iyong koneksyon sa Internet",
"aosp_key_set": "Matagumpay na na-set ang AOSP Keybox", "aosp_key_set": "Matagumpay na na-set ang AOSP Keybox",
"key_set_error": "Nabigong i-update ang keybox", "key_set_error": "Nabigong i-update ang keybox",
"unknown_key_set": "Matagumpay na na-set ang Hindi Kilalang Keybox",
"valid_key_set": "Matagumpay na na-set ang Valid Keybox", "valid_key_set": "Matagumpay na na-set ang Valid Keybox",
"no_valid_fallback": "Walang valid na keybox na natagpuan, pinalitan ng AOSP keybox.", "no_valid_fallback": "Walang valid na keybox na natagpuan, pinalitan ng AOSP keybox.",
"boot_hash_set": "Matagumpay na na-save ang Verified Boot Hash", "boot_hash_set": "Matagumpay na na-save ang Verified Boot Hash",

View File

@@ -52,6 +52,7 @@
"deselect_unnecessary": "Gereksizleri Seçme", "deselect_unnecessary": "Gereksizleri Seçme",
"add_system_app": "Sistem Uygulaması Ekle", "add_system_app": "Sistem Uygulaması Ekle",
"set_aosp_keybox": "AOSP Keybox Ayarla", "set_aosp_keybox": "AOSP Keybox Ayarla",
"set_unknow_keybox": "Bilinmeyen Keybox Ayarla",
"set_valid_keybox": "Geçerli Keybox Ayarla", "set_valid_keybox": "Geçerli Keybox Ayarla",
"set_custom_keybox": "Özel Keybox Ayarla", "set_custom_keybox": "Özel Keybox Ayarla",
"set_security_patch": "Güvenlik Yaması Ayarla", "set_security_patch": "Güvenlik Yaması Ayarla",
@@ -76,6 +77,7 @@
"no_internet": "Lütfen internet bağlantınızı kontrol edin", "no_internet": "Lütfen internet bağlantınızı kontrol edin",
"aosp_key_set": "AOSP keybox başarıyla ayarlandı", "aosp_key_set": "AOSP keybox başarıyla ayarlandı",
"key_set_error": "Keybox güncellenemedi", "key_set_error": "Keybox güncellenemedi",
"unknown_key_set": "Bilinmeyen keybox başarıyla ayarlandı",
"valid_key_set": "Geçerli keybox başarıyla ayarlandı", "valid_key_set": "Geçerli keybox başarıyla ayarlandı",
"no_valid_fallback": "Geçerli keybox bulunamadı, AOSP keybox ile değiştirildi.", "no_valid_fallback": "Geçerli keybox bulunamadı, AOSP keybox ile değiştirildi.",
"boot_hash_set": "Doğrulanmış Boot Hash başarıyla kaydedildi", "boot_hash_set": "Doğrulanmış Boot Hash başarıyla kaydedildi",

View File

@@ -23,7 +23,7 @@
"set_custom_keybox": "设置自定义密钥", "set_custom_keybox": "设置自定义密钥",
"set_custom_keybox_description": "从设备存储导入自定义密钥。仅支持 xml 文件。", "set_custom_keybox_description": "从设备存储导入自定义密钥。仅支持 xml 文件。",
"set_security_patch": "设置安全补丁", "set_security_patch": "设置安全补丁",
"set_security_patch_description": "设置自定义安全补丁。自动配置将使用 PIF 模块的安全补丁,默认启用。留空保存则禁用自动配置。", "set_security_patch_description": "设置自定义安全补丁。自动配置将使用 PIF 模块的安全补丁。留空保存则禁用自动配置。",
"set_verified_boot_hash": "设置哈希值", "set_verified_boot_hash": "设置哈希值",
"set_verified_boot_hash_description": "从 Key Attestation Demo 获取 verifiedBootHash哈希值。通过重置 ro.boot.vbmeta.digest 修复异常 boot 状态。" "set_verified_boot_hash_description": "从 Key Attestation Demo 获取 verifiedBootHash哈希值。通过重置 ro.boot.vbmeta.digest 修复异常 boot 状态。"
}, },
@@ -52,6 +52,7 @@
"deselect_unnecessary": "取消选择非必要应用", "deselect_unnecessary": "取消选择非必要应用",
"add_system_app": "添加系统应用", "add_system_app": "添加系统应用",
"set_aosp_keybox": "设置 AOSP 密钥", "set_aosp_keybox": "设置 AOSP 密钥",
"unknown_key_set": "设置未知密钥",
"set_valid_keybox": "设置有效密钥", "set_valid_keybox": "设置有效密钥",
"set_custom_keybox": "设置自定义密钥", "set_custom_keybox": "设置自定义密钥",
"set_security_patch": "设置安全补丁", "set_security_patch": "设置安全补丁",
@@ -76,6 +77,7 @@
"no_internet": "请检查您的网络连接", "no_internet": "请检查您的网络连接",
"aosp_key_set": "成功设置 AOSP 密钥", "aosp_key_set": "成功设置 AOSP 密钥",
"key_set_error": "更新密钥失败", "key_set_error": "更新密钥失败",
"unknown_key_set": "成功设置未知密钥",
"valid_key_set": "成功设置有效密钥", "valid_key_set": "成功设置有效密钥",
"no_valid_fallback": "未找到有效密钥,已替换为 AOSP 密钥。", "no_valid_fallback": "未找到有效密钥,已替换为 AOSP 密钥。",
"boot_hash_set": "哈希值重置成功", "boot_hash_set": "哈希值重置成功",

View File

@@ -23,7 +23,7 @@
"set_custom_keybox": "設置自定義密鑰", "set_custom_keybox": "設置自定義密鑰",
"set_custom_keybox_description": "從設備存儲導入自定義密鑰。僅支持 xml 文件。", "set_custom_keybox_description": "從設備存儲導入自定義密鑰。僅支持 xml 文件。",
"set_security_patch": "設置安全補丁", "set_security_patch": "設置安全補丁",
"set_security_patch_description": "設置自定義安全補丁。自動配置將使用 PIF 模組的安全補丁,預設啟用。留空保存則禁用自動配置。", "set_security_patch_description": "設置自定義安全補丁。自動配置將使用 PIF 模組的安全補丁。留空保存則禁用自動配置。",
"set_verified_boot_hash": "設置哈希值", "set_verified_boot_hash": "設置哈希值",
"set_verified_boot_hash_description": "從 Key Attestation Demo 獲取 verifiedBootHash哈希值。通過重置 ro.boot.vbmeta.digest 修復異常 boot 狀態。" "set_verified_boot_hash_description": "從 Key Attestation Demo 獲取 verifiedBootHash哈希值。通過重置 ro.boot.vbmeta.digest 修復異常 boot 狀態。"
}, },
@@ -52,6 +52,7 @@
"deselect_unnecessary": "取消選擇非必要應用", "deselect_unnecessary": "取消選擇非必要應用",
"add_system_app": "添加系統應用", "add_system_app": "添加系統應用",
"set_aosp_keybox": "設置 AOSP 密鑰", "set_aosp_keybox": "設置 AOSP 密鑰",
"set_unknow_keybox": "設置未知密鑰",
"set_valid_keybox": "設置有效密鑰", "set_valid_keybox": "設置有效密鑰",
"set_custom_keybox": "設置自定義密鑰", "set_custom_keybox": "設置自定義密鑰",
"set_security_patch": "設置安全補丁", "set_security_patch": "設置安全補丁",
@@ -76,6 +77,7 @@
"no_internet": "請檢查您的網絡連接", "no_internet": "請檢查您的網絡連接",
"aosp_key_set": "成功設置 AOSP 密鑰", "aosp_key_set": "成功設置 AOSP 密鑰",
"key_set_error": "更新密鑰失敗", "key_set_error": "更新密鑰失敗",
"unknown_key_set": "成功設置未知密鑰",
"valid_key_set": "成功設置有效密鑰", "valid_key_set": "成功設置有效密鑰",
"no_valid_fallback": "未找到有效密鑰,已替換為 AOSP 密鑰。", "no_valid_fallback": "未找到有效密鑰,已替換為 AOSP 密鑰。",
"boot_hash_set": "哈希值重置成功", "boot_hash_set": "哈希值重置成功",

View File

@@ -179,13 +179,18 @@ export async function setupSystemAppMenu() {
} }
} }
// Function to backup previous keybox and set new keybox /**
* Backup previous keybox and set new keybox
* @param {String} content - kb content to save
* @returns {Boolean}
*/
async function setKeybox(content) { async function setKeybox(content) {
const sanitizedContent = content.replace(/'/g, "'\\''");
try { try {
await execCommand(` await execCommand(`
mv -f /data/adb/tricky_store/keybox.xml /data/adb/tricky_store/keybox.xml.bak 2>/dev/null mv -f /data/adb/tricky_store/keybox.xml /data/adb/tricky_store/keybox.xml.bak 2>/dev/null
echo '${sanitizedContent}' > /data/adb/tricky_store/keybox.xml cat << 'KB_EOF' > /data/adb/tricky_store/keybox.xml
${content}
KB_EOF
chmod 644 /data/adb/tricky_store/keybox.xml chmod 644 /data/adb/tricky_store/keybox.xml
`); `);
return true; return true;
@@ -213,15 +218,21 @@ async function aospkb() {
// aosp kb eventlistener // aosp kb eventlistener
document.getElementById("aospkb").addEventListener("click", async () => aospkb()); document.getElementById("aospkb").addEventListener("click", async () => aospkb());
// valid kb eventlistener /**
document.getElementById("validkb").addEventListener("click", async () => { * Fetch encoded keybox and decode
fetch("https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/main/.extra") * @param {String} link - link to fetch
* @param {String} fallbackLink - fallback link
* @param {Boolean} valid - fetching valid kb or not, default = false
* @returns {void}
*/
async function fetchkb(link, fallbackLink, valid = false) {
fetch(link)
.then(response => { .then(response => {
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`); if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
return response.text(); return response.text();
}) })
.catch(async () => { .catch(async () => {
return fetch("https://raw.gitmirror.com/KOWX712/Tricky-Addon-Update-Target-List/main/.extra") return fetch(fallbackLink)
.then(response => { .then(response => {
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`); if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
return response.text(); return response.text();
@@ -229,8 +240,12 @@ document.getElementById("validkb").addEventListener("click", async () => {
}) })
.then(async data => { .then(async data => {
if (!data.trim()) { if (!data.trim()) {
await aospkb(); if (valid) {
showPrompt("prompt.no_valid_fallback", false); await aospkb();
showPrompt("prompt.no_valid_fallback", false);
} else {
showPrompt("prompt.key_set_error", false);
}
return; return;
} }
try { try {
@@ -239,7 +254,7 @@ document.getElementById("validkb").addEventListener("click", async () => {
const source = atob(decodedHex); const source = atob(decodedHex);
const result = await setKeybox(source); const result = await setKeybox(source);
if (result) { if (result) {
showPrompt("prompt.valid_key_set"); showPrompt(valid ? "prompt.valid_key_set" : "prompt.unknown_key_set");
} else { } else {
throw new Error("Failed to copy valid keybox"); throw new Error("Failed to copy valid keybox");
} }
@@ -250,6 +265,23 @@ document.getElementById("validkb").addEventListener("click", async () => {
.catch(async error => { .catch(async error => {
showPrompt("prompt.no_internet", false); showPrompt("prompt.no_internet", false);
}); });
}
// unkown kb eventlistener
document.getElementById("devicekb").addEventListener("click", async () => {
fetchkb(
"https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/bot/.device",
"https://raw.gitmirror.com/KOWX712/Tricky-Addon-Update-Target-List/bot/.device"
)
});
// valid kb eventlistener
document.getElementById("validkb").addEventListener("click", () => {
fetchkb(
"https://raw.githubusercontent.com/KOWX712/Tricky-Addon-Update-Target-List/main/.extra",
"https://raw.gitmirror.com/KOWX712/Tricky-Addon-Update-Target-List/main/.extra",
true
)
}); });
// File selector // File selector