diff --git a/service-t/src/com/android/server/ethernet/EthernetConfigStore.java b/service-t/src/com/android/server/ethernet/EthernetConfigStore.java index 17abbab7f4..156b52631d 100644 --- a/service-t/src/com/android/server/ethernet/EthernetConfigStore.java +++ b/service-t/src/com/android/server/ethernet/EthernetConfigStore.java @@ -116,6 +116,10 @@ public class EthernetConfigStore { } public void write(String iface, IpConfiguration config) { + final File directory = new File(APEX_IP_CONFIG_FILE_PATH); + if (!directory.exists()) { + directory.mkdirs(); + } write(iface, config, APEX_IP_CONFIG_FILE_PATH + CONFIG_FILE); }