odrefresh: Respect "dalvik.vm.systemservercompilerfilter".

If the property is set, we should use whatever specified in the
property, rather than always using "speed".

This is brought up by bdc@. The change that merges into sc-dev is
already fixed. We need this fix in AOSP as well.

Bug: 195653499
Test: adb shell setprop dalvik.vm.systemservercompilerfilter verify && adb shell odrefresh --force-compile
    (Found "/apex/com.android.art/bin/dex2oat64
    --dex-file=/system/framework/services.jar
    ...
    --compiler-filter=verify" in logcat)
Test: atest odsign_e2e_tests

Change-Id: Icb57ed5eb6b8976ecf6ac88bf8c278bbe144b450
1 file changed