- Here are some default vars for the process
ISO_DIR=~/fedora;
ROOTFS_MOUNT_DIR=/mnt/contents
DISTRO_LOCATION=| # A simple and correct LG KDZ Android image extractor, because I got fed up | |
| # with the partially working one from kdztools. | |
| # | |
| # Copyright (c) 2021 Isaac Garzon | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal | |
| # in the Software without restriction, including without limitation the rights | |
| # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| # copies of the Software, and to permit persons to whom the Software is |
| from Crypto.Cipher import AES | |
| from Crypto import Random | |
| import base64 | |
| import requests | |
| import xml.etree.ElementTree as ET | |
| block_size = AES.block_size | |
| unpad = lambda s : s[0:-ord(s[-1])] |
| from multiprocessing.dummy import Pool | |
| from tqdm import tqdm | |
| from urllib.parse import urlsplit | |
| import urllib3 | |
| import itertools, functools, operator | |
| import os | |
| import sys | |
| import re | |
| import errno | |
| import argparse |