desword / android-apktool

Automatically exported from code.google.com/p/android-apktool
Other
1 stars 0 forks source link

Compiling stock 4.3 SystemUI from SGS3 #556

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Decompile SystemUI.apk from stock 4.3 rom on Samsung Galaxy s3
2.Compile SystemUI and errors 
3.

What is the expected output? What do you see instead?
C:\APK_test>apktool b systemui
I: Using Apktool 2.0.0-Beta8 on systemui
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\APK_test\systemui\res\layout\system_bar_notification_panel_title.xml:14: erro
r: Error: No resource found that matches the given name (at 'style' with value '
@style/SystemBarNotificationText').
C:\APK_test\systemui\res\layout\system_bar_notification_panel_title.xml:19: erro
r: Error: No resource found that matches the given name (at 'style' with value '
@style/SystemBarNotificationText').
C:\APK_test\systemui\res\layout\system_bar_notification_panel_title.xml:21: erro
r: Error: No resource found that matches the given name (at 'style' with value '
@style/SystemBarNotificationText').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:5: error: Error: No
 resource found that matches the given name (at 'style' with value '@style/SystemBarPanelSettingsRow').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:6: error: Error: No
 resource found that matches the given name (at 'style' with value '@style/SystemBarPanelSettingsIcon').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:7: error: Error: No
 resource found that matches the given name (at 'style' with value '@style/SystemBarPanelSettingsContents').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:10: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsPanelSeparator').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:11: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsRow').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:12: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsIcon').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:13: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsContents').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:15: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsPanelSeparator').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:16: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsRow').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:17: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsIcon').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:18: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsContents').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:21: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsPanelSeparator').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:22: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsRow').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:23: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsIcon').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:26: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsPanelSeparator').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:27: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsRow').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:28: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsIcon').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:29: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsContents').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:32: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsPanelSeparator').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:33: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsRow').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:34: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsIcon').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:35: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsContents').
C:\APK_test\systemui\res\layout\system_bar_settings_view.xml:37: error: Error: N
o resource found that matches the given name (at 'style' with value 
'@style/SystemBarPanelSettingsPanelSeparator').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Andy\A
ppData\Local\Temp\brut_util_Jar_7948517032813336236.tmp, p, --forced-package-id,
 127, --min-sdk-version, 18, --target-sdk-version, 18, --version-code, 18, --ver
sion-name, 4.3-I9300XXUGMJ9, -F, C:\Users\Andy\AppData\Local\Temp\APKTOOL5031775
427585793350.tmp, -0, arsc, -I, C:\Users\Andy\apktool\framework\1.apk, -S, C:\AP
K_test\systemui\res, -M, C:\APK_test\systemui\AndroidManifest.xml]
        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:434)
        at brut.androlib.Androlib.buildResources(Androlib.java:362)
        at brut.androlib.Androlib.build(Androlib.java:285)
        at brut.androlib.Androlib.build(Androlib.java:258)
        at brut.apktool.Main.cmdBuild(Main.java:236)
        at brut.apktool.Main.main(Main.java:88)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
 exec command: [C:\Users\Andy\AppData\Local\Temp\brut_util_Jar_79485170328133362
36.tmp, p, --forced-package-id, 127, --min-sdk-version, 18, --target-sdk-version
, 18, --version-code, 18, --version-name, 4.3-I9300XXUGMJ9, -F, 
C:\Users\Andy\AppData\Local\Temp\APKTOOL5031775427585793350.tmp, -0, arsc, -I, 
C:\Users\Andy\apk
tool\framework\1.apk, -S, C:\APK_test\systemui\res, -M, 
C:\APK_test\systemui\AndroidManifest.xml]        at 
brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:482)        at brut.androlib.Androlib.buildResourcesFull(Androlib.java:415)
        ... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Andy\App
Data\Local\Temp\brut_util_Jar_7948517032813336236.tmp, p, --forced-package-id, 1
27, --min-sdk-version, 18, --target-sdk-version, 18, --version-code, 18, --versi
on-name, 4.3-I9300XXUGMJ9, -F, C:\Users\Andy\AppData\Local\Temp\APKTOOL503177542
7585793350.tmp, -0, arsc, -I, C:\Users\Andy\apktool\framework\1.apk, -S, C:\APK_
test\systemui\res, -M, C:\APK_test\systemui\AndroidManifest.xml]
        at brut.util.OS.exec(OS.java:89)
        at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:476)
        ... 6 more

What version of the product are you using? On what operating system?
apktool 2.0.0b8
Windows 7

Please provide any additional information below.
Decompile the SystemUI and compile without any changes you get this error which 
appears to be an error in the decompiling of the styles.xml
Have no problem with framework-res, twframework-res, SecSettings they work 
fine.  Also have a similar problem with SecContacts it decompiles fine but wont 
compile again no changes made.

Original issue reported on code.google.com by ag4...@gmail.com on 26 Nov 2013 at 9:46

Attachments:

GoogleCodeExporter commented 9 years ago
Can I have the frameworks as this a Samsung apk?

Original comment by connor.tumbleson on 6 Dec 2013 at 1:14

GoogleCodeExporter commented 9 years ago
I think the actual problem is in the decompiling as there are some values 
folders missing in systemUI decompile, it is the values=sw720dp folder where 
the missing Styles.xml should be. Link below

http://www.mediafire.com/download/8ksq7n3jm16dy69/Samsung%204.3%20Framework.zip

Original comment by ag4...@gmail.com on 6 Dec 2013 at 5:08

GoogleCodeExporter commented 9 years ago
These resources are not present in either of the two attached frameworks. My 
guess is that in res/values/styles.xml there are a few missing resources.

    <item type="style" name="APKTOOL_DUMMY_001e">false</item>
    <item type="style" name="APKTOOL_DUMMY_001f">false</item>
    <item type="style" name="APKTOOL_DUMMY_0020">false</item>
    <item type="style" name="APKTOOL_DUMMY_0021">false</item>
    <item type="style" name="APKTOOL_DUMMY_0022">false</item>
    <item type="style" name="APKTOOL_DUMMY_0023">false</item>
    <item type="style" name="APKTOOL_DUMMY_0024">false</item>
    <item type="style" name="APKTOOL_DUMMY_0025">false</item>

These are probably the resources. Apktool doesn't cause this though. 

      INVALID TYPE CONFIG FOR RESOURCE 0x7f0200ba
      INVALID TYPE CONFIG FOR RESOURCE 0x7f0200bb
      INVALID TYPE CONFIG FOR RESOURCE 0x7f0200bc
      INVALID TYPE CONFIG FOR RESOURCE 0x7f0200bd
      INVALID TYPE CONFIG FOR RESOURCE 0x7f0200be
      INVALID TYPE CONFIG FOR RESOURCE 0x7f0200bf
      INVALID TYPE CONFIG FOR RESOURCE 0x7f0200c0
      INVALID TYPE CONFIG FOR RESOURCE 0x7f0200c1

As aapt couldn't read them either. This APK has nearly 200 dummy apktool 
changes. Samsung is doing something that isn't stock.

Original comment by connor.tumbleson on 23 Jan 2014 at 3:25

GoogleCodeExporter commented 9 years ago
yo tengo el mismo problema, ojala me puedieran dar una solucion para esto

Original comment by hade...@gmail.com on 9 Feb 2014 at 2:38

GoogleCodeExporter commented 9 years ago
Download this zip, extract the folder from it, place the folder in your res
folder where all the other values folders are, then try to compile the apk

http://www.mediafire.com/download/q1ujqa5t2xa0bzu/SystemUI_error_fix.zip

Original comment by ag4...@gmail.com on 9 Feb 2014 at 9:29

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
gracias por el dato por fin pude compilar el SystemUI.apk

Original comment by hade...@gmail.com on 2 Mar 2014 at 8:21

GoogleCodeExporter commented 9 years ago
i use apktool b test command ,i found values folders are missing in the new 
apk.why?

Original comment by phxshanx...@163.com on 11 Apr 2014 at 5:39

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Download this zip, extract the folder from it, place the folder in your res
folder where all the other values folders are, then try to compile the apk

http://www.mediafire.com/download/q1ujqa5t2xa0bzu/SystemUI_error_fix.zip

Original comment by ag4...@gmail.com on 14 Jun 2014 at 10:32

GoogleCodeExporter commented 9 years ago
#10 ag4...@gmail.com
correct
thanks

Original comment by farisbag...@gmail.com on 30 Jul 2014 at 2:32