OSDN Git Service

For devices which are not treble enabled, return the system shell.
authorJayant Chowdhary <jchowdhary@google.com>
Fri, 1 Sep 2017 23:29:44 +0000 (16:29 -0700)
committerJayant Chowdhary <jchowdhary@google.com>
Thu, 7 Sep 2017 21:25:50 +0000 (14:25 -0700)
commit1e52871773505edf70d10a3af7b003e9320ef6a3
tree95171ade4f985c2cb17b6697a2e1d022da8593a3
parent917d34a84fe9895cb7acfd7246e366a039de103d
For devices which are not treble enabled, return the system shell.

For treble enabled devices, still return the appropriate shell depending
on whether the process is a vendor process or a system one.

Test: Manual testing: on a bullhead device, ran test programs from
      /vendor/bin which used popen() and system(). The calls succeeded.

Bug: 65054230

Bug: 64516799

Change-Id: I15dfdbb107cfca7c0f92f337c9bb46b9876eb38e
libc/Android.bp
libc/bionic/__bionic_get_shell_path.cpp