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

Autostart and activate adb after boot #2

Closed
stefanhuber opened this issue Feb 15, 2024 · 7 comments
Closed

Autostart and activate adb after boot #2

stefanhuber opened this issue Feb 15, 2024 · 7 comments

Comments

@stefanhuber
Copy link

Is it possible to run this app and activate wireless adb automatically after a new boot? Everything works fine until a reboot is done.

@Anthony-6
Copy link

Hello, any news about it ?

@ColinBou
Copy link

Hello I vote for this feature !

@Severem
Copy link

Severem commented Mar 31, 2024

Does the Wireless ADB mode and .apk work with Meta Quest 3 headsets?? Perhaps a full demo of how to set all this up might alleviate the questions people have. I know I am very interested in having this work. This means I won't have to connect to my computer each and every time I load certain programs in my Meta.

@ShockedCoder
Copy link

ShockedCoder commented Apr 7, 2024

Is it possible to run this app and activate wireless adb automatically after a new boot?

AFAIK That's not possible unless you have root perms.

Everything works fine until a reboot is done.

That happens because ADBs don't persist through reboots.

Does the Wireless ADB mode and .apk work with Meta Quest 3 headsets??

It works with any android device.

Perhaps a full demo of how to set all this up might alleviate the questions people have.

Paraphrasing the README:

  • Download the APK
  • Open command prompt and use cd to change your directory to the place where you downloaded it
  • Connect your Quest to your PC through USB
  • Execute the following commands:
    • adb install app-debug.apk
    • adb shell pm grant tdg.oculuswirelessadb android.permission.WRITE_SECURE_SETTINGS
    • adb shell pm grant tdg.oculuswirelessadb android.permission.READ_LOGS
  • That's it

To enable the tcpip 5555 mode:

  • adb tcpip 5555 (first-time needed only)
  • Go into the app, turn the tcpip 5555 mode on and turn on ADB through it at least once with it on
  • You're done.

@stefanhuber
Copy link
Author

ok thanks @ShockedCoder, at least for USB connected adb it works fine after reboots.

@ShockedCoder
Copy link

Oh, you meant ADB in general? I thought you were talking about ADB in-context of the app.

And please disregard what I previously said about it only being possible with root, I was thinking about something else.
Depending on your phone, it is possible to have the application to start on boot and there could be functionality in the app to check for a Wi-Fi connection to start wireless ADB.

However, while I'm not an expert in this field, in my opinion that would use a relatively large amount of juice to constantly check for a Wi-Fi connection to start wireless ADB in response to.
But as it's as simple as opening an app and flipping a switch, I do not believe there to be a big enough incentive for somebody to implement this, so I would not hold my breath waiting for it.

If your issue is solved, then please close this issue, but if there's still something unclear, I'll be here to help.

@thedroidgeek
Copy link
Owner

This app only tells the system to enable the native ADB wireless functionality, so if triggered after boot (assuming you're already automatically connected to a WiFi network, which is a requirement to enable the service), it would show the system prompt to accept running the service in the current WiFi network, which would require wearing the headset anyway.

I therefore don't see a valid need for this feature, especially considering that a long USB-C cable would work a lot better for use cases where frequent reboots are needed.

@thedroidgeek thedroidgeek closed this as not planned Won't fix, can't repro, duplicate, stale Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants