Adopt and drop shell permission once per VCN test.

This CL updates VcnManagerTest to explicitly adopt and drop shell
permission identity once per test. This change ensures that no races
occur between adopting and dropping shell permission identity in
testing, which can cause test flake.

This CL also updates CarrierPrivilegeUtils to not manage its own
permissions (needed for adopting CarrierPrivileges). Instead, the caller
must manage these permissions before using the util.

Bug: 182291467
Test: atest CtsVcnTestCases
Change-Id: I3e82d3b2da3fe30b87a90751b0b996a42e6f15c3
2 files changed
tree: e14e12eb328b9d647515c76e9609df1a9e895564
  1. Vcn/