fix: make device paths function static

Bug: 342636474
Test: m
Change-Id: Iea745c39f8ef90543015c365ead4c02ee4ff6653
This commit is contained in:
Ted Bauer
2024-07-10 23:14:26 +00:00
parent 11670f3918
commit ba67436d0d
2 changed files with 3 additions and 2 deletions

View File

@@ -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",
}

View File

@@ -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);