summaryrefslogtreecommitdiff
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
author Samiul Islam <samiul@google.com> 2022-04-08 16:00:34 +0100
committer Mohammad Samiul Islam <samiul@google.com> 2022-04-28 15:39:26 +0100
commitdb9e238ec75d356fe9a534b6632d213d0a42d038 (patch)
treee5bc9d73ee7df3bb51f719b7268eb6a84561b9be /cmds/bootanimation/BootAnimation.cpp
parentc9bf2574b4a640d9b4742041d32942735310f806 (diff)
Disallow external storage access without restricting other api calls
Currently, sandbox cannot call any apis from StorageManager that checks calling package has same uid as calling uid. This CL fixes that by using pm.isSameApp() api. Additionally, since Environment.java fetches the initial application context, the uid for that does not fall under the sandbox uid range. It falls under app uid range. We fix the problem by checking for PROPERTY_NO_APP_DATA_STORAGE flag on the application. Bug: 228424287 Test: atest CtsSdkSandboxInprocessTests (see ag/17657742) Change-Id: I8d9fca369cfbed47b40a42a44a40ff73acb712ec
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
0 files changed, 0 insertions, 0 deletions