Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate ADB script for initiating a USB connection #567

Closed
zmerp opened this issue Mar 26, 2021 · 4 comments · Fixed by #2451
Closed

Integrate ADB script for initiating a USB connection #567

zmerp opened this issue Mar 26, 2021 · 4 comments · Fixed by #2451
Labels
enhancement New feature or request

Comments

@zmerp
Copy link
Member

zmerp commented Mar 26, 2021

No description provided.

@zmerp zmerp added the enhancement New feature or request label Mar 26, 2021
@jacklul
Copy link

jacklul commented Apr 12, 2021

I'm posting a script I've been using to simplify launching: ALVR USB Connection.bat (I might update it, so check from time to time)

Alternatively this: https://github.com/jacklul/ALVR-USB (based on AtlasTheProto/ADBForwarder from the wiki)

It waits for specific ADB device (in this case - headset) to become connected, runs the adb forward tcp:port commands and then launches ALVR.
In case for some reason the ADB connection is lost it will wait for device to be connected again - this process kills ADB server and restarts the script while keeping ALVR (and any running game) open, when device gets plugged back in it should reconnect automatically on the headset.

Requirements:

  • Followed instructions in PC part of this guide, and verified that it all works.
  • The script has to be placed in the same directory where ALVR Launcher.exe is.
  • ADB executable has to be globally available, if it's not put a path to it into adbpath.txt, e.g.: C:\ADB.
  • You have to run adb devices from the command prompt to obtain your device id and then create a file called adbdevice.txt and put the id string inside - use notepad, no extra spaces, no extra lines.

Note: adbpath.txt and adbdevice.txt must be placed where ALVR USB Connection.bat/ALVR Launcher.exe is!

Hopefully something similar could be implemented into the dashboard directly.

@ckiee
Copy link
Member

ckiee commented May 19, 2021

I think we could use the mozdevice crate.

@mittorn
Copy link

mittorn commented Jul 28, 2021

Maybe use udev rule for this?
It also may enable adb tcp which useful for sidequest

@Meister1593
Copy link
Collaborator

i may work on this soon after #1973

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants