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

Commit 107ce659 authored by Anna Bauza's avatar Anna Bauza
Browse files

Add a flag to fix the cache for UserManager.getUserProperties

The cache is not optimized for getUserProperty for values below 0, eg. UserHandler.USER_NULL or UserHandle.USER_ALL. This can lead to binder spam if used incorrectly.

It also fix potential misuse of getUserProprties method

Bug:350416200
Change-Id: I1ae548b33c6052b16c2f926260742f26b7141b1f
Test:N/A
Flag: android.multiuser.fix_get_user_property_cache
parent 96b44541
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -150,6 +150,16 @@ flag {
  }
}

flag {
    name: "fix_get_user_property_cache"
    namespace: "multiuser"
    description: "Cache is not optimised for getUserProperty for values below 0, eg. UserHandler.USER_NULL or UserHandle.USER_ALL"
    bug: "350416200"
    metadata {
        purpose: PURPOSE_BUGFIX
  }
}

flag {
    name: "cache_quiet_mode_state"
    namespace: "multiuser"