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

    Edit Anbox System

    Scheduled Pinned Locked Moved Support
    11 Posts 5 Posters 3.5k Views 3 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.
      • advocatuxA Offline
        advocatux @mmm648
        last edited by

        @mmm648 hi, I've edited your post to make it more readable. I hope that's fine for you.

        Tip: you can also use a pastebin service (like e.g. https://paste.ubuntu.com/) and just paste the resulting link here when you need to post a lot of text 🙂

        1 Reply Last reply Reply Quote 0
        • M Offline
          mmm648
          last edited by

          Ah ok, thanks.

          1 Reply Last reply Reply Quote 0
          • IngoI Offline
            Ingo
            last edited by Ingo

            Haven't tried this myself yet, but the first thing that comes to my mind: do you need the libhoudini stuff on a smartphone at all? From what I understood, this is needed for anbox running on Intel/AMD platform (i.e. a PC).

            About the read-only filesystem I would guess that you have to remount the android image as read-write, not the UT root FS.

            Edit: wanted to try it out but the opengapps repositories are disabled by github due to excessive use of resources...

            1 Reply Last reply Reply Quote 0
            • IngoI Offline
              Ingo
              last edited by

              Found an older version of the 7.1 opengapps pico on my laptop and then followed the German instructions on https://geeks-r-us.de/2017/08/26/android-apps-auf-dem-linux-desktop/ (the English instructions/script are based on this).

              So I was able to add the gapps to the android.img on my PC, then transferred the image to the phone (don't forget to anbox-tool disable before the transfer and anbox-tool enable after it's finished) and saw the Play Store icon on the app scope 😉

              The apps that said they would not run properly without gapps now said I need to update my Play Services (by backup only contained the gapps from Dec. 2017). That unfortunately failed. Also opening the Play Store didn't work. Guess it also found the play services to be outdated and then failed to update them.

              I guess it only makes sense when using up-to-date opengapps (once their repos are back up).

              1 Reply Last reply Reply Quote 0
              • T Offline
                tigerpro
                last edited by

                Has anyone tried to do something like this with microg instead of opengapps? I am curious if that's work.

                Whether you think you can, or you can't, if you do not try, you will never truly know. So give it a Go.

                1 Reply Last reply Reply Quote 0
                • IngoI Offline
                  Ingo
                  last edited by

                  Tried microG as well. Didn't work much better. The apps I checked claimed there were no gapps installed.

                  When I opened the microG settings they claimed I need to grant permissions first. After I granted them, everything just crashed.

                  Now that the opengapps repos are up again I'll try with a new version of those.

                  1 Reply Last reply Reply Quote 0
                  • IngoI Offline
                    Ingo
                    last edited by

                    With current opengapps pico it's similar to my microG experience: everything gets more unstable and apps seem to start but then close unexpectedly.

                    For now I'm back to unmodified anbox.

                    Maybe this is device related. I'm on Fairphone 2 and I've read about frequent crashes that don't happen on other phones. Maybe better luck with those. But then, maybe I overlooked something and someone with an FP2 has more luck (or time to dig deeper...).

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      mmm648
                      last edited by

                      Ya my attempt made everything unstable as well(oneplusone), only thing I noticed was you need to add "-no-xattrs" to mksquashfs to match the current android.img, also switch to "-Xbcj arm" ofc.

                      On one attempt I managed to disable google play services by rushing before settings crashed lol, didn't help with other apps that require google play though.

                      xsetiadiX 1 Reply Last reply Reply Quote 1
                      • xsetiadiX Offline
                        xsetiadi @mmm648
                        last edited by

                        @mmm648 said in Edit Anbox System:

                        -no-xattrs

                        hello sir, im trying to unpack and repack android.img on anbox using mksquash, but always get error (eg) source directory vendor already in use, trying venror_1

                        so now on my android.img there arae 2 vendor folder. any idea why this is happen?

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          mmm648
                          last edited by

                          Well did you remember to
                          "sudo anbox-tool disable
                          sudo mount -o rw,remount /"

                          like in the script?(and reverse afterwards)

                          I never got opengapps to work but I think to edit the system I ended up copying the android.img to another directory, running unsquashfs on it, modifying it, resquashing it (mksquashfs) and then overwrite the original image.

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