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
1 file changed