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
tree: e834fd8a52470a27e44fddbd7618e7d0ce7c6c47
  1. build/
  2. docs/
  3. emu_test/
  4. libraries/
  5. scripts/
  6. tests/
  7. utils/
  8. PREUPLOAD.cfg