COMMAND:
-h, --help Print this message.
-v, --version Print version number. Print kpimg version if -k specified.
-p, --patch Patch or Update patch of kernel image(-i) with specified kpimg(-k) and superkey(-s).
-u, --unpatch Unpatch patched kernel image(-i).
-r, --reset-skey Reset superkey of patched image(-i).
-d, --dump Dump kallsyms infomations of kernel image(-i).
-f, --flag Dump ikconfig infomations of kernel image(-i).
-l, --list Print all patch informations of kernel image if (-i) specified.
Print extra item informations if (-M) specified.
Print KernelPatch image informations if (-k) specified.
Unpack kernel: unpack <boot.img>
Repack Kernel: repack <boot.img>
Options:
-i, --image PATH Kernel image path.
-k, --kpimg PATH KernelPatch image path.
-s, --skey KEY Set the superkey and save it directly in the boot.img.
-S, --root-skey KEY Set the root-superkey useing hash verification, and the superkey can be changed dynamically.
-o, --out PATH Patched image path.
-a --addition KEY=VALUE Add additional information.
-K, --kpatch PATH Embed kpatch executable binary into patches.
-M, --embed-extra-path PATH Embed new extra item.
-E, --embeded-extra-name NAME Preserve and modifiy embedded extra item.
-T, --extra-type TYPE Set type of previous extra item.
-N, --extra-name NAME Set name of previous extra item.
-V, --extra-event EVENT Set trigger event of previous extra item.
-A, --extra-args ARGS Set arguments of previous extra item.
-D, --extra-detach Detach previous extra item from patches.