From 5a0a51b81ffb380e765da9de90d2a82e3b41529c Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 22 Aug 2018 13:21:21 -0700 Subject: [PATCH] Add /dev/stdin, /dev/stdout, and /dev/stderr. Bug: http://b/31824379 Test: `adb shell ls -l /dev/std*` Change-Id: I6af7ff205e12c10e958be263c3f1c429d48c0bbc --- rootdir/init.rc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rootdir/init.rc b/rootdir/init.rc index bf22951d2..db89ea80a 100644 --- a/rootdir/init.rc +++ b/rootdir/init.rc @@ -49,6 +49,10 @@ on init copy /proc/cmdline /dev/urandom copy /default.prop /dev/urandom + symlink /proc/self/fd/0 /dev/stdin + symlink /proc/self/fd/1 /dev/stdout + symlink /proc/self/fd/2 /dev/stderr + symlink /system/bin /bin symlink /system/etc /etc