English

Ubuntu touch with threema on anbox: Where are the files?

Tags: #<Tag:0x00007f05d8282e38> #<Tag:0x00007f05da0fbdb0>

Hi!
I’ve just changed to Ubuntu Touch, my phone runs on ubuntu touch 16.04, 2019-W41/2), and I would like to keep threema. With Anbox (installed via ubuntu and adb, see http://docs.ubports.com/en/latest/userguide/dailyuse/anbox.html ) I was able to install Threema, but had problems installing a backup from the Threema Safe server. My contacts reappeared, but the chats and pictures were gone. I have another backup-zip, but I can’t find a way to copy it into the anbox filesystem to re-import it from within Threema.

Can anybody tell me where I could put the zip archive? An android file manager installed within the anbox container shows new backup zips in /root/sdcard/Threema/Backups, but from the “outside” I can’t even locate those files.
I can’t change the directory where to put the threema backups either; Threema tells me the go to file:///storage/emulated/0/Threema/Backups, but I can’ find that either.

a bit at a loss –

so long
hank

It’s a bit complicated and I haven’t done it in quite a while. Looking at UBPorts 16.04 updates + feature tests I had a way to access the anbox files from UT via

mkdir -p /home/phablet/AnboxHome
sudo chmod -R 777 /home/phablet/anbox-data/data/media/0
sudo mount --bind /home/phablet/anbox-data/data/media/0 /home/phablet/AnboxHome

If I remember correctly that didn’t mean you could copy files to /home/phablet/AnboxHome, just read from there.

Probably it’s sufficient to copy files to /home/phablet/anbox-data/data but IIRC that requires sudo. And I don’t remember where the files show up when using the file manager in anbox.

And maybe it’s a good idea to check this topic in the UBPorts forum: https://forums.ubports.com/topic/1676/development-testers-for-anbox

1 Like

Thanks for your answer, I’ll give it a try. I had seen those posts, but on my installation the anbox-data/data/ directory is empty, no /media/0/, nor anything else, especially no threema backup zips. It should be quite easy to push some files into that folder. I’ll try my luck and keep searching :confused:

so long

It’s probably a rights issue. I have a vague recollection that this way was a little like navigating blindly.

In principle I would assume you’d get faster results from asking in the UT community. That anbox thing doesn’t sound FP2 specific to me. But if you get some answers there and things work, it would be nice if you left a small summary here.

Ok, it is almost exactly as you wrote. I was able to copy the threema zip to /home/phablet/anbox-data/data/media/0/Threema/Backups/. No need to use the steps with chmod or bind; I just copied the zip to /home/phablet/Downloads

from my computer (Ubuntu), an did

sudo cp /home/phablet/Downloads/threema-backup.XXX.zip /home/phablet/anbox-data/data/media/0/Threema/Backups/

Afterwards Threema was able to locate the zip, and I was able to reinstall my chats, contacts, ID etc.
Strangely enough, the UT file manager does not show /media/0/. But it is possible to push files into the anbox container in this way.

Thanks a lot!

1 Like

Hello Heinrich,
when trying to install anbox on Fairphone 2(“anbox-tool install” over adb), I get the message “fp2 not supported (yet)”

How did you manage to install anbox on your device?

Thanks in advance!

P.S. Ubuntu Touch OTA11, following the guideline for anbox installation which you shared.

The same question was asked in the UT forum: https://forums.ubports.com/topic/3968/anbox-not-supported-on-fp2?_=1584875259296

Looks like a recent change to the anbox-tool broke the support for FP2 :frowning:

New issue is here: https://github.com/ubports/anbox/issues/39

1 Like

Thanks for the Update Ingo.

Should be fixed by now, Anbox is working “fine” (well, with an occasional need to toggle it on and of…) on my Fairphone2, rc-version 69.