Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build application back, if "using undecoded value instead" occured during decoding #42

Closed
GoogleCodeExporter opened this issue Mar 13, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

There is a bunch of apps in htc hero cdma sprint (2.1-update) rom, which
has next problem:

Repro:
$apktool d -s HTCAlbum.apk HTCAlbum.decoded
I: Decoding resource table...
I: Decoding resources...
W: Could not decode attr value, using undecoded value instead: ns=android,
name=src, value=0x0202072f
W: Could not decode attr value, using undecoded value instead: ns=android,
name=src, value=0x0202072e
W: Could not decode attr value, using undecoded value instead: ns=android,
name=background, value=0x0202072a
W: Could not decode attr value, using undecoded value instead: ns=android,
name=background, value=0x0202072c
I: Copying assets and libs...

$apktool b HTCAlbum.decoded
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
/home/astar/android/kitchen/build/HTCAlbum.decoded/res/layout-mdpi/zoomer.xml:5:
error: Error: No resource type specified (at 'src' with value '@33687343').
/home/astar/android/kitchen/build/HTCAlbum.decoded/res/layout-mdpi/zoomer.xml:6:
error: Error: No resource type specified (at 'src' with value '@33687342').
/home/astar/android/kitchen/build/HTCAlbum.decoded/res/layout-mdpi/zoomer.xml:7:
error: Error: No resource type specified (at 'background' with value
'@33687338').
/home/astar/android/kitchen/build/HTCAlbum.decoded/res/layout-mdpi/zoomer.xml:10
:
error: Error: No resource type specified (at 'background' with value
'@33687340').
Exception in thread "main" brut.androlib.AndrolibException:
brut.common.BrutException: could not exec command: [aapt, p, -F,
/tmp/APKTOOL3792701792102865439.tmp, -I,
/tmp/brut_util_Jar_3293322873639936806.tmp, -I,
/tmp/brut_util_Jar_5723326323782498275.tmp, -S,
/home/astar/android/kitchen/build/HTCAlbum.decoded/res, -M,
/home/astar/android/kitchen/build/HTCAlbum.decoded/AndroidManifest.xml,
/home/astar/android/kitchen/build/HTCAlbum.decoded/9patch]
        at brut.androlib.res.AndrolibResources.aaptPackage(Unknown Source)
        at brut.androlib.Androlib.buildResourcesFull(Unknown Source)
        at brut.androlib.Androlib.buildResources(Unknown Source)
        at brut.androlib.Androlib.build(Unknown Source)
        at brut.androlib.Androlib.build(Unknown Source)
        at brut.apktool.Main.cmdBuild(Unknown Source)
        at brut.apktool.Main.main(Unknown Source)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F,
/tmp/APKTOOL3792701792102865439.tmp, -I,
/tmp/brut_util_Jar_3293322873639936806.tmp, -I,
/tmp/brut_util_Jar_5723326323782498275.tmp, -S,
/home/astar/android/kitchen/build/HTCAlbum.decoded/res, -M,
/home/astar/android/kitchen/build/HTCAlbum.decoded/AndroidManifest.xml,
/home/astar/android/kitchen/build/HTCAlbum.decoded/9patch]
        at brut.util.OS.exec(Unknown Source)
        ... 7 more

As we can see when we build resources back it fail exactly with resources
it warned during decoding

Using apktool-1.2 and utils 2.2_r01-1 on
$ uname -a
Linux astar-desktop 2.6.32-22-generic #33-Ubuntu SMP Wed Apr 28 13:28:05
UTC 2010 x86_64 GNU/Linux

Apps which has this problem: Calendar.apk, HTCAlbum.apk, HtcContacts.apk,
HtcDialer.apk, HtcFacebook.apk, HtcMusic.apk, HtcSoundRecorder.apk,
UploadProvider.apk, WorldClock.apk

Original issue reported on code.google.com by stari...@gmail.com on 4 Jun 2010 at 11:44

@GoogleCodeExporter
Copy link
Author

You have to register/install htc resources framework: FrameworkFiles - apktool 
should 
output a warning about that. I know, why it didn't do that, will fix this.

Original comment by Brut.alll on 4 Jun 2010 at 12:15

@GoogleCodeExporter
Copy link
Author

Thank you.
It solves this issue for all apps from the list

Original comment by stari...@gmail.com on 4 Jun 2010 at 1:00

@GoogleCodeExporter
Copy link
Author

Original comment by Brut.alll on 4 Jun 2010 at 1:16

  • Changed state: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant