Hi,
I tested this solution with a Mi A2 phone using latest focal version and it works fine. However, in my phone I had to add a 2 second sleep after bringing up the wg interface, and then I had to add again the routes to the wg network.
The contents of wgup.sh script are:
#!/bin/bash sudo wg-quick up wg0 sleep 2 sudo ip -4 route add 10.8.0.1/32 dev wg0 sudo ip -4 route add 10.8.0.0/24 dev wg0 exitThe wg kernel module is already enabled for this phone, as this command shows:
cat /sys/module/wireguard/version 1.0.20201112