From cac3430d3325cf5e8fc4bf1be28fae0010aaa0f7 Mon Sep 17 00:00:00 2001 From: Wang Han <416810799@qq.com> Date: Sun, 22 Dec 2024 20:20:35 +0800 Subject: [PATCH] Migrate config dir to /data/misc (#304) --- .../ui/fragment/SettingsFragment.kt | 2 +- app/src/main/res/values-af-rZA/strings.xml | 2 +- app/src/main/res/values-ar-rSA/strings.xml | 2 +- app/src/main/res/values-ca-rES/strings.xml | 2 +- app/src/main/res/values-cs-rCZ/strings.xml | 2 +- app/src/main/res/values-da-rDK/strings.xml | 2 +- app/src/main/res/values-de-rDE/strings.xml | 2 +- app/src/main/res/values-el-rGR/strings.xml | 2 +- app/src/main/res/values-es-rES/strings.xml | 2 +- app/src/main/res/values-fi-rFI/strings.xml | 2 +- app/src/main/res/values-fr-rFR/strings.xml | 2 +- app/src/main/res/values-hu-rHU/strings.xml | 2 +- app/src/main/res/values-it-rIT/strings.xml | 2 +- app/src/main/res/values-iw-rIL/strings.xml | 2 +- app/src/main/res/values-ja-rJP/strings.xml | 2 +- app/src/main/res/values-ko-rKR/strings.xml | 2 +- app/src/main/res/values-nl-rNL/strings.xml | 2 +- app/src/main/res/values-no-rNO/strings.xml | 2 +- app/src/main/res/values-pl-rPL/strings.xml | 2 +- app/src/main/res/values-pt-rBR/strings.xml | 2 +- app/src/main/res/values-pt-rPT/strings.xml | 2 +- app/src/main/res/values-ro-rRO/strings.xml | 2 +- app/src/main/res/values-ru-rRU/strings.xml | 2 +- app/src/main/res/values-sr-rSP/strings.xml | 2 +- app/src/main/res/values-sv-rSE/strings.xml | 2 +- app/src/main/res/values-tr-rTR/strings.xml | 2 +- app/src/main/res/values-uk-rUA/strings.xml | 2 +- app/src/main/res/values-vi-rVN/strings.xml | 2 +- app/src/main/res/values-zh-rCN/strings.xml | 2 +- app/src/main/res/values-zh-rTW/strings.xml | 2 +- app/src/main/res/values/strings.xml | 2 +- gradle/libs.versions.toml | 14 ++++++------- gradle/wrapper/gradle-wrapper.properties | 2 +- .../hidemyapplist/xposed/HMAService.kt | 21 +++++++++++++++---- 34 files changed, 56 insertions(+), 43 deletions(-) diff --git a/app/src/main/java/icu/nullptr/hidemyapplist/ui/fragment/SettingsFragment.kt b/app/src/main/java/icu/nullptr/hidemyapplist/ui/fragment/SettingsFragment.kt index 57f30aa..0b90cc5 100644 --- a/app/src/main/java/icu/nullptr/hidemyapplist/ui/fragment/SettingsFragment.kt +++ b/app/src/main/java/icu/nullptr/hidemyapplist/ui/fragment/SettingsFragment.kt @@ -250,7 +250,7 @@ class SettingsFragment : Fragment(R.layout.fragment_settings), PreferenceFragmen .setTitle(R.string.settings_force_clean_env) .setMessage(R.string.settings_is_clean_env_summary) .setPositiveButton(android.R.string.ok) { _, _ -> - val result = SuUtils.execPrivileged("rm -rf /data/system/hide_my_applist*") + val result = SuUtils.execPrivileged("rm -rf /data/misc/hide_my_applist*") if (result) makeToast(R.string.settings_force_clean_env_toast_successful) else makeToast(R.string.settings_permission_denied) } diff --git a/app/src/main/res/values-af-rZA/strings.xml b/app/src/main/res/values-af-rZA/strings.xml index d0e2cd6..9034fcd 100644 --- a/app/src/main/res/values-af-rZA/strings.xml +++ b/app/src/main/res/values-af-rZA/strings.xml @@ -114,7 +114,7 @@ Stop system service Need reboot to restart service Clean runtime environment at the same time? - Remove system service cache in /data/system/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. + Remove system service cache in /data/misc/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-ar-rSA/strings.xml b/app/src/main/res/values-ar-rSA/strings.xml index 362d197..e22d0d9 100644 --- a/app/src/main/res/values-ar-rSA/strings.xml +++ b/app/src/main/res/values-ar-rSA/strings.xml @@ -114,7 +114,7 @@ إيقاف خدمة النظام تحتاج إلى إعادة التشغيل لإعادة تشغيل الخدمة تنظيف بيئة التشغيل في نفس الوقت؟ - إزالة التخزين المؤقت لخدمة النظام في /data/system/hide_my_applist_*. هذا يعني أنك ستحتاج إلى تشغيل الوحدة مرة واحدة يدويا بعد إعادة التشغيل التالي حتي تعمل الاعتراضات، وسيتم أيضا تنظيف عمليات الاعتراض. + إزالة التخزين المؤقت لخدمة النظام في /data/misc/hide_my_applist_*. هذا يعني أنك ستحتاج إلى تشغيل الوحدة مرة واحدة يدويا بعد إعادة التشغيل التالي حتي تعمل الاعتراضات، وسيتم أيضا تنظيف عمليات الاعتراض. إجبار تنظيف بيئة العمل (جذر) فقط إذا فشلت خدمة النظام في البَدْء، وإلا يجب عليك أن تضغط علي الخِيار أعلاه. تـم تنظيف بيئة التشغيل diff --git a/app/src/main/res/values-ca-rES/strings.xml b/app/src/main/res/values-ca-rES/strings.xml index d0e2cd6..9034fcd 100644 --- a/app/src/main/res/values-ca-rES/strings.xml +++ b/app/src/main/res/values-ca-rES/strings.xml @@ -114,7 +114,7 @@ Stop system service Need reboot to restart service Clean runtime environment at the same time? - Remove system service cache in /data/system/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. + Remove system service cache in /data/misc/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-cs-rCZ/strings.xml b/app/src/main/res/values-cs-rCZ/strings.xml index b38dcff..8df39d2 100644 --- a/app/src/main/res/values-cs-rCZ/strings.xml +++ b/app/src/main/res/values-cs-rCZ/strings.xml @@ -114,7 +114,7 @@ Zastavit systémovou službu K restartování služby je třeba restartovat Vyčistit runtime prostředí ve stejnou dobu? - Odeberte mezipaměť systémové služby v /data/system/hide_my_applist_*. To znamená, že musíte po příštím restartu spustit aplikaci modulu jednou ručně, abyste povolili odposlechy a počty odposlechů budou také vyčištěny. + Odeberte mezipaměť systémové služby v /data/misc/hide_my_applist_*. To znamená, že musíte po příštím restartu spustit aplikaci modulu jednou ručně, abyste povolili odposlechy a počty odposlechů budou také vyčištěny. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-da-rDK/strings.xml b/app/src/main/res/values-da-rDK/strings.xml index d0e2cd6..9034fcd 100644 --- a/app/src/main/res/values-da-rDK/strings.xml +++ b/app/src/main/res/values-da-rDK/strings.xml @@ -114,7 +114,7 @@ Stop system service Need reboot to restart service Clean runtime environment at the same time? - Remove system service cache in /data/system/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. + Remove system service cache in /data/misc/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-de-rDE/strings.xml b/app/src/main/res/values-de-rDE/strings.xml index 27bdc1d..1baa0c9 100644 --- a/app/src/main/res/values-de-rDE/strings.xml +++ b/app/src/main/res/values-de-rDE/strings.xml @@ -114,7 +114,7 @@ Stop system service Need reboot to restart service Clean runtime environment at the same time? - System Service Cache in /data/system/hide_my_applist_* entfernen. Das heißt, dass du die Modul-App nach dem nächsten Neustart selbst starten musst, um das Abfangen zu aktivieren und die Abfangzahlen werden auch bereinigt. + System Service Cache in /data/misc/hide_my_applist_* entfernen. Das heißt, dass du die Modul-App nach dem nächsten Neustart selbst starten musst, um das Abfangen zu aktivieren und die Abfangzahlen werden auch bereinigt. Reinigung der Laufzeitumgebung erzwingen (Root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-el-rGR/strings.xml b/app/src/main/res/values-el-rGR/strings.xml index 5c82171..438f05f 100644 --- a/app/src/main/res/values-el-rGR/strings.xml +++ b/app/src/main/res/values-el-rGR/strings.xml @@ -114,7 +114,7 @@ Stop system service Need reboot to restart service Clean runtime environment at the same time? - Remove system service cache in /data/system/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. + Remove system service cache in /data/misc/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-es-rES/strings.xml b/app/src/main/res/values-es-rES/strings.xml index d0e2cd6..9034fcd 100644 --- a/app/src/main/res/values-es-rES/strings.xml +++ b/app/src/main/res/values-es-rES/strings.xml @@ -114,7 +114,7 @@ Stop system service Need reboot to restart service Clean runtime environment at the same time? - Remove system service cache in /data/system/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. + Remove system service cache in /data/misc/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-fi-rFI/strings.xml b/app/src/main/res/values-fi-rFI/strings.xml index d0e2cd6..9034fcd 100644 --- a/app/src/main/res/values-fi-rFI/strings.xml +++ b/app/src/main/res/values-fi-rFI/strings.xml @@ -114,7 +114,7 @@ Stop system service Need reboot to restart service Clean runtime environment at the same time? - Remove system service cache in /data/system/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. + Remove system service cache in /data/misc/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-fr-rFR/strings.xml b/app/src/main/res/values-fr-rFR/strings.xml index e295bfc..e3495d6 100644 --- a/app/src/main/res/values-fr-rFR/strings.xml +++ b/app/src/main/res/values-fr-rFR/strings.xml @@ -114,7 +114,7 @@ Stopper le service du système Redémarrage nécessaire pour redémarrer le service Nettoyer l\'environnement d\'éxécution en même temps? - Supprimer le cache du service système dans /data/system/hide_my_applist_*. Celà veut dire que vous devez lancer le module de l\'application une fois manuellement après le prochain redémarrage pour permettre l\'activation des interceptions, le compteur d\'interceptions sera également nettoyé. + Supprimer le cache du service système dans /data/misc/hide_my_applist_*. Celà veut dire que vous devez lancer le module de l\'application une fois manuellement après le prochain redémarrage pour permettre l\'activation des interceptions, le compteur d\'interceptions sera également nettoyé. Forcer le nettoyage de l\'environnement (racine) Uniquement si le service du système échoue à démarrer, autrement vous devriez opter pour l\'option ci-dessus. Environnement d\'exécution nettoyé diff --git a/app/src/main/res/values-hu-rHU/strings.xml b/app/src/main/res/values-hu-rHU/strings.xml index d0e2cd6..9034fcd 100644 --- a/app/src/main/res/values-hu-rHU/strings.xml +++ b/app/src/main/res/values-hu-rHU/strings.xml @@ -114,7 +114,7 @@ Stop system service Need reboot to restart service Clean runtime environment at the same time? - Remove system service cache in /data/system/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. + Remove system service cache in /data/misc/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-it-rIT/strings.xml b/app/src/main/res/values-it-rIT/strings.xml index fc92728..358ee7d 100644 --- a/app/src/main/res/values-it-rIT/strings.xml +++ b/app/src/main/res/values-it-rIT/strings.xml @@ -114,7 +114,7 @@ Stoppa servizio di sistema È necessario riavviare per riavviare il servizio Pulire l\'ambiente di runtime allo stesso tempo? - Rimuove la cache del servizio di sistema in /data/system/hide_my_applist_*. Questo significa che è necessario avviare l\'app del modulo una volta manualmente dopo il prossimo riavvio per abilitare le intercettazioni e anche i conteggi delle intercettazioni verranno resettati. + Rimuove la cache del servizio di sistema in /data/misc/hide_my_applist_*. Questo significa che è necessario avviare l\'app del modulo una volta manualmente dopo il prossimo riavvio per abilitare le intercettazioni e anche i conteggi delle intercettazioni verranno resettati. Forza pulizia ambiente runtime (root) Solo se il servizio di sistema non riesce ad avviarsi, altrimenti devi cliccare l\'opzione sopra. Ambiente runtime pulito diff --git a/app/src/main/res/values-iw-rIL/strings.xml b/app/src/main/res/values-iw-rIL/strings.xml index d0e2cd6..9034fcd 100644 --- a/app/src/main/res/values-iw-rIL/strings.xml +++ b/app/src/main/res/values-iw-rIL/strings.xml @@ -114,7 +114,7 @@ Stop system service Need reboot to restart service Clean runtime environment at the same time? - Remove system service cache in /data/system/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. + Remove system service cache in /data/misc/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-ja-rJP/strings.xml b/app/src/main/res/values-ja-rJP/strings.xml index 57a4d1e..3c6ef82 100644 --- a/app/src/main/res/values-ja-rJP/strings.xml +++ b/app/src/main/res/values-ja-rJP/strings.xml @@ -114,7 +114,7 @@ システムサービスを停止する サービスを再開するには再起動が必要です 実行環境のクリーンアップをしますか? - /data/system/hide_my_applist_* のシステム サービス キャッシュを削除します。つまり、インターセプトを有効にするには、次回の再起動後にモジュール アプリを手動で 1 回起動する必要があり、インターセプト カウントも消去されます。 + /data/misc/hide_my_applist_* のシステム サービス キャッシュを削除します。つまり、インターセプトを有効にするには、次回の再起動後にモジュール アプリを手動で 1 回起動する必要があり、インターセプト カウントも消去されます。 クリーンなランタイム環境を強制する(root) システム サービスの開始に失敗した場合のみ、それ以外の場合は上記のオプションをクリックする必要があります。 ランタイムのクリーン diff --git a/app/src/main/res/values-ko-rKR/strings.xml b/app/src/main/res/values-ko-rKR/strings.xml index d0e2cd6..9034fcd 100644 --- a/app/src/main/res/values-ko-rKR/strings.xml +++ b/app/src/main/res/values-ko-rKR/strings.xml @@ -114,7 +114,7 @@ Stop system service Need reboot to restart service Clean runtime environment at the same time? - Remove system service cache in /data/system/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. + Remove system service cache in /data/misc/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-nl-rNL/strings.xml b/app/src/main/res/values-nl-rNL/strings.xml index d0e2cd6..9034fcd 100644 --- a/app/src/main/res/values-nl-rNL/strings.xml +++ b/app/src/main/res/values-nl-rNL/strings.xml @@ -114,7 +114,7 @@ Stop system service Need reboot to restart service Clean runtime environment at the same time? - Remove system service cache in /data/system/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. + Remove system service cache in /data/misc/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-no-rNO/strings.xml b/app/src/main/res/values-no-rNO/strings.xml index d2d1f8b..67094aa 100644 --- a/app/src/main/res/values-no-rNO/strings.xml +++ b/app/src/main/res/values-no-rNO/strings.xml @@ -114,7 +114,7 @@ Stop system service Need reboot to restart service Clean runtime environment at the same time? - Remove system service cache in /data/system/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. + Remove system service cache in /data/misc/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-pl-rPL/strings.xml b/app/src/main/res/values-pl-rPL/strings.xml index f24a93d..5d43b30 100644 --- a/app/src/main/res/values-pl-rPL/strings.xml +++ b/app/src/main/res/values-pl-rPL/strings.xml @@ -114,7 +114,7 @@ Stop system service Need reboot to restart service Clean runtime environment at the same time? - Remove system service cache in /data/system/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. + Remove system service cache in /data/misc/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index b85bffc..7db1e8a 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -114,7 +114,7 @@ Stop system service Need reboot to restart service Limpar o ambiente do runtime ao mesmo tempo? - Remover arquivo temporário do serviço do sistema em /data/system/hide_my_applist_*. Isso significa que você precisa iniciar o aplicativo de módulos uma vez manualmente no próximo reinício para habilitar interceptações, e a contagens de interceptações será apagada. + Remover arquivo temporário do serviço do sistema em /data/misc/hide_my_applist_*. Isso significa que você precisa iniciar o aplicativo de módulos uma vez manualmente no próximo reinício para habilitar interceptações, e a contagens de interceptações será apagada. Forçar a limpar o ambiente do runtime (root) Apenas se o serviço de sistema falhar ao iniciar, por outro lado, você deve clicar acima da opção. Ambiente do runtime limpado diff --git a/app/src/main/res/values-pt-rPT/strings.xml b/app/src/main/res/values-pt-rPT/strings.xml index d0e2cd6..9034fcd 100644 --- a/app/src/main/res/values-pt-rPT/strings.xml +++ b/app/src/main/res/values-pt-rPT/strings.xml @@ -114,7 +114,7 @@ Stop system service Need reboot to restart service Clean runtime environment at the same time? - Remove system service cache in /data/system/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. + Remove system service cache in /data/misc/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-ro-rRO/strings.xml b/app/src/main/res/values-ro-rRO/strings.xml index 1ff52aa..9ee7155 100644 --- a/app/src/main/res/values-ro-rRO/strings.xml +++ b/app/src/main/res/values-ro-rRO/strings.xml @@ -114,7 +114,7 @@ Oprește serviciul de sistem Trebuie repornit telefonul pentru a reporni serviciul Clean runtime environment at the same time? - Remove system service cache in /data/system/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. + Remove system service cache in /data/misc/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-ru-rRU/strings.xml b/app/src/main/res/values-ru-rRU/strings.xml index a08035e..041f3f5 100644 --- a/app/src/main/res/values-ru-rRU/strings.xml +++ b/app/src/main/res/values-ru-rRU/strings.xml @@ -114,7 +114,7 @@ Остановить системную службу Потребуется перезагрузка, чтобы перезапустить службу Очистить также среду выполнения? - Удалить кэш системной службы в /data/system/hide_my_applist_*. Это означает, что вам нужно запустить приложение модуля вручную после следующей перезагрузки, чтобы включить перехваты, и количество перехватов также будет очищено. + Удалить кэш системной службы в /data/misc/hide_my_applist_*. Это означает, что вам нужно запустить приложение модуля вручную после следующей перезагрузки, чтобы включить перехваты, и количество перехватов также будет очищено. Принудительно очистить среду выполнения (root) Только если не удается запустить системную службу, в противном случае вам следует нажать на опцию выше. Среда выполнения очищена успешно diff --git a/app/src/main/res/values-sr-rSP/strings.xml b/app/src/main/res/values-sr-rSP/strings.xml index d0e2cd6..9034fcd 100644 --- a/app/src/main/res/values-sr-rSP/strings.xml +++ b/app/src/main/res/values-sr-rSP/strings.xml @@ -114,7 +114,7 @@ Stop system service Need reboot to restart service Clean runtime environment at the same time? - Remove system service cache in /data/system/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. + Remove system service cache in /data/misc/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-sv-rSE/strings.xml b/app/src/main/res/values-sv-rSE/strings.xml index d0e2cd6..9034fcd 100644 --- a/app/src/main/res/values-sv-rSE/strings.xml +++ b/app/src/main/res/values-sv-rSE/strings.xml @@ -114,7 +114,7 @@ Stop system service Need reboot to restart service Clean runtime environment at the same time? - Remove system service cache in /data/system/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. + Remove system service cache in /data/misc/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-tr-rTR/strings.xml b/app/src/main/res/values-tr-rTR/strings.xml index 9b29dc0..87021dc 100644 --- a/app/src/main/res/values-tr-rTR/strings.xml +++ b/app/src/main/res/values-tr-rTR/strings.xml @@ -114,7 +114,7 @@ Stop system service Need reboot to restart service Clean runtime environment at the same time? - Remove system service cache in /data/system/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. + Remove system service cache in /data/misc/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/app/src/main/res/values-uk-rUA/strings.xml b/app/src/main/res/values-uk-rUA/strings.xml index e86daff..3f10b31 100644 --- a/app/src/main/res/values-uk-rUA/strings.xml +++ b/app/src/main/res/values-uk-rUA/strings.xml @@ -114,7 +114,7 @@ Зупинити системну службу Потрібне перезавантаження, щоб перезапустити службу Очистити також середовище виконання? - Видаліть кеш системної служби в /data/system/hide_my_applist_*. Це означає, що вам потрібно один раз запустити програму модуля вручну після наступного перезавантаження, щоб увімкнути перехоплення, і кількість перехоплень також буде очищено. + Видаліть кеш системної служби в /data/misc/hide_my_applist_*. Це означає, що вам потрібно один раз запустити програму модуля вручну після наступного перезавантаження, щоб увімкнути перехоплення, і кількість перехоплень також буде очищено. Примусово очистити середовище виконання (root) Лише якщо не вдається запустити системну службу, інакше вам слід натиснути вищезазначену опцію. Середовище виконання очищено diff --git a/app/src/main/res/values-vi-rVN/strings.xml b/app/src/main/res/values-vi-rVN/strings.xml index 7ae3682..9677660 100644 --- a/app/src/main/res/values-vi-rVN/strings.xml +++ b/app/src/main/res/values-vi-rVN/strings.xml @@ -114,7 +114,7 @@ Dừng dịch vụ Cần chạy lại dịch vụ Làm sạch môi trường thời gian chạy cùng lúc? - Xóa bộ nhớ cache của dịch vụ hệ thống trong /data/system/hide_my_applist_*. Điều này có nghĩa là bạn cần phải khởi chạy ứng dụng mô-đun một lần theo cách thủ công sau lần khởi động lại tiếp theo để cho phép đánh chặn và số lần đánh chặn cũng sẽ được xóa sạch. + Xóa bộ nhớ cache của dịch vụ hệ thống trong /data/misc/hide_my_applist_*. Điều này có nghĩa là bạn cần phải khởi chạy ứng dụng mô-đun một lần theo cách thủ công sau lần khởi động lại tiếp theo để cho phép đánh chặn và số lần đánh chặn cũng sẽ được xóa sạch. Buộc môi trường thời gian chạy sạch (root) Chỉ khi dịch vụ hệ thống không khởi động được, nếu không bạn nên nhấp vào tùy chọn trên. Môi trường Runtime đã sạch diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index d0ca4c6..a027a90 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -114,7 +114,7 @@ 停止系统服务 需要重启设备才能再次启动系统服务 同时清理运行环境? - 删除 /data/system/hide_my_applist_* 中的系统服务缓存。这意味着你需要在下次重启后手动启动一次模块应用,以便启用拦截,同时拦截次数也将被清理。 + 删除 /data/misc/hide_my_applist_* 中的系统服务缓存。这意味着你需要在下次重启后手动启动一次模块应用,以便启用拦截,同时拦截次数也将被清理。 强制清理运行环境(root) 只有在系统服务无法启动的情况下才应使用,否则请使用上面的选项。 运行环境已清理 diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 30d521d..6ff8daf 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -114,7 +114,7 @@ 停止系統服務 需要重啟來重啟服務 同時清理執行環境? - 刪除 /data/system/hide_my_applist_* 中的系統服務快取。這意味著你需要在下次重啟後手動啟動一次模組應用,以便啟用攔截,攔截次數也將被清理 + 刪除 /data/misc/hide_my_applist_* 中的系統服務快取。這意味著你需要在下次重啟後手動啟動一次模組應用,以便啟用攔截,攔截次數也將被清理 強制清理執行環境 (root) 只有在系統服務無法啟動的情況下使用 執行環境已清理 diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 11d8e0b..7cd00e6 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -125,7 +125,7 @@ Stop system service Need reboot to restart service Clean runtime environment at the same time? - Remove system service cache in /data/system/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. + Remove system service cache in /data/misc/hide_my_applist_*. This means you need to launch the module app once manually after next reboot in order to enable interceptions, and interception counts will also be cleaned. Force clean runtime environment (root) Only if system service fails to start, otherwise you should click the above option. Runtime environment cleaned diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 8a3de20..502e72d 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -1,5 +1,5 @@ [versions] -agp = "8.7.2" +agp = "8.7.3" kotlin = "2.1.0" rxhttp = "3.3.1" hidden-api = "4.3.3" @@ -11,14 +11,14 @@ kotlin = { id = "org.jetbrains.kotlin.android", version.ref = "kotlin" } kotlin-serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" } ksp = { id = "com.google.devtools.ksp", version = "2.1.0-1.0.29" } gms = { id = "com.google.gms.google-services", version = "4.4.2" } -nav-safeargs-kotlin = { id = "androidx.navigation.safeargs.kotlin", version = "2.8.4" } +nav-safeargs-kotlin = { id = "androidx.navigation.safeargs.kotlin", version = "2.8.5" } autoresconfig = { id = "dev.rikka.tools.autoresconfig", version = "1.2.2" } materialthemebuilder = { id = "dev.rikka.tools.materialthemebuilder", version = "1.5.1" } refine = { id = "dev.rikka.tools.refine", version = "4.4.0" } [libraries] -androidx-navigation-fragment-ktx = { module = "androidx.navigation:navigation-fragment-ktx", version = "2.8.4" } -androidx-navigation-ui-ktx = { module = "androidx.navigation:navigation-ui-ktx", version = "2.8.4" } +androidx-navigation-fragment-ktx = { module = "androidx.navigation:navigation-fragment-ktx", version = "2.8.5" } +androidx-navigation-ui-ktx = { module = "androidx.navigation:navigation-ui-ktx", version = "2.8.5" } androidx-preference-ktx = { module = "androidx.preference:preference-ktx", version = "1.2.1" } androidx-swiperefreshlayout = { module = "androidx.swiperefreshlayout:swiperefreshlayout", version = "1.1.0" } com-android-tools-build-apksig = { module = "com.android.tools.build:apksig", version.ref = "agp" } @@ -31,9 +31,9 @@ com-github-liujingxing-rxhttp-compiler = { module = "com.github.liujingxing.rxht com-github-liujingxing-rxhttp-converter-serialization = { module = "com.github.liujingxing.rxhttp:converter-serialization", version.ref = "rxhttp" } com-github-topjohnwu-libsu-core = { module = "com.github.topjohnwu.libsu:core", version = "6.0.0" } com-google-android-material = { module = "com.google.android.material:material", version = "1.12.0" } -com-google-android-gms-play-services-ads = { module = "com.google.android.gms:play-services-ads", version = "23.5.0" } -com-google-firebase-bom = { module = "com.google.firebase:firebase-bom", version = "33.6.0" } -com-google-firebase-analytics-ktx = { module = "com.google.firebase:firebase-analytics-ktx" } +com-google-android-gms-play-services-ads = { module = "com.google.android.gms:play-services-ads", version = "23.6.0" } +com-google-firebase-bom = { module = "com.google.firebase:firebase-bom", version = "33.7.0" } +com-google-firebase-analytics-ktx = { module = "com.google.firebase:firebase-analytics-ktx", version = "22.1.2" } com-squareup-okhttp3 = { module = "com.squareup.okhttp3:okhttp", version = "4.12.0" } de-robv-android-xposed-api = { module = "de.robv.android.xposed:api", version = "82" } dev-rikka-hidden-compat = { module = "dev.rikka.hidden:compat", version.ref = "hidden-api" } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index e2847c8..cea7a79 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-8.11.1-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip networkTimeout=10000 validateDistributionUrl=true zipStoreBase=GRADLE_USER_HOME diff --git a/xposed/src/main/java/icu/nullptr/hidemyapplist/xposed/HMAService.kt b/xposed/src/main/java/icu/nullptr/hidemyapplist/xposed/HMAService.kt index 90ed606..4c1d72f 100644 --- a/xposed/src/main/java/icu/nullptr/hidemyapplist/xposed/HMAService.kt +++ b/xposed/src/main/java/icu/nullptr/hidemyapplist/xposed/HMAService.kt @@ -50,15 +50,28 @@ class HMAService(val pms: IPackageManager) : IHMAService.Stub() { } private fun searchDataDir() { - File("/data/misc/hide_my_applist").deleteRecursively() File("/data/system").list()?.forEach { if (it.startsWith("hide_my_applist")) { - if (this::dataDir.isInitialized) File("/data/system/$it").deleteRecursively() - else dataDir = "/data/system/$it" + if (!this::dataDir.isInitialized) { + val newDir = File("/data/misc/$it") + File("/data/system/$it").renameTo(newDir) + dataDir = newDir.path + } else { + File("/data/system/$it").deleteRecursively() + } + } + } + File("/data/misc").list()?.forEach { + if (it.startsWith("hide_my_applist")) { + if (!this::dataDir.isInitialized) { + dataDir = "/data/misc/$it" + } else if (dataDir != "/data/misc/$it") { + File("/data/misc/$it").deleteRecursively() + } } } if (!this::dataDir.isInitialized) { - dataDir = "/data/system/hide_my_applist_" + Utils.generateRandomString(16) + dataDir = "/data/misc/hide_my_applist_" + Utils.generateRandomString(16) } File("$dataDir/log").mkdirs()