From 53d7cbc11bbb4e417707653db98a916ec2697f7e Mon Sep 17 00:00:00 2001 From: Wang Han <416810799@qq.com> Date: Fri, 6 Sep 2024 23:26:35 +0800 Subject: [PATCH] Clarify magiskboot requirements for repacking img --- docs/tools.md | 4 +++- native/src/boot/main.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/tools.md b/docs/tools.md index 6900c7e52..b32c00e55 100644 --- a/docs/tools.md +++ b/docs/tools.md @@ -41,7 +41,9 @@ Supported actions: repack [-n] [outbootimg] Repack boot image components using files from the current directory - to [outbootimg], or 'new-boot.img' if not specified. + to [outbootimg], or 'new-boot.img' if not specified. Current directory + should only contain required files for [outbootimg], or incorrect + [outbootimg] may be produced. is the original boot image used to unpack the components. By default, each component will be automatically compressed using its corresponding format detected in . If a component file diff --git a/native/src/boot/main.cpp b/native/src/boot/main.cpp index 2cd68efe3..9859f3e1f 100644 --- a/native/src/boot/main.cpp +++ b/native/src/boot/main.cpp @@ -48,7 +48,9 @@ Supported actions: repack [-n] [outbootimg] Repack boot image components using files from the current directory - to [outbootimg], or 'new-boot.img' if not specified. + to [outbootimg], or 'new-boot.img' if not specified. Current directory + should only contain required files for [outbootimg], or incorrect + [outbootimg] may be produced. is the original boot image used to unpack the components. By default, each component will be automatically compressed using its corresponding format detected in . If a component file