Revert "Revert "Add tests for cross-user data isolation.""

This reverts commit afc09388544350bc94661ddf911401ed0eb3a938, which in
turn reverted commit f7a3466217ee3b26771b259d06c8dec4e3bbe010.

Apps running in one user should not be able to probe directories
relating to other users.

This is enforced by the app data isolation feature for apps targeting
API level 30, and by SELinux rules for older apps, leading to slightly
different tests.

Also did some minor refactoring & added extra assertions to existing
tests.

Reason for revert: Re-landing with fixes.

Bug: 141677108
Test: atest AppDataIsolationTests
Test: atest --user_type secondary_user AppDataIsolationTests
Change-Id: I79b5f2d9d2a461473122c98bd72efa36edce36aa
5 files changed