summaryrefslogtreecommitdiff
path: root/android/Bootstrap
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-05-16 09:50:52 +0300
committerTor Lillqvist <tlillqvist@suse.com>2012-05-16 10:12:25 +0300
commitc53c665de33d931e5d3a6ad767240fc83ac8bd69 (patch)
treefb2cd56ef2ce779d39a6c3567448652a3e19fe02 /android/Bootstrap
parent7e90e00f1499eaf4139ed53c2b896f4b4fc73fe5 (diff)
Add stdout and stderr redirection to the Android log
On a (non-rooted) device it is not possible to set the log.redirect-stdio property so that it would be effective (i.e. read by the Zygote process when it starts). Such redirection has to be done in-process. Add a (JNI-callable) method to set it up: Point file descriptors 1 and 2 at pipes that are read by a thread that logs each line through the Android logging API. Code based on Android's own logwrapper.c. Change-Id: Id5308293595096a44a2ffed2dbc0c252be109de7
Diffstat (limited to 'android/Bootstrap')
0 files changed, 0 insertions, 0 deletions