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

    Root shell for Anbox to modify IP routes?

    Scheduled Pinned Locked Moved Unsolved Support
    7 Posts 4 Posters 480 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.
      • Y Offline
        yk102
        last edited by

        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:

        1. The su binary doesn't give me permission to use it. I don't think I can modify routes without root.
        2. Do I seriously need to do this during every reboot?
        3. Why is this not set up on Anbox by default?
        KenedaK 1 Reply Last reply Reply Quote 0
        • KenedaK Offline
          Keneda @yk102
          last edited by

          @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).

          2015-2023 : Meizu MX4 ☠️⚰️✝️
          2023-2024 : Nexus 5 ☠️⚰️✝️
          2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
          🇲🇫🇬🇧

          Y 1 Reply Last reply Reply Quote 0
          • Y Offline
            yk102 @Keneda
            last edited by yk102

            @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?

            arubislanderA 1 Reply Last reply Reply Quote 0
            • arubislanderA Offline
              arubislander @yk102
              last edited by

              @yk102 the most important difference is that waydroid is in active development, while anbox is no longer developed.

              🇦🇼 🇳🇱 🇺🇸 🇪🇸
              Happily running Ubuntu Touch
              Google Pixel 3a (20.04 DEV)
              JingPad (24.04 preview)
              Meizu Pro 5 (16.04 DEV)

              1 Reply Last reply Reply Quote 0
              • Y Offline
                yk102
                last edited by

                @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...

                KenedaK E 2 Replies Last reply Reply Quote 0
                • KenedaK Offline
                  Keneda @yk102
                  last edited by Keneda

                  @yk102
                  There is waydroid helper on open store to manage some things in waydroid.
                  You can for example hide some apps.

                  https://open-store.io/app/waydroidhelper.aaronhafer

                  2015-2023 : Meizu MX4 ☠️⚰️✝️
                  2023-2024 : Nexus 5 ☠️⚰️✝️
                  2024-***** : FPOS Fairphone 5 waiting UT for freedom 😉
                  🇲🇫🇬🇧

                  1 Reply Last reply Reply Quote 0
                  • E Offline
                    Emphrath @yk102
                    last edited by

                    @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

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