Hello! I'm trying to recompile the DocumentsUI(from the ICE ROM Sense 8.0 Android 7.0, HTC One M9) .apk after I've changed it's icons with the ones from the Pixel's .apk, but it it fails. Can someone please help me?
Error
Code:
:\Users\Not Your Business\Apktool>java -jar apktool.jar b DocumentsUI
I: Using Apktool 2.2.2
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
W: C:\Users\Not Your Business\Apktool\DocumentsUI\res\layout\dialog_delete_confirmation.xml:2: error: Error: Resource is not public. (at 'textColor' with value '@android:color/background_floating_material_dark').
W:
W: C:\Users\Not Your Business\Apktool\DocumentsUI\res\drawable\progress_indeterminate_horizontal_material_trimmed.xml:4: error: Error: Resource is not public. (at 'animation' with value '@android:anim/progress_indeterminate_horizontal_rect1').
W:
Exception in thread "main" W: C:\Users\Not Your Business\Apktool\DocumentsUI\res\drawable\progress_indeterminate_horizontal_material_trimmed.xml:5: error: Error: Resource is not public. (at 'animation' with value '@android:anim/popup_exit_material').
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Not Your Business~1\AppData\Local\Temp\brut_util_Jar_4876271847518240057.tmp, p, --forced-package-id, 127, --min-sdk-version, 24, --target-sdk-version, 24, --version-code, 24, --version-name, 7.0, --no-version-vectors, -F, C:\Users\Not Your Business~1\AppData\Local\Temp\APKTOOL1667677468902537463.tmp, -0, arsc, -0, arsc, -I, C:\Users\Not Your Business\AppData\Local\apktool\framework\1.apk, -S, C:\Users\Not Your Business\Apktool\DocumentsUI\res, -M, C:\Users\Not Your Business\Apktool\DocumentsUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:477)
at brut.androlib.Androlib.buildResources(Androlib.java:411)
at brut.androlib.Androlib.build(Androlib.java:310)
at brut.androlib.Androlib.build(Androlib.java:263)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Not Your Business~1\AppData\Local\Temp\brut_util_Jar_4876271847518240057.tmp, p, --forced-package-id, 127, --min-sdk-version, 24, --target-sdk-version, 24, --version-code, 24, --version-name, 7.0, --no-version-vectors, -F, C:\Users\Not Your Business~1\AppData\Local\Temp\APKTOOL1667677468902537463.tmp, -0, arsc, -0, arsc, -I, C:\Users\Not Your Business\AppData\Local\apktool\framework\1.apk, -S, C:\Users\Not Your Business\Apktool\DocumentsUI\res, -M, C:\Users\Not Your Business\Apktool\DocumentsUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:440)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:463)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Not Your Business~1\AppData\Local\Temp\brut_util_Jar_4876271847518240057.tmp, p, --forced-package-id, 127, --min-sdk-version, 24, --target-sdk-version, 24, --version-code, 24, --version-name, 7.0, --no-version-vectors, -F, C:\Users\Not Your Business~1\AppData\Local\Temp\APKTOOL1667677468902537463.tmp, -0, arsc, -0, arsc, -I, C:\Users\ZNot Your Business\AppData\Local\apktool\framework\1.apk, -S, C:\Users\Not Your Business\Apktool\DocumentsUI\res, -M, C:\Users\Not Your Business \Apktool\DocumentsUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:434)
... 6 more
W:
W: C:\Users\Not Your Business\Apktool\DocumentsUI\res\color\item_root_icon.xml:4: error: Error: Resource is not public. (at 'color' with value '@android:color/primary_text_disable_only_material_light').
W:
W: C:\Users\Not Your Business\Apktool\DocumentsUI\res\color\item_root_primary_text.xml:6: error: Error: Resource is not public. (at 'color' with value '@android:color/background_floating_material_dark').
W:
W: C:\Users\Not Your Business\Apktool\DocumentsUI\res\color\item_root_primary_text.xml:6: error: Error: Resource is not public. (at 'alpha' with value '@android:dimen/hint_pressed_alpha_material_dark').
W:
W: C:\Users\Not Your Business\Apktool\DocumentsUI\res\color\item_root_primary_text.xml:7: error: Error: Resource is not public. (at 'color' with value '@android:color/background_floating_material_dark').
W:
W: C:\Users\Not Your Business\Apktool\DocumentsUI\res\color\root_activated.xml:5: error: Error: Resource is not public. (at 'color' with value '@android:color/primary_text_disable_only_material_light').
Related
Code:
C:\Users\David\Desktop\Android Tools\apktool1.5.2>apktool if framework-res.apk
I: Framework installed to: C:\Users\David\apktool\framework\1.apk
C:\Users\David\Desktop\Android Tools\apktool1.5.2>apktool d Home.apk
I: Baksmaling...
I: Loading resource table...
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\David\apktool\framework\1.apk
I: Loaded.
I: Regular manifest package...
I: Decoding file-resources...
I: Loading resource table from file: C:\Users\David\apktool\framework\2.apk
I: Loaded.
I: Decoding values */* XMLs...
I: Done.
I: Copying assets and libs...
C:\Users\David\Desktop\Android Tools\apktool1.5.2>apktool b Home Home.apk
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values\styles.xml:21:
error: Error retrieving parent for item: No resource found that matches the giv
en name 'Layout'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values\styles.xml:29:
error: Error retrieving parent for item: No resource found that matches the giv
en name 'Layout.CuiMainMenuItem'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values-land\styles.xm
l:3: error: Error retrieving parent for item: No resource found that matches the
given name 'Layout.CuiMainMenuItem'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values\styles.xml:45:
error: Error retrieving parent for item: No resource found that matches the giv
en name 'Layout.CuiMainMenuItem'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values\styles.xml:53:
error: Error retrieving parent for item: No resource found that matches the giv
en name 'Layout'.
C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res\values-land\styles.xm
l:24: error: Error retrieving parent for item: No resource found that matches th
e given name 'Layout'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 16, --target-sdk-version, 16, -F, C:\Users\David\AppData\Local\Temp
\APKTOOL8829101515579145139.tmp, -0, arsc, -I, C:\Users\David\apktool\framework\
1.apk, -I, C:\Users\David\apktool\framework\2.apk, -S, C:\Users\David\Desktop\An
droid Tools\apktool1.5.2\Home\res, -M, C:\Users\David\Desktop\Android Tools\apkt
ool1.5.2\Home\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 16, --target-sdk-version, 16, -F, C:
\Users\David\AppData\Local\Temp\APKTOOL8829101515579145139.tmp, -0, arsc, -I, C:
\Users\David\apktool\framework\1.apk, -I, C:\Users\David\apktool\framework\2.apk
, -S, C:\Users\David\Desktop\Android Tools\apktool1.5.2\Home\res, -M, C:\Users\D
avid\Desktop\Android Tools\apktool1.5.2\Home\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 16, --target-sdk-version, 16, -F, C:\Users\David\AppData\Local\Temp\A
PKTOOL8829101515579145139.tmp, -0, arsc, -I, C:\Users\David\apktool\framework\1.
apk, -I, C:\Users\David\apktool\framework\2.apk, -S, C:\Users\David\Desktop\Andr
oid Tools\apktool1.5.2\Home\res, -M, C:\Users\David\Desktop\Android Tools\apktoo
l1.5.2\Home\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Here is the log. as you can see the framework is installed but I still get some problem in the values
Hi there,
I recently decided to start doing some theming on my Lollipop ROM, cataclysm for nexus 5. Now, I tried to follow this guide http://forum.xda-developers.com/showthread.php?t=1814441 to recompile and decompile and I used this guide http://forum.xda-developers.com/android/themes/guide-t2978121 to try and theme some colors in systemui.apk. I started out with just the primary color of the notification drawer, just to test it.
But, when I try to recompile the apk, I get some errors. I have no idea what to do with them.
C:\Users\Eldin\Documents\apktool>apktool b SystemUI test.apk
I: Using Apktool 2.0.0-RC3 on SystemUI
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Eldin\Documents\apktool\SystemUI\res\values\styles.xml:35: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/TextAppearance.StatusBar'.
C:\Users\Eldin\Documents\apktool\SystemUI\res\values\styles.xml:36: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/TextAppearance.StatusBar'.
C:\Users\Eldin\Documents\apktool\SystemUI\res\values\styles.xml:41: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/TextAppearance.StatusBar'.
C:\Users\Eldin\Documents\apktool\SystemUI\res\values\styles.xml:51: error: Error
retrieving parent for item: No resource found that matches the given name '@and
roid:style/TextAppearance.StatusBar'.
C:\Users\Eldin\Documents\apktool\SystemUI\res\values\styles.xml:151: error: Erro
r retrieving parent for item: No resource found that matches the given name '@an
droid:style/TextAppearance.StatusBar.Ticker'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [C:\Users\Eldin\
AppData\Local\Temp\brut_util_Jar_2232414949666097057.tmp, p, --forced-package-id
, 127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --ve
rsion-name, 5.0.2-1649326, -F, C:\Users\Eldin\AppData\Local\Temp\APKTOOL53377920
12544222906.tmp, -0, arsc, -I, C:\Users\Eldin\apktool\framework\1.apk, -S, C:\Us
ers\Eldin\Documents\apktool\SystemUI\res, -M, C:\Users\Eldin\Documents\apktool\S
ystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:437)
at brut.androlib.Androlib.buildResources(Androlib.java:374)
at brut.androlib.Androlib.build(Androlib.java:277)
at brut.androlib.Androlib.build(Androlib.java:250)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [C:\Users\Eldin\AppData\Local\Temp\brut_util_Jar_2232414949666097
057.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-versio
n, 21, --version-code, 21, --version-name, 5.0.2-1649326, -F, C:\Users\Eldin\App
Data\Local\Temp\APKTOOL5337792012544222906.tmp, -0, arsc, -I, C:\Users\Eldin\apk
tool\framework\1.apk, -S, C:\Users\Eldin\Documents\apktool\SystemUI\res, -M, C:\
Users\Eldin\Documents\apktool\SystemUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:488)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:423)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Eldin\Ap
pData\Local\Temp\brut_util_Jar_2232414949666097057.tmp, p, --forced-package-id,
127, --min-sdk-version, 21, --target-sdk-version, 21, --version-code, 21, --vers
ion-name, 5.0.2-1649326, -F, C:\Users\Eldin\AppData\Local\Temp\APKTOOL5337792012
544222906.tmp, -0, arsc, -I, C:\Users\Eldin\apktool\framework\1.apk, -S, C:\User
s\Eldin\Documents\apktool\SystemUI\res, -M, C:\Users\Eldin\Documents\apktool\Sys
temUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:482)
... 6 more
C:\Users\Eldin\Documents\apktool>
All I changed were 2 colors in res/values/colors.xml.
Can point me in the right direction?
When i port the theme and try to compile the theme i get these
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\xml\redirections.xml:4: error: Error: Resource package cannot be an empty string (at 'resource' with value '@xml/android').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\xml\redirections.xml:5: error: Error: Resource package cannot be an empty string (at 'resource' with value '@xml/com_android_settings').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\xml\redirections.xml:6: error: Error: Resource package cannot be an empty string (at 'resource' with value '@xml/com_android_systemui').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\xml\redirections.xml:7: error: Error: Resource package cannot be an empty string (at 'resource' with value '@xml/com_android_vending').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_ic_notify_button_bg.xml:18: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_list_selector_pressed_holo_dark').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_ic_notify_button_bg.xml:19: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_notification_expand_background').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_notification_row_legacy_bg.xml:19: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_notification_header_background').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_notification_row_legacy_bg.xml:20: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_notification_header_bg').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_qs_tile_background.xml:18: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_qs_background').
C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res\drawable\com_android_systemui_qs_tile_background.xml:19: error: Error: Resource package cannot be an empty string (at 'drawable' with value '@drawable/com_android_systemui_qs_first_background').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, -F, C:\Users\Yahia\AppData\Local\Temp\APKTOOL4311929671331448420.tmp, -0, arsc, -I, C:\Users\Yahia\apktool\framework\1.apk, -S, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res, -M, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:358)
at brut.androlib.Androlib.buildResources(Androlib.java:283)
at brut.androlib.Androlib.build(Androlib.java:206)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:228)
at brut.apktool.Main.main(Main.java:79)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, -F, C:\Users\Yahia\AppData\Local\Temp\APKTOOL4311929671331448420.tmp, -0, arsc, -I, C:\Users\Yahia\apktool\framework\1.apk, -S, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res, -M, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:357)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:336)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 15, -F, C:\Users\Yahia\AppData\Local\Temp\APKTOOL4311929671331448420.tmp, -0, arsc, -I, C:\Users\Yahia\apktool\framework\1.apk, -S, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\res, -M, C:\Users\Yahia\Desktop\CMX_beta_T1000\XTheme\XThemeBase.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:355)
... 6 more
I was porting Pixel navigation bar and I have an issue and that is when I am compiling the systemUI.apk and it is throwing me an error I have followed all the steps from this tutorial
Error:
Code:
C:\Users\Xaif\Desktop\LineagePort>java -jar apktool.jar b SystemUI -c
I: Using Apktool 2.2.2
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
W: C:\Users\Xaif\Desktop\LineagePort\SystemUI\res\values\styles.xml:2139: error:
Error retrieving parent for item: No resource found that matches the given name
'@android:style/TextAppearance.StatusBar'.
W:
W: C:\Users\Xaif\Desktop\LineagePort\SystemUI\res\values\styles.xml:2140: error:
Error retrieving parent for item: No resource found that matches the given name
'@android:style/TextAppearance.StatusBar'.
W:
W: C:\Users\Xaif\Desktop\LineagePort\SystemUI\res\values\styles.xml:2145: error:
Error retrieving parent for item: No resource found that matches the given name
'@android:style/TextAppearance.StatusBar'.
W:
W: C:\Users\Xaif\Desktop\LineagePort\SystemUI\res\values\styles.xml:2155: error:
Error retrieving parent for item: No resource found that matches the given name
'@android:style/TextAppearance.StatusBar'.
W:
W: C:\Users\Xaif\Desktop\LineagePort\SystemUI\res\values\styles.xml:2258: error:
Error retrieving parent for item: No resource found that matches the given name
'@android:style/Theme.DeviceDefault.Settings.Dark'.
W:
W: C:\Users\Xaif\Desktop\LineagePort\SystemUI\res\values\styles.xml:2365: error:
Error retrieving parent for item: No resource found that matches the given name
'@android:style/Theme.DeviceDefault.Settings.Dark'.
Exception in thread "main" W:
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.Br
utException: could not exec (exit code = 1): [C:\Users\Xaif\AppData\Local\Temp\b
rut_util_Jar_4007376053499372905.tmp, p, --forced-package-id, 127, --min-sdk-ver
sion, 25, --target-sdk-version, 25, --version-code, 25, --version-name, 7.1.1, -
-no-version-vectors, -F, C:\Users\Xaif\AppData\Local\Temp\APKTOOL889014957634349
2479.tmp, -0, arsc, -0, arsc, -I, C:\Users\Xaif\AppData\Local\apktool\framework\
1.apk, -S, C:\Users\Xaif\Desktop\LineagePort\SystemUI\res, -M, C:\Users\Xaif\Des
ktop\LineagePort\SystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:477)
at brut.androlib.Androlib.buildResources(Androlib.java:411)
at brut.androlib.Androlib.build(Androlib.java:310)
at brut.androlib.Androlib.build(Androlib.java:263)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec (exit code = 1): [C:\Users\Xaif\AppData\Local\Temp\brut_util_Jar_400737605
3499372905.tmp, p, --forced-package-id, 127, --min-sdk-version, 25, --target-sdk
-version, 25, --version-code, 25, --version-name, 7.1.1, --no-version-vectors, -
F, C:\Users\Xaif\AppData\Local\Temp\APKTOOL8890149576343492479.tmp, -0, arsc, -0
, arsc, -I, C:\Users\Xaif\AppData\Local\apktool\framework\1.apk, -S, C:\Users\Xa
if\Desktop\LineagePort\SystemUI\res, -M, C:\Users\Xaif\Desktop\LineagePort\Syste
mUI\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:440)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:463)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\
Xaif\AppData\Local\Temp\brut_util_Jar_4007376053499372905.tmp, p, --forced-packa
ge-id, 127, --min-sdk-version, 25, --target-sdk-version, 25, --version-code, 25,
--version-name, 7.1.1, --no-version-vectors, -F, C:\Users\Xaif\AppData\Local\Te
mp\APKTOOL8890149576343492479.tmp, -0, arsc, -0, arsc, -I, C:\Users\Xaif\AppData
\Local\apktool\framework\1.apk, -S, C:\Users\Xaif\Desktop\LineagePort\SystemUI\r
es, -M, C:\Users\Xaif\Desktop\LineagePort\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:434)
... 6 more
Hi!
I am trying to extract the apk file with apktool and change the application language
but after I decompile the apk file, it fails to recompile
it gives the following error
If you could help with this situation, I would greatly appreciate it
Log For : UE.apk
Log Type : Recompiling
Log Recorded At : Pzt -28.05.2018- 19:53:42,51
Log Recorded By : Advanced ApkTool v4.2.0 By BDFreak
------------------------------------------------------
W: A/ ( 9496): First type is not attr!
W:
W: This application has requested the Runtime to terminate it in an unusual way.
W: Please contact the application's support team for more information.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 3): [C:\Users\KAPTAN\AppData\Local\Temp\brut_util_Jar_2549820411354606683.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 27, --version-code, 918020, --version-name, 0.20.7.918-arm64-v8a, -F, C:\Users\KAPTAN\AppData\Local\Temp\APKTOOL8002425952792824732.tmp, -0, arsc, -0, arsc, -I, C:\Users\KAPTAN\Desktop\apktool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\KAPTAN\Desktop\apktool\3-Out\UE.apk\res, -M, C:\Users\KAPTAN\Desktop\apktool\3-Out\UE.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:478)
at brut.androlib.Androlib.buildResources(Androlib.java:412)
at brut.androlib.Androlib.build(Androlib.java:311)
at brut.androlib.Androlib.build(Androlib.java:264)
at brut.apktool.Main.cmdBuild(Main.java:227)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 3): [C:\Users\KAPTAN\AppData\Local\Temp\brut_util_Jar_2549820411354606683.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 27, --version-code, 918020, --version-name, 0.20.7.918-arm64-v8a, -F, C:\Users\KAPTAN\AppData\Local\Temp\APKTOOL8002425952792824732.tmp, -0, arsc, -0, arsc, -I, C:\Users\KAPTAN\Desktop\apktool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\KAPTAN\Desktop\apktool\3-Out\UE.apk\res, -M, C:\Users\KAPTAN\Desktop\apktool\3-Out\UE.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:439)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:464)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 3): [C:\Users\KAPTAN\AppData\Local\Temp\brut_util_Jar_2549820411354606683.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 27, --version-code, 918020, --version-name, 0.20.7.918-arm64-v8a, -F, C:\Users\KAPTAN\AppData\Local\Temp\APKTOOL8002425952792824732.tmp, -0, arsc, -0, arsc, -I, C:\Users\KAPTAN\Desktop\apktool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\KAPTAN\Desktop\apktool\3-Out\UE.apk\res, -M, C:\Users\KAPTAN\Desktop\apktool\3-Out\UE.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:433)
... 6 more
Click to expand...
Click to collapse
------------------------------------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------------------------------------
W: Cant find 9patch chunk in file: "drawable-hdpi-v4/scrollbar_dark.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-mdpi-v4/scrollbar_dark.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-xxhdpi-v4/scrollbar_dark.9.png". Renaming it to *.png.
W: Cant find 9patch chunk in file: "drawable-xhdpi-v4/scrollbar_dark.9.png". Renaming it to *.png.
Exception in thread "main" java.lang.NullPointerException
at brut.androlib.res.data.value.ResStyleValue.serializeToResValuesXml(ResStyleValue.java:58)
at brut.androlib.res.AndrolibResources.generateValuesFile(AndrolibResources.java:516)
at brut.androlib.res.AndrolibResources.decode(AndrolibResources.java:267)
at brut.androlib.Androlib.decodeResourcesFull(Androlib.java:132)
at brut.androlib.ApkDecoder.decode(ApkDecoder.java:108)
at brut.apktool.Main.cmdDecode(Main.java:166)
at brut.apktool.Main.main(Main.java:81)
Click to expand...
Click to collapse
is there no information on this issue?