mirror of
https://github.com/openharmony/third_party_cmake.git
synced 2026-07-21 16:25:22 -04:00
9d34e51cdb
adb used to suffer from a bug where `adb shell` would return 0 irrespective the exit status of the underlying process that it executed. This is now fixed for newer versions of Android (N+). As a result, attempting to `adb shell ls` a nonexistent file can now result in a non-zero exit status. Updating check_device_file_exists to ignore the exit status of `adb shell` fixes this bug for newer Android devices.