[HTC Sensation] tangcla:
I tried uploading my framework-res.apk to change the battery, and it gave me an error.

Decompiling framework-res.apk UOT-12-21-23-56-1
I: Loading resource table...
W: Config flags size > 32. Exceeding bytes: -2FFE000000000000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR0
W: Config flags size > 32. Exceeding bytes: 0000D00200000000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR1
W: Config flags size > 32. Exceeding bytes: 0004000000000000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR2
W: Config flags size > 32. Exceeding bytes: 0005000000000000.
W: Invalid config flags detected. Dropping resources: dimen-v13-ERR3
W: Config flags size > 32. Exceeding bytes: 0000000001000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR4
W: Config flags size > 32. Exceeding bytes: 0000000002000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR5
W: Config flags size > 32. Exceeding bytes: 0000000004000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR6
W: Config flags size > 32. Exceeding bytes: 0000000005000000.
W: Invalid config flags detected. Dropping resources: dimen-hdpi-ERR7
W: Config flags size > 32. Exceeding bytes: 0000000001000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR8
W: Config flags size > 32. Exceeding bytes: 0000000002000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR9
W: Config flags size > 32. Exceeding bytes: 0000000004000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR10
W: Config flags size > 32. Exceeding bytes: 0000000005000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rCN-hdpi-ERR11
W: Config flags size > 32. Exceeding bytes: 0000000001000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR12
W: Config flags size > 32. Exceeding bytes: 0000000002000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR13
W: Config flags size > 32. Exceeding bytes: 0000000004000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR14
W: Config flags size > 32. Exceeding bytes: 0000000005000000.
W: Invalid config flags detected. Dropping resources: dimen-zh-rTW-hdpi-ERR15
W: Config flags size > 32. Exceeding bytes: 5802000000000000.
W: Invalid config flags detected. Dropping resources: layout-v13-ERR16
W: Config flags size > 32. Exceeding bytes: 6801000000000000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR17
W: Config flags size > 32. Exceeding bytes: -BFF000000000000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR18
W: Config flags size > 32. Exceeding bytes: 5802000000000000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR19
W: Config flags size > 32. Exceeding bytes: -2FFE000000000000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR20
W: Config flags size > 32. Exceeding bytes: 0000D00200000000.
W: Invalid config flags detected. Dropping resources: integer-v13-ERR21
W: Config flags size > 32. Exceeding bytes: -1FFF000000000000.
W: Invalid config flags detected. Dropping resources: bool-v13-ERR22
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
Compiling framework-res.apk UOT-12-21-23-56-1
W: Could not find sources
I: Building resources...
/home/mendoza/port5/data/working_dir/UOT-12-21-23-56-1/fw_dec/res/values/anims.xml:3: error: Found tag anim where item is expected
/home/mendoza/port5/data/working_dir/UOT-12-21-23-56-1/fw_dec/res/values/public.xml:6181: 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, /tmp/APKTOOL7112606587187571810.tmp, -x, -S, /home/mendoza/port5/data/working_dir/UOT-12-21-23-56-1/fw_dec/res, -M, /home/mendoza/port5/data/working_dir/UOT-12-21-23-56-1/fw_dec/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:174)
at brut.apktool.Main.main(Main.java:59)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL7112606587187571810.tmp, -x, -S, /home/mendoza/port5/data/working_dir/UOT-12-21-23-56-1/fw_dec/res, -M, /home/mendoza/port5/data/working_dir/UOT-12-21-23-56-1/fw_dec/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more