[Android Software/Hacking General [Developers Only]] mrmomoman:
Just learning this stuff.

I wanted to mod my HTC One Message.apk to show bubbles on both sides. I know the location and a general overall idea of what to rename. I could look into the XML file? for the color for the outgoing message to make sure the contrast of colors are correct.

In experimenting. I downloaded this tool. I moved the Message.apk from the system/app(made a backup) and decompiled it to the default folder.

I didn't pull any framework-res.apk into the custom ROM(Framework) option of the GUI App. Am I supposed to?

The decompile seems to work correctly. I edit the file to test it and then I recompile it back to the default Message.apk folder it created.

There is nothing there. I name the file Message.apk but nothing is output there. It has a bunch of errors in the log.

Sorry if this is trivial to someone who understands this stuff. I am just learning to play around with it.

Here is what I get when I decompile.

I: Baksmaling...

I: Loading resource table...

I: Loaded.

I: Decoding AndroidManifest.xml with resources...

I: Loading resource table from file: C:\Users\Khanh\apktool\framework\1.apk

I: Loaded.

W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x0204020e

W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x02040178

I: Regular manifest package...

I: Decoding file-resources...

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x02080118

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginLeft, value=0x02050000

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginRight, value=0x02050000

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginLeft, value=0x02050000

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginRight, value=0x02050000

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginBottom, value=0x02050002

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginTop, value=0x0205000c

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x02080039

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x02080039

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginLeft, value=0x02050000

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginRight, value=0x02050000

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x02080036

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x02080039

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginLeft, value=0x02050000

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginRight, value=0x02050000

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginRight, value=0x02050001

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginBottom, value=0x02050001

W: Could not decode attr value, using undecoded value instead: ns=android, name=title, value=0x0204020c

W: Could not decode attr value, using undecoded value instead: ns=android, name=title, value=0x02040178

W: Could not decode attr value, using undecoded value instead: ns=htc, name=itemMode, value=0x00000004

W: Could not decode attr value, using undecoded value instead: ns=htc, name=backgroundMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=backgroundMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=backgroundMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=textMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=imageMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=imageMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=imageMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=android, name=title, value=0x02040178

W: Could not decode attr value, using undecoded value instead: ns=android, name=title, value=0x02040178

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x02080118

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginLeft, value=0x02050000

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginRight, value=0x02050000

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginLeft, value=0x02050000

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginRight, value=0x02050000

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginBottom, value=0x02050002

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginTop, value=0x0205000c

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x02080039

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x02080039

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginLeft, value=0x02050000

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginRight, value=0x02050000

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x02080036

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x02080039

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginLeft, value=0x02050000

W: Could not decode attr value, using undecoded value instead: ns=android, name=layout_marginRight, value=0x02050000

W: Could not decode attr value, using undecoded value instead: ns=htc, name=itemMode, value=0x00000004

W: Could not decode attr value, using undecoded value instead: ns=htc, name=textMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=backgroundMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=backgroundMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=backgroundMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=imageMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=backgroundMode, value=0x00000000

W: Could not decode attr value, using undecoded value instead: ns=htc, name=backgroundMode, value=0x00000000

W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x02080037

W: Could not decode attr value, using undecoded value instead: ns=android, name=label, value=0x0204014d

W: Could not decode attr value, using undecoded value instead: ns=htc, name=itemMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=imageMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=itemMode, value=0x00000004

W: Could not decode attr value, using undecoded value instead: ns=htc, name=imageMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=textMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=backgroundMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=backgroundMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=backgroundMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=itemMode, value=0x00000004

W: Could not decode attr value, using undecoded value instead: ns=htc, name=backgroundMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=backgroundMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=backgroundMode, value=0x00000001

W: Could not decode attr value, using undecoded value instead: ns=htc, name=textMode, value=0x00000001

I: Decoding values */* XMLs...

Here is what I get when I try to recompile. Nothing in the recompile directory.

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

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

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

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

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

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

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

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

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

... 4 more

What am I missing? I run Windows 8 Pro. X64. 4.5 .Net is already in Windows 8 it says.