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

    Development for Anbox in UBports

    Scheduled Pinned Locked Moved OS
    17 Posts 7 Posters 1.5k Views 2 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.
      • G Offline
        gimait
        last edited by

        Re: Anbox development

        Hi!

        I am looking on ways to do some bug fixing and adding some functionalities to the current version of Anbox available for UBports. I have been looking around quite a lot now and I am having trouble building and installing from source Anbox.

        So far, I managed to compile Anbox successfully by:

        1. Creating a development container based on Xenial, including the necessary packages for the build.
        2. Opening https://github.com/ubports/anbox in the container and executing cross-compile-chroot.sh.

        Following the steps on the Anbox development thread, I went ahead and copied the generated binary file to /usr/bin/. This seemed to go well, since I managed to log into the Anbox container using adb, however, I can't get any application to start, and I don't know if that is due to the Anbox version or something missing in the installation.

        Does someone know how to compile and run this, and how to access logs and debug information from the Anbox container?
        Is someone working on this, or has a plan to do so?

        Thank you!

        arubislanderA 1 Reply Last reply Reply Quote 2
        • lduboeufL Offline
          lduboeuf
          last edited by

          maybe call for help also in issues on Anbox repository ?

          1 Reply Last reply Reply Quote 0
          • G Offline
            gimait
            last edited by gimait

            I thought on doing so, but if I understand it correctly, their development diverged from the version used in UBports a while ago, when they moved to use snaps.

            I guess that it might be possible to then set up a libertine container with snaps and install anbox on it, and then it would be completely an Anbox issue, but I posted here as well to know whether there is any development of Anbox for UBports.

            I am also not sure about the performance difference between installing anbox in natively and running it in a libertine container. Has someone tried it out?

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

              @gimait I'm not a developer but I can assure you snaps are not supported in libertine yet, and that such a maneuver would result in something even less functional that the anbox we have. But at any rate, please continue trying to improve anbox !! πŸ™‚

              G 1 Reply Last reply Reply Quote 0
              • G Offline
                gimait @Emphrath
                last edited by

                @Emphrath Thanks for pointing that out! I guess that ticks the current anbox version out of the question.

                I have been looking into merging the current anbox into the ubports fork to see if it would be possible to have two targets for anbox, but yeah, we will see.. For now I don't know even how build and run anbox on my phone, so there might be some time to get there. Any help will be very welcome πŸ™‚

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

                  @gimait what device are you trying to run your compiled version of Anbox on? Is there a kernel available with the necessary patches for that device? Or are the patches already included in the bundled kernel?

                  πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                  Happily running Ubuntu Touch
                  Google Pixel 3a (20.04 DEV)
                  JingPad (24.04 preview)
                  Meizu Pro 5 (16.04 DEV)

                  G 1 Reply Last reply Reply Quote 0
                  • G Offline
                    gimait @arubislander
                    last edited by

                    @arubislander I’m using a Nexus 5, where I installed Anbox via apt successfully, so I think that the firmware of the device is not the issue, but honestly, I have no idea. Any ideas of something I might be missing in the build process, or something that needs configuring on the device?

                    R arubislanderA 2 Replies Last reply Reply Quote 0
                    • R Offline
                      rocket2nfinity @gimait
                      last edited by

                      @gimait You do know there is already an Anbox build for Nexus 5? Just follow the following instruction minus the first green box. No need to flash the kernel. It's pre-built in the Nexus 5.

                      http://docs.ubports.com/en/latest/userguide/dailyuse/anbox.html

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

                        @gimait I have never tried building Anbox for Ubuntu Touch myself, so I cannot offer any guidance there...
                        But @rocket2nfinity confirms that no special kernel is needed.

                        πŸ‡¦πŸ‡Ό πŸ‡³πŸ‡± πŸ‡ΊπŸ‡Έ πŸ‡ͺπŸ‡Έ
                        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
                        • G Offline
                          gimait @rocket2nfinity
                          last edited by

                          @rocket2nfinity Thank you, that’s the way I installed anbox originally, and that is fine. I’m happy to hear that there is no need for kernel patches.
                          Do you have any ideas of how to build the code from source and test it on the device? I have no problems with the current anbox version (apart from several bugs that need taking care of to make it usable), but I’m trying to doing some development, that could become a good contribution to both anbox and ubports. Has someone tried this?

                          R 1 Reply Last reply Reply Quote 0
                          • R Offline
                            rocket2nfinity @gimait
                            last edited by

                            @gimait @Flohack does. But he's on vacation right now. If you want faster help, the Anbox development thread has compiling instructions and more knowledgeable people than I.

                            Help on Anbox would be wonderful and is greatly needed.

                            G 1 Reply Last reply Reply Quote 1
                            • G Offline
                              gimait @rocket2nfinity
                              last edited by

                              @rocket2nfinity thank you for letting me know, I’ll try to reach him, I’m sure he can get me started πŸ™‚ In the meantime I’ll continue digging, and maybe follow your suggestion and asking in some thread in anbox. thanks!

                              R 1 Reply Last reply Reply Quote 0
                              • R Offline
                                rocket2nfinity @gimait
                                last edited by

                                @gimait This thread specifically....

                                https://forums.ubports.com/topic/1676/development-testers-for-anbox

                                1 Reply Last reply Reply Quote 0
                                • FlaF Offline
                                  Fla
                                  last edited by

                                  Pinging @Flohack again as the last Q&A blogpost specifically says We are still waiting on developers with the necessary skill set to step forward. Unusually, we are even able to offer payment for core work on Anbox. Just get in touch with Florian.

                                  flohackF 1 Reply Last reply Reply Quote 0
                                  • flohackF Offline
                                    flohack @Fla
                                    last edited by

                                    @Fla Ping yes, what do you need πŸ˜‰

                                    My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

                                    FlaF 1 Reply Last reply Reply Quote 0
                                    • FlaF Offline
                                      Fla @flohack
                                      last edited by

                                      @Flohack It's not me but @gimait who compiled Anbox locally but can't make it run on his phone. He succeed to run the Anbox provided by UBPorts though.

                                      flohackF 1 Reply Last reply Reply Quote 0
                                      • flohackF Offline
                                        flohack @Fla
                                        last edited by

                                        @Fla Yes already got in touch with him thx πŸ˜‰

                                        My languages: πŸ‡¦πŸ‡Ή πŸ‡©πŸ‡ͺ πŸ‡¬πŸ‡§ πŸ‡ΊπŸ‡Έ

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