Move some config file logic to a
shared utility class.

This logic is needed by the mainline
supplicant to add and remove interfaces.

Bug: 365585450
Test: m
Change-Id: I395bb69eb29023fa888ca76503b4cd657b822acd
2 files changed