commit | f1c1063e2c7d656799cdd524763a3a5fb0987317 | [log] [tgz] |
---|---|---|
author | Xiao Ma <xiaom@google.com> | Fri Sep 09 02:16:17 2022 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Fri Sep 09 02:16:17 2022 +0000 |
tree | 5a4b6ee55b2b346938bf78065484dbe87458fd2c | |
parent | 3b2907e44945609fac01c23b754f0e7e5bdf5e39 [diff] | |
parent | 5d7cbdddc0b71e5ec282983fba24097aa789da5e [diff] |
Merge "Create ethernet directory if it's not exist"
diff --git a/service-t/src/com/android/server/ethernet/EthernetConfigStore.java b/service-t/src/com/android/server/ethernet/EthernetConfigStore.java index 17abbab..156b526 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 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); }