Anbox - Run Android Applications and Games

From Whonix
Jump to navigation Jump to search

Info This page is archived.

https://anbox.io/archive.org redirects to https://github.com/anboxarchive.org which says it is deprecated.

Android OS Icon

Anbox allows Android applications and mobile games to run inside Whonix.

Introduction[edit]

Info COMMUNITY SUPPORT ONLY : THIS WHOLE WIKI PAGE is only supported by the community. Whonix developers are very unlikely to provide free support for this content. See Community Support for further information, including implications and possible alternatives.

Installation[edit]

To use Anbox with Whonix, apply the following steps.

1. Follow the general Kicksecure specific instructions.

Kicksecure: Perform these steps inside Kicksecure.

Instead the user should apply the instructions inside Whonix-Workstation.

Kicksecure for Qubes: Perform these steps inside Qubes kicksecure-17 Template.

Instead the user should apply the instructions inside whonix-workstation-17 Template.

2. Follow Whonix specific instructions.

3. Done.

Other Whonix specific notices can be found below.

Anbox Configuration[edit]

Derivative Specific[edit]

Disabling Whonix-Workstation Firewall is unfortunately required. Otherwise there would be no network access. [1]

Warning:

1. Inside Whonix-Workstation.

(Qubes-Whonix: inside StandaloneVM (better!) or Template).

sudo systemctl mask whonix-firewall

2. Disable systemcheckarchive.org in Whonix-Workstation Firewall.

Open file /etc/systemcheck.d/50_user.conf in an editor with root rights.

Non-Qubes-Whonix

This box uses sudoedit for better security.

sudoedit /etc/systemcheck.d/50_user.conf

Qubes-Whonix

NOTES:

  • When using Qubes-Whonix, this needs to be done inside the Template.

sudoedit /etc/systemcheck.d/50_user.conf

  • After applying this change, shutdown the Template.
  • All App Qubes based on the Template need to be restarted if they were already running.
  • This is a general procedure required for Qubes and unspecific to Qubes-Whonix.

Others and Alternatives

  • This is just an example. Other tools could achieve the same goal.
  • If this example does not work for you or if you are not using Whonix, please refer to this link.

sudoedit /etc/systemcheck.d/50_user.conf

Paste.

systemcheck_skip_functions+=" check_whonix_firewall_systemd_status "

Save.

3. Reboot.

This is required to unload Whonix-Workstation firewall rules and to have Anbox load its firewall rules.

sudo reboot

Android x86 as a Workstation[edit]

There are both distinct advantages and disadvantages of running Android applications in Android x86 Workstation. [3]

Table: Android x86 Workstation Advantages and Disadvantages

Category Notes
Bootloader / Ramdisk It is possible to use Magisk to achieve root permissions and hide root from applications on Android x86. [4]
Flexibility
  • It is possible to use adb if Android x86 uses the same internal network as the Gateway and Workstation. [5]
  • Root access - Android x86 has a pre-installed superuser binary and manager so root access works out of the box. Applications with root access will work without any additional setup.
Networking Android x86 provides a virtual Wi-Fi interface (wlan0) so applications think that a real Wi-Fi connection is established (Anbox uses a bridge network interface).
Operating System The full Android stack implemented as Android x86 is a full operating system which requires hardware virtualization.
Security This configuration is less secure than utilizing a Whonix-Workstation. [6]
Software Any version of Android from 4.x to 9.x can be installed.
Speed This configuration is slower than anbox installation as Android x86 VM does not provide any type of Guest Additions meaning no graphic card drivers are supported.

To check running anbox within kicksecure (same applied for Whonix-Workstation) check Anbox inside Kicksecure ™ Advantages and Disadvantagesarchive.org

Forum Discussion[edit]

Footnotes[edit]

  1. This is because Anbox comes with its own bridged network. Whitelisting that interface in Whonix-Workstation firewall is undocumented and might require source code modifications. Patches are Welcome.
  2. https://forums.whonix.org/t/integrate-anbox-into-whonix-workstation/9642archive.org
  3. Some individuals have already achieved this.
  4. Also, it may be possible to run ssh-server on Whonix-Workstation and connect the Android x86 through Termux or similar.
  5. Although it may have more flexibility, as static IP connections on the Android x86 Workstation have been accomplished.

We believe security software like Whonix needs to remain open source and independent. Would you help sustain and grow the project? Learn more about our 12 year success story and maybe DONATE!