id summary reporter owner description type status priority milestone component version severity resolution keywords cc mlocked 13322 gdb not working for android 5.1 in amazon fire stick Peter Bennett Mark Spieth "Some adb commands work differently in the amazon version of android 5.1. 1. '''adb shell run-as $PACKAGE_NAME''' fails if you follow it with a shell internal command. you have to use '''adb shell run-as $PACKAGE_NAME sh -c '' 2. An extra carriage return is attached to the result of '''pwd''' 3. '''adb shell ''' always returns zero even if the command returned nonzero, so you have to add ''';echo $?''' and capture the result. Fixes are in attached patch. Also added quotes around $ARM64 in one place so that there is not a failure when ARM64 is unvalued. The fixes are also compatible with newer android versions." Patch - Bug Fix closed minor 30.0 Ports - Android Master Head medium fixed 0