diff --git a/docs/assets/divers/dev/waydroid.png b/docs/assets/divers/dev/waydroid.png new file mode 100644 index 00000000..e161b432 Binary files /dev/null and b/docs/assets/divers/dev/waydroid.png differ diff --git a/docs/divers/dev/android-on-linux.md b/docs/divers/dev/android-on-linux.md new file mode 100644 index 00000000..8922f49d --- /dev/null +++ b/docs/divers/dev/android-on-linux.md @@ -0,0 +1,94 @@ +# WAYDROID + +![Waydroid](../../assets/divers/dev/waydroid.png) + +Installer et utiliser [Waydroid](https://waydro.id/index.html) (Emulateur Android natif sur Linux) + +## Installation + +```bash +sudo apt install curl ca-certificates -y +curl https://repo.waydro.id | sudo bash +sudo apt install waydroid -y +sudo waydroid init +``` + +- Installer gapp: + +```bash +cd /tmp \ + && git clone https://github.com/casualsnek/waydroid_script.git +cd waydroid_script +``` + +- Se connecter en tant que root: + +```bash +su root +``` + +- Lancer l'installation ge gapps et libhoudini: + +```bash +python3 -m venv venv \ + && source venv/bin/activate \ + && pip install -r requirements.txt \ + && python3 main.py +``` + +1. choisir Android 13 +2. Install +3. Selectionner gapps et libhoudini + +> L'installation se finit par une erreur, c'est normal + +## Configuration + +- Configurer le clic de la souris pour agir comme un screen touch: + +```bash +waydroid prop set persist.waydroid.fake_touch com.* +``` + +- Internet: + +```bash +sudo sed -i~ -E 's/=.\$\(command -v (nft|ip6?tables-legacy).*/=/g' \ +/usr/lib/waydroid/data/scripts/waydroid-net.sh +``` + +## Usage + +- Lancer en plein écran: + +```bash +waydroid show-full-ui +``` + +## Installer une appli (APK): + +- Manuellement: + +```bash +waydroid app install ~/Téléchargements/monjeu.apk +``` + +- Via aurora store: + +```bash +cd /tmp && wget https://d.apkpure.com/b/APK/com.aurora.store?version=latest +waydroid app install /tmp/Aurora*.apk +``` + +- Lancer une appli: + +```bash +waydroid app launch com.nom.du.package +``` + +:warning: Toutes les applis ne fonctionnent pas + +## Documentation: + +- [Instalation](https://docs.waydro.id/usage/install-on-desktops#ubuntu-debian-and-derivatives) +- [Command lines](https://docs.waydro.id/usage/waydroid-command-line-options) \ No newline at end of file diff --git a/docs/divers/dev/index.md b/docs/divers/dev/index.md index 78c4af35..3fc8b549 100644 --- a/docs/divers/dev/index.md +++ b/docs/divers/dev/index.md @@ -4,5 +4,6 @@ Cette rubrique contient différentes astuces, guides et tutoriels de programmati Vous y trouverez: - [créer un mod dans Minetest](create-minetest-mod.md) -- [ Utiliser Unity avec codium](unity_codium.md) +- [Utiliser Unity avec codium](unity_codium.md) +- [Installer android sur Linux](android-on-linux.md) diff --git a/mkdocs.yml b/mkdocs.yml index ef2bb575..6ec8a177 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -169,6 +169,7 @@ nav: - "Index": divers/dev/index.md - "Créer un mod dans Minetest": divers/dev/create-minetest-mod.md - "Installer codium et Unity": divers/dev/unity_codium.md + - "Installer Android sur Linux": divers/dev/android-on-linux.md - "Le guide Git": - divers/git/git.md - "Les guides sur l'IA":