Index: build/android/pylib/device/commands/install_commands.py |
diff --git a/build/android/pylib/device/commands/install_commands.py b/build/android/pylib/device/commands/install_commands.py |
index 35b11e3311db43b10afc3c01c5160cb8ad3a059e..58c56ccb1be2900515c8d848879600c4b98e8385 100644 |
--- a/build/android/pylib/device/commands/install_commands.py |
+++ b/build/android/pylib/device/commands/install_commands.py |
@@ -41,7 +41,7 @@ def InstallCommands(device): |
shell_command = _SHELL_COMMAND_FORMAT % ( |
constants.TEST_EXECUTABLE_DIR, main_class) |
shell_file = '%s/%s' % (BIN_DIR, command) |
- device.WriteTextFile(shell_file, shell_command) |
+ device.WriteFile(shell_file, shell_command) |
device.RunShellCommand( |
['chmod', '755', shell_file], check_return=True) |