commit | 240cb2aa3c660f070e1fb1d630e01c13ba57c194 | [log] [tgz] |
---|---|---|
author | David Brazdil <dbrazdil@google.com> | Fri Apr 26 13:25:45 2019 +0100 |
committer | David Brazdil <dbrazdil@google.com> | Fri Apr 26 15:48:27 2019 +0000 |
tree | 9307a4763a99517b93db11c235db4c76606e7ca7 | |
parent | 2cc9d343550d22e08536e0077893e6d86647c91a [diff] |
FileUtils: Do not expect Android root without an ending slash Logic for constructing paths in IsLocationOnModule assumes that Android root is provided with a starting slash and without one at the end. Even though our default settings match that, some users have reported crashes with a custom ANDROID_ROOT env variable. Change logic to support both. Bug: 130817106 Test: set ANDROID_ROOT and compile Change-Id: Id83ca985b05bd4e8f85d7ca0b4c8aeea98aa21ee