@decorators.Cache
def InstallOnDevice(device, profiler_binary):
- host_path = support_binaries.FindPath(profiler_binary, 'android')
+ arch_name = device.GetABI()
+ host_path = support_binaries.FindPath(profiler_binary, arch_name, 'android')
if not host_path:
logging.error('Profiler binary "%s" not found. Could not be installed',
host_path)
return False
device_binary_path = GetDevicePath(profiler_binary)
- device.PushChangedFiles(host_path, device_binary_path)
+ device.PushChangedFiles([(host_path, device_binary_path)])
device.RunShellCommand('chmod 777 ' + device_binary_path)
return True