Last active
February 5, 2024 21:36
-
-
Save arvati/e107c7ed2f4bf13b2530ea9b410dda4d to your computer and use it in GitHub Desktop.
Install Anbox on Debian Buster and use android apps
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo snap install --devmode --beta anbox | |
snap restart anbox.container-manager | |
sudo apt install android-tools-adb anbox | |
ls /lib/modules/`uname -r`/kernel/drivers/android/binder_linux.ko | |
ls /lib/modules/`uname -r`/kernel/drivers/staging/android/ashmem_linux.ko | |
sudo modprobe ashmem_linux | |
sudo modprobe binder_linux | |
How to Build android | |
https://github.com/anbox/anbox/blob/master/docs/build-android.md | |
cd /var/lib/anbox/ | |
#sudo wget https://build.anbox.io/android-images/2018/07/19/android_amd64.img -O android.img | |
sudo snap download --beta anbox | |
mkdir anbox | |
sudo mount -t squashfs anbox_186.snap anbox | |
sudo cp anbox/android.img /var/lib/anbox/ | |
sudo umount anbox | |
rmdir anbox | |
sudo systemctl start anbox-container-manager.service | |
systemctl --user start anbox-session-manager.service | |
anbox system-info | |
initctl stop anbox | |
sudo systemctl stop snap.anbox.container-manager | |
sudo service anbox-container-manager start | |
anbox session-manager | |
anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity | |
cat /usr/share/doc/anbox/README.Debian | |
# Debug | |
env ANBOX_LOG_LEVEL=debug anbox session-manager | |
env ANBOX_LOG_LEVEL=debug anbox launch --package=org.anbox.appmgr --component=org.anbox.appmgr.AppViewActivity | |
# Log | |
/var/lib/anbox/logs/container.log contains the LXC log. | |
/var/lib/anbox/logs/console.log contains the console log of Android system, | |
# Android root shell can be gained by running: | |
sudo /usr/share/anbox/anbox-shell.sh | |
# Install Apps | |
cd ~/ | |
adb devices | |
wget https://f-droid.org/FDroid.apk | |
adb install FDroid.apk | |
sudo apt install wget lzip unzip squashfs-tools | |
wget https://raw.githubusercontent.com/geeks-r-us/anbox-playstore-installer/master/install-playstore.sh | |
chmod +x install-playstore.sh | |
./install-playstore.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://superuser.com/a/1464899/269895