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 756 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
          🇲🇫🇬🇧

          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
              JingPad (24.04-1.x daily)
              OnePlus Nord N10 5G (24.04-2.x daily)
              PinePhone OG (20.04)
              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
                  🇲🇫🇬🇧

                  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

                    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                    With your input, this post could be even better 💗

                    Register Login
                    • First post
                      Last post