diff --git a/README.md b/README.md index a266bfd..a88e8c1 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,9 @@ Then run: git clone https://github.com/casualsnek/waydroid_script cd waydroid_script sudo python3 -m pip install -r requirements.txt + # install something + sudo python3 main.py install {gapps, magisk, libndk, libhoudini, nodataperm, smartdock, microg, hidestatus} + # uninstall something sudo python3 main.py install {gapps, magisk, libndk, libhoudini, nodataperm, smartdock, microg} ## Install OpenGapps @@ -104,7 +107,7 @@ Open terminal and switch to directory where "main.py" is located then run: ``` sudo python3 main.py install nodataperm ``` -**WARNING**: Only tested on `lineage-18.1-20230121-VANILLA-waydroid_x86_64`. This script will replace `/system/framework/service.jar`, which may prevent WayDroid from booting. +**WARNING**: Only tested on `lineage-18.1-20230121-VANILLA-waydroid_x86_64`. This script will replace `/system/framework/service.jar`, which may prevent WayDroid from booting. If so, run `sudo 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. @@ -129,6 +132,18 @@ chmod 777 -R /mnt/*/*/*/*/Android/obb sudo python main.py install microg ``` +## Hide Status Bar +Before +![Before](assets/8.png) + +After +![After](assets/9.png) + +``` +sudo python3 main.py install hidestatus +``` + + ## Get Android ID for device registration 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: diff --git a/assets/8.png b/assets/8.png new file mode 100644 index 0000000..c481f2b Binary files /dev/null and b/assets/8.png differ diff --git a/assets/9.png b/assets/9.png new file mode 100644 index 0000000..6bd4030 Binary files /dev/null and b/assets/9.png differ diff --git a/main.py b/main.py index 45c525a..f324967 100755 --- a/main.py +++ b/main.py @@ -4,6 +4,7 @@ import argparse from logging import Logger from stuffs.android_id import Android_id from stuffs.gapps import Gapps +from stuffs.hidestatusbar import HideStatusBar from stuffs.houdini import Houdini from stuffs.magisk import Magisk from stuffs.microg import MicroG @@ -37,6 +38,8 @@ def install(*args): Nodataperm().install() if "microg" in args: MicroG().install() + if "hidestatus" in args: + HideStatusBar().install() def uninstall(*args): if "gapps" in args: @@ -55,6 +58,8 @@ def uninstall(*args): Nodataperm().uninstall() if "microg" in args: MicroG().uninstall() + if "hidestatus" in args: + HideStatusBar().uninstall() def main(): about = """ @@ -79,7 +84,7 @@ def main(): "type": str, "nargs": '+', "metavar":"", - "choices": ["gapps", "microg", "libndk", "libhoudini", "magisk", "smartdock", "widevine", "nodataperm"], + "choices": ["gapps", "microg", "libndk", "libhoudini", "magisk", "smartdock", "widevine", "nodataperm", "hidestatus"], } install_help = """ diff --git a/stuffs/hidestatusbar.py b/stuffs/hidestatusbar.py new file mode 100644 index 0000000..2a6df2f --- /dev/null +++ b/stuffs/hidestatusbar.py @@ -0,0 +1,21 @@ +import os +import shutil +from stuffs.general import General + +class HideStatusBar(General): + dl_link = "https://github.com/ayasa520/hide-status-bar/releases/download/v0.0.1/app-release.apk" + partition = "system" + dl_file_name = "hidestatusbar.apk" + act_md5 = "ae6c4cc567d6f3de77068e54e43818e2" + files = [ + "product/overlay/"+dl_file_name + ] + + def copy(self): + rro_dir = os.path.join(self.copy_dir, self.partition, "product", "overlay") + if not os.path.exists(rro_dir): + os.makedirs(rro_dir) + shutil.copyfile(self.download_loc, os.path.join(rro_dir, "hidestatusbar.apk")) + + def skip_extract(self): + return True \ No newline at end of file