mirror of
https://github.com/ayasa520/redroid-script.git
synced 2026-02-24 16:35:08 +08:00
Update magisk.py
This commit is contained in:
@@ -7,8 +7,9 @@ from tools.helper import bcolors, download_file, host, print_color, run, get_dow
|
||||
|
||||
class Magisk(General):
|
||||
download_loc = get_download_dir()
|
||||
dl_link = "https://huskydg.github.io/magisk-files/app-release.apk"
|
||||
dl_link = "https://web.archive.org/web/20230718224206if_/https://objects.githubusercontent.com/github-production-release-asset-2e65be/514574759/50ec2f91-174b-4918-8587-04e847458bfd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230718%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230718T224206Z&X-Amz-Expires=300&X-Amz-Signature=ee54e872b4d3c1388601941e85b2fcf84d5e06968618271ea2f5e3ea5947d4e1&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=514574759&response-content-disposition=attachment%3B%20filename%3Dapp-debug.apk&response-content-type=application%2Fvnd.android.package-archive"
|
||||
dl_file_name = os.path.join(download_loc, "magisk.apk")
|
||||
act_md5 = "ec98dcee84a47785dc551eb7c465b25f"
|
||||
extract_to = "/tmp/magisk_unpack"
|
||||
copy_dir = "./magisk"
|
||||
magisk_dir = os.path.join(copy_dir, "system", "etc", "init", "magisk")
|
||||
@@ -54,10 +55,8 @@ on property:init.svc.zygote=stopped
|
||||
""".format(arch=machine[1])
|
||||
|
||||
def download(self):
|
||||
if os.path.isfile(self.dl_file_name):
|
||||
os.remove(self.dl_file_name)
|
||||
print_color("Downloading latest Magisk-Delta now .....", bcolors.GREEN)
|
||||
download_file(self.dl_link, self.dl_file_name)
|
||||
super().download()
|
||||
|
||||
def copy(self):
|
||||
if os.path.exists(self.copy_dir):
|
||||
|
||||
Reference in New Issue
Block a user