mirror of
https://github.com/ARM-software/devlib.git
synced 2025-02-07 13:40:48 +00:00
utils/android: Change directory used for checking connection
Previously the root directory was used when checking for device connection, on some devices this requires elevated permissions so now use '/data/local/tmp' which should not have permission restrictions.
This commit is contained in:
parent
8ac588bc1f
commit
ceb493f98d
@ -351,7 +351,7 @@ def adb_disconnect(device):
|
|||||||
def _ping(device):
|
def _ping(device):
|
||||||
_check_env()
|
_check_env()
|
||||||
device_string = ' -s {}'.format(device) if device else ''
|
device_string = ' -s {}'.format(device) if device else ''
|
||||||
command = "adb{} shell \"ls / > /dev/null\"".format(device_string)
|
command = "adb{} shell \"ls /data/local/tmp > /dev/null\"".format(device_string)
|
||||||
logger.debug(command)
|
logger.debug(command)
|
||||||
result = subprocess.call(command, stderr=subprocess.PIPE, shell=True)
|
result = subprocess.call(command, stderr=subprocess.PIPE, shell=True)
|
||||||
if not result:
|
if not result:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user