[Desire HD Android Development] slopppy:
Maybe I'll try and summarise my process, and some kind soul can hopefully point me to my mistake!

Firstly, I grab the framework-res.apk. This is my very first issue ... which should I use? The one from Lee's ROM? The one from the power notification widget mod that I flashed, or should I adb pull it from my phone?? I've tried all :D

I've already grabbed APK manager, which I grabbed from xda somewhere ... version 4.9, is that the latest?

So I put the apk into the place-apk-here-for-modding folder, and run the script.

Option 9, to decompile.

Go to the projects folder, then edit framework-res.apk\res\values\arrays.xml with my modified values. I'm not adding new levels or anything, just modifying the existing values in 3 sections - config_autoBrightnessLcdBacklightValues, config_autoBrightnessLcdBacklightValuesUp, config_autoBrightnessLcdBacklightValuesDown. I made all 3 sets exactly the same, as they were, just lower values.

So I save that file, obviously. No other changes to any files.

Back to the apk manager script, option 11 to compile the apk.

Is this a System apk? Yes.

Then it asks if I want to also copy the original files that I didn't modify to ensure least # of errors? What is best here? I've tried it both ways ... usually I've been choosing yes.

If I hit yes, it creates the "keep" folder. It says to delete the files I've modified, but interestingly res\values\arrays.xml isn't in there :confused:. The whole "values" folder is missing, so I don't delete anything. Is that weird, or expected?

It also says that if I've modified any XML I should delete resources.arsc, so I do that (although I've also tried not doing that to see the difference).

Back to the script and hit enter to continue, and it does it's thing and creates the unsigned apk.

Option 12 to sign it, although I'm not sure if I actually need to or not??

So now I "think" I have the modded framewrok-res.apk ... If I go into cwm and mount /system and adb push it, boot loop as mentioned earlier. Weirdly, I pulled the original framework-res.apk, replaced it with my one, got a boot loop, back into cwm, pushed back the original framework-res.apk, and it didn't work :confused: I forget exactly what happened, but I assume it was still a boot loop, because I had to nandroid restore.

So bailing on that method, I take the same apk to UOT kitchen and cook a flashable zip using just the framework file and nothing else. I use the second scripting option for the framework file (amend scripting , the older style one) since I'm using cwm 2.x.x.x, is that the right option? I also unticked the checkbox below that for the Patch9 autofix, since I didn't change any png's at all. Then I cook it up.

Boot into CWM, and flash the zip. Works much better than adb push since it actually boots up this way :)

At first I thought it was all good, then I realised that when I volume up and down with the hardware keys the animation is broken :( So the mod must be doing more than just simply the change to arrays.xml, right? Nothing else is obviously wrong though ... which is weird!

Can I create the update in such a way that it only ever changes the arrays.xml file from within framework-res.apk? Or is that not really possible? I assume not ... you're essentially replacing the entire apk, right?

Sorry for the super long post, but if someone has the time to read it and offer advice I will be grateful :)