Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a607d25 authored by Rhed Jao's avatar Rhed Jao
Browse files

Ensure input methods setting keys unreadable to downloaded apps

ENABLED_INPUT_METHODS and DISABLED_SYSTEM_INPUT_METHODS reveals
a list of input methods apps, which violates the rules of package
visibility. This cl restrict the setting key to be readable for
apps targeting in T and below.

Bug: 253164661
Test: atest AccessibilitySoftKeyboardTest
Test: atest CarRotaryImeTest
Change-Id: I48aa7b05cd0dbde70fc6d53eee455959264a6867
parent 94fc6ed4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7135,7 +7135,7 @@ public final class Settings {
         * Format like "ime0;subtype0;subtype1;subtype2:ime1:ime2;subtype0"
         * where imeId is ComponentName and subtype is int32.
         */
        @Readable
        @Readable(maxTargetSdk = Build.VERSION_CODES.TIRAMISU)
        public static final String ENABLED_INPUT_METHODS = "enabled_input_methods";
        /**
@@ -7144,7 +7144,7 @@ public final class Settings {
         * by ':'.
         * @hide
         */
        @Readable
        @Readable(maxTargetSdk = Build.VERSION_CODES.TIRAMISU)
        public static final String DISABLED_SYSTEM_INPUT_METHODS = "disabled_system_input_methods";
        /**