[Android Software/Hacking General [Developers Only]] kalisjr:
Use of the Tool for ROM port project I'm working on.

I'm looking for an easier tool to handle themed files, I have tried using this tool and it de-compiles everything great but after I update the images of any .apk file and do a re-compile it runs and produces nothing.

This is a look at the log.

Tue 01/15/2013

19:39:58.38

Re-compiling...

Exception in thread "main" brut.androlib.AndrolibException: brut.directory.PathNotExist: apktool.yml

at brut.androlib.Androlib.readMetaFile(Androlib.java:162)

at brut.androlib.Androlib.build(Androlib.java:179)

at brut.androlib.Androlib.build(Androlib.java:174)

at brut.apktool.Main.cmdBuild(Main.java:188)

at brut.apktool.Main.main(Main.java:70)

Caused by: brut.directory.PathNotExist: apktool.yml

at brut.directory.AbstractDirectory.getFileInput(AbstractDirectory.java:103)

at brut.androlib.Androlib.readMetaFile(Androlib.java:158)

... 4 more

There does not seem to be anything complicated about the instructions of this tool, but there is one thing that is a little confusing about the toggle options and that's the one which says install signed apk after signing? What does that mean how can you install an apk while in Windows? Are you talking about an adb push and I assume it requires a USB debug enabled phone be connected.

It seems as if there is something else which needs to be considered during the setup part which is causing the tool not to produce no compiled output, also I have tried stock files and already processed files and no success in getting this to re-compile.

Anything you can think of which is missing from the installation or configuration part, I have a fresh clean installation of Windows nothing else installed except .Net 4.5 Java JDK v.1.7 ADT Android SDK with Eclispe and that's it.

It couldn't be a path issue since the tool is able to successfully de-compile but I seen the part of checking the use CM10 system framework.

I would like to know as an example if I have a stock ROM with framework, lidroid and systemui where do these files need to be placed in order for me to decompile and add images plus xml mods and re-compile if the installation is a default one with the use of this tool.

That is what I think is wrong with this is the files not being placed in the correct place they need to be in order for the re-compile to work.

Thanks, I'm trying to use this to fix an issue with a ROM I'm porting to three other carriers called Wicked Sensations on i747, T999 and I535.

I would need to mod the original apks for each to the stock files in order for this ROM to allow morphing from Kuban Updater to work, this is a critical step, the process I am using now breaks systemui when those morph files try to unpack and repack systemui duing the theme change and after looking at logs it appears it has something to do with the compression methods applied. I figured the solutions would be to get this tool and use it to add images into the stock framework, lidroid and systemui files so those Kuban updaters will work. But each phone model needs to be based on it's stock file.

The process I am trying to do with this tool is as follows.

First I use zip7 to extract the themed files from the Sprint version of those three files then I take the ATT stock files and use this tool to decompile each file one at a time take images from the Sprint version and copy them into the same file name and location of the decompiled folder then once the factory stock file is ready to be repacked with the new images I run the process with this tool to re-compile and it produces nothing in the output folder and what I get is what I have posted above.

So given my scenario how would you suggest I use this tool to take images from the Wicked Sensations Sprint files and copy them into the ATT, T-Mobile and Verizon stock files of those three files that is all I need this tool for.

Keep in mind I plan to do each model one at a time not all together in case that last part is confusing.

I would like it to work like this.

Step 1.

Unpack / Decompile Sprint Wicked Sensations file.

Step 2. Take images and copy to temp locations from res folder of the unpacked file.

Step 3. Decompile the Stock Deodexed file from ATT or T-Mobile or Verizon which ever model I am working on at the time.

Step 4. Copy images from the Sprint Wicked Sensations temp folder into the same location of the stock unpacked/de-compiled folder.

Step 5. RePack/Re-Compile the stock file with the images in place from Wicked Sensations equivalent file.

So the end result is a working themed SystemUI, Framework-res and Lidroid-res apk which I can build the ROM with and will allow Kuban Morphing process to work as it does with the original ROM built by DazednConfused.

I have a lot of people counting on this working as of now I'm using a mix of Sprint and Carrier specific files to make thing work for now but this is not optimal for each model and if I could use this tool to do this it would allow each model to achieve the maximum performance possible.

Thanks for all you help I have about 120,000 people waiting on me to get this figured out and I thought it would be easy with this tool.

Jk