diff options
| author | 2024-10-01 00:27:27 +0000 | |
|---|---|---|
| committer | 2024-10-01 00:27:27 +0000 | |
| commit | 1ef2ac636dd7139018eab31217b0a5777fa6a38c (patch) | |
| tree | 05f3ea2091dfa9671b02d07f5692ca68fe3ecedc | |
| parent | 4d09c7a5cefaae63f55763a40788fd08f4830182 (diff) | |
| parent | ff713e997e378519306b7d5690b0cd4754d4a896 (diff) | |
Merge "Read the proto paths with root" into main
| -rw-r--r-- | tools/aconfig/aconfig_device_paths/src/HostDeviceProtosTemplate.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/aconfig/aconfig_device_paths/src/HostDeviceProtosTemplate.java b/tools/aconfig/aconfig_device_paths/src/HostDeviceProtosTemplate.java index 844232b9e1..e2ad40ad6f 100644 --- a/tools/aconfig/aconfig_device_paths/src/HostDeviceProtosTemplate.java +++ b/tools/aconfig/aconfig_device_paths/src/HostDeviceProtosTemplate.java @@ -25,6 +25,7 @@ import java.util.stream.Collectors; /** * A host lib that can read all aconfig proto file paths on a given device. + * This lib is only available on device with root access (userdebug/eng). */ public class HostDeviceProtos { /** @@ -40,7 +41,8 @@ public class HostDeviceProtos { }; private static final String APEX_DIR = "/apex"; - private static final String RECURSIVELY_LIST_APEX_DIR_COMMAND = "shell find /apex | grep aconfig_flags"; + private static final String RECURSIVELY_LIST_APEX_DIR_COMMAND = + "shell su 0 find /apex | grep aconfig_flags"; private static final String APEX_ACONFIG_PATH_SUFFIX = "/etc/aconfig_flags.pb"; |