How to root without changing Bootloader or creating KDZ file?

habaka

Member
Jul 2, 2017
28
4
3
I am using LG V20 F800K (Korean version).
I tried to root my device without changing the BootLoader (I was tired of waiting and looking at the warning screen every time I booted up). It seems that LG changed Android 9 firmware file, I used this tool and found that the system files have been changed to system.img_XXXX instead of system_XXXX.bin, so I use Android 8 firmware file .
My question is after editing the system.img file, how do I add it to the DZ file and recreate the KDZ file?
After researching on GitHub, I found that this tool can recreate DZ and KDZ files. However, I do not know which environment it works in? Linux or Windows? I tried to use it on Windows and got the error:
Code:
[!] Warning: Data between headers and payload! (offsets 826 to 83768)
right from the extraction step of the KDZ file.
I tried to use it on my VPS, CentOS 7.5 and the same error happened (despite following the instructions to toggle the logic in dz.py at line 175.).
I saw a few people say that the tool works on Python 2. However, I tried it on both Python 2.7 (both Linux and Windows), Python 3.6 (CentOS 7.5) and Python 3.8 (Windows) but the same error still works. happened, so I think that the tool has a problem.
So I want to ask is:
  1. Is there a way to root without changing the BootLoader?
  2. How to add the system.img file to the DZ file, then recreate the KDZ file?
Thank you.