#!/bin/bash # This is a convenient script to test the current Android IIAB implementation # it requires that you install termux, once on it install proot-distro. # PRoot-Distro allows to install multiple OSes, please install Debian # then login. # Once on the debian shell update the repo and install curl: # # apt update # apt install -y curl # # then run this very script: # # curl -sL https://si-n.cc/9b9922 | bash # or # curl -s https://iiab.switnet.org/iiab-on-android.sh | bash # # and it should complete with the default apps. # See more details at: # - https://github.com/iiab/iiab/blob/master/vars/local_vars_android.yml # or the current PR 4122 # - https://github.com/iiab/iiab/pull/4122 if [ $UID != 0 ]; then echo "This script should be run as root, which is the default in proot-distro" echo "Careful, maybe this script is not been executed on the right terminal?" exit 1 fi LOCAL_VARS="https://raw.githubusercontent.com/iiab/iiab/refs/heads/master/vars/local_vars_android.yml" # Update package db apt-get update # Install basic dependencies, curl might be already there, but no harm # in double check apt-get install -y curl \ sudo # Setup android specific local vars mkdir /etc/iiab curl -s $LOCAL_VARS > /etc/iiab/local_vars.yml # Actually run complete Android build ## See more details at: https://github.com/iiab/iiab/pull/4122 curl https://iiab.io/install.txt | bash -s 4122