Starting anbox container
-
Hi Everyone,
I wanted to share my experience with getting the anbox container to start after installation as well as ask a question. I have read on here that some people are having difficulty getting the container started after they have installed anbox from the instructions. Here is what worked for me:
SYSTEM
OS: 16.04
Device: Oneplus One (bacon)-
Reboot the device after installation
-
Note: I used a bluetooth keyboard for my device after this point, but you may be able to do something similar using
adb shellwith the device connected to a PC. -
On the device (the ubuntu-touch device), open the terminal
-
Likely,
adb deviceswill show the device to be offline. -
Do
anbox-tool upgrade -
Once it finishes, check that the container has be started by doing
adb devices. The emulated should now have a status ofdevice, I believe (or at least it is notofflineanymore).
This seems to work for me and I am able to install android apps pulled from my android device (although they don't appear to work... but that is another post).
My question is, is there a better way to get the container running after reboot? It seems to me that
anbox-tool upgradeis like using a machine gun to kill a fly. Is there a file in the ubuntu touch filesystem that can be edited to runanbox-tool upgradeor whatever the line is inanbox-tool upgradethat starts the container?As another experiment, I tried the following:
- reboot device
- open terminal
- run
sudo mount -o rw,remount / adb devicesstill shows the container to be offline.anbox-tool upgradedoes the trick to start the container.
-
-
@aclifton314
anbox-tool enable -
@mihael Thank you for your response. Here is what I did:
- Reboot device.
- Launch terminal.
adb devicesshows container to be offline.anbox-tool enableshowsAnbox is already enabledadb devicesshows container to be offline.sudo mount -o rw,remount /anbox-tool enableshowsAnbox is already enabledadb devicesshows container to be offline.anbox-tool upgrade, thenadb devicesshows container to be started.
-
@aclifton314 You can try to play with
anbox-tool disableand thenanbox-tool enable... -
@mihael ah yes. The toggling does work for me. Thanks!
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