Signed-off-by: Denis 'GNUtoo' Carikli <[email protected]>
---
images/add_adb_root/add_adb_root.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/images/add_adb_root/add_adb_root.py
b/images/add_adb_root/add_adb_root.py
index b13d69f..f8ac4f2 100755
--- a/images/add_adb_root/add_adb_root.py
+++ b/images/add_adb_root/add_adb_root.py
@@ -30,7 +30,8 @@ class ImageType(enum.Enum):
bootimage = 2
def usage(progname):
- print("{} <path/to/old/recovery.img>
<path/to/new/recovery.img>".format(progname))
+ print("{} <path/to/old/recovery.img> <path/to/new/recovery.img>".format(
+ progname))
sys.exit(1)
def automatically_identify_file(path):
@@ -171,7 +172,7 @@ def add_adb_to_zImage(input_file, output_file):
ramdisk = ramdisk_dir + os.sep + f
# example: in
- #
/tmp/tmp.dkbDvuu7PL/_recovery-i9100.img.extracted/_1E74.extracted/32C9C.cpio
+ # /tmp/tmp.[...]/_recovery-i9100.img.extracted/_1E74.extracted/32C9C.cpio
# we want 0x32C9C as int
ramdisk_offset = int("0x" + os.path.basename(ramdisk)[0:-5], 16)
@@ -244,7 +245,6 @@ def add_adb_to_bootimage(input_file, output_file):
"-o", output_file)
if __name__ == "__main__":
-
if len(sys.argv) != 3:
usage(sys.argv[0])
--
2.33.0
_______________________________________________
Replicant mailing list
[email protected]
https://lists.osuosl.org/mailman/listinfo/replicant