"lzip" is required for this script to work, install it using your distribution's package manager:
### Arch, Manjaro and EndeavourOS based distributions:
### Arch, Manjaro, and EndeavourOS-based distributions:
sudo pacman -S lzip
### Debian and Ubuntu based distributions:
### Debian and Ubuntu-based distributions:
sudo apt install lzip
### RHEL, Fedora and Rocky based distributions:
### RHEL, Fedora, and Rocky-based distributions:
sudo dnf install lzip
### openSUSE based distributions:
### openSUSE-based distributions:
sudo zypper install lzip
## Install OpenGapps
## Install Open GApps

Open terminal and switch to the directory where "main.py" is located then run:
Open the terminal and switch to the directory where "main.py" is located, then run:
sudo venv/bin/python3 main.py install gapps
Then launch waydroid with:
Then launch Waydroid with:
waydroid show-full-ui
After waydroid has finished booting, open terminal and switch to directory where "main.py" is located then run:
After Waydroid has finished booting, open the terminal and switch to the directory where "main.py" is located, then run:
sudo python3 main.py google
Copy the returned numeric ID, then open ["https://google.com/android/uncertified/?pli=1"](https://google.com/android/uncertified/?pli=1). Enter the ID and register it. Wait 10-20 minutes for device to get registered. Then clear Google Play Service's cache and try logging in!
Copy the returned numeric ID, then
open ["https://google.com/android/uncertified/?pli=1"](https://google.com/android/uncertified/?pli=1). Enter the ID and
register it. Wait 10–20 minutes for the device to get registered. Then clear Google Play Service's cache and try logging
in!
## Install Magisk

Open terminal and switch to directory where "main.py" is located then run:
Open the terminal and switch to the directory where "main.py" is located, then run:
sudo venv/bin/python3 main.py install magisk
Magisk will be installed on next boot!
Magisk will be installed on next boot!
Zygisk and modules like LSPosed should work now.
If you want to update Magisk, Please use `Direct Install into system partition` or run this sript again.
If you want to update Magisk, Please use `Direct Install into system partition` or run this script again.
This script only focuses on Magisk installation, if you need more management, please check https://github.com/nitanmarcel/waydroid-magisk
This script only focuses on Magisk installation, if you need more management, please
This is a temporary hack to combat against the apps permission issue on Android 11. Whenever an app is open it will always enable a property (persist.sys.nodataperm) to make it execute a script to grant the data full permissions (777). The **correct** way is to use `sdcardfs` or `esdfs`, both need to recompile the kernel or WayDroid image.
This is a temporary hack to combat against the apps permission issue on Android 11. Whenever an app is open, it will
always enable a property (persist.sys.nodataperm) to make it execute a script to grant the data full permissions (777).
The **correct** way is to use `sdcardfs` or `esdfs`, both need to recompile the kernel or WayDroid image.
Arknights, PUNISHING: GRAY RAVEN and other games won't freeze on the black screen.

Open terminal and switch to directory where "main.py" is located then run:
Open the terminal and switch to the directory where "main.py" is located, then run:
```
sudo venv/bin/python3 main.py hack nodataperm
```
**WARNING**: Tested on `lineage-18.1-20230128-VANILLA-waydroid_x86_64.img`. This script will replace `/system/framework/service.jar`, which may prevent WayDroid from booting. If so, run `sudo venv/bin/python3 main.py uninstall nodataperm` to remove it.
**WARNING**: Tested on `lineage-18.1-20230128-VANILLA-waydroid_x86_64.img`. This script will
replace `/system/framework/service.jar`, which may prevent Waydroid from booting. If so,
run `sudo venv/bin/python3 main.py uninstall nodataperm` to remove it.
Or you can run the following commands directly in `sudo waydroid shell`. In this way, every time a new game is installed, you need to run it again, but it's much less risky.
Or you can run the following commands directly in `sudo waydroid shell`. In this way, every time a new game is
installed, you need to run it again, but it is much less risky.
You need to register you device with its it before being able to use gapps, this will print out your Android ID which you can use for device registration required for Google apps:
Open terminal and switch to directory where "main.py" is located then run:
You need to register your device with its ID before being able to use gapps, this will print out your Android ID, which
you can use for device registration required for Google apps:
Open the terminal and switch to the directory where "main.py" is located, then run:
sudo venv/bin/python3 main.py certified
Star this repository if you find this useful, if you encounter problem create an issue on GitHub!
Star this repository if you find this useful, if you encounter a problem, create an issue on GitHub!