diff --git a/app/src/main/java/com/topjohnwu/magisk/MainActivity.java b/app/src/main/java/com/topjohnwu/magisk/MainActivity.java index 4c1da9d80..98af3ca30 100644 --- a/app/src/main/java/com/topjohnwu/magisk/MainActivity.java +++ b/app/src/main/java/com/topjohnwu/magisk/MainActivity.java @@ -81,6 +81,7 @@ public class MainActivity extends Activity navigationView.setNavigationItemSelectedListener(this); getApplicationContext().reloadMainActivity.register(this); + getApplicationContext().updateCheckDone.register(this); } @@ -105,6 +106,7 @@ public class MainActivity extends Activity @Override protected void onDestroy() { getApplicationContext().reloadMainActivity.unRegister(this); + getApplicationContext().updateCheckDone.unRegister(this); super.onDestroy(); } @@ -126,7 +128,11 @@ public class MainActivity extends Activity @Override public void onTrigger(CallbackEvent event) { - recreate(); + if (event == getApplicationContext().reloadMainActivity) { + recreate(); + } else if (event == getApplicationContext().updateCheckDone) { + checkHideSection(); + } } private void checkHideSection() { diff --git a/app/src/main/java/com/topjohnwu/magisk/SettingsActivity.java b/app/src/main/java/com/topjohnwu/magisk/SettingsActivity.java index 2fa2230cf..542c482ce 100644 --- a/app/src/main/java/com/topjohnwu/magisk/SettingsActivity.java +++ b/app/src/main/java/com/topjohnwu/magisk/SettingsActivity.java @@ -89,10 +89,6 @@ public class SettingsActivity extends Activity { prefs = PreferenceManager.getDefaultSharedPreferences(getActivity()); prefScreen = getPreferenceScreen(); - SwitchPreference busybox = (SwitchPreference) findPreference("busybox"); - SwitchPreference magiskHide = (SwitchPreference) findPreference("magiskhide"); - SwitchPreference hosts = (SwitchPreference) findPreference("hosts"); - PreferenceCategory magiskCategory = (PreferenceCategory) findPreference("magisk"); PreferenceCategory suCategory = (PreferenceCategory) findPreference("superuser"); @@ -118,11 +114,6 @@ public class SettingsActivity extends Activity { if (getApplication().magiskVersion < 11) { prefScreen.removePreference(magiskCategory); } - if (getApplication().disabled) { - busybox.setEnabled(false); - magiskHide.setEnabled(false); - hosts.setEnabled(false); - } } } diff --git a/app/src/main/java/com/topjohnwu/magisk/SplashActivity.java b/app/src/main/java/com/topjohnwu/magisk/SplashActivity.java index b83e1e062..bf7117bf3 100644 --- a/app/src/main/java/com/topjohnwu/magisk/SplashActivity.java +++ b/app/src/main/java/com/topjohnwu/magisk/SplashActivity.java @@ -44,8 +44,8 @@ public class SplashActivity extends Activity{ // Now fire all async tasks new GetBootBlocks(this).exec(); - if (magiskManager.magiskHide && !magiskManager.disabled && - magiskManager.magiskVersion > 11 && !magiskManager.magiskHideStarted) { + if (magiskManager.magiskHide && magiskManager.magiskVersion > 11 && + !magiskManager.magiskHideStarted) { new MagiskHide().enable(); } new LoadModules(this) { diff --git a/app/src/main/java/com/topjohnwu/magisk/StatusFragment.java b/app/src/main/java/com/topjohnwu/magisk/StatusFragment.java index ffc63ee7e..d74ba9e66 100644 --- a/app/src/main/java/com/topjohnwu/magisk/StatusFragment.java +++ b/app/src/main/java/com/topjohnwu/magisk/StatusFragment.java @@ -65,7 +65,9 @@ public class StatusFragment extends Fragment implements CallbackEvent.Listener 0) { + ((MainActivity) getActivity()).navigate(R.id.install); + } } private int defaultColor; @@ -159,7 +161,7 @@ public class StatusFragment extends Fragment implements CallbackEvent.Listener Nainstalován Magisk v%1$s - Magisk v%1$s deaktivován Magisk není nainstalován Kontrola aktualizací… @@ -133,8 +132,6 @@ Smazat Uchovanou Mezipaměť Smaže informace online použití v Mezipaměti, donutí aplikaci obnovit informace online - Zakázat Magisk - Všechno kromě rootu (MagiskSU) bude deaktivováno Skryje root (MagiskSU) před různými aplikacemi Povolit BusyBox Nasadí vestavěný Magisk busybox do xbin @@ -193,5 +190,6 @@ PID:\u0020 Cílové UID:\u0020 Příkaz:\u0020 + diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 16360bcc6..687388bcb 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -17,7 +17,6 @@ Magisk %1$s ist installiert - Magisk %1$s ist deaktiviert Magisk ist nicht installiert Suche nach Updates… @@ -136,8 +135,6 @@ Repo-Cache löschen Löscht die zwischengespeicherten Informationen der Online-Repos. Erzwingt eine Aktualisierung - Magisk deaktivieren - Deaktiviert alles außer den root-Zugang (MagiskSU) Versteckt Magisk vor diversen Entdeckungsmethoden BusyBox aktivieren Magisk\'s integriertes BusyBox nach xbin mounten diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 0d641e1a2..6a812edde 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -14,7 +14,6 @@ Instalado Magisk v%1$s - Magisk v%1$s está deshabilitado Magisk no está instalado Comprobando actualizaciones… @@ -126,8 +125,6 @@ Limpiar caché del repositorio Limpiar la información en caché para los repositorios en línea, fuerza a la aplicación a actualizar en línea - Deshabilitar Magisk - Todo será desactivado excepto el root (MagiskSU) Ocultar Magisk de varias detecciones Habilitar BusyBox Montar el busybox interno de Magisk en xbin diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index 3a2df6fc2..c5d5c1c1d 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -16,7 +16,6 @@ Versione Magisk: v%1$s Hai installato Magisk? - Magisk v%1$s disabilitato Controlla aggiornamenti… Magisk v%1$.1f update! Impossibile controllare aggiornamenti @@ -135,8 +134,6 @@ Pulisci Cache Repo Clear the cached information for online repos, forces the app to refresh online - Disabilita Magisk - Tutto sarà disattivato tranne il Root (MagiskSU) Hide Magisk from various detections Abilita BusyBox Bind mount Magisk\'s built-in busybox to xbin diff --git a/app/src/main/res/values-ko/strings.xml b/app/src/main/res/values-ko/strings.xml index ee1d4d7db..318dab4ec 100644 --- a/app/src/main/res/values-ko/strings.xml +++ b/app/src/main/res/values-ko/strings.xml @@ -14,7 +14,6 @@ Magisk v%1$s 설치됨 - Magisk v%1$s 비활성화됨 Magisk가 설치되지 않음 업데이트 확인 중… @@ -124,8 +123,6 @@ 저장소 캐시 비우기 온라인 저장소에 대해 캐시된 정보를 지우고, 온라인에서 정보를 강제로 새로 고칩니다. - Magisk 비활성화 - 루팅(MagiskSU)을 제외한 모든 것이 비활성화됩니다. 다양한 감지로부터 Magisk를 숨깁니다. BusyBox 사용 xbin 디렉터리에 Magisk의 빌트인 busybox를 바인드합니다. diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index dfa5cada7..20c77f66e 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -17,7 +17,6 @@ Zainstalowany Magisk v%1$s - Magisk v%1$s wyłaczony Magisk nie jest zainstalowany Sprawdzanie aktualizacji… @@ -136,8 +135,6 @@ Wyczyść Pamięć Repozytorium Wymusza na aplikacji odświeżenie online repozytorium - Wyłącz Magisk - Wszystko zostanie wyłączone za wyjątkiem roota (MagiskSU) Włącz Hide Magisk dla wykrytych aplikacji Włącz BusyBox Zmień montowanie Magisk z wbudowanego busybox do xbin diff --git a/app/src/main/res/values-pt/strings.xml b/app/src/main/res/values-pt/strings.xml index df8b71f56..8a4af75ec 100644 --- a/app/src/main/res/values-pt/strings.xml +++ b/app/src/main/res/values-pt/strings.xml @@ -180,8 +180,6 @@ PID:\u0020 Alvo UID:\u0020 Comando:\u0020 - Desativar Magic Mount - Desativa Magic Mount, Isso impedirá que todos os módulos funcionem - - + + diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 870a54a97..f57523bf1 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -12,7 +12,6 @@ Установлен Magisk v%1$s - Magisk v%1$s выключен Magisk не установлен Проверка обновлений… @@ -119,8 +118,6 @@ Очистить кэш репозиториев Удалить сохранённую информацию о сетевых репозиториях, чтобы приложение обновило информацию из сети - Отключить Magisk - Будет выключено все, кроме рута (MagiskSU) Скрыть Magisk от различных проверок Включить BusyBox Примонтировать встроенный busybox из Magisk в xbin diff --git a/app/src/main/res/values-tr/strings.xml b/app/src/main/res/values-tr/strings.xml index 9690fcba5..6f9711649 100644 --- a/app/src/main/res/values-tr/strings.xml +++ b/app/src/main/res/values-tr/strings.xml @@ -12,8 +12,7 @@ Magisk v%1$s yüklü - Magisk v%1$s devre dışı - Magisk yüklü değil + Magisk yüklü değil Güncelleştirmeler denetleniyor… Magisk v%1$.1f mevcut! @@ -131,9 +130,7 @@ Repo Önbelleğini Temizle Çevrimiçi repolar için önbellek bilgilerini temizle, uygulamayı çevrimiçi yenilemeye zorla - "Magisk'i devre dışı bırak" - Root (MagiskSU) dışında her şey devre dışı bırakılır - "Magisk'i çeşitli algılamalardan gizle" + "Magisk'i çeşitli algılamalardan gizle" "BusyBox'ı etkinleştir" "Magisk'in dahili busybox'ını xbin'e bağla" Sistemsiz host diff --git a/app/src/main/res/values-vi/strings.xml b/app/src/main/res/values-vi/strings.xml index ff1961451..4f6c254af 100644 --- a/app/src/main/res/values-vi/strings.xml +++ b/app/src/main/res/values-vi/strings.xml @@ -1,12 +1,9 @@ - Magisk Manager - Magisk Mở thanh điều hướng Đóng thanh điều hướng - Magisk Hide Mô-đun Tải xuống Superuser @@ -17,7 +14,6 @@ Đã cài Magisk v%1$s - Magisk v%1$s disabled Magisk chưa được cài đặt Đang kiểm tra cập nhật… @@ -136,8 +132,6 @@ Xoá bộ đệm kho Xoá thông tin truy cập nhật về các kho mô-đun, buộc ứng dụng làm mới trực tuyến - Vô hiệu Magisk - Vô hiệu tất cả trừ root (MagiskSU) Ẩn Magisk khỏi nhiều phương thức phát hiện Dùng BusyBox Gắn kết busy có sẵn của Magisk tới xbin diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 31b518ba6..ad4d87879 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -14,7 +14,7 @@ 已安装 Magisk v%1$s - 已禁用 Magisk v%1$s + 已安装 Magisk v%1$s (仅核心功能) 未安装 Magisk 正在检查更新… @@ -128,8 +128,7 @@ 清除资源库缓存 清除已缓存的在线资源库信息,强制刷新在线数据 - 禁用 Magisk - 除 ROOT (MagiskSU) 以外,其他都将被禁用 + 仅启用核心功能,所有模组将不会被载入。MagiskSU丶MagiskHide丶systemless hosts丶和 busybox 仍会持续运作 隐藏 Magisk 使其不被多种方法检测到 启用 BusyBox 将 Magisk 内置的 Busybox 挂载到 xbin @@ -188,5 +187,6 @@ PID:\u0020 目标 UID:\u0020 命令:\u0020 + Magisk 核心功能模式 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index e9a019c45..bc92c8ab7 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -14,7 +14,6 @@ 已安裝 Magisk v%1$s - 已禁用 Magisk v%1$s 未安裝 Magisk 正在檢查更新… @@ -120,8 +119,7 @@ 清除資源庫快取 清除已暫存的在線資源庫快取,強制刷新在線數據 - 禁用 Magisk - 除 ROOT (MagiskSU) 以外,其他都將被禁用 + Magisk 核心功能模式 隱藏 Magisk 使其不被多種方法檢測到 啟用 BusyBox 將 Magisk 內置的 Busybox 掛載到 xbin @@ -193,5 +191,7 @@ (無法自動偵測) 有更新的時候顯示通知 更新通知 + 已安裝 Magisk v%1$s (僅核心功能) + 僅啟用核心功能,所有模組將不會被載入。MagiskSU、MagiskHide、systemless hosts、和 busybox 仍會持續運作 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d306c2bd2..539c3482c 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -17,7 +17,7 @@ Installed Magisk v%1$s - Magisk v%1$s disabled + Installed Magisk v%1$s (Core Only Mode) Magisk not installed Checking for updates… @@ -136,8 +136,8 @@ Clear Repo Cache Clear the cached information for online repos, forces the app to refresh online - Disable Magisk - Everything will be disabled except root (MagiskSU) + Magisk Core Only Mode + Enable only core features, all modules will not be loaded. MagiskSU, MagiskHide, systemless hosts, and busybox will still be enabled Hide Magisk from various detections Enable BusyBox Bind mount Magisk\'s built-in busybox to xbin diff --git a/app/src/main/res/xml/app_settings.xml b/app/src/main/res/xml/app_settings.xml index 9774ba8f9..c83eecdb0 100644 --- a/app/src/main/res/xml/app_settings.xml +++ b/app/src/main/res/xml/app_settings.xml @@ -10,7 +10,7 @@ android:summary="@string/settings_dark_theme_summary" android:key="dark_theme" /> - @@ -28,8 +28,8 @@ + android:title="@string/settings_core_only_title" + android:summary="@string/settings_core_only_summary" />