Merge "gdbclient.py: Try ro.build.product also." am: 8240673629 am: 9eec3d5f5b am: 76a0f6577e
Original change: https://android-review.googlesource.com/c/platform/development/+/1421388 Change-Id: Id8b7e4068ac9d18c09fba4b0f633cd3e17c06120
This commit is contained in:
@@ -129,11 +129,11 @@ def parse_args():
|
|||||||
|
|
||||||
|
|
||||||
def verify_device(root, device):
|
def verify_device(root, device):
|
||||||
name = device.get_prop("ro.product.name")
|
names = set([device.get_prop("ro.build.product"), device.get_prop("ro.product.name")])
|
||||||
target_device = os.environ["TARGET_PRODUCT"]
|
target_device = os.environ["TARGET_PRODUCT"]
|
||||||
if target_device != name:
|
if target_device not in names:
|
||||||
msg = "TARGET_PRODUCT ({}) does not match attached device ({})"
|
msg = "TARGET_PRODUCT ({}) does not match attached device ({})"
|
||||||
sys.exit(msg.format(target_device, name))
|
sys.exit(msg.format(target_device, ", ".join(names)))
|
||||||
|
|
||||||
|
|
||||||
def get_remote_pid(device, process_name):
|
def get_remote_pid(device, process_name):
|
||||||
|
|||||||
Reference in New Issue
Block a user