[Samsung Galaxy Mini] lacoursiere18:
Hey trick Thanks for this GREAT guide. I was running into a few issues.. When i decompile my SecMms.apk i get some errors:

C:\AndroidApktool>apktool d SecMms.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\LaCoursiere\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000e W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x0205001c W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x0205001c W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x0205001c W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02050000 W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemType, value=0x00000000 W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemText, value=0x7f0b010f W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemType, value=0x00000000 W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemText, value=0x7f0b006b W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000e W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000d W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02050000 W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0205001c W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x02070011 W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000f W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0205009a W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000d W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x02050001 W: Could not decode attr value, using undecoded value instead: ns=android, name=cacheColorHint, value=0x02050001 W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02050000 W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02050000 W: Could not decode attr value, using undecoded value instead: ns=android, name=shadowColor, value=0x02050001 W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemType, value=0x00000000 W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemText, value=0x7f0b00a2 W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemType, value=0x00000000 W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemText, value=0x7f0b043c W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemType, value=0x00000000 W: Could not decode attr value, using undecoded value instead: ns=touchwiz, name=twSoftkeyItemText, value=0x7f0b006b W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000f W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000d W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0205001c W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02050000 W: Could not decode attr value, using undecoded value instead: ns=android, name=shadowColor, value=0x02050001 W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02050000 W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02050000 W: Could not decode attr value, using undecoded value instead: ns=android, name=color, value=0x02050000 W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000e W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02050001 W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02050001 W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0202003a W: Could not decode attr value, using undecoded value instead: ns=android, name=background, value=0x0202003a W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02050001 W: Could not decode attr value, using undecoded value instead: ns=android, name=textAppearance, value=0x0207000e W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x0205009a W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02050000 W: Could not decode attr value, using undecoded value instead: ns=android, name=textColor, value=0x02050000 W: Could not decode attr value, using undecoded value instead: ns=android, name=shadowColor, value=0x02050001 I: Decoding values */* XMLs...
I: Done.
Can't find framework resources for package of id: 2. You must install proper framework files, see project website for more info.

and then when trying to recompile i get this:

C:\AndroidApktool>apktool b SecMms
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:183)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
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

So i moved the apktool.yml to the folder and then I get this:

C:\AndroidApktool>apktool b SecMms
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\AndroidApktool\SecMms\res\values\styles.xml:6: error: Error: No resource found that matches the given name: attr 'android:textColor'. C:\AndroidApktool\SecMms\res\values\styles.xml:7: error: Error: No resource found that matches the given name: attr 'android:textColorHighlight'.
C:\AndroidApktool\SecMms\res\values\styles.xml:8: error: Error: No resource found that matches the given name: attr 'android:textColorHint'. C:\AndroidApktool\SecMms\res\values\styles.xml:9: error: Error: No resource found that matches the given name: attr 'android:textColorLink'. C:\AndroidApktool\SecMms\res\values\styles.xml:4: error: Error: No resource found that matches the given name: attr 'android:textSize'. C:\AndroidApktool\SecMms\res\values\styles.xml:5: error: Error: No resource found that matches the given name: attr 'android:textStyle'. C:\AndroidApktool\SecMms\res\values\styles.xml:13: error: Error: No resource found that matches the given name: attr 'android:textColor'. C:\AndroidApktool\SecMms\res\values\styles.xml:14: error: Error: No resource found that matches the given name: attr 'android:textColorHint'. C:\AndroidApktool\SecMms\res\values\styles.xml:12: error: Error: No resource found that matches the given name: attr 'android:textStyle'. C:\AndroidApktool\SecMms\res\values\styles.xml:17: error: Error: No resource found that matches the given name: attr 'android:textSize'. C:\AndroidApktool\SecMms\res\values\styles.xml:21: error: Error: No resource found that matches the given name: attr 'android:textColor'. C:\AndroidApktool\SecMms\res\values\styles.xml:20: error: Error: No resource found that matches the given name: attr 'android:textSize'. C:\AndroidApktool\SecMms\res\values\styles.xml:23: error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Theme.Holo.Light.DarkActionBar'.
C:\AndroidApktool\SecMms\res\values\styles.xml:24: error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Theme.DeviceDefault'.
C:\AndroidApktool\SecMms\res\values\styles.xml:25: error: Error: No resource found that matches the given name: attr 'android:windowActionBarOverlay'.
C:\AndroidApktool\SecMms\res\values\styles.xml:29: error: Error: No resource found that matches the given name: attr 'android:textColor'. C:\AndroidApktool\SecMms\res\values\styles.xml:28: error: Error: No resource found that matches the given name: attr 'android:textSize'. C:\AndroidApktool\SecMms\res\values\styles.xml:31: error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Theme.DeviceDefault'.
C:\AndroidApktool\SecMms\res\values\styles.xml:36: error: Error: No resource found that matches the given name: attr 'android:colorBackgroundCacheHint'.
C:\AndroidApktool\SecMms\res\values\styles.xml:35: error: Error: No resource found that matches the given name: attr 'android:windowAnimationStyle'.
C:\AndroidApktool\SecMms\res\values\styles.xml:32: error: Error: No resource found that matches the given name: attr 'android:windowBackground'.
C:\AndroidApktool\SecMms\res\values\styles.xml:34: error: Error: No resource found that matches the given name: attr 'android:windowIsTranslucent'.
C:\AndroidApktool\SecMms\res\values\styles.xml:33: error: Error: No resource found that matches the given name: attr 'android:windowNoTitle'. C:\AndroidApktool\SecMms\res\values\styles.xml:43: error: Error: No resource found that matches the given name: attr 'android:background'. C:\AndroidApktool\SecMms\res\values\styles.xml:47: error: Error: No resource found that matches the given name: attr 'android:clickable'. C:\AndroidApktool\SecMms\res\values\styles.xml:46: error: Error: No resource found that matches the given name: attr 'android:focusable'. C:\AndroidApktool\SecMms\res\values\styles.xml:42: error: Error: No resource found that matches the given name: attr 'android:gravity'. C:\AndroidApktool\SecMms\res\values\styles.xml:44: error: Error: No resource found that matches the given name: attr 'android:paddingLeft'. C:\AndroidApktool\SecMms\res\values\styles.xml:45: error: Error: No resource found that matches the given name: attr 'android:paddingRight'. C:\AndroidApktool\SecMms\res\values\styles.xml:41: error: Error: No resource found that matches the given name: attr 'android:textColor'. C:\AndroidApktool\SecMms\res\values\styles.xml:39: error: Error: No resource found that matches the given name: attr 'android:textSize'. C:\AndroidApktool\SecMms\res\values\styles.xml:40: error: Error: No resource found that matches the given name: attr 'android:textStyle'. C:\AndroidApktool\SecMms\res\values\styles.xml:53: error: Error: No resource found that matches the given name: attr 'android:singleLine'. C:\AndroidApktool\SecMms\res\values\styles.xml:52: error: Error: No resource found that matches the given name: attr 'android:textColor'. C:\AndroidApktool\SecMms\res\values\styles.xml:50: error: Error: No resource found that matches the given name: attr 'android:textSize'. C:\AndroidApktool\SecMms\res\values\styles.xml:51: error: Error: No resource found that matches the given name: attr 'android:textStyle'. C:\AndroidApktool\SecMms\res\values\styles.xml:56: error: Error: No resource found that matches the given name: attr 'android:textColor'. C:\AndroidApktool\SecMms\res\values\styles.xml:59: error: Error: No resource found that matches the given name: attr 'android:textColor'. C:\AndroidApktool\SecMms\res\values\styles.xml:62: error: Error: No resource found that matches the given name: attr 'android:textColor'. Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\LACOUR~1\AppData\Local\Temp\APKTOOL7853501379414814278.tmp, -x, -0, arsc, -S, C:\AndroidApktool\SecMms\res, -M, C:\AndroidApktool\SecMms\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\LACOUR~1\AppData\Local\Temp\APKTOOL7853501379414814278.tmp, -x, -0, arsc, -S, C:\AndroidApktool\SecMms\res, -M, C:\AndroidApktool\SecMms\AndroidManifest.xml] at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357) at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\LACOUR~1\AppData\Local\Temp\APKTOOL7853501379414814278.tmp, -x, -0, arsc, -S, C:\AndroidApktool\SecMms\res, -M, C:\AndroidApktool\SecMms\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355) ... 6 more

Any help would be much appreciated!