Add log when resetting DeviceConfig

The log should help investigate flakes, by knowing at which point
DeviceConfig is being reset and to which value.

Test: atest
Change-Id: Ia7392ad57d3df17b0d5194158b402f52bc90f7e3
This commit is contained in:
Remi NGUYEN VAN 2024-10-25 09:20:12 +09:00
commit 001be79f0f

View file

@ -89,6 +89,7 @@ class DeviceConfigRule @JvmOverloads constructor(
} cleanupStep {
runAsShell(WRITE_DEVICE_CONFIG) {
originalConfig.forEach { (key, value) ->
Log.i(TAG, "Resetting config \"${key.second}\" to \"$value\"")
DeviceConfig.setProperty(
key.first, key.second, value, false /* makeDefault */)
}