Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
aports
aports
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 651
    • Issues 651
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 189
    • Merge Requests 189
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Environments
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • alpine
  • aportsaports
  • Issues
  • #11206

Closed
Open
Opened Feb 09, 2020 by Antoine Fontaine@afontainContributor
  • Report abuse
  • New issue
Report abuse New issue

integrate Anbox into Alpine

Hi, I've worked to make Anbox work on Alpine these days, and since it is now working, it'd like to get it merged.

Anbox is a solution using LXC to run Android apps natively on regular Linux. It uses the system's kernel and runs an Android image inside a container.

image

Its inclusion creates the following changes:

Kernel Config change

here's the diff for linux-lts.x86_64. It should be similar for all kernels and architectures.

@@ -6946,6 +6946,9 @@ CONFIG_SPEAKUP_SYNTH_TXPRT=m
 #
 # Android
 #
+CONFIG_ASHMEM=y
+# CONFIG_ANDROID_VSOC is not set
+# CONFIG_ION is not set
 # end of Android

 # CONFIG_LTE_GDM724X is not set
@@ -7709,7 +7712,11 @@ CONFIG_THUNDERBOLT=m
 #
 # Android
 #
-# CONFIG_ANDROID is not set
+CONFIG_ANDROID=y
+CONFIG_ANDROID_BINDER_IPC=y
+CONFIG_ANDROID_BINDERFS=y
+CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
+CONFIG_ANDROID_BINDER_IPC_SELFTEST=y
 # end of Android

Packaging properties-cpp and cmake-extras

Two packages are needed, properties-cpp and cmake-extras.

Providing an Android image (?)

Anbox needs an image to function. There is a prebuilt one, but I saw on IRC that Alpine doesn't like prebuilt binairies. While I'm trying to build it from source, it may be quite long. In the meantime, it is possible to merge Anbox without an image, explaining in the post-install that one need to provide an image to /var/lib/anbox/android.img, either one they'll have built or the premade one.


What do you think about these points?

To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
0
Labels
None
Assign labels
  • View project labels
Reference: alpine/aports#11206