From 9f59ea3199a83697b4e1adcd4ac35484ac824c67 Mon Sep 17 00:00:00 2001 From: Bruno Martins Date: Mon, 31 Jan 2022 18:55:22 +0000 Subject: [PATCH] bash: Set proper env PATH for Android Change-Id: I5994b711b109370ff8a0c1f081d1376065fba102 --- config-top.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config-top.h b/config-top.h index 47017b8..a3c29b3 100644 --- a/config-top.h +++ b/config-top.h @@ -63,7 +63,7 @@ /* The default value of the PATH variable. */ #ifndef DEFAULT_PATH_VALUE #define DEFAULT_PATH_VALUE \ - "/sbin:/system/sbin:/system/bin:/system/xbin:." + "/product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin:." #endif /* If you want to unconditionally set a value for PATH in every restricted @@ -74,7 +74,7 @@ the Posix.2 confstr () function, or CS_PATH define are not present. */ #ifndef STANDARD_UTILS_PATH #define STANDARD_UTILS_PATH \ - "/sbin:/system/sbin:/system/bin:/system/xbin:/system/etc" + "/product/bin:/apex/com.android.runtime/bin:/apex/com.android.art/bin:/system_ext/bin:/system/bin:/system/xbin:/odm/bin:/vendor/bin:/vendor/xbin:/system_ext/etc:/system/etc" #endif /* Default primary and secondary prompt strings. */