Edit Anbox System
-
@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
-
Ah ok, thanks.
-
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...
-
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 andanbox-tool enable
after it's finished) and saw the Play Store icon on the app scopeThe 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).
-
Has anyone tried to do something like this with microg instead of opengapps? I am curious if that's work.
-
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.
-
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...).
-
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.
-
@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?
-
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.