Added disallowAppInstallation() in UserUtils class
- disallowAppInstallation() must be invoked to disallow app installation
in secondary user explicitly. Allow app installation otherwise.
- replaced executeShellCommand() calls with executeShellV2Command() to
avoid string parsing required for checking cmd failures/errors.
Bug: 289451968
Bug: 289802806
Test: Run the testcase testPocCVE_2022_20112 with these updates on
android-11.0.0_r46 with/without patch
Change-Id: I66a415cb0e1302c935ab27e32e5a410d960c65a1
1 file changed