Skip to content

Commit 65c121a

Browse files
ADFA-3827 Whitelist for MIUI's AccessController.haveAccessControlPassword disk read during startActivity transitions (#1246)
Whitelist for Xiaomi/MIUI's AccessController.haveAccessControlPassword disk read during startActivity transitions
1 parent 9726e17 commit 65c121a

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

‎app/src/main/java/com/itsaky/androidide/app/strictmode/WhitelistEngine.kt‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,24 @@ object WhitelistEngine {
134134
)
135135
}
136136

137+
rule {
138+
ofType<DiskReadViolation>()
139+
allow(
140+
"""
141+
MIUI's AccessController checks whether an access-control password file exists
142+
during activity transitions (startActivity). This happens in the system server
143+
and is reported back via Binder. Since we can't control when AccessController
144+
is called, we allow this violation.
145+
""".trimIndent(),
146+
)
147+
148+
matchAdjacentFrames(
149+
classAndMethod("java.io.File", "exists"),
150+
classAndMethod("com.miui.server.AccessController", "haveAccessControlPassword"),
151+
classAndMethod("com.miui.server.SecurityManagerService", "haveAccessControlPassword"),
152+
)
153+
}
154+
137155
rule {
138156
ofType<DiskReadViolation>()
139157
allow(

0 commit comments

Comments
 (0)