When using 'check_exit_code' and 'as_root' options for adb_shell with a command containing single quotes, the provided command was escaped twice which has now been avoided.