summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorJoanne Chung <joannechung@google.com>2020-12-30 13:02:13 +0800
committerJoanne Chung <joannechung@google.com>2020-12-30 19:57:04 +0800
commitfde8a2f917663c963090bdfb140cfb353859b2fe (patch)
treeca89e5247d94d839268aaa54d04dc2943dfd7767 /tools/aapt2/java/JavaClassGenerator.cpp
parentc2df8ea9208e0623dced4d3048ab1c6f175a9b59 (diff)
Get ApplicationInfo using usr id
Use ApplicationInfoAsUser() to get the application information by user id to make sure we have correct permission, othewise we will get the SecurityException due to lack of INTERACT_ACROSS_USERS. Also add checking in StartProxyOp, we don't add it in client code. Bug: 176313819 Test: atest CtsVoiceRecognitionTestCases Test: manual. 1.create profile user 2.Install sample recognizer app 3.Function works fine and no security exception occurred after apply the change Change-Id: Iaf485537b8082d2109d2134ff987dc7244e31218
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions