[Android Software Development] Ticklefish:
I've just had an interesting APK come my way. This is a Samsung framework-res.apk that decompiles with no complaints but sticks a lot of APKTOOL_DUMMY values in the attrs.xml file. This is with twframework-res.apk installed.

Here's the decompile text:

Installed Framework File(s):

framework-res.apk [1.apk]
twframework-res.apk [2.apk]

----------------

[color="red"]I: Using Apktool 2.3.3 on framework-res.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...[/color]

And here's the recompile error, using aapt2 support (not using aapt2 just stops the recompile process completely):

I: Using Apktool 2.3.3
W: Could not find sources
I: Building resources...
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1347: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1803: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1860: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1977: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1978: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1979: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1980: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1981: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1982: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1983: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1984: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1985: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1986: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1987: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1988: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1989: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1990: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1991: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1992: error: invalid value for type 'attr'. Expected a reference.
W: C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res\values\attrs.xml:1993: error: invalid value for type 'attr'. Expected a reference.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\LCHESN~1\AppData\Local\Temp\brut_util_Jar_3808934295997520910.tmp, compile, --dir, C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\res, --legacy, -o, C:\TickleMyAndroid\_WorkArea1\_working\framework-res.apk\build\resources.zip]

Again there's no notice that something couldn't be decoded but all those lines in attr.xml have APKTOOL_DUMMY values in them.

I've attached the APK files to the post.

I'm no Java expert but, from what I understand, a major minor error occurs when you're trying to use code that requires a higher version of Java than you have installed.

Make sure you've got Java SE 7 as a minimum on your PC.