Respect READ_EXERCISE_ROUTES_ALL permission in HC reading APIs.
Apps with the permissions granted can
- access other apps routes in the foreground (but not in the background).
- access their own routes both in background and foreground.
Exercise routes CTS tests moved to a separate directory to isolate/decouple them from other tests.
The multi test app infrastructure required additional changes:
1. Read records by ids support.
2. Passing additional ER related fields in a ExerciseRouteSession.
Using reflection to call hidden `setHasRoute` as necessary evil as test coverage is prioritized above API pureness.
Test: atest CtsExerciseRouteTestCases
Change-Id: I0e238d5deec9f6a1bb2e7f6ecd29f8c83eb664f4
31 files changed