[G1 Android Development] rfgamaral:
As a user of these scripts I have a few things to suggest...

It's always confusing to come here and see that there are a couple of different versions to choose from. I'm currently using zach.xtr cause it has features that I think it should be in the original:

The menu is slightly better organized. This is a personal preference but I liked the way the menu options were separated between numeric and character inputs.

It correctly supports the framework folder. This folder has mostly .jar files but has a couple of .apk files. The original script doesn't account for these .apk files and we need to move it to the appropriate folders. It sucks, app files go in "app" and framework files go in "framework", the script should take care of the rest (just like the custom version).

I have another suggestion but has nothing to do with the custom version, my suggestion is to better organize the input, output and temporary folders, here's my suggestion:

ROM

app

system

OUTPUT

Deodexed

app

system

Signed

app

temp

tools

Basically, "ROM" is where the original files go (into the appropriate app/system) folder, "OUTPUT" is the result files and "temp" is where all temporaty files and folders should be created. It annoys me to see lots of folders and files being created in the root of the script. The "tools" folder should have all the tools like "apktool", "baksmali/smali", all .bat files sign files and exe files, stuff like that.

This would be much better organized in my opinion.

Another suggestion that I have is to not delete the original "app" and "framework" files and when creating the deodex/signed files, create them inside a folder with the current date/hour. Something like this:

OUTPUT

150710_1530

150710_1548

etc...

160710_2212

Just an example... This would allow for multiple "deodexes" with different compression parameters for instance and then people could easily compare and try all of them. Otherwise, we need to copy the original files back all the time, it's a pain and the idea of the scripts is to automate the process.

Now, I was finally able to boot and the problem was exactly on the .apk files under the "framework" folder. The warning besides the menu option wasn't really self explanatory and although zach.xtr pointed it out in a previous post, I already thought that would be the cause because I had been testing a Linux kitchen which was causing the same issue and the kitchen's dev realized that that was the problem. This was last night and I only came to this topic today.

Anyway, the option to sign all apps should also be implemented for the .apk files residing in the "framework" folder. For now, we need to do it manually. That kitchen automatically signs ALL .apk files, no matter if they are apps or framework files, they are ALL signed. And I think it's the way it should be, it just prevents lot of future issues.

And I'm not sure about what I'm about to say, but there's probably no harm in resigning every single file. We are deodexing all of them, we are completely changing the original files, might as well sign everything with the same key and don't bother with it anymore.

I'm just having a little problem right now... It boots but it force closes all over the place, mostly on the HTC touch input but it also force closes on different apps. I deodexed with the default compression on the custom script (5), I'm going to try with 1 now...

I'm not trying with 0 because 0 makes my "framework" folder around 31Mb (close to the original odexed, which makes sense). However, both MoDaCo and Villain ROMs (which are deodexed) have a "framework" folder around 20Mb and the smallest compression we can get close to those values is 1.