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

public.xml id changes when recompile apk #569

Closed
iBotPeaches opened this Issue Mar 18, 2015 · 6 comments

Comments

Projects
None yet
2 participants
@iBotPeaches
Owner

iBotPeaches commented Mar 18, 2015

Original issue 458 created by email.pl74 on 2013-05-12T14:20:45.000Z:

What steps will reproduce the problem?

  1. apktool if framework-res.apk (create 1.apk)
  2. apktool if oppo-framework-res.apk (create 12.apk)
  3. apktool d oppo-framework-res.apk
  4. Don't change anything
  5. apktool b oppo-framework-res oppo-new.apk
  6. apktool d oppo-new.apk

What is the expected output? What do you see instead?

When i compare public.xml from original apk and recompiled apk the id are changed. Ex. in original public.xml i find the line:
<public type="attr" name="Dialog_Title_textAppearance" id="0x0c010000" />
in the recompiled public.xml same line became:
<public type="attr" name="Dialog_Title_textAppearance" id="0x02010000" />

So if i try to pull new apk to the phone i obtain rebooting system.

What version of the product are you using? On what operating system?

APKTool 1.5.2
aapt from apktool project site (i tried also aapt from latest android sdk)
Windows 7 Home Premium 64bit

Please provide any additional information below.

Here can find apks and two public.xml: http://d-h.st/A1K

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #1 originally posted by connor.tumbleson on 2013-05-12T15:17:54.000Z:

Original:

pkg id: = 0x0c = 12

Rebuilt:

pkg id = 0x0c = 12

fixed in wip-2.0, w/ this commit: c6861e1

Owner

iBotPeaches commented Mar 18, 2015

Comment #1 originally posted by connor.tumbleson on 2013-05-12T15:17:54.000Z:

Original:

pkg id: = 0x0c = 12

Rebuilt:

pkg id = 0x0c = 12

fixed in wip-2.0, w/ this commit: c6861e1

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #2 originally posted by dima8389 on 2013-06-16T10:56:54.000Z:

Seems to be not fixed.
Try attached file.
It's id - 4, but after de-compile - compile - 2.

Owner

iBotPeaches commented Mar 18, 2015

Comment #2 originally posted by dima8389 on 2013-06-16T10:56:54.000Z:

Seems to be not fixed.
Try attached file.
It's id - 4, but after de-compile - compile - 2.

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #3 originally posted by email.pl74 on 2013-06-17T19:13:25.000Z:

Today i've tried to compile apktool sources. I decompiled the framework and recompiled without changes and finally decompiled again new apk...but don't work,i have many errors (like: Could not decode attr value...) on decompiling and resources.arsc is quite bigger than original.

Owner

iBotPeaches commented Mar 18, 2015

Comment #3 originally posted by email.pl74 on 2013-06-17T19:13:25.000Z:

Today i've tried to compile apktool sources. I decompiled the framework and recompiled without changes and finally decompiled again new apk...but don't work,i have many errors (like: Could not decode attr value...) on decompiling and resources.arsc is quite bigger than original.

@iBotPeaches

This comment has been minimized.

Show comment
Hide comment
@iBotPeaches

iBotPeaches Mar 18, 2015

Owner

Comment #4 originally posted by email.pl74 on 2013-06-18T11:08:31.000Z:

After more tentatives...the new commit don't work,when recompile APK the id is not the same of the original (0x0c ---->> 0x02).

Owner

iBotPeaches commented Mar 18, 2015

Comment #4 originally posted by email.pl74 on 2013-06-18T11:08:31.000Z:

After more tentatives...the new commit don't work,when recompile APK the id is not the same of the original (0x0c ---->> 0x02).

@Fancyfree

This comment has been minimized.

Show comment
Hide comment
@Fancyfree

Fancyfree Sep 21, 2015

Did you found any solution on this issue??? I try everything but no luck. reboot after reboot...
I have another problem with the KeKeThemeSpace_W20140729_V2.5.1.apk Cannot be decompiled - many errors in public.xml...

Fancyfree commented Sep 21, 2015

Did you found any solution on this issue??? I try everything but no luck. reboot after reboot...
I have another problem with the KeKeThemeSpace_W20140729_V2.5.1.apk Cannot be decompiled - many errors in public.xml...

@Fancyfree

This comment has been minimized.

Show comment
Hide comment
@Fancyfree

Fancyfree Oct 12, 2015

I found solution by using this software: xdaAutoAPKTool_V5.0.0b
The oppo-framework-res.apk file is finally compiled without this error in the public.xml file
The APP is WORKING !!! Tested!
The other problem with the KeKeThemeSpace_W20140729_V2.5.1.apk is gone too!!!
Only you have to modify the default_splash_bg.png image in the drawable-xxhdpi folder and the app will be compiled and working!

Fancyfree commented Oct 12, 2015

I found solution by using this software: xdaAutoAPKTool_V5.0.0b
The oppo-framework-res.apk file is finally compiled without this error in the public.xml file
The APP is WORKING !!! Tested!
The other problem with the KeKeThemeSpace_W20140729_V2.5.1.apk is gone too!!!
Only you have to modify the default_splash_bg.png image in the drawable-xxhdpi folder and the app will be compiled and working!

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