Partially fixed CtsScopedStorageHostTest to support secondary users.
This CL only fix the hostside part so it pass the current user to pm
commands. The tests are still failing for secondary users (and on
automotive) because the device-side classes must be refactored to use
a ContentProvider to access the secondary user data.
Plus some minor improvements:
- Moved common code to supeclass.
- Used Truth instead of JUnit assertions.
- Added checkstyle hook.
- Removed redundant attributes initialization.
Test: atest CtsScopedStorageHostTest # on phones
Bug: 169101565
Bug: 163891184
Change-Id: I296342671b8b701c6e1059303f48d86e3029486c
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
index 380cd6d..ff509e0 100644
--- a/PREUPLOAD.cfg
+++ b/PREUPLOAD.cfg
@@ -39,6 +39,7 @@
common/device-side/util/
hostsidetests/car/
hostsidetests/multiuser/
+ hostsidetests/scopedstorage/
hostsidetests/stagedinstall/
hostsidetests/userspacereboot/
tests/tests/packageinstaller/atomicinstall/