├── .gitignore ├── LICENSE ├── README.md ├── README_EN.md ├── README_JA.md ├── app ├── .gitignore ├── build.gradle.kts ├── proguard-rules.pro └── src │ └── main │ ├── AndroidManifest.xml │ ├── java │ └── com │ │ └── qhy040404 │ │ └── fxxkmiuiad │ │ ├── Constants.kt │ │ ├── FxxkMIUIAdApp.kt │ │ ├── MainComposeActivity.kt │ │ ├── theme │ │ └── Theme.kt │ │ └── utils │ │ ├── OsUtils.kt │ │ ├── PackageUtils.kt │ │ ├── ResourceUtils.kt │ │ └── ShizukuUtils.kt │ └── res │ ├── drawable-v24 │ └── ic_launcher_foreground.xml │ ├── drawable │ └── ic_launcher_background.xml │ ├── mipmap-anydpi-v26 │ ├── ic_launcher.xml │ └── ic_launcher_round.xml │ ├── mipmap-xxxhdpi │ ├── ic_launcher.webp │ └── ic_launcher_round.webp │ ├── values-en │ └── strings.xml │ ├── values-ja │ └── strings.xml │ ├── values-night │ └── themes.xml │ └── values │ ├── strings.xml │ └── themes.xml ├── build.gradle.kts ├── gradle.properties ├── gradle └── wrapper │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradlew ├── gradlew.bat ├── hidden-api ├── build.gradle.kts └── src │ └── main │ └── java │ └── android │ └── content │ └── pm │ ├── IPackageManager.java │ └── SuspendDialogInfo.java ├── renovate.json └── settings.gradle.kts /.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | .DS_Store 5 | **/build 6 | /captures 7 | .externalNativeBuild 8 | .cxx 9 | local.properties 10 | app/release 11 | /.idea/ 12 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright 2023 qhy040404 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FuckMIUIAd 2 | 3 | 中文 | [English](./README_EN.md) | [日本語](./README_JA.md) 4 | 5 | 用最小的代价关闭 MIUI / 澎湃 OS 的广告。 6 | 7 | ## 注意 8 | 9 | 部分机型系统会将以下组件标记为系统应用,从而导致 pm 无法禁用。 10 | 11 | 目前能找到最好的解决方案是标记为 suspend 12 | 13 | 可打开 ADB 调试后使用电脑 ADB 执行以下命令: 14 | ```shell 15 | adb shell pm suspend com.miui.hybrid 16 | adb shell pm suspend com.miui.systemAdSolution 17 | ``` 18 | 19 | 或使用 ShizukuRunner 执行以下命令: 20 | ```shell 21 | pm suspend com.miui.hybrid 22 | pm suspend com.miui.systemAdSolution 23 | ``` 24 | 25 | ## 最初的想法 26 | 27 | 主力机不想 root ,也不想刷面具,不如用最简单的 adb 权限来禁用掉几个毒瘤广告,既不破坏系统完整性,也能减少 MIUI 那些关不掉的广告 28 | 29 | ## 目前禁用的组件 30 | 31 | - `com.miui.hybrid` 快应用框架 32 | - `com.miui.systemAdSolution` 智能服务(开屏广告) 33 | 34 | - `com.miui.msa.global` 国际版的我也不知道是啥 35 | 36 | 欢迎向项目提交更多的广告组件, 可以开 issue, 也可以直接修改 `Constants.FUCKLIST` 并提 PR 37 | 38 | > 目前的宗旨是只禁用影响用户体验的,或者说与用户有交互的部分,所以没有管Analytics和其他几个。 39 | 40 | ## 实现 41 | 42 | 使用 [Shizuku](https://github.com/RikkaApps/Shizuku) 的 [API](https://github.com/RikkaApps/Shizuku-API) 实现 43 | 44 | 使用此 app 前需先安装 Shizuku 并激活, 或使用 Sui 45 | -------------------------------------------------------------------------------- /README_EN.md: -------------------------------------------------------------------------------- 1 | # FuckMIUIAd 2 | 3 | [中文](./README.md) | English | [日本語](./README_JA.md) 4 | 5 | Disable ads in MIUI / Hyper OS with minimal effort. 6 | 7 | ## Note 8 | 9 | On some devices, the system may mark the following components as system apps, making it impossible 10 | to disable them using `pm`. 11 | 12 | The best solution currently available is to mark them as suspended. 13 | 14 | After enabling ADB debugging, you can execute the following commands on your computer via ADB: 15 | 16 | ```shell 17 | adb shell pm suspend com.miui.hybrid 18 | adb shell pm suspend com.miui.systemAdSolution 19 | ``` 20 | 21 | Alternatively, use ShizukuRunner to execute the following commands: 22 | 23 | ```shell 24 | pm suspend com.miui.hybrid 25 | pm suspend com.miui.systemAdSolution 26 | ``` 27 | 28 | ## Initial Idea 29 | 30 | I didn't want to root or install Magisk on my primary device, so I decided to use the simplest ADB 31 | permissions to disable a few intrusive ads. This approach avoids compromising the system's integrity 32 | while reducing the unavoidable ads in MIUI. 33 | 34 | ## Currently Disabled Components 35 | 36 | - `com.miui.hybrid`: Quick Apps Framework 37 | - `com.miui.systemAdSolution`: Smart Services (Splash Screen Ads) 38 | 39 | - `com.miui.msa.global`: Not sure what this is in the global version 40 | 41 | Feel free to contribute more ad-related components to the project. You can open an issue or directly 42 | modify `Constants.FUCKLIST` and submit a PR. 43 | 44 | > The current principle is to only disable components that affect user experience or involve user 45 | > interaction. Analytics and a few others are not addressed. 46 | 47 | ## Implementation 48 | 49 | Implemented using [Shizuku](https://github.com/RikkaApps/Shizuku) and 50 | its [API](https://github.com/RikkaApps/Shizuku-API). 51 | 52 | Before using this app, you need to install and activate Shizuku or use Sui. 53 | -------------------------------------------------------------------------------- /README_JA.md: -------------------------------------------------------------------------------- 1 | # FuckMIUIAd 2 | 3 | [中文](./README.md) | [English](./README_EN.md) | 日本語 4 | 5 | MIUI / HyperOS の広告を低コストで遮断します。 6 | 7 | ## 注意 8 | 9 | 一部のモデルのシステムは、次のコンポーネントがシステムアプリとしてマークされているため、pm で無効化することができません。 10 | 11 | これまでに見つかった最善の解決策は、それらをサスペンドとしてマークすることです。 12 | 13 | ADB デバッグを有効化後にADB がインストールされているコンピューターで以下のコマンドを実行します: 14 | ```shell 15 | adb shell pm suspend com.miui.hybrid 16 | adb shell pm suspend com.miui.systemAdSolution 17 | ``` 18 | 19 | または ShizukuRunner を使用して以下のコマンドを実行します: 20 | ```shell 21 | pm suspend com.miui.hybrid 22 | pm suspend com.miui.systemAdSolution 23 | ``` 24 | 25 | ## 最初のアイデア 26 | 27 | メインデバイスについては、root 化やマスクを Flash したくない場合は、最も単純な ADB 権限を使用していくつかの有害な広告を無効化することもできます。これにより、システムの整合性を損なうこともなく MIUI で OFF にできない広告を減らすことができます。 28 | 29 | ## 無効化すべきコンポーネント 30 | 31 | - `com.miui.hybrid` クイックアプリフレームワーク 32 | - `com.miui.systemAdSolution` スマートサービス (オープンスクリーン広告) 33 | 34 | - `com.miui.msa.global` グローバル版のため不明 35 | 36 | プロジェクトにさらに多くの広告コンポーネントの提出を歓迎します。Issue で報告や `Constants.FUCKLIST` を直接変更して PR を提出できます。 37 | 38 | > 現在の目標はユーザーエクスペリエンスに影響を与える部分や、またはユーザーと対話する部分を無効化することであり、Analytics などは無視されます。 39 | 40 | ## 実現 41 | 42 | [Shizuku](https://github.com/RikkaApps/Shizuku) の [API](https://github.com/RikkaApps/Shizuku-API) を使用して実現しています。 43 | 44 | このアプリを使用する前に Shizuku をインストールして有効化するか、Sui を使用する必要があります。 45 | -------------------------------------------------------------------------------- /app/.gitignore: -------------------------------------------------------------------------------- 1 | /build -------------------------------------------------------------------------------- /app/build.gradle.kts: -------------------------------------------------------------------------------- 1 | plugins { 2 | id("com.android.application") 3 | id("org.jetbrains.kotlin.android") 4 | id("org.jetbrains.kotlin.plugin.compose") 5 | id("com.qhy04.gradle.android.res_opt") 6 | } 7 | 8 | android { 9 | namespace = "com.qhy040404.fxxkmiuiad" 10 | compileSdk = 36 11 | 12 | defaultConfig { 13 | applicationId = "com.qhy040404.fxxkmiuiad" 14 | minSdk = 29 15 | targetSdk = 36 16 | versionCode = 12 17 | versionName = "1.4.2" 18 | 19 | @Suppress("UnstableApiUsage") 20 | androidResources.localeFilters.addAll( 21 | setOf( 22 | "en", 23 | "ja", 24 | "zh-rCN" 25 | ) 26 | ) 27 | } 28 | 29 | buildFeatures { 30 | compose = true 31 | } 32 | 33 | buildTypes { 34 | release { 35 | isMinifyEnabled = true 36 | isShrinkResources = true 37 | isCrunchPngs = true 38 | proguardFiles( 39 | getDefaultProguardFile("proguard-android-optimize.txt"), 40 | "proguard-rules.pro" 41 | ) 42 | ndk.abiFilters.add("") 43 | packagingOptions.resources.excludes += setOf( 44 | "DebugProbesKt.bin", 45 | "META-INF/*.version", 46 | "**LICENSE**" 47 | ) 48 | dependenciesInfo.includeInApk = false 49 | } 50 | } 51 | compileOptions { 52 | sourceCompatibility = JavaVersion.VERSION_21 53 | targetCompatibility = JavaVersion.VERSION_21 54 | } 55 | kotlinOptions { 56 | jvmTarget = JavaVersion.VERSION_21.toString() 57 | } 58 | } 59 | 60 | configurations.all { 61 | exclude("androidx.appcompat", "appcompat") 62 | exclude("org.jetbrains.kotlin", "kotlin-stdlib-jdk7") 63 | } 64 | 65 | dependencies { 66 | compileOnly(project(":hidden-api")) 67 | 68 | implementation("androidx.annotation:annotation:1.9.1") 69 | implementation("dev.rikka.shizuku:api:13.1.5") 70 | implementation("dev.rikka.shizuku:provider:13.1.5") 71 | implementation("org.lsposed.hiddenapibypass:hiddenapibypass:6.1") 72 | 73 | implementation(platform("androidx.compose:compose-bom:2025.03.01")) 74 | implementation("androidx.compose.runtime:runtime") 75 | implementation("androidx.compose.ui:ui") 76 | implementation("androidx.compose.material3:material3") 77 | 78 | implementation("androidx.activity:activity-compose:1.10.1") 79 | } 80 | -------------------------------------------------------------------------------- /app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | -dontusemixedcaseclassnames 2 | -verbose 3 | 4 | # Preserve some attributes that may be required for reflection. 5 | -keepattributes *Annotation*,Signature,InnerClasses,EnclosingMethod 6 | 7 | -keep class * extends androidx.fragment.app.Fragment{} 8 | 9 | # For native methods, see http://proguard.sourceforge.net/manual/examples.html#native 10 | -keepclasseswithmembernames class * { 11 | native ; 12 | } 13 | 14 | # Keep setters in Views so that animations can still work. 15 | -keepclassmembers public class * extends android.view.View { 16 | void set*(***); 17 | *** get*(); 18 | } 19 | 20 | # We want to keep methods in Activity that could be used in the XML attribute onClick. 21 | # -keepclassmembers class * extends android.app.Activity { 22 | # public void *(android.view.View); 23 | # } 24 | 25 | # For enumeration classes, see http://proguard.sourceforge.net/manual/examples.html#enumerations 26 | -keepclassmembers enum * { 27 | public static **[] values(); 28 | public static ** valueOf(java.lang.String); 29 | } 30 | 31 | -keepclassmembers class * implements android.os.Parcelable { 32 | public static final ** CREATOR; 33 | } 34 | 35 | -keepclassmembers class **.R$* { 36 | public static ; 37 | } 38 | 39 | # Preserve annotated Javascript interface methods. 40 | -keepclassmembers class * { 41 | @android.webkit.JavascriptInterface ; 42 | } 43 | 44 | # The support libraries contains references to newer platform versions. 45 | # Don't warn about those in case this app is linking against an older 46 | # platform version. We know about them, and they are safe. 47 | -dontnote android.support.** 48 | -dontwarn android.support.** 49 | 50 | -dontwarn javax.annotation.** 51 | 52 | # Understand the @Keep support annotation. 53 | -keep class androidx.annotation.Keep 54 | -keep @androidx.annotation.Keep class * {*;} 55 | 56 | -keepclasseswithmembers class * { 57 | @androidx.annotation.Keep ; 58 | } 59 | 60 | -keepclasseswithmembers class * { 61 | @androidx.annotation.Keep ; 62 | } 63 | 64 | -keepclasseswithmembers class * { 65 | @androidx.annotation.Keep (...); 66 | } 67 | 68 | -assumenosideeffects class kotlin.jvm.internal.Intrinsics { 69 | static void checkParameterIsNotNull(java.lang.Object, java.lang.String); 70 | static void checkExpressionValueIsNotNull(java.lang.Object, java.lang.String); 71 | static void checkNotNullExpressionValue(java.lang.Object, java.lang.String); 72 | static void checkReturnedValueIsNotNull(java.lang.Object, java.lang.String, java.lang.String); 73 | static void checkReturnedValueIsNotNull(java.lang.Object, java.lang.String); 74 | static void checkFieldIsNotNull(java.lang.Object, java.lang.String, java.lang.String); 75 | static void checkFieldIsNotNull(java.lang.Object, java.lang.String); 76 | static void checkNotNull(java.lang.Object, java.lang.String); 77 | static void checkNotNullParameter(java.lang.Object, java.lang.String); 78 | } 79 | 80 | -dontwarn org.xmlpull.v1.XmlPullParser 81 | -dontwarn org.xmlpull.v1.XmlSerializer 82 | -keep class org.xmlpull.v1.* {*;} 83 | 84 | ## Android architecture components: Lifecycle 85 | # LifecycleObserver's empty constructor is considered to be unused by proguard 86 | -keepclassmembers class * implements androidx.lifecycle.LifecycleObserver { 87 | (...); 88 | } 89 | # ViewModel's empty constructor is considered to be unused by proguard 90 | -keepclassmembers class * extends androidx.lifecycle.ViewModel { 91 | (...); 92 | } 93 | # keep methods annotated with @OnLifecycleEvent even if they seem to be unused 94 | # (Mostly for LiveData.LifecycleBoundObserver.onStateChange(), but who knows) 95 | -keepclassmembers class * { 96 | @androidx.lifecycle.OnLifecycleEvent *; 97 | } 98 | 99 | # Gson uses generic type information stored in a class file when working with fields. Proguard 100 | # removes such information by default, so configure it to keep all of it. 101 | -keepattributes Signature,InnerClasses 102 | -keepattributes SourceFile,LineNumberTable 103 | -renamesourcefileattribute SourceFile 104 | 105 | -dontwarn java.lang.ClassValue 106 | 107 | # Custom 108 | #-keep public class com.qhy040404.fxxkmiuiad.utils.OsUtils{*;} 109 | -keep public class com.qhy040404.fxxkmiuiad.utils.PackageUtils{*;} 110 | -------------------------------------------------------------------------------- /app/src/main/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 4 | 5 | 6 | 7 | 14 | 17 | 18 | 19 | 20 | 21 | 22 | 25 | 26 | 33 | 34 | 35 | -------------------------------------------------------------------------------- /app/src/main/java/com/qhy040404/fxxkmiuiad/Constants.kt: -------------------------------------------------------------------------------- 1 | package com.qhy040404.fxxkmiuiad 2 | 3 | // Packages 4 | const val SHIZUKU = "moe.shizuku.privileged.api" 5 | const val SHIZUKU_RELEASE = "https://github.com/RikkaApps/Shizuku/releases/" 6 | 7 | const val MIUI_ROM = "com.miui.rom" 8 | val FUCKLIST = listOf( 9 | // CN 10 | "com.miui.hybrid", 11 | "com.miui.systemAdSolution", 12 | 13 | // GLOBAL 14 | "com.miui.msa.global" 15 | ) 16 | 17 | // Shizuku Status 18 | const val Ok = 0 19 | const val Outdated = 1 20 | const val NotRunning = 2 21 | const val NotAuthorized = 3 22 | const val NotInstalled = 4 -------------------------------------------------------------------------------- /app/src/main/java/com/qhy040404/fxxkmiuiad/FxxkMIUIAdApp.kt: -------------------------------------------------------------------------------- 1 | package com.qhy040404.fxxkmiuiad 2 | 3 | import android.app.Application 4 | 5 | class FxxkMIUIAdApp : Application() { 6 | override fun onCreate() { 7 | super.onCreate() 8 | app = this 9 | } 10 | 11 | companion object { 12 | lateinit var app: FxxkMIUIAdApp 13 | } 14 | } -------------------------------------------------------------------------------- /app/src/main/java/com/qhy040404/fxxkmiuiad/MainComposeActivity.kt: -------------------------------------------------------------------------------- 1 | package com.qhy040404.fxxkmiuiad 2 | 3 | import android.content.Intent 4 | import android.content.pm.PackageManager 5 | import android.os.Bundle 6 | import android.widget.Toast 7 | import androidx.activity.ComponentActivity 8 | import androidx.activity.compose.setContent 9 | import androidx.activity.enableEdgeToEdge 10 | import androidx.compose.foundation.layout.Arrangement 11 | import androidx.compose.foundation.layout.Box 12 | import androidx.compose.foundation.layout.Column 13 | import androidx.compose.foundation.layout.Row 14 | import androidx.compose.foundation.layout.fillMaxSize 15 | import androidx.compose.foundation.layout.fillMaxWidth 16 | import androidx.compose.foundation.layout.padding 17 | import androidx.compose.foundation.layout.size 18 | import androidx.compose.material3.Button 19 | import androidx.compose.material3.ExperimentalMaterial3Api 20 | import androidx.compose.material3.MaterialTheme 21 | import androidx.compose.material3.Scaffold 22 | import androidx.compose.material3.Text 23 | import androidx.compose.material3.TopAppBar 24 | import androidx.compose.runtime.Composable 25 | import androidx.compose.runtime.LaunchedEffect 26 | import androidx.compose.runtime.mutableStateOf 27 | import androidx.compose.runtime.remember 28 | import androidx.compose.ui.Alignment 29 | import androidx.compose.ui.Modifier 30 | import androidx.compose.ui.platform.LocalContext 31 | import androidx.compose.ui.res.stringResource 32 | import androidx.compose.ui.text.style.TextAlign 33 | import androidx.compose.ui.unit.dp 34 | import androidx.core.net.toUri 35 | import com.qhy040404.fxxkmiuiad.theme.DayNightTheme 36 | import com.qhy040404.fxxkmiuiad.utils.OsUtils 37 | import com.qhy040404.fxxkmiuiad.utils.PackageUtils 38 | import com.qhy040404.fxxkmiuiad.utils.PackageUtils.getApplicationEnableStateAsString 39 | import com.qhy040404.fxxkmiuiad.utils.PackageUtils.isPackageInstalled 40 | import com.qhy040404.fxxkmiuiad.utils.ShizukuUtils 41 | import rikka.shizuku.Shizuku 42 | 43 | lateinit var packageList: List 44 | 45 | val trigger = mutableStateOf(false) 46 | 47 | class MainComposeActivity : ComponentActivity() { 48 | private val callback = Shizuku.OnRequestPermissionResultListener { _, result -> 49 | if (result == PackageManager.PERMISSION_GRANTED) { 50 | trigger.value = !trigger.value 51 | } else { 52 | runCatching { 53 | PackageUtils.startLaunchAppActivity(this, SHIZUKU) 54 | Toast.makeText(this, getString(R.string.permission_result_failed), Toast.LENGTH_LONG).show() 55 | }.onFailure { 56 | Toast.makeText(this, getString(R.string.permission_manual_sui), Toast.LENGTH_LONG).show() 57 | } 58 | } 59 | } 60 | 61 | @OptIn(ExperimentalMaterial3Api::class) 62 | override fun onCreate(savedInstanceState: Bundle?) { 63 | super.onCreate(savedInstanceState) 64 | Shizuku.addRequestPermissionResultListener(callback) 65 | packageList = FUCKLIST.filter { 66 | packageManager.isPackageInstalled(it) 67 | } 68 | 69 | enableEdgeToEdge() 70 | setContent { 71 | DayNightTheme { 72 | Scaffold(topBar = { 73 | TopAppBar(title = { Text(stringResource(R.string.app_name)) }) 74 | }) { innerPadding -> 75 | Box( 76 | modifier = Modifier 77 | .fillMaxSize() 78 | .padding(innerPadding), contentAlignment = Alignment.Center 79 | ) { 80 | val context = LocalContext.current 81 | if (!OsUtils.isMiui(context)) { 82 | Text( 83 | stringResource(R.string.invalid_system), 84 | textAlign = TextAlign.Center, 85 | style = MaterialTheme.typography.bodyLarge 86 | ) 87 | return@Scaffold 88 | } 89 | 90 | ReloadTrigger(trigger.value) 91 | val shizukuStatus = ShizukuUtils.checkStatus(context) 92 | Column { 93 | Row(modifier = Modifier.fillMaxWidth(), horizontalArrangement = Arrangement.SpaceAround) { 94 | Text( 95 | text = when (shizukuStatus) { 96 | Ok, Outdated, NotAuthorized -> stringResource(R.string.shizuku_running) 97 | NotRunning, NotInstalled -> stringResource(R.string.shizuku_not_running) 98 | else -> throw IllegalStateException() 99 | }, textAlign = TextAlign.Center 100 | ) 101 | 102 | Text( 103 | text = when (shizukuStatus) { 104 | Ok, Outdated -> stringResource(R.string.shizuku_authed) 105 | NotRunning, NotAuthorized, NotInstalled -> stringResource(R.string.shizuku_not_authed) 106 | else -> throw IllegalStateException() 107 | }, textAlign = TextAlign.Center 108 | ) 109 | } 110 | 111 | Box( 112 | modifier = Modifier 113 | .size(300.dp, 120.dp) 114 | .align(Alignment.CenterHorizontally), 115 | contentAlignment = Alignment.Center 116 | ) { 117 | Text(text = when (shizukuStatus) { 118 | Ok -> packageList.associateWith { 119 | packageManager.getApplicationEnableStateAsString(it) 120 | }.entries.joinToString("\n") { (name, state) -> "$name: $state" } 121 | 122 | Outdated -> stringResource(R.string.shizuku_low_version) 123 | NotInstalled -> stringResource(R.string.shizuku_not_found) 124 | NotRunning, NotAuthorized -> "" 125 | else -> throw IllegalStateException() 126 | }, textAlign = TextAlign.Center) 127 | } 128 | 129 | Row( 130 | modifier = Modifier 131 | .fillMaxWidth() 132 | .align(Alignment.CenterHorizontally), 133 | horizontalArrangement = Arrangement.SpaceAround 134 | ) { 135 | when (shizukuStatus) { 136 | Ok -> { 137 | EnableBtn() 138 | DisableBtn() 139 | } 140 | 141 | Outdated, NotInstalled -> InstallBtn() 142 | NotRunning -> JumpBtn() 143 | NotAuthorized -> RequestPermissionBtn() 144 | } 145 | } 146 | } 147 | } 148 | } 149 | } 150 | } 151 | } 152 | 153 | override fun onResume() { 154 | super.onResume() 155 | trigger.value = !trigger.value 156 | } 157 | 158 | override fun onDestroy() { 159 | super.onDestroy() 160 | Shizuku.removeRequestPermissionResultListener(callback) 161 | } 162 | } 163 | 164 | @Composable 165 | fun EnableBtn() { 166 | val context = LocalContext.current 167 | val showToast = remember { mutableStateOf(false) } 168 | 169 | Button(onClick = { 170 | packageList.forEach { 171 | PackageUtils.setApplicationEnabledSetting(it, PackageManager.COMPONENT_ENABLED_STATE_ENABLED) 172 | PackageUtils.setPackagesSuspendedAsUser(it, false) 173 | } 174 | 175 | showToast.value = true 176 | }) { 177 | Text(stringResource(R.string.enable)) 178 | } 179 | 180 | LaunchedEffect(showToast.value) { 181 | if (showToast.value) { 182 | Toast.makeText(context, context.getString(R.string.enabled), Toast.LENGTH_SHORT).show() 183 | trigger.value = !trigger.value 184 | showToast.value = false 185 | } 186 | } 187 | } 188 | 189 | @Composable 190 | fun DisableBtn() { 191 | val context = LocalContext.current 192 | val showToast = remember { mutableStateOf(false) } 193 | 194 | Button(onClick = { 195 | packageList.forEach { pkgName -> 196 | runCatching { 197 | PackageUtils.setApplicationEnabledSetting( 198 | pkgName, 199 | PackageManager.COMPONENT_ENABLED_STATE_DISABLED_USER 200 | ) 201 | }.onFailure { 202 | PackageUtils.setPackagesSuspendedAsUser(pkgName, true) 203 | } 204 | } 205 | 206 | showToast.value = true 207 | }) { 208 | Text(stringResource(R.string.disable)) 209 | } 210 | 211 | LaunchedEffect(showToast.value) { 212 | if (showToast.value) { 213 | Toast.makeText(context, context.getString(R.string.disabled), Toast.LENGTH_SHORT).show() 214 | trigger.value = !trigger.value 215 | showToast.value = false 216 | } 217 | } 218 | } 219 | 220 | @Composable 221 | fun InstallBtn() { 222 | val context = LocalContext.current 223 | Button(onClick = { 224 | runCatching { 225 | context.startActivity(Intent(Intent.ACTION_VIEW).apply { 226 | data = SHIZUKU_RELEASE.toUri() 227 | }) 228 | } 229 | }) { 230 | Text(stringResource(R.string.install_shizuku)) 231 | } 232 | } 233 | 234 | @Composable 235 | fun JumpBtn() { 236 | val context = LocalContext.current 237 | Button(onClick = { 238 | runCatching { 239 | PackageUtils.startLaunchAppActivity(context, SHIZUKU) 240 | } 241 | }) { 242 | Text(stringResource(R.string.jump_to_shizuku)) 243 | } 244 | } 245 | 246 | @Composable 247 | fun RequestPermissionBtn() { 248 | Button(onClick = { 249 | runCatching { 250 | Shizuku.requestPermission(0) 251 | } 252 | }) { 253 | Text(stringResource(R.string.request_shizuku_auth)) 254 | } 255 | } 256 | 257 | @Composable 258 | fun ReloadTrigger(trigger: Any) { 259 | } 260 | -------------------------------------------------------------------------------- /app/src/main/java/com/qhy040404/fxxkmiuiad/theme/Theme.kt: -------------------------------------------------------------------------------- 1 | package com.qhy040404.fxxkmiuiad.theme 2 | 3 | import android.os.Build 4 | import androidx.compose.foundation.isSystemInDarkTheme 5 | import androidx.compose.material3.MaterialTheme 6 | import androidx.compose.material3.Typography 7 | import androidx.compose.material3.darkColorScheme 8 | import androidx.compose.material3.dynamicDarkColorScheme 9 | import androidx.compose.material3.dynamicLightColorScheme 10 | import androidx.compose.material3.lightColorScheme 11 | import androidx.compose.runtime.Composable 12 | import androidx.compose.ui.graphics.Color 13 | import androidx.compose.ui.platform.LocalContext 14 | import androidx.compose.ui.text.TextStyle 15 | import androidx.compose.ui.text.font.FontFamily 16 | import androidx.compose.ui.text.font.FontWeight 17 | import androidx.compose.ui.unit.sp 18 | 19 | private val DarkColorScheme = darkColorScheme( 20 | primary = Color(0xFFD0BCFF), 21 | secondary = Color(0xFFCCC2DC), 22 | tertiary = Color(0xFFEFB8C8) 23 | ) 24 | 25 | private val LightColorScheme = lightColorScheme( 26 | primary = Color(0xFF6650a4), 27 | secondary = Color(0xFF625b71), 28 | tertiary = Color(0xFF7D5260) 29 | ) 30 | 31 | private val Typography = Typography( 32 | bodyLarge = TextStyle( 33 | fontFamily = FontFamily.Default, 34 | fontWeight = FontWeight.Normal, 35 | fontSize = 16.sp, 36 | lineHeight = 24.sp, 37 | letterSpacing = 0.5.sp 38 | ) 39 | ) 40 | 41 | @Composable 42 | fun DayNightTheme( 43 | darkTheme: Boolean = isSystemInDarkTheme(), 44 | dynamicColor: Boolean = true, 45 | content: @Composable () -> Unit, 46 | ) { 47 | val colorScheme = when { 48 | dynamicColor && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S -> { 49 | val context = LocalContext.current 50 | if (darkTheme) dynamicDarkColorScheme(context) else dynamicLightColorScheme(context) 51 | } 52 | 53 | darkTheme -> DarkColorScheme 54 | else -> LightColorScheme 55 | } 56 | 57 | MaterialTheme( 58 | colorScheme = colorScheme, 59 | typography = Typography, 60 | content = content 61 | ) 62 | } -------------------------------------------------------------------------------- /app/src/main/java/com/qhy040404/fxxkmiuiad/utils/OsUtils.kt: -------------------------------------------------------------------------------- 1 | package com.qhy040404.fxxkmiuiad.utils 2 | 3 | import android.content.Context 4 | import android.os.Build 5 | import androidx.annotation.ChecksSdkIntAtLeast 6 | import com.qhy040404.fxxkmiuiad.MIUI_ROM 7 | import com.qhy040404.fxxkmiuiad.utils.PackageUtils.isPackageInstalled 8 | 9 | object OsUtils { 10 | @ChecksSdkIntAtLeast(api = Build.VERSION_CODES.VANILLA_ICE_CREAM) 11 | fun atLeastV(): Boolean { 12 | return Build.VERSION.SDK_INT >= 35 13 | } 14 | 15 | fun isMiui(context: Context): Boolean { 16 | return context.packageManager.isPackageInstalled(MIUI_ROM) 17 | } 18 | } -------------------------------------------------------------------------------- /app/src/main/java/com/qhy040404/fxxkmiuiad/utils/PackageUtils.kt: -------------------------------------------------------------------------------- 1 | package com.qhy040404.fxxkmiuiad.utils 2 | 3 | import android.content.Context 4 | import android.content.Intent 5 | import android.content.pm.IPackageManager 6 | import android.content.pm.PackageManager 7 | import com.qhy040404.fxxkmiuiad.R 8 | import org.lsposed.hiddenapibypass.HiddenApiBypass 9 | import rikka.shizuku.ShizukuBinderWrapper 10 | import rikka.shizuku.SystemServiceHelper 11 | 12 | object PackageUtils { 13 | fun PackageManager.getApplicationEnableStateAsString(pkg: String): String { 14 | return when (this.getApplicationEnabledSetting(pkg)) { 15 | PackageManager.COMPONENT_ENABLED_STATE_DEFAULT, PackageManager.COMPONENT_ENABLED_STATE_ENABLED -> { 16 | try { 17 | if (isPackageSuspended(pkg)) { 18 | ResourceUtils.getString(R.string.package_disabled_by_suspend) 19 | } else { 20 | ResourceUtils.getString(R.string.package_enabled) 21 | } 22 | } catch (_: PackageManager.NameNotFoundException) { 23 | ResourceUtils.getString(R.string.package_not_found) 24 | } 25 | } 26 | 27 | PackageManager.COMPONENT_ENABLED_STATE_DISABLED, PackageManager.COMPONENT_ENABLED_STATE_DISABLED_USER, PackageManager.COMPONENT_ENABLED_STATE_DISABLED_UNTIL_USED -> ResourceUtils.getString( 28 | R.string.package_disabled 29 | ) 30 | 31 | else -> throw IllegalStateException() 32 | } 33 | } 34 | 35 | fun PackageManager.isPackageInstalled(pkg: String): Boolean { 36 | return try { 37 | getPackageInfo(pkg, 0) != null 38 | } catch (_: PackageManager.NameNotFoundException) { 39 | false 40 | } 41 | } 42 | 43 | fun startLaunchAppActivity(context: Context, packageName: String?) { 44 | if (packageName == null) { 45 | return 46 | } 47 | val launcherActivity: String 48 | val intent = Intent(Intent.ACTION_MAIN, null) 49 | .addCategory(Intent.CATEGORY_LAUNCHER) 50 | .setPackage(packageName) 51 | val info = context.packageManager.queryIntentActivities(intent, 0) 52 | launcherActivity = info.getOrNull(0)?.activityInfo?.name.orEmpty() 53 | val launchIntent = Intent(Intent.ACTION_MAIN) 54 | .addCategory(Intent.CATEGORY_LAUNCHER) 55 | .setClassName(packageName, launcherActivity) 56 | .addFlags(Intent.FLAG_ACTIVITY_NEW_TASK) 57 | context.startActivity(launchIntent) 58 | } 59 | 60 | fun setApplicationEnabledSetting(packageName: String, state: Int) { 61 | IPackageManager.Stub.asInterface( 62 | ShizukuBinderWrapper(SystemServiceHelper.getSystemService("package")) 63 | ).setApplicationEnabledSetting(packageName, state, 0, 0, "com.qhy040404.fxxkmiuiad") 64 | } 65 | 66 | fun setPackagesSuspendedAsUser(packageName: String, suspended: Boolean) { 67 | HiddenApiBypass.addHiddenApiExemptions("") 68 | 69 | val mInterface = IPackageManager.Stub.asInterface( 70 | ShizukuBinderWrapper(SystemServiceHelper.getSystemService("package")) 71 | ) 72 | 73 | if (OsUtils.atLeastV()) { 74 | mInterface.setPackagesSuspendedAsUser( 75 | arrayOf(packageName), 76 | suspended, 77 | null, 78 | null, 79 | null, 80 | 0, 81 | "com.android.shell", 82 | 0, 83 | 0 84 | ) 85 | } else { 86 | mInterface.setPackagesSuspendedAsUser( 87 | arrayOf(packageName), 88 | suspended, 89 | null, 90 | null, 91 | null, 92 | "com.android.shell", 93 | 0 94 | ) 95 | } 96 | } 97 | } -------------------------------------------------------------------------------- /app/src/main/java/com/qhy040404/fxxkmiuiad/utils/ResourceUtils.kt: -------------------------------------------------------------------------------- 1 | package com.qhy040404.fxxkmiuiad.utils 2 | 3 | import androidx.annotation.StringRes 4 | import com.qhy040404.fxxkmiuiad.FxxkMIUIAdApp 5 | 6 | object ResourceUtils { 7 | fun getString(@StringRes resId: Int): String { 8 | return FxxkMIUIAdApp.app.getString(resId) 9 | } 10 | } -------------------------------------------------------------------------------- /app/src/main/java/com/qhy040404/fxxkmiuiad/utils/ShizukuUtils.kt: -------------------------------------------------------------------------------- 1 | package com.qhy040404.fxxkmiuiad.utils 2 | 3 | import android.content.Context 4 | import android.content.pm.PackageManager 5 | import com.qhy040404.fxxkmiuiad.NotAuthorized 6 | import com.qhy040404.fxxkmiuiad.NotInstalled 7 | import com.qhy040404.fxxkmiuiad.NotRunning 8 | import com.qhy040404.fxxkmiuiad.Ok 9 | import com.qhy040404.fxxkmiuiad.Outdated 10 | import com.qhy040404.fxxkmiuiad.SHIZUKU 11 | import com.qhy040404.fxxkmiuiad.utils.PackageUtils.isPackageInstalled 12 | import rikka.shizuku.Shizuku 13 | import rikka.sui.Sui 14 | 15 | object ShizukuUtils { 16 | fun checkStatus(context: Context): Int { 17 | if (!context.packageManager.isPackageInstalled(SHIZUKU) && !Sui.isSui()) return NotInstalled 18 | if (!Shizuku.pingBinder()) return NotRunning 19 | if (Shizuku.checkSelfPermission() != PackageManager.PERMISSION_GRANTED && context.checkSelfPermission("moe.shizuku.manager.permission.API_V23") != PackageManager.PERMISSION_GRANTED) return NotAuthorized 20 | if (Shizuku.getVersion() < 10) return Outdated 21 | 22 | return Ok 23 | } 24 | } 25 | 26 | -------------------------------------------------------------------------------- /app/src/main/res/drawable-v24/ic_launcher_foreground.xml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 15 | 18 | 21 | 22 | 23 | 24 | 30 | -------------------------------------------------------------------------------- /app/src/main/res/drawable/ic_launcher_background.xml: -------------------------------------------------------------------------------- 1 | 2 | 7 | 10 | 15 | 20 | 25 | 30 | 35 | 40 | 45 | 50 | 55 | 60 | 65 | 70 | 75 | 80 | 85 | 90 | 95 | 100 | 105 | 110 | 115 | 120 | 125 | 130 | 135 | 140 | 145 | 150 | 155 | 160 | 165 | 170 | 171 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qhy040404/FxxkMIUIAd/ce8ed42ca6f936f3ce1b319178c05f629497214b/app/src/main/res/mipmap-xxxhdpi/ic_launcher.webp -------------------------------------------------------------------------------- /app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/qhy040404/FxxkMIUIAd/ce8ed42ca6f936f3ce1b319178c05f629497214b/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp -------------------------------------------------------------------------------- /app/src/main/res/values-en/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | Shizuku is not installed 3 | Enable 4 | Enabled 5 | Disable 6 | Disabled 7 | Install Shizuku 8 | Request Shizuku authorization 9 | Disabled (suspend) 10 | Enabled 11 | Not Installed 12 | Disabled 13 | Authorization failed. Jump to Shizuku for manual authorization 14 | Shizuku not detected, please go to Sui for authorization manually 15 | Not MIUI or HyperOS 16 | Shizuku is running 17 | Shizuku is not running 18 | Shizuku authorized 19 | Shizuku not authorized 20 | Shizuku is outdated, please update 21 | Jump to Shizuku 22 | -------------------------------------------------------------------------------- /app/src/main/res/values-ja/strings.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | Shizuku はインストールされていません 4 | 有効化 5 | 有効化済み 6 | 無効化 7 | 無効化済み 8 | Shizuku をインストール 9 | Shizuku 認証を要求 10 | 無効化済み (サスペンド) 11 | 有効化済み 12 | 未インストール 13 | 無効化済み 14 | 認証に失敗しました。手動で認証するには、Shizuku を開いてください。 15 | Shizuku が検出されませんでした。Sui で手動での認証をしてください。 16 | MIUI または HyperOS ではありません 17 | Shizuku は実行中です 18 | Shizuku は実行していません 19 | Shizuku を認証済みです 20 | Shizuku を認証していません 21 | Shizuku が古いです。更新してください。 22 | Shizuku にジャンプする 23 | -------------------------------------------------------------------------------- /app/src/main/res/values-night/themes.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 |