[HTC Amaze 4G] foriamroot:
Hi:

Yes, I've Googled, searched the forum, etc.

I'm having a problem with the framework-res.apk from Revolution HD for the Amaze 4G. I have tried countless methods of decompiling / recompiling on my native linux system and a virtual XP system.

Yes, I did install the dependencies (if framework-res.apk and if com.htc.resources.apk). When I decompile I get some errors :

java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) Client VM (build 23.3-b01, mixed mode, sharing)
I: Loading resource table...
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR0
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR1
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR2
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR3
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR4
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR5
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR6
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR7
W: Config flags size > 36. Exceeding bytes: 0x1000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR8
W: Config flags size > 36. Exceeding bytes: 0x2000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR9
W: Config flags size > 36. Exceeding bytes: 0x4000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR10
W: Config flags size > 36. Exceeding bytes: 0x5000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR11
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...

A quick google reveals that it's a just a warning and that I shouldn't have any problems.

Next error is during recompile

W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
apktool\framework\res\values\anims.xml:3:error: Found tag anim where item is expected
apktool\framework\res\values\public.xml:6585: error: Public symbol anim/htc_ime_decelerate_interpolator declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, APKTOOL2735390385429398495.tmp, -x, -S, \apktool\framework\res, -M, \apktool\framework\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, \APKTOOL2735390385429398495.tmp, -x, -S, apktool\framework\res, -M, apktool\framework\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more

A quick google reveals that I need to replace a line in /res/xml/values/anims.xml:

Replace:

<anim name="htc_ime_decelerate_interpolator">@anim/zzz_htc_ime_decelerate_interpolator</anim>

With

<item type="anim" name="htc_ime_decelerate_interpolator">@anim/zzz_htc_ime_decelerate_interpolator</item>

After doing that, framework-res compiles properly, however, on reboot I can't get past the lockscreen (com.android.phone has stopped ).

I tried it signed, unsigned, a dozen different versions of apktool, apk multi tool, FrameworkFlasher, etc.

Any ideas?

INFO:

I am trying to replace apns.xml with a custom one that I put together.