Fix adb init wait bug. Add comments