Add: hide status bar
This commit is contained in:
@@ -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
|
||||

|
||||
|
||||
After
|
||||

|
||||
|
||||
```
|
||||
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:
|
||||
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 590 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 665 KiB |
@@ -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 = """
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user