Fix dependencies that are already available

Avoid statically linking dependencies when possible.

Test: run cts-unit-tests
run cts-dev -m CtsUnofficialApisUsageTestCases
run cts-dev -m CtsIncidentHostTestCases
run cts-dev -m CtsAppSecurityHostTestCases
run cts-dev -m CtsStatsdHostTestCases
Bug: 118297021
Change-Id: I643ff890ec0b88bd2d9e963c6aedf9e9536a79fc
diff --git a/tests/Android.mk b/tests/Android.mk
index b614cb1..0be6af6 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -24,9 +24,7 @@
 
 LOCAL_MODULE := CtsStatsdHostTestCases
 
-LOCAL_PROTOC_OPTIMIZE_TYPE := full
-LOCAL_STATIC_JAVA_LIBRARIES := platformprotos
-LOCAL_JAVA_LIBRARIES := cts-tradefed tradefed compatibility-host-util host-libprotobuf-java-full
+LOCAL_JAVA_LIBRARIES := cts-tradefed tradefed compatibility-host-util host-libprotobuf-java-full platformprotos
 
 include $(BUILD_HOST_JAVA_LIBRARY)