Author Topic: Anbox on Cosmo Linux  (Read 9024 times)

shuntcap

  • Jr. Member
  • **
  • Posts: 84
    • View Profile
Re: Anbox on Cosmo Linux
« Reply #15 on: May 04, 2021, 08:15:25 pm »
mine is a few builds different to yours: 1.8.0_292-8u292-b10-0ubuntu1~20.10-b10
Sounds like your computer won't relent in our fight to build AOSP 7.1.1 on it, so I've updated my instructions above with a download link to my prebuilt rootfs image.  I don't know how you feel about using a 3rd party build in the Gemian repo, but at least the rootfs image will help other folks get started with Anbox on the Cosmo.  It's in step 4 above in post https://www.oesf.org/forum/index.php?topic=36525.msg297542#msg297542.

SL

  • Newbie
  • *
  • Posts: 16
    • View Profile
Re: Anbox on Cosmo Linux
« Reply #16 on: May 09, 2021, 01:11:57 pm »
Tried your fix to add exfat filesystem for v4 of the Cosmo linux kernel and have it working using the v4 kernel on-device compile instructions https://www.oesf.org/forum/index.php?topic=36540.0 and it now recognizes my 400GB Sandisk SD card formatted on Windows:

Step 3: Add exFAT support (optional)
It's frustrating to insert an exFAT-formatted SD card into the Cosmo only to find out there's no support for the filesystem!  So let's add it.  Credit goes to https://github.com/arter97/exfat-linux/.
Code: [Select]
cd /path/to/cosmo/kernel/
wget https://github.com/arter97/exfat-linux/archive/old.zip -O exfat-linux-old.zip # (do not git clone; it will pull one requiring Linux 4.9+)
unzip exfat-linux-old.zip
cp -a exfat-linux-old cosmo-linux-kernel-4.4/fs/exfat  # if you're compiling Linux kernel
cp -a exfat-linux-old cosmo-android-kernel/fs/exfat  # if you're compiling Android kernel
cd cosmo-linux-kernel-4.4 # or cosmo-android-kernel

Edit fs/Kconfig, add exfat:
Code: [Select]
source "fs/fat/Kconfig"
source "fs/exfat/Kconfig"

Edit fs/Makefile, add exfat:
Code: [Select]
obj-$(CONFIG_FAT_FS)            += fat/ 
obj-$(CONFIG_EXFAT_FS)          += exfat/

Add the following to k71v1_64_bsp_defconfig:
Code: [Select]
CONFIG_EXFAT_FS=yand then compile and install (also need to install wget
Code: [Select]
sudo apt install wget if you have just upgraded to cosmo linux v4).
« Last Edit: May 09, 2021, 05:51:43 pm by SL »
Nokia N900, Cosmo Communicator

cam1965

  • Sr. Member
  • ****
  • Posts: 410
    • View Profile
    • http://
Re: Anbox on Cosmo Linux
« Reply #17 on: May 30, 2021, 08:17:28 am »
mine is a few builds different to yours: 1.8.0_292-8u292-b10-0ubuntu1~20.10-b10
Sounds like your computer won't relent in our fight to build AOSP 7.1.1 on it, so I've updated my instructions above with a download link to my prebuilt rootfs image.  I don't know how you feel about using a 3rd party build in the Gemian repo, but at least the rootfs image will help other folks get started with Anbox on the Cosmo.  It's in step 4 above in post https://www.oesf.org/forum/index.php?topic=36525.msg297542#msg297542.

Hi.
Thank you for post these instructions.
I followed your guide. Except that I didn't build an android image.

But when I did systemctl --global enable anbox-session-manager the error below occurs.
cosmo@cosmocom:~$ systemctl --global enable anbox-session-manager
/usr/lib/systemd/user/anbox-session-manager.service:1: Missing '='.
Failed to enable unit, file anbox-session-manager.service: Invalid argument.

So I did an script like below and it is working.

cosmo@cosmocom:~$ more anbox.sh
sudo systemctl start  anbox-container-manager
systemctl --user start anbox-session-manager
LD_LIBRARY_PATH=/opt/gl4es/lib anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity

To test if the network was working I had to install a text browser and It works ( TJ text browser ).
With firefocus ( also firefox )  and other browsers the screen is black.
Also with the pre loaded email software it only loads the messages and I cannot open them. Also witth k-9 mail program. Same behaviour.

Only to know if these errors are happening with you.
Maybe the problem is with the android image.
I really would like to know if there is a possibility to install playstore inside the image you have provided.
Thank you so much.
« Last Edit: May 30, 2021, 08:23:23 am by cam1965 »

wintergreen

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Anbox on Cosmo Linux
« Reply #18 on: June 14, 2022, 08:24:31 am »
Thank you for a great post. Now happily using Anbox on my Cosmo Communicator

wintergreen

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Anbox on Cosmo Linux
« Reply #19 on: June 14, 2022, 08:37:28 am »
I do have a question. Will anbox work with arm apps? If i install them via adb? I installed one, but didnt have any luck. Thanks