Merge "fix: make device paths function static" into main

This commit is contained in:
Treehugger Robot
2024-07-11 13:48:51 +00:00
committed by Gerrit Code Review
2 changed files with 3 additions and 2 deletions

View File

@@ -42,10 +42,11 @@ genrule {
srcs: ["src/DevicePathsTemplate.java"], srcs: ["src/DevicePathsTemplate.java"],
out: ["DevicePaths.java"], out: ["DevicePaths.java"],
tool_files: ["partition_aconfig_flags_paths.txt"], 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 { java_library {
name: "aconfig_device_paths_java", name: "aconfig_device_paths_java",
srcs: [":libaconfig_java_device_paths_src"], srcs: [":libaconfig_java_device_paths_src"],
sdk_version: "core_current",
} }

View File

@@ -36,7 +36,7 @@ public class DevicePaths {
* Returns the list of all on-device aconfig protos paths. * Returns the list of all on-device aconfig protos paths.
* @hide * @hide
*/ */
public List<String> parsedFlagsProtoPaths() { public static List<String> parsedFlagsProtoPaths() {
ArrayList<String> paths = new ArrayList(Arrays.asList(PATHS)); ArrayList<String> paths = new ArrayList(Arrays.asList(PATHS));
File apexDirectory = new File(APEX_DIR); File apexDirectory = new File(APEX_DIR);