Fix several test packaging issues in AppSearchServicesTests.
* jarjar the framework APIs into the test so that the test doesn't try
to use hidden and package-private APIs from the system jar.
* Refactor AppSearchConfig into an interface and add a fake
implementation that returns only default values which can be used for
tests that don't need the READ_DEVICE_CONFIG permission.
* Remove the READ_DEVICE_CONFIG permission since this is privileged.
* Remove the platform certificate since this is not allowed in MTS.
* Move the tests to the general-tests suite now that the issues making
it device-specific are resolved.
Bug: 203690505
Bug: 226294917
Test: Presubmit
Change-Id: Ic6003750b4c13240847882a4ca2b5f1a588ef76f
12 files changed