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

Commit ba67436d authored by Ted Bauer's avatar Ted Bauer
Browse files

fix: make device paths function static

Bug: 342636474
Test: m
Change-Id: Iea745c39f8ef90543015c365ead4c02ee4ff6653
parent 11670f39
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -42,10 +42,11 @@ genrule {
    srcs: ["src/DevicePathsTemplate.java"],
    out: ["DevicePaths.java"],
    tool_files: ["partition_aconfig_flags_paths.txt"],
    cmd: "sed -e '/TEMPLATE/{r$(location partition_aconfig_flags_paths.txt)' -e 'd}' $(in) > $(out)"
    cmd: "sed -e '/TEMPLATE/{r$(location partition_aconfig_flags_paths.txt)' -e 'd}' $(in) > $(out)",
}

java_library {
    name: "aconfig_device_paths_java",
    srcs: [":libaconfig_java_device_paths_src"],
    sdk_version: "core_current",
}
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ public class DevicePaths {
     * Returns the list of all on-device aconfig protos paths.
     * @hide
     */
    public List<String> parsedFlagsProtoPaths() {
    public static List<String> parsedFlagsProtoPaths() {
        ArrayList<String> paths = new ArrayList(Arrays.asList(PATHS));

        File apexDirectory = new File(APEX_DIR);