Skip to content

Make InquirerPy module optional #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 41 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
8800b73
Fix microG Minimal & MinimalIAP installation
xuzhen Jan 17, 2024
b38e5d0
Add Nix flake and improve derivation
Silveere Feb 14, 2024
11207a0
Fixes and Code Refactoring
arjun-234 Mar 10, 2024
ba51cca
Fixed spelling in error messages
TannerSchultz2006 May 19, 2024
40c5f84
Fix typo
ios7jbpro Jun 17, 2024
817fedd
Make InquirerPy module optional
huakim Jul 10, 2024
987699a
Update requirements.txt
huakim Jul 10, 2024
bf770e3
fixed downloading smartdock
Aug 19, 2024
07c1a36
Update README.md
AndyKhang404 Sep 20, 2024
d58a903
Merge pull request #1 from noobhacker1/main
huakim Oct 8, 2024
6da1db4
Merge pull request #2 from AndyKhang404/patch-1
huakim Oct 8, 2024
4b5afa1
Merge pull request #4 from xuzhen/patch-1
huakim Oct 8, 2024
14355e9
Merge pull request #5 from arjun-234/main
huakim Oct 8, 2024
d9b4870
Merge pull request #7 from ios7jbpro/patch-1
huakim Oct 8, 2024
5b709ab
Merge pull request #8 from Silveere/main
huakim Oct 8, 2024
8b057a5
Merge pull request #6 from TannerSchultz2006/main
huakim Oct 8, 2024
944cd8c
Update README.md
huakim Oct 8, 2024
5bb00eb
update
Oct 8, 2024
abc8ae8
update
Oct 8, 2024
992427c
update
Oct 8, 2024
4d49321
update
Oct 8, 2024
b7aebb7
update
Oct 8, 2024
e992b79
Update README.md
huakim Oct 8, 2024
4d96768
Update README.md
huakim Oct 8, 2024
724376b
Fix regex
Oct 21, 2024
4b3d658
Update README.md
huakim Nov 19, 2024
aff0c51
Fix typo
Ryhon0 Dec 6, 2024
3cfa1e4
Merge pull request #9 from Ryhon0/main
huakim Dec 15, 2024
3bbf8d8
perf: `--depth=1` shallow clones for end users
agilgur5 Dec 22, 2024
29cf41d
Correct a typo in README.md
aspects19 Jan 18, 2025
2d3bd94
Update SmartDock to new version and add WRITE_SECURE_SETTINGS to fix …
rduttshukla Mar 22, 2025
1cb16fe
A13 houdini
aleasto Mar 24, 2025
d507168
A13 ndk_translation
aleasto Mar 24, 2025
0da936c
Merge pull request #11 from rduttshukla/feat/smartdock-update-and-per…
huakim Apr 7, 2025
dd020f5
Merge branch 'main' into update
huakim Apr 7, 2025
a74156f
Merge pull request #12 from huakim/update
huakim Apr 7, 2025
d6d9622
Merge pull request #15 from agilgur5/perf-clone-depth
huakim Apr 7, 2025
c4222d0
Merge pull request #14 from aspects19/fix-typo-readme
huakim Apr 7, 2025
c423cc6
Merge pull request #13 from aleasto/main
huakim Apr 7, 2025
155c9cf
Merge branch 'main' into update
huakim Apr 7, 2025
767267a
Merge pull request #16 from huakim/update
huakim Apr 7, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,25 @@ Script to add GApps and other stuff to Waydroid!
## Interactive terminal interface

```
git clone https://github.com/casualsnek/waydroid_script
git clone --depth 1 --single-branch https://github.com/huakim/waydroid_script
cd waydroid_script
python3 -m venv venv
venv/bin/pip install -r requirements.txt
sudo venv/bin/python3 main.py
```

![image-20230430013103883](assets/img/README/image-20230430013103883.png)
![image-20230430013103883](https://raw.githubusercontent.com/huakim/waydroid_script_assets/main/assets/img/README/image-20230430013103883.png)

![image-20230430013119763](assets/img/README/image-20230430013119763.png)
![image-20230430013119763](https://raw.githubusercontent.com/huakim/waydroid_script_assets/main/assets/img/README/image-20230430013119763.png)

![image-20230430013148814](assets/img/README/image-20230430013148814.png)
![image-20230430013148814](https://raw.githubusercontent.com/huakim/waydroid_script_assets/main//assets/img/README/image-20230430013148814.png)



## Command Line

```bash
git clone https://github.com/casualsnek/waydroid_script
git clone --depth 1 --single-branch https://github.com/huakim/waydroid_script
cd waydroid_script
python3 -m venv venv
venv/bin/pip install -r requirements.txt
Expand All @@ -42,18 +42,18 @@ sudo venv/bin/python3 main.py hack {nodataperm, hidestatusbar}
## Dependencies

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

## Install OpenGapps

![](assets/1.png)
![](https://raw.githubusercontent.com/huakim/waydroid_script_assets/main/assets/1.png)

Open terminal and switch to the directory where "main.py" is located then run:

Expand All @@ -65,13 +65,13 @@ Then launch waydroid with:

After waydroid has finished booting, open terminal and switch to directory where "main.py" is located then run:

sudo python3 main.py google
sudo venv/bin/python3 main.py certified
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!


## Install Magisk

![](assets/2.png)
![](https://raw.githubusercontent.com/huakim/waydroid_script_assets/main/assets/2.png)

Open terminal and switch to directory where "main.py" is located then run:

Expand All @@ -81,7 +81,7 @@ 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

Expand Down Expand Up @@ -109,16 +109,16 @@ Open terminal and switch to directory where "main.py" is located then run:

## Integrate Widevine DRM (L3)

![](assets/3.png)
![](https://raw.githubusercontent.com/huakim/waydroid_script_assets/main/assets/3.png)

Open terminal and switch to directory where "main.py" is located then run:

sudo venv/bin/python3 main.py install widevine

## Install Smart Dock

![](assets/4.png)
![](assets/5.png)
![](https://raw.githubusercontent.com/huakim/waydroid_script_assets/main/assets/4.png)
![](https://raw.githubusercontent.com/huakim/waydroid_script_assets/main/assets/5.png)

Open terminal and switch to directory where "main.py" is located then run:

Expand All @@ -137,7 +137,7 @@ This is a temporary hack to combat against the apps permission issue on Android

Arknights, PUNISHING: GRAY RAVEN and other games won't freeze on the black screen.

![](assets/6.png)
![](https://raw.githubusercontent.com/huakim/waydroid_script_assets/main/assets/6.png)

Open terminal and switch to directory where "main.py" is located then run:

Expand All @@ -163,18 +163,18 @@ chmod 777 -R /mnt/*/*/*/*/Android/obb

## Install microG, Aurora Store and Aurora Droid

![](assets/7.png)
![](https://raw.githubusercontent.com/huakim/waydroid_script_assets/main/assets/7.png)

```
sudo python main.py install microg
```

## Hide Status Bar
Before
![Before](assets/8.png)
![Before](https://raw.githubusercontent.com/huakim/waydroid_script_assets/main/assets/8.png)

After
![After](assets/9.png)
![After](https://raw.githubusercontent.com/huakim/waydroid_script_assets/main/assets/9.png)

```
sudo venv/bin/python3 main.py hack hidestatusbar
Expand Down
Binary file removed assets/1.png
Binary file not shown.
Binary file removed assets/2.png
Binary file not shown.
Binary file removed assets/3.png
Binary file not shown.
Binary file removed assets/4.png
Binary file not shown.
Binary file removed assets/5.png
Binary file not shown.
Binary file removed assets/6.png
Binary file not shown.
Binary file removed assets/7.png
Binary file not shown.
Binary file removed assets/8.png
Binary file not shown.
Binary file removed assets/9.png
Binary file not shown.
Binary file removed assets/img/README/image-20230430013103883.png
Binary file not shown.
Binary file removed assets/img/README/image-20230430013119763.png
Binary file not shown.
Binary file removed assets/img/README/image-20230430013148814.png
Binary file not shown.
26 changes: 4 additions & 22 deletions default.nix
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
with (import <nixpkgs> {});

stdenv.mkDerivation {
name = "waydroid_script";

buildInputs = [
(python3.withPackages(ps: with ps; [ tqdm requests inquirerpy ]))
];

src = ./.;

postPatch = ''
patchShebangs main.py
'';

installPhase = ''
mkdir -p $out/libexec
cp -r . $out/libexec/waydroid_script
mkdir -p $out/bin
ln -s $out/libexec/waydroid_script/main.py $out/bin/waydroid_script
'';
}
let
pkgs = import <nixpkgs> {};
in
pkgs.callPackage ./package.nix { }
41 changes: 41 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
description = "Waydroid Extras Script";
inputs = {
systems.url = "github:nix-systems/default";
};
outputs = { self, nixpkgs, systems }:
let
inherit (nixpkgs) lib;
eachSystem = lib.genAttrs (import systems);
mkApp = program: { type = "app"; inherit program; };
in {
packages = eachSystem (system: rec {
waydroid_script = nixpkgs.legacyPackages."${system}".callPackage ./package.nix { };
default = waydroid_script;
});
apps = eachSystem (system: rec {
waydroid_script = mkApp "${self.outputs.packages.${system}.waydroid_script}/bin/waydroid_script";
default = waydroid_script;
});
};
}
Loading