wait-for-device in recovery mode