Waydroid simulated wired vs wireless connection
-
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?
-
@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.
-
@StephPTi Thanks, that looks just what
I need, ill try it out today.