Navigation

    UBports Robot Logo

    UBports Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Development for Anbox in UBports

    OS
    7
    17
    444
    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
      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!

      arubislander 1 Reply Last reply Reply Quote 2
      • lduboeuf
        lduboeuf last edited by

        maybe call for help also in issues on Anbox repository ?

        1 Reply Last reply Reply Quote 0
        • G
          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
            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
              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
              • arubislander
                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?

                G 1 Reply Last reply Reply Quote 0
                • G
                  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 arubislander 2 Replies Last reply Reply Quote 0
                  • R
                    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
                    • arubislander
                      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.

                      1 Reply Last reply Reply Quote 0
                      • G
                        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
                          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
                            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
                              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
                              • Fla
                                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.

                                Flohack 1 Reply Last reply Reply Quote 0
                                • Flohack
                                  Flohack @Fla last edited by

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

                                  Fla 1 Reply Last reply Reply Quote 0
                                  • Fla
                                    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.

                                    Flohack 1 Reply Last reply Reply Quote 0
                                    • Flohack
                                      Flohack @Fla last edited by

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

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