UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Waydroid simulated wired vs wireless connection

    Scheduled Pinned Locked Moved Waydroid
    3 Posts 2 Posters 4.0k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • T Offline
        treebeard
        last edited by treebeard

        I have two android apps running in waydroid that try to connect to local wireless networks. One is a camera downloading app, the other a home cinema controller dashboard app.

        The networking in waydroid appears to connect to the ubuntu touch networking through a simulated wired connection, and whether i try connecting ubtouch or waydroid to the camera/hifi network I hit the same problem. The apps detect that a wired connection (the simulated one connecting waydroid to ubtouch) is present and refuse to attempt to connect.

        The Yamaha musiccast app directs me to android network settings which says

        Waydroid Network and Internet settings 
        - to switch networks disconnect ethernet
        

        Ive tried connecting ubtouch to the hifi which works, but the android app is still looking for a wireless connection rather than the simulated wred connection.

        Sony imaging edge mobile also looks for the camera wireless network in waydroid in the same way, and if i connect ubtouch to the camera wireless the sony app shows:

        Wifi setting is off. To connect the camera via 
        wifi turn on the wifi setting
        

        Can anyone suggest how waydroid can present the networking as if it was a wireless network, or how the apps could be fooled into thinking a wireless network is connected?

        2015 BQ Aquaris E4.5
        2021 Volla Phone (Ubuntu Touch)
        2023 Volla Phone X23 (Ubuntu Touch)

        S 1 Reply Last reply Reply Quote 0
        • S Offline
          StephPTi @treebeard
          last edited by

          @treebeard as far as i know, waydroid cannot use directly a wifi connection. Since it's an emulator, it creates a virtual network.

          However, you can run this command to have a "fake wifi" for those apps:

          waydroid prop set persist.waydroid.fake_wifi (string, 91 character limit) Comma separated list of package names for which the system will always appear as if connected to wifi. Supports wildcards with . For example, set this to "com.gameloft." to match all games by Gameloft

          For whatsapp, when it waits for wifi connection to restore / backup media, this works like a charm. It can take a while until it activates the fake wifi.

          But for some apps, to cast to the tv for example, i have issues since the fake wifi doesn't connect to a network, so the app won't find a tv to cast.

          Hope it helps.

          Languages: 🇵🇹🇺🇸🇫🇷
          Phones: POCO X3 NFC (Focal 20.04 dev)

          T 1 Reply Last reply Reply Quote 0
          • T Offline
            treebeard @StephPTi
            last edited by

            @StephPTi Thanks, that looks just what
            I need, ill try it out today.

            2015 BQ Aquaris E4.5
            2021 Volla Phone (Ubuntu Touch)
            2023 Volla Phone X23 (Ubuntu Touch)

            1 Reply Last reply Reply Quote 0
            • First post
              Last post