Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Android: adb won't install to wifi connected devices?

Discussion in 'Formats & External Tools' started by natbro206, Jan 5, 2015.

  1. natbro206

    natbro206

    Joined:
    Mar 15, 2014
    Posts:
    2
    it looks to me as if the "Android Build & Run" command is using the sequence
    adb usb
    adb install foo.apk
    rather than just
    adb install foo.apk
    to trigger the installation step to a connected android device. this is a problem because if you have established a device as debugging over wifi, unity will upset the wifi adb connection and disconnect the device, leaving you with Unity's "no device found" state.

    is there a setting or script file somewhere to trigger only using existing connected device(s) rather than doing a full reset and only choosing the first USB-connected device?
     
    CrandellWS likes this.
  2. Dave-Hampson

    Dave-Hampson

    Unity Technologies

    Joined:
    Jan 2, 2014
    Posts:
    150
    Probably fine on Windows though? (I think I've deployed via WiFi on Windows.)

    Can you file a bug maybe? It would be nice to enable WiFi debugging for OSX peeps as well.
     
  3. Incendiary-Games

    Incendiary-Games

    Joined:
    Mar 24, 2015
    Posts:
    18
    I would love for this to get fixed. Wifi Build & Run doesn't work on Windows either. It seems like the device always disconnects when running through Unity. Running the "adb usb" command will do that.
     
  4. Incendiary-Games

    Incendiary-Games

    Joined:
    Mar 24, 2015
    Posts:
    18
    CrandellWS likes this.