Installation et utilisation de Waydroid sur Mageia
urpmi waydroid
https://docs.waydro.id/usage/install-on-desktops
https://wiki.mageia.org/en/Waydroid il est empaqueté dans Mageia 9 (version 1.4.2)
https://doc.ubuntu-fr.org/waydroid pas empaqueté dans ubuntu o_O install' via curl malware | bash /o\
paquets disponibles pour les distributions :
https://pkgs.org/download/waydroid 1.6.2 en Fedora Rawhide
https://rpmfind.net/linux/rpm2html/search.php?query=waydroid 1.4.2 en Mageia 9, 1.6.0 en Mageia Cauldron 2026-02-19 il y a une 1.6.1 en Fedora Rawhide
https://github.com/waydroid/waydroid/releases
ajouter psi=1 à la config de lancement du noyau, exemple de Mageia 9
# inxi -Sa System: Host: hatlab23-2007 Kernel: 6.6.120-desktop-1.mga9 arch: x86_64 bits: 64 compiler: gcc v: 12.3.0 clocksource: tsc avail: hpet,acpi_pm parameters: BOOT_IMAGE=/boot/vmlinuz-6.6.120-desktop-1.mga9 root=UUID=d1ddfb9e-61f2-4544-8d30-3f90aa5ae25d ro splash quiet noiswmd resume=UUID=ac2fe13a-6db8-4b04-8966-c96d6e5839dc audit=0 psi=1 vga=788
Installation d'applications dans Waydroid
https://docs.waydro.id/usage/install-on-desktops liens d'installation pour chaque distribution
https://fr.console-linux.com/?p=30489 bof a l'air généré par de l'IA, propose d'utiliser le playstore o_O
https://fr.linux-terminal.com/?p=7478 voir après étape 2
waydroid app install F-Droid.apk # installation de f-droid
reste à avoir le réseau... ok voir Internet opérationnel : en bref, lancer firewalld puis règles de filtrage
Applications intéressantes pour utilisation avec tablette
Utiliser f-droid pour les installer :- Breakout 71 : casser des briques, voir si jouable en horizontal et vertical
- Mindustry : miner des matériaux et construire ses défenses, comparaison possible avec version native Linux (c'est du java...)
- Minesweeper : trouver les mines
- Open Golf : jouer au golf sur parcours acrobatique => clavier tactile non reconnu ?
Spécifique waydroid 1.6.x
pré-requis :https://github.com/waydroid/waydroid/releases/tag/1.6.2 Dear packagers: As already mentioned in the 1.6.0 release, gbinder-python version 1.3.0 or higher is required
gbinder-python version 1.3.0 or higher is required, otherwise the Waydroid session manager process will crash when receiving a notification with a picture
https://github.com/waydroid/gbinder-python v1.3.x
trouver le .spec pour monter de version et ouvrir un bug
Commandes
https://docs.waydro.id/usage/waydroid-command-line-optionsLaunch a shell:
# waydroid shell
Install an application:
$ waydroid app install $path_to_apk
Get the application list:
$ waydroid app list
Run an application (Note, $package_name referes to the `packageName` attribute as shown by the list command and not to the literal name of the package as shown in the `Name` attribute):
$ waydroid app launch $package_name
Références
https://forums.mageia.org/en/viewtopic.php?t=14643 en Mageia 8Éléments techniques
L'important c'est psi=1 dans les paramètres kernel
# inxi -Fa System: Host: hatlab23-2007 Kernel: 6.6.120-desktop-1.mga9 arch: x86_64 bits: 64 compiler: gcc v: 12.3.0 clocksource: tsc avail: hpet,acpi_pm parameters: BOOT_IMAGE=/boot/vmlinuz-6.6.120-desktop-1.mga9 root=UUID=d1ddfb9e-61f2-4544-8d30-3f90aa5ae25d ro splash quiet noiswmd resume=UUID=ac2fe13a-6db8-4b04-8966-c96d6e5839dc audit=0 psi=1 vga=788 Console: pty pts/1 wm: gnome-shell DM: 1: GDM v: 44.1 2: SDDM note: stopped Distro: Mageia 9 Machine: Type: Desktop System: Hewlett-Packard product: 23-d220ef v: 1.00 serial: CZC3301JB4 Chassis: type: 3 serial: N/A Mobo: Hewlett-Packard model: 2ADC v: 1.06 serial: 120562740001055 part-nu: E3J02EA#ABF uuid: 91044c60-82c5-11e2-be78-7054d295c369 UEFI: AMI v: 8.13 date: 02/07/2013 CPU: Info: model: Intel Core i3-3240 socket: BGA1155 bits: 64 type: MT MCP arch: Ivy Bridge gen: core 3 level: v2 built: 2012-15 process: Intel 22nm family: 6 model-id: 0x3A (58) stepping: 9 microcode: 0x21 Topology: cpus: 1x dies: 1 clusters: 2 cores: 2 threads: 4 tpc: 2 smt: enabled cache: L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB L3: 3 MiB desc: 1x3 MiB Speed (MHz): avg: 1596 min/max: 1600/3400 base/boost: 3400/3400 scaling: driver: intel_cpufreq governor: schedutil volts: 4.1 V ext-clock: 100 MHz cores: 1: 1596 2: 1596 3: 1596 4: 1596 bogomips: 27137 Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 Vulnerabilities: Type: gather_data_sampling status: Not affected Type: indirect_target_selection status: Not affected Type: itlb_multihit status: KVM: VMX unsupported Type: l1tf mitigation: PTE Inversion Type: mds mitigation: Clear CPU buffers; SMT vulnerable Type: meltdown mitigation: PTI Type: mmio_stale_data status: Unknown: No mitigations Type: reg_file_data_sampling status: Not affected Type: retbleed status: Not affected Type: spec_rstack_overflow status: Not affected Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW; STIBP: conditional; RSB filling; PBRSB-eIBRS: Not affected; BHI: Not affected Type: srbds status: Not affected Type: tsa status: Not affected Type: tsx_async_abort status: Not affected Type: vmscape mitigation: IBPB before exit to userspace Graphics: Device-1: Intel Xeon E3-1200 v2/3rd Gen Core processor Graphics vendor: Hewlett-Packard driver: i915 v: kernel arch: Gen-7 process: Intel 22nm built: 2012-13 ports: active: eDP-1 empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2, VGA-1 bus-ID: 00:02.0 chip-ID: 8086:0152 class-ID: 0300 Device-2: Realtek HP 1.0MP High Definition Webcam driver: uvcvideo type: USB rev: 2.0 speed: 480 Mb/s lanes: 1 mode: 2.0 bus-ID: 2-1.5:5 chip-ID: 0bda:58dc class-ID: 0e02 serial: 200901010001 Display: server: X.Org v: 22.1.9 with: Xwayland v: 22.1.9 compositor: gnome-shell driver: X: loaded: intel unloaded: fbdev,modesetting,vesa dri: crocus gpu: i915 display-ID: :0 screens: 1 Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.00x11.26") s-diag: 583mm (22.95") Monitor-1: eDP-1 mapped: XWAYLAND0 model: HP TouchSmart serial: 1 built: 2010 res: 1920x1080 hz: 60 dpi: 96 gamma: 1.2 size: 510x290mm (20.08x11.42") diag: 584mm (23") ratio: 16:9 modes: 1920x1080 API: EGL v: 1.5 hw: drv: intel crocus platforms: device: 0 drv: crocus device: 1 drv: swrast gbm: drv: crocus surfaceless: drv: crocus x11: drv: crocus inactive: wayland API: OpenGL v: 4.5 compat-v: 4.2 vendor: intel mesa v: 25.0.7 glx-v: 1.4 direct-render: yes renderer: Mesa Intel HD Graphics 2500 (IVB GT1) device-ID: 8086:0152 memory: 1.46 GiB unified: yes API: Vulkan v: 1.3.231 layers: 3 device: 0 type: integrated-gpu name: Intel HD Graphics 2500 (IVB GT1) driver: mesa intel v: 25.0.7 device-ID: 8086:0152 surfaces: xcb,xlib device: 1 type: cpu name: llvmpipe (LLVM 15.0.6 256 bits) driver: mesa llvmpipe v: 25.0.7 (LLVM 15.0.6) device-ID: 10005:0000 surfaces: xcb,xlib Audio: Device-1: Intel 6 Series/C200 Series Family High Definition Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus-ID: 00:1b.0 chip-ID: 8086:1c20 class-ID: 0403 API: ALSA v: k6.6.120-desktop-1.mga9 status: kernel-api with: aoss type: oss-emulator tools: alsactl,alsamixer,amixer Server-1: JACK v: 1.9.21 status: off tools: jack_control Server-2: PipeWire v: 0.3.85 status: off with: pipewire-media-session status: off tools: N/A Server-3: PulseAudio v: 16.1 status: active (root, process) tools: pacat,pactl,pavucontrol Network: Device-1: Ralink RT5390R 802.11bgn PCIe Wireless Network Adapter vendor: Hewlett-Packard driver: rt2800pci v: 2.3.0 pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 1814:539b class-ID: 0280 IF: wlp3s0 state: down mac: 7e:4d:9e:ef:f5:8a Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Hewlett-Packard driver: r8169 v: kernel pcie: gen: 1 speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 06:00.0 chip-ID: 10ec:8168 class-ID: 0200 IF: eno1 state: up speed: 1000 Mbps duplex: full mac: 70:54:d2:95:c3:69 Info: services: NetworkManager, wpa_supplicant, xinetd Drives: Local Storage: total: 232.89 GiB used: 28.77 GiB (12.4%) ID-1: /dev/sda maj-min: 8:0 vendor: PNY model: CS900 250GB SSD size: 232.89 GiB block-size: physical: 512 B logical: 512 B sata: 3.2 speed: 3.0 Gb/s tech: SSD serial: PNY224322102601019D5 fw-rev: 0615 temp: 33 C scheme: MBR SMART: yes state: enabled health: PASSED on: 96 hrs cycles: 237 written: 104 KiB Partition: ID-1: / raw-size: 50.29 GiB size: 49.2 GiB (97.83%) used: 16.59 GiB (33.7%) fs: ext4 block-size: 4096 B dev: /dev/sda5 maj-min: 8:5 ID-2: /home raw-size: 178.3 GiB size: 174.44 GiB (97.84%) used: 12.18 GiB (7.0%) fs: ext4 block-size: 4096 B dev: /dev/sda7 maj-min: 8:7 Swap: Kernel: swappiness: 60 (default) cache-pressure: 100 (default) zswap: no ID-1: swap-1 type: partition size: 4 GiB used: 0 KiB (0.0%) priority: -2 dev: /dev/sda6 maj-min: 8:6 Sensors: System Temperatures: cpu: 36.0 C mobo: N/A Fan Speeds (rpm): N/A Info: Memory: total: 4 GiB available: 3.69 GiB used: 2.41 GiB (65.3%) igpu: 64 MiB Processes: 236 Power: uptime: 20m states: freeze,mem,disk suspend: deep avail: s2idle wakeups: 0 hibernate: platform avail: shutdown, reboot, suspend, test_resume image: 1.46 GiB services: gsd-power, power-profiles-daemon, upowerd Init: systemd v: 253 target: graphical (5) default: runlevel5 tool: systemctl Packages: pm: rpm pkgs: N/A note: see --rpm tools: dnf,urpmi,yum pm: flatpak pkgs: 0 Compilers: gcc: 12.3.0 Shell: Bash (sudo) v: 5.2.15 running-in: gnome-terminal inxi: 3.3.36
diagnostic réseau
L'IP forwarding doit être activé avec l'interface waydroid0 qui apparaît au lancement de waydroid# sysctl -a | grep forward net.ipv4.conf.all.bc_forwarding = 0 net.ipv4.conf.all.forwarding = 1 net.ipv4.conf.all.mc_forwarding = 0 net.ipv4.conf.default.bc_forwarding = 0 net.ipv4.conf.default.forwarding = 1 net.ipv4.conf.default.mc_forwarding = 0 net.ipv4.conf.eno1.bc_forwarding = 0 net.ipv4.conf.eno1.forwarding = 1 net.ipv4.conf.eno1.mc_forwarding = 0 net.ipv4.conf.lo.bc_forwarding = 0 net.ipv4.conf.lo.forwarding = 1 net.ipv4.conf.lo.mc_forwarding = 0 net.ipv4.conf.vethar5C6v.bc_forwarding = 0 net.ipv4.conf.vethar5C6v.forwarding = 1 net.ipv4.conf.vethar5C6v.mc_forwarding = 0 net.ipv4.conf.waydroid0.bc_forwarding = 0 net.ipv4.conf.waydroid0.forwarding = 1 net.ipv4.conf.waydroid0.mc_forwarding = 0 net.ipv4.conf.wlp3s0.bc_forwarding = 0 net.ipv4.conf.wlp3s0.forwarding = 1 net.ipv4.conf.wlp3s0.mc_forwarding = 0 net.ipv4.ip_forward = 1 net.ipv4.ip_forward_update_priority = 1 net.ipv4.ip_forward_use_pmtu = 0 net.ipv6.conf.all.forwarding = 0 net.ipv6.conf.all.mc_forwarding = 0 net.ipv6.conf.default.forwarding = 0 net.ipv6.conf.default.mc_forwarding = 0 net.ipv6.conf.eno1.forwarding = 0 net.ipv6.conf.eno1.mc_forwarding = 0 net.ipv6.conf.lo.forwarding = 0 net.ipv6.conf.lo.mc_forwarding = 0 net.ipv6.conf.vethar5C6v.forwarding = 0 net.ipv6.conf.vethar5C6v.mc_forwarding = 0 net.ipv6.conf.waydroid0.forwarding = 0 net.ipv6.conf.waydroid0.mc_forwarding = 0 net.ipv6.conf.wlp3s0.forwarding = 0 net.ipv6.conf.wlp3s0.mc_forwarding = 0
vu sur https://docs.waydro.id/debugging/networking-issues
# iptables --list-rules | grep FORWARD -P FORWARD DROP -A FORWARD -i eno1 -j eno1_fwd -A FORWARD -i wlp3s0 -j wlp3s0_fwd -A FORWARD -m addrtype --dst-type BROADCAST -j DROP -A FORWARD -m addrtype --dst-type ANYCAST -j DROP -A FORWARD -m addrtype --dst-type MULTICAST -j DROP -A FORWARD -m hashlimit --hashlimit-upto 1/sec --hashlimit-burst 10 --hashlimit-mode srcip --hashlimit-name lograte -j LOG --log-prefix "FORWARD REJECT " --log-level 6 -A FORWARD -g reject [root@hatlab23-2007 ~]# iptables -P FORWARD ACCEPT [root@hatlab23-2007 ~]# iptables --list-rules | grep FORWARD -P FORWARD ACCEPT -A FORWARD -i eno1 -j eno1_fwd -A FORWARD -i wlp3s0 -j wlp3s0_fwd -A FORWARD -m addrtype --dst-type BROADCAST -j DROP -A FORWARD -m addrtype --dst-type ANYCAST -j DROP -A FORWARD -m addrtype --dst-type MULTICAST -j DROP -A FORWARD -m hashlimit --hashlimit-upto 1/sec --hashlimit-burst 10 --hashlimit-mode srcip --hashlimit-name lograte -j LOG --log-prefix "FORWARD REJECT " --log-level 6 -A FORWARD -g reject
Configuration réseau défaillante
ip a # après lancement de waydroid1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host noprefixroute valid_lft forever preferred_lft forever 2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 70:54:d2:95:c3:69 brd ff:ff:ff:ff:ff:ff altname enp6s0 inet 192.168.25.89/24 brd 192.168.25.255 scope global dynamic noprefixroute eno1 valid_lft 42256sec preferred_lft 42256sec inet6 2a01:e0a:1bb:abc0:7254:d2ff:fe95:c369/64 scope global dynamic noprefixroute valid_lft 86268sec preferred_lft 86268sec inet6 fe80::7254:d2ff:fe95:c369/64 scope link noprefixroute valid_lft forever preferred_lft forever 3: wlp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether a6:d8:59:06:6a:09 brd ff:ff:ff:ff:ff:ff permaddr b8:76:3f:2e:2e:26 4: waydroid0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 00:16:3e:00:00:01 brd ff:ff:ff:ff:ff:ff inet 192.168.240.1/24 brd 192.168.240.255 scope global waydroid0 valid_lft forever preferred_lft forever inet6 fe80::216:3eff:fe00:1/64 scope link proto kernel_ll valid_lft forever preferred_lft forever 5: veth78gCuC@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master waydroid0 state UP group default qlen 1000 link/ether fe:24:4b:40:f9:f5 brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet6 fe80::fc24:4bff:fe40:f9f5/64 scope link proto kernel_ll valid_lft forever preferred_lft forever
waydroid shell # ya pas de réseau
:/ # ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0@if5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 00:16:3e:f9:d3:03 brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet6 fe80::7f64:5966:aefa:16ad/64 scope link stable-privacy valid_lft forever preferred_lft forever :/ #
Internet opérationnel pour waydroid
Utiliser firewalld et suivre https://wiki.archlinux.org/title/Waydroid#Networkfirewalld
# firewall-cmd --zone=trusted --add-port=67/udp # firewall-cmd --zone=trusted --add-port=53/udp # firewall-cmd --zone=trusted --add-forward # firewall-cmd --list-all-zones
# ip a ; ip route 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host noprefixroute valid_lft forever preferred_lft forever 2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 link/ether 70:54:d2:95:c3:69 brd ff:ff:ff:ff:ff:ff altname enp6s0 inet 192.168.25.89/24 brd 192.168.25.255 scope global dynamic noprefixroute eno1 valid_lft 42067sec preferred_lft 42067sec inet6 2a01:e0a:1bb:abc0:7254:d2ff:fe95:c369/64 scope global dynamic noprefixroute valid_lft 86090sec preferred_lft 86090sec inet6 fe80::7254:d2ff:fe95:c369/64 scope link noprefixroute valid_lft forever preferred_lft forever 3: wlp3s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN group default qlen 1000 link/ether 6e:c8:34:e1:da:0a brd ff:ff:ff:ff:ff:ff permaddr b8:76:3f:2e:2e:26 4: waydroid0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 00:16:3e:00:00:01 brd ff:ff:ff:ff:ff:ff inet 192.168.240.1/24 brd 192.168.240.255 scope global waydroid0 valid_lft forever preferred_lft forever inet6 fe80::216:3eff:fe00:1/64 scope link proto kernel_ll valid_lft forever preferred_lft forever 5: vethAoVqKL@if2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master waydroid0 state UP group default qlen 1000 link/ether fe:fa:1e:69:26:28 brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet6 fe80::fcfa:1eff:fe69:2628/64 scope link proto kernel_ll valid_lft forever preferred_lft forever default via 192.168.25.254 dev eno1 proto dhcp src 192.168.25.89 metric 100 192.168.25.0/24 dev eno1 proto kernel scope link src 192.168.25.89 metric 100 192.168.240.0/24 dev waydroid0 proto kernel scope link src 192.168.240.1 [root@hatlab23-2007 ~]# route -n Table de routage IP du noyau Destination Passerelle Genmask Indic Metric Ref Use Iface 0.0.0.0 192.168.25.254 0.0.0.0 UG 100 0 0 eno1 192.168.25.0 0.0.0.0 255.255.255.0 U 100 0 0 eno1 192.168.240.0 0.0.0.0 255.255.255.0 U 0 0 0 waydroid0
waydroid shell
# ip a 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: eth0@if5: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000 link/ether 00:16:3e:f9:d3:03 brd ff:ff:ff:ff:ff:ff link-netnsid 0 inet 192.168.240.112/24 brd 192.168.240.255 scope global eth0 valid_lft forever preferred_lft forever inet6 fe80::7f64:5966:aefa:16ad/64 scope link stable-privacy valid_lft forever preferred_lft forever :/ # ip route 192.168.240.0/24 dev eth0 proto kernel scope link src 192.168.240.112
Erreurs suite passage Mageia 10
[gbinder] ERROR: Can't open /dev/binder: No such file or directory [22:29:29] Waiting for binder Service Manager... [22:30:30] Service Manager never appeared [22:30:30] Failed to access IPlatform service