From 5d7cbdddc0b71e5ec282983fba24097aa789da5e Mon Sep 17 00:00:00 2001 From: Milim Lee Date: Mon, 29 Aug 2022 09:54:35 +0900 Subject: [PATCH] Create ethernet directory if it's not exist Test: boot Bug: 244012069 Change-Id: I2b8f1dd2989ba562755d66be9e6dea9a92834cf3 --- .../src/com/android/server/ethernet/EthernetConfigStore.java | 4 ++++ 1 file changed, 4 insertions(+) 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); }