Fix for ADB in recovery mode

Credits: @Agontuk