[One (M9) Android Development] Sneakyghost:
Hello everyone. Here are the NoWipe versions of what I already uploaded as full stock versions.

Recent additions​

​

Release notes for the "Newbies" who have not done this before:

- the "NoWipe" essentially represents a fully updated package, which can be used to upgrade your (S-OFF) device's firmware in total, from ANY previous state. It is a "NoWipe" because all images have been taken out, which interfere with custom ROM's. Namely these would be:

The Kernel (Boot.img, ramdisk.img, dt.img)

The Splash screen (because there is no need to reflash that every time)

The files which reformat the /data partition (dzdata_32.img, dzdata_32.hdr etc.)

The recovery has been replaced with TWRP 2.8.6.4 (because it is the ONLY correctly working custom recovery right now!)

The Preload for all the carrier bloat (apppreload.img) - If you want it, flash the FullStock Wipe versions or extract it from those and put in your nowipe).

- To convert your device from one "SKU" to another (e.g. from O2_DE to WWE), I recommend using the FullWipe zips except when you know what you do.

- To understand the preload problem: HTC had the Carrier Bloat integrated into their ROM and Data files on older devices, so whenever you flashed a custom ROM, the bloatware would be gone with it. With the M9, they have changed the strategy: the preload (bloatware) is now residing in its own partition, separate from the ROM and Data partitions (with S-ON state, for example, you can't permanently remove the bloat anymore).

It makes handling easier with S-OFF though, because it doesn't depend on ROM's. It can be flashed separately or removed.

In Order to remove the preload, you would simply need to flash the apppreload.img from the international or dev edition, which only contain a facebook client, nothing more.

However, it also introduces a new issue: if choose to NOT flash the international image, your Preload Bloat will always return. On every custom ROM. Whenever you delete the preload folder in your ROM (which is being installed upon ROM install from that partition) it will be gone until you factory reset your phone or reflash your ROM. Then it will magically return. Very annoying.

Example: I had a phone from O2_DE/Base (206). I flashed Viper and had all their preload crap in my nice clean viper. Then I converted my phone to fully 401/International including the apppreload.img and after that, only facebook got installed from that location whenever I reflashed viper. Understandable?

- In order to have any type of preload (if you want that) you can very easily create such a zip yourself. All you need is to download the FullWipe version of the carrier you want, then delete all images in the zip except the apppreload.img and the 3 android-info.txt files.

If you wish to install say the O2_DE preload into your fully International WWE phone, you additionally need to swap out the android-info.txt files for the international ones. Why? Because your Firmware Version Number which you will see in your bootloader or when doing fastboot getvar all depends on these files. If you flash a zip with e.g. 1.32.206.15 android-info.txt, that is what you will see in your bootloader afterwards.

So, you need the apppreload.img of your choice and the android-info.txt files of your choice, preferrably of the Software/Firmware version which is already on your phone.

For the zipping process refer to my instructions on page 1. (7zip, "Normal" compression profile - anything else might cause issues when flashing, also no WinRAR, no WinZIP etc. please!).

Notes on the first 4 Posts in this thread​

​

Post 1: has been reworked to account for changes in flashing routine. Also restructured to make it more logical and easier to follow or skip sections - I take feedback on how to make it better. PM me please if you have ideas.

Post 2 Downloads has been slightly reworked. Nothing important. Just suiting my taste more.

Post 3 Error Handling Strategies: Here, some major rework is needed. For now, I only changed how to deal with "FAIL90" Pre-Update error. This has changed a lot due to HTC's own Fastboot handling it differently now. Maybe worth a read...

Post 4: Batch Tool: I added Info on "Known Issues" - Stuff I am currently looking into. Mainly SELinux related. I need to learn that first. Its a bit over my head to be honest.

Notes on planned additions​

​

Preload Guide and blank zips to work with preload

Splash Screen Section once my Batch Tool can swap out Splashes in Android again - currently you can flash a Splash after converting it to RAW manually with Fastboot/Download Mode. I have simple FFMPEG scripts that can convert a splash.png into a raw partition image, but I want to be able to handle that with DD in Android, so the extra zip's go away. I don't want another AFH folder full with zips nobody uses in a year. Plus, having my Batch Tool convert and flash any image into a splash is somehow sexier anyway. Also want [MENTION=1293920]touch of jobo[/MENTION] to fix his tool for the M9 pretty please!