Root shell for Anbox to modify IP routes?
-
Anbox works reasonably well and opens my apps.
However... there is no Internet connection. I went and ran an adb shell over to the anbox container then ran the ip route command to see what the matter is and found this:
armv7-a-neon:/ $ ip route show 192.168.250.0/24 dev eth0 proto kernel scope link src 192.168.250.2 armv7-a-neon:/ $
There is no default route. I think I know enough about networking to set one up, but there are three problems:
- The su binary doesn't give me permission to use it. I don't think I can modify routes without root.
- Do I seriously need to do this during every reboot?
- Why is this not set up on Anbox by default?
-
@yk102
What is your phone ?
Anbox is deprecated and replaced by Waydroid so unless your phone is not supported, you should consider using it instead (with a proper anbox uninstall before). -
@keneda It is? I honestly had no idea. I thought Waydroid was just an alternative.
I'm using the Pixel 3a XL
Is there a huge difference between the two?
-
@yk102 the most important difference is that waydroid is in active development, while anbox is no longer developed.
-
@arubislander I just installed it and it works really smoothly in terms of performance
However, the big downside is how badly it integrates with Unity. I can't differentiate apps from each other when I swipe on the right side, they all look the same. And if I close them, Waydroid won't work until I reboot the phone.
I liked Anbox in that regard because it didn't emulate a whole phone, each app was on the drawer looked like its own thing. The performance was sluggish but I could at least tell apps apart.
I'd honestly prefer Anbox for this reason alone, at least until they smooth Waydroid out. Now if there was a way to fix these routes...
-
@yk102
There is waydroid helper on open store to manage some things in waydroid.
You can for example hide some apps. -
@yk102 and use waydroid stop in the helper to fix the issues of it not restarting. Your issue with sudo is most likely you have to remount the / partition as rw because system files are not modifyable by default on UT - but not only (unless you make a daemon in upstart) you'll have to do this each restart, but also next update would wipe these scripts and permission changes