Telemetry: fix permission check when setting Android command line.

This is to fix a bug introduced by r221426 on the WebView telemetry bot.
The issue was related to the fact that ls -l can return no output if the
target folder exists but is empty.
This change makes the IsProtectedFile logic inside _SetCommandLineFile
more reliable, introducing the IsFileWritableOnDevice method in adb
commands.

BUG=284468
NOTRY=true

Review URL: https://chromiumcodereview.appspot.com/23477053

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@222349 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: b16f0575aeb9a7f40ec1e3138be8114788c22b72
1 file changed
tree: dfd77c7eda5ca9b1df633b63c2bfe6caa5a1903a
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. ipc/
  6. mojo/
  7. testing/
  8. third_party/
  9. ui/