diff --git a/init/init.cpp b/init/init.cpp index 36066b217..6b6ad8ba7 100644 --- a/init/init.cpp +++ b/init/init.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #include #include #include @@ -1015,6 +1016,8 @@ int main(int argc, char** argv) { // Clear the umask. umask(0); + add_environment("PATH", _PATH_DEFPATH); + // Get the basic filesystem setup we need put together in the initramdisk // on / and then we'll let the rc file figure out the rest. mkdir("/dev", 0755); diff --git a/rootdir/init.environ.rc.in b/rootdir/init.environ.rc.in index 30bef463d..0064790ad 100644 --- a/rootdir/init.environ.rc.in +++ b/rootdir/init.environ.rc.in @@ -1,6 +1,5 @@ # set up the global environment on init - export PATH /sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin export ANDROID_BOOTLOGO 1 export ANDROID_ROOT /system export ANDROID_ASSETS /system/app