summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorAbhijeet Kaur <abkaur@google.com>2020-01-29 18:55:49 +0000
committerAbhijeet Kaur <abkaur@google.com>2020-01-29 18:55:49 +0000
commit62477e502e2ae5add2bbb8fac27ca995a08745eb (patch)
treed4801776e84eea2cc488908b3e0bedc54f38b491 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent04346f018669bcb5754924e9fd2a0e78bc0f3a26 (diff)
Call getPackageUidAsUser instead of getPackageUid
PackageManager.java has a lot of similar options for getPackageUid, 3 of which are: 1. getPackageUid(String packageName, @PackageInfoFlags int flags) 2. getPackageUid(String packageName, @PackageInfoFlags int flags, @UserIdInt) 3. getPackageUidAsUser(String packageName, @UserIdInt int userId) The function being called here in set appop getPackageUid is calling 1st method but passing userId. Passing the user ID is accepted as it is also int, but the uid of the current user is returned. Test: manual Change-Id: I032df4a3e666ebb3efee673153bb75fa4c571e83
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions