Support crystalball perf tests.

1. Add collector library.
2. Enable needed permissions to write the trace file in the device.

Bug: 161918987
Test: atest AutofillPerfTests
Test: adb shell am instrument -w -e package android.view.autofill \
com.android.perftests.autofill/androidx.test.runner.AndroidJUnitRunner

Change-Id: I281a8e6b040d7f645e0b0cc72062f4580f8b5fde
2 files changed