INNER CODE UNIT · Python

copy

casualsnek/waydroid_script · stuff/gapps.py:107

    def copy(self):
        if self.android_version == "11":
            return self.copy_11()
        elif self.android_version == "13":
            return self.copy_13()

    def copy_11(self):
        if not os.path.exists(self.extract_to):
            os.makedirs(self.extract_to)
        if not os.path.exists(os.path.join(self.extract_to, "appunpack")):
            os.makedirs(os.path.join(self.extract_to, "appunpack"))

        for lz_file in os.listdir(os.path.join(self.extract_to, "Core")):
            for d in os.listdir(os.path.join(self.extract_to, "appunpack")):
                shutil.rmtree(os.path.join(self.extract_to, "appunpack", d))
            if lz_file not in self.skip:
                if lz_file not in self.non_apks:
                    print("    Processing app package : " +

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…