Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0437d3c0 authored by Zhi Dou's avatar Zhi Dou
Browse files

remove apex or capex extension from apex

Test: atest aconfig_device_paths_java_test
Bug: 386211473
Change-Id: Ia946435f3fc56ae5308023fdc4b5f201f3743ca8
parent 8b1dd186
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -78,14 +78,8 @@ public class DeviceProtosTestUtil {
        }

        for (File prefix : subdirs) {
            // For each mainline modules, there are two directories, one <modulepackage>/,
            // and one <modulepackage>@<versioncode>/. Just read the former.
            if (!prefix.getAbsolutePath().endsWith(".apex")) {
                continue;
            }

            String apexName = prefix.getName().replace("com.google", "com");
            apexName = apexName.substring(0, apexName.length() - 5);
            apexName = apexName.substring(0, apexName.lastIndexOf('.'));

            File protoPath = new File(APEX_DIR + apexName + APEX_ACONFIG_PATH_SUFFIX);
            if (!protoPath.exists()) {