[G3 General] topet2k12001:
Hi [MENTION=2464043]rk2612[/MENTION],

Yup, that's one approach (I was already editing my original response but anyway). Basically, open the zip from a TWRP-flashable zip that's Marshmallow stock. There are currently two versions floating around:

1. [MENTION=5565972]Artshell[/MENTION]'s TWRP-flashable zip ("untouched" Marshmallow 30A for D858HK) which we already talked about.

2. [MENTION=6965673]piaoxue99[/MENTION]'s version. He's Chinese and well-known for his work on dual-SIM LG G3 models - I have a hunch he's the guy you are referring to as the source (usually Baidu and then their forum site is "gfan.com"). It's based off on 30B Marshmallow (D855). Here's the XDA Thread, which was OP'd by [MENTION=5348372]AbbasM234[/MENTION].

Just open those zip files and get the boot.img since it's already "patched". :) Use that when you create your own zip. Or better yet, unpack it and compare with an "untouched" Marshmallow 30A boot.img (unpack it as well) and note where the changes were made - again, for personal learning.

About the Sharpening Mod Script: yes, that one bumps the boot.img properly. Again same reason: it's done "on-device". :) I actually borrowed some code from [MENTION=2174433]Skin1980[/MENTION] (with his permission, of course). Before I deployed ImageprepGUI, I tested doing the bump script only and "on-device" (without relying to the bump script within the Sharpening Mod). Eventually I got it to work. And then, later versions of ImageprepGUI had the Sharpening Mod included...not in the ImageprepGUI program itself, but I just included the Sharpening Mod TWRP-flashable zip to be transferred to the device as a means to test if TWRP is working properly - and of course, for the sharpening fix.

There is a way to properly bump a boot.img file "on-PC", but you will need Linux for it. I tried and it worked for me. Also, one other reason why sometimes "bump" wouldn't work properly is because of the version of unpackbootimg and mkbootimg that you will use. Some versions (maybe they're older) don't properly unpack the boot.img. Others, on the other hand, are designed to work "on-device" (the unpackbootimg and mkbootimg I have in ImageprepGUI are for "on-device" use).

I remember your previous post in another thread; I was supposed to respond and give guidance (about getting the patched boot.img, comparing it, and replicating those changes to your copy), but I lost your post. :)

In my case, I verified [MENTION=584366]Arths[/MENTION]hell's version of his TWRP-flashable 30A and it looks like it's also "untouched" or, to your terms, "close to original".

Yup, "Kitchen" tools are good as well. But remember to also learn how those things are done "the manual way". For example, before I created ImageprepGUI, I really learned how to bump manually, unpack/repack manually, etc. Automation thenafter (i.e. "kitchen" tools, "one-click" tools, etc.) is just for convenience.

Great that you have learned something. :) I'm happy for you, then!

EDIT:

1. For "on-PC" stuff, XDA member [MENTION=4544860]osm0sis[/MENTION] is a very good source of proper versions of binaries (i.e. the unpackbootimg and mkbootimg). Here's his thread. Too bad I didn't get to see his thread way back then when I was making ImageprepGUI, but I am currently working on ImageprepGUI v2.7. I plan to use his "Windows version" of unpackbootimg and mkbootimg, so that there is a seamless experience for users with ImageprepGUI (where everything is done "on-PC").

2. For "kitchen" stuff, XDA member [MENTION=718594]super[/MENTION]R made a very good rendition. This one is for creating a TWRP-flashable zip after you have extracted your system.img and prepared your boot.img. Here's the thread.

Although one observation: unpacking/repacking boot.img using [MENTION=718594]super[/MENTION]R's "Kitchen" fails for the LG G3 boot.img. I fiddled with the code and I think it's because the code is for MTK devices (or maybe I haven't read through the entire code yet). So you will have to use a combination of [MENTION=4544860]osm0sis[/MENTION]'s tools (for unpacking/repacking the boot.img) and [MENTION=718594]super[/MENTION]R's tools (for making a TWRP-flashable zip). Or maybe I can edit both so that I won't have to switch between tools. I'll have to ask for permission though if I will plan to share what I plan to do (XDA forum rules).