[Tool]Advanced ApkTool v4.2.0 Problem Recompile ! - Android Q&A, Help & Troubleshooting

Hello im trying to use Advanced ApkTool v4.2.0 !
when i want to recompile i got this :
HTML:
Log For : Komachi1.apk
Log Type : Recompiling
Log Recorded At : 07 2019-12- 21:29:16,43
Log Recorded By : Advanced ApkTool v4.2.0 By BDFreak
------------------------------------------------------
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_clear_0.9.png malformed.
W: Frame pixels must be either solid or transparent (not intermediate alphas).
W: Found at pixel #178 along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_clear_0.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_clear_1.9.png malformed.
W: Frame pixels must be either solid or transparent (not intermediate alphas).
W: Found at pixel #129 along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_clear_1.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_clear_2.9.png malformed.
W: Frame pixels must be either solid or transparent (not intermediate alphas).
W: Found at pixel #166 along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_clear_2.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_def_0.9.png malformed.
W: Frame pixels must be either solid or transparent (not intermediate alphas).
W: Found at pixel #180 along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_def_0.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_clear_3.9.png malformed.
W: Frame pixels must be either solid or transparent (not intermediate alphas).
W: Found at pixel #153 along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_clear_3.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_def_1.9.png malformed.
W: Frame pixels must be either solid or transparent (not intermediate alphas).
W: Found at pixel #68 along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_def_1.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_equal_1.9.png malformed.
W: Frame pixels must be either solid or transparent (not intermediate alphas).
W: Found at pixel #160 along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_equal_1.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_equal_2.9.png malformed.
W: No marked region found along edge.
W: Found along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_equal_2.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_equal_3.9.png malformed.
W: Frame pixels must be either solid or transparent (not intermediate alphas).
W: Found at pixel #172 along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_equal_3.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_operator_0.9.png malformed.
W: No marked region found along edge.
W: Found along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_operator_0.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_equal_0.9.png malformed.
W: No marked region found along edge.
W: Found along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_equal_0.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_operator_3.9.png malformed.
W: Frame pixels must be either solid or transparent (not intermediate alphas).
W: Found at pixel #197 along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_operator_3.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_operator_2.9.png malformed.
W: No marked region found along edge.
W: Found along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_operator_2.9.png
W: ERROR: 9-patch image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_operator_1.9.png malformed.
W: No marked region found along edge.
W: Found along top edge.
W: ERROR: Failure processing PNG image C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res\drawable\komachi_img_operator_1.9.png
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Ziko\AppData\Local\Temp\brut_util_Jar_6977338750880722860.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 18, --version-code, 4, --version-name, 1.0.2, --no-version-vectors, -F, C:\Users\Ziko\AppData\Local\Temp\APKTOOL3074840337446226583.tmp, -0, arsc, -0, arsc, -I, C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\1-BDFreak\Frameworks\1.apk, -S, C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res, -M, C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\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\Ziko\AppData\Local\Temp\brut_util_Jar_6977338750880722860.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 18, --version-code, 4, --version-name, 1.0.2, --no-version-vectors, -F, C:\Users\Ziko\AppData\Local\Temp\APKTOOL3074840337446226583.tmp, -0, arsc, -0, arsc, -I, C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\1-BDFreak\Frameworks\1.apk, -S, C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res, -M, C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\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\Ziko\AppData\Local\Temp\brut_util_Jar_6977338750880722860.tmp, p, --forced-package-id, 127, --min-sdk-version, 9, --target-sdk-version, 18, --version-code, 4, --version-name, 1.0.2, --no-version-vectors, -F, C:\Users\Ziko\AppData\Local\Temp\APKTOOL3074840337446226583.tmp, -0, arsc, -0, arsc, -I, C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\1-BDFreak\Frameworks\1.apk, -S, C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\res, -M, C:\Users\Ziko\Desktop\Advanced ApkTool v4.2.0\3-Out\Komachi1.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:434)
... 6 more
------------------------------------------------------
how can i find the 9-Patch and How to fix it ? Thank you

Related

[Q] framework-res.apk decode/build problem

Hello! I have Huawei U8500 with custom Android 2.2. I wanted to decode framework-res.apk with apktool, change anything and build it again. But I have troubles with it. First of all decoding:
Code:
C:\framework>apktool d framework-res.apk
I: Loading resource table...
W: Config flags size > 32. Exceeding bytes: 5500000048030000.
W: Invalid config flags detected. Dropping resources: array-ERR0
W: Config flags size > 32. Exceeding bytes: 7F00000058010000.
W: Invalid config flags detected. Dropping resources: array-ERR1
W: Config flags size > 32. Exceeding bytes: -4CFFFFFF97FF0000.
W: Invalid config flags detected. Dropping resources: array-ERR2
W: Config flags size > 32. Exceeding bytes: -18FCFFFF18FD0000.
W: Invalid config flags detected. Dropping resources: array-ERR3
I: Decoding resources...
I: Copying assets and libs...
C:\framework>
As you can see, it drops some resources. I tried to decode it with "--keep-broken-res":
Code:
C:\framework>apktool d --keep-broken-res framework-res.apk
I: Loading resource table...
W: Config flags size > 32. Exceeding bytes: 5500000048030000.
W: Invalid config flags detected: array-ERR0
W: Config flags size > 32. Exceeding bytes: 7F00000058010000.
W: Invalid config flags detected: array-ERR1
W: Config flags size > 32. Exceeding bytes: -4CFFFFFF97FF0000.
W: Invalid config flags detected: array-ERR2
W: Config flags size > 32. Exceeding bytes: -18FCFFFF18FD0000.
W: Invalid config flags detected: array-ERR3
I: Decoding resources...
I: Copying assets and libs...
C:\framework>
The difference is that for the second time in the "res" folder appeared 4 additional folders "values-ERR0", "values-ERR1", "values-ERR2" and "values-ERR3" with "arrays.xml" file in each. And also there is one more string in "public.xml", which was not there for the first time. The string is:
Code:
<public type="array" name="default_locales" id="0x01070005" />
Than I tried to build it (without any changes).
When I try to build framework-res, which was decoded without "--keep-broken-res" parameter I get this:
Code:
C:\framework>apktool b framework-res1 1.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
C:\framework\framework-res1\res\values\public.xml:2395: error: Public entry iden
tifier 0x107001d entry index is larger than available symbols (index 29, total s
ymbols 29).
C:\framework\framework-res1\res\values\public.xml:2395: error: Public symbol arr
ay/carrier_properties declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Soontir\AppData\Local\Temp
\APKTOOL5080969896487671571.tmp, -x, -S, C:\framework\framework-res1\res, -M, C:
\framework\framework-res1\AndroidManifest.xml]
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, C:\U
sers\Soontir\AppData\Local\Temp\APKTOOL5080969896487671571.tmp, -x, -S, C:\frame
work\framework-res1\res, -M, C:\framework\framework-res1\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
C:\framework>
And when I try to build framework-res, which was decoded with "--keep-broken-res" parameter I get this:
Code:
C:\framework>apktool b framework-res 1.apk
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
invalid resource directory name: C:\framework\framework-res\res/values-ERR0
invalid resource directory name: C:\framework\framework-res\res/values-ERR1
invalid resource directory name: C:\framework\framework-res\res/values-ERR2
invalid resource directory name: C:\framework\framework-res\res/values-ERR3
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Soontir\AppData\Local\Temp
\APKTOOL5529805555528398812.tmp, -x, -S, C:\framework\framework-res\res, -M, C:\
framework\framework-res\AndroidManifest.xml]
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, C:\U
sers\Soontir\AppData\Local\Temp\APKTOOL5529805555528398812.tmp, -x, -S, C:\frame
work\framework-res\res, -M, C:\framework\framework-res\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
C:\framework>
Can someone help me with it, please?
Just in case framework-res.apk is attached.
https://code.google.com/p/android-apktool/issues/detail?id=128
Thank you for your answer, I'll try to fix these resources manually.
gamewpo clean
Soontir Fel said:
Thank you for your answer, I'll try to fix these resources manually.
Click to expand...
Click to collapse
How do you fix this manually? I am having the same problem.

MTK6589 App Editting... Please Help

please help me in edit mtk app ( any one )...because I have an error in apktool when I try to compile it
I use framework-res.apk and mediatek-res.apk but the error still appear every time I try to complie even with no change....
This is Error Log :
Code:
--------------------------------------------------
Batch ApkTool : 3.5.0
SMALI : smali-2.2.jar
API level : 23
APKTOOL : apktool_2.2.0.jar
build in EXPERT mode : NO
Sign output APKs : YES
--------------------------------------------------
[*] Installing framework framework-res.apk
I: Framework installed to: bin\framework\1.apk
[*] Installing framework mediatek-res.apk
I: Framework installed to: bin\framework\2.apk
[*] Installing framework SystemUI.apk
I: Framework installed to: bin\framework\127.apk
[*] Recompiling TeleService
I: Using Apktool 2.2.0_0621
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
W: warning: string 'absent_num' has no default translation.
W: warning: string 'callFailed_cb_enabled' has no default translation.
W: warning: string 'callFailed_congestion' has no default translation.
W: warning: string 'callFailed_dsac_restricted' has no default translation.
W: warning: string 'callFailed_dsac_restricted_emergency' has no default translation.
W: warning: string 'callFailed_dsac_restricted_normal' has no default translation.
W: warning: string 'callFailed_fdn_only' has no default translation.
W: warning: string 'callFailed_invalid_credentials' has no default translation.
W: warning: string 'callFailed_limitExceeded' has no default translation.
W: warning: string 'callFailed_noSignal' has no default translation.
W: warning: string 'callFailed_number_unreachable' has no default translation.
W: warning: string 'callFailed_outOfService' has no default translation.
W: warning: string 'callFailed_out_of_network' has no default translation.
W: warning: string 'callFailed_powerOff' has no default translation.
W: warning: string 'callFailed_server_error' has no default translation.
W: warning: string 'callFailed_server_unreachable' has no default translation.
W: warning: string 'callFailed_timedOut' has no default translation.
W: warning: string 'callFailed_unobtainable_number' has no default translation.
W: warning: string 'callFailed_userBusy' has no default translation.
W: warning: string 'call_lost' has no default translation.
W: warning: string 'confCall' has no default translation.
W: warning: string 'prefer_2g' has no default translation.
W: warning: string 'prefer_2g_summary' has no default translation.
W: warning: string 'preferred_network_mode_lte_cdma_summary' has no default translation.
W: G:\Android\Develop\BatchApkTool350s\BatchApkTool\bin\..\_INPUT_APK\TeleService\res\layout\sim_widget_view.xml:5: error: Error: No resource found that matches the given name (at 'style' with value '@com.mediatek:style/ImageSwitch').
W:
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Lord\AppData\Local\Temp\BAT_temp\brut_util_Jar_7730726614405888323.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-eng.kupyxa4444.1452701589, -F, C:\Users\Lord\AppData\Local\Temp\BAT_temp\APKTOOL884800051196399711.tmp, -0, arsc, -0, arsc, -I, .\framework\1.apk, -S, G:\Android\Develop\BatchApkTool350s\BatchApkTool\bin\..\_INPUT_APK\TeleService\res, -M, G:\Android\Develop\BatchApkTool350s\BatchApkTool\bin\..\_INPUT_APK\TeleService\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:437)
at brut.androlib.Androlib.buildResources(Androlib.java:371)
at brut.androlib.Androlib.build(Androlib.java:281)
at brut.androlib.Androlib.build(Androlib.java:254)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Lord\AppData\Local\Temp\BAT_temp\brut_util_Jar_7730726614405888323.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-eng.kupyxa4444.1452701589, -F, C:\Users\Lord\AppData\Local\Temp\BAT_temp\APKTOOL884800051196399711.tmp, -0, arsc, -0, arsc, -I, .\framework\1.apk, -S, G:\Android\Develop\BatchApkTool350s\BatchApkTool\bin\..\_INPUT_APK\TeleService\res, -M, G:\Android\Develop\BatchApkTool350s\BatchApkTool\bin\..\_INPUT_APK\TeleService\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:436)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:423)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 1): [C:\Users\Lord\AppData\Local\Temp\BAT_temp\brut_util_Jar_7730726614405888323.tmp, p, --forced-package-id, 127, --min-sdk-version, 19, --target-sdk-version, 19, --version-code, 19, --version-name, 4.4.2-eng.kupyxa4444.1452701589, -F, C:\Users\Lord\AppData\Local\Temp\BAT_temp\APKTOOL884800051196399711.tmp, -0, arsc, -0, arsc, -I, .\framework\1.apk, -S, G:\Android\Develop\BatchApkTool350s\BatchApkTool\bin\..\_INPUT_APK\TeleService\res, -M, G:\Android\Develop\BatchApkTool350s\BatchApkTool\bin\..\_INPUT_APK\TeleService\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:430)
... 6 more
[*] ---> Error recompiling "TeleService"
DONE with 1 ERRORS.
please help me....

Apktool compiling failed

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').

[Q] Pixel Animated Navigation Bar Porting Issues

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

Can anyone tell me why I receive this message

I am trying to recompile an APK of kodi. I keep getting this mess of code while using apktool and cant figure out how to correct the problem. I originally thought it was something I had done wrong in the editing process so to double check instead of editing anything I simply decompiled the original APK and tried to recompile without touching any of the files and I still receive this error. Any help is much appreciated. Thank you!
Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.
C:\Users\Jeff\Desktop\YazooStructures\apk\ForkingTool\APK>apktool b a -o a.apk
I: Using Apktool 2.1.1
I: Checking whether sources has changed...
I: Smaling smali folder into classes.dex...
I: Checking whether resources has changed...
I: Building resources...
W: ERROR: Unknown option '--forced-package-id'
W: Android Asset Packaging Tool
W:
W: Usage:
W: aapt l[ist] [-v] [-a] file.{zip,jar,apk}
W: List contents of Zip-compatible archive.
W:
W: aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]]
W: badging Print the label and icon for the app declared in APK.
W: permissions Print the permissions from the APK.
W: resources Print the resource table from the APK.
W: configurations Print the configurations in the APK.
W: xmltree Print the compiled xmls in the given assets.
W: xmlstrings Print the strings of the given compiled xml assets.
W:
W: aapt p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \
W: [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \
Exception in thread "main" W: [--debug-mode] [--min-sdk-version VAL] [--
target-sdk-version VAL] \
W: [--app-version VAL] [--app-version-name TEXT] [--custom-package VAL]
\
brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.Br
utException: could not exec (exit code = 2): [aapt, p, --forced-package-id, 127,
--min-sdk-version, 21, --target-sdk-version, 22, --version-code, 1760000, --ver
sion-name, 17.6, -F, C:\Users\Jeff\AppData\Local\Temp\APKTOOL1726186263921521136
5.tmp, -0, arsc, -0, properties, -0, woff2, -0, swf, -0, zip, -0, txt, -0, asset
s/addons/script.module.pil/lib/EGG-INFO/zip-safe, -0, py, -0, xml, -0, pth, -0,
arsc, -I, C:\Users\Jeff\apktool\framework\1.apk, -S, C:\Users\Jeff\Desktop\Yazoo
Structures\apk\ForkingTool\APK\a\res, -M, C:\Users\Jeff\Desktop\YazooStructures\
apk\ForkingTool\APK\a\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:437)
at brut.androlib.Androlib.buildResources(Androlib.java:371)
at brut.androlib.Androlib.build(Androlib.java:281)
at brut.androlib.Androlib.build(Androlib.java:254)
at brut.apktool.Main.cmdBuild(Main.java:224)
at brut.apktool.Main.main(Main.java:84)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec (exit code = 2): [aapt, p, --forced-package-id, 127, --min-sdk-version, 21
, --target-sdk-version, 22, --version-code, 1760000, --version-name, 17.6, -F, C
:\Users\Jeff\AppData\Local\Temp\APKTOOL17261862639215211365.tmp, -0, arsc, -0, p
roperties, -0, woff2, -0, swf, -0, zip, -0, txt, -0, assets/addons/script.module
.pil/lib/EGG-INFO/zip-safe, -0, py, -0, xml, -0, pth, -0, arsc, -I, C:\Users\Jef
f\apktool\framework\1.apk, -S, C:\Users\Jeff\Desktop\YazooStructures\apk\Forking
Tool\APK\a\res, -M, C:\Users\Jeff\Desktop\YazooStructures\apk\ForkingTool\APK\a\
AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:436)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:423)
... 5 more
Caused by: brut.common.BrutException: could not exec (exit code = 2): [aapt, p,
--forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 22, --ver
sion-code, 1760000, --version-name, 17.6, -F, C:\Users\Jeff\AppData\Local\Temp\A
PKTOOL17261862639215211365.tmp, -0, arsc, -0, properties, -0, woff2, -0, swf, -0
, zip, -0, txt, -0, assets/addons/script.module.pil/lib/EGG-INFO/zip-safe, -0, p
y, -0, xml, -0, pth, -0, arsc, -I, C:\Users\Jeff\apktool\framework\1.apk, -S, C:
\Users\Jeff\Desktop\YazooStructures\apk\ForkingTool\APK\a\res, -M, C:\Users\Jeff
\Desktop\YazooStructures\apk\ForkingTool\APK\a\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:95)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:430)
... 6 more
W: [--rename-manifest-package PACKAGE] \
W: [--rename-instrumentation-target-package PACKAGE] \
W: [--utf16] [--auto-add-overlay] \
W: [--max-res-version VAL] \
W: [-I base-package [-I base-package ...]] \
W: [-A asset-source-dir] [-G class-list-file] [-P public-definitions-fi
le] \
W: [-S resource-sources [-S resource-sources ...]] [-F apk-file]
[-J R-file-dir] \
W: [--product product1,product2,...] \
W: [raw-files-dir [raw-files-dir] ...]
W:
W: Package the android resources. It will read assets and resources that are
W: supplied with the -M -A -S or raw-files-dir arguments. The -J -P -F and -
R
W: options control which files are output.
W:
W: aapt r[emove] [-v] file.{zip,jar,apk} file1 [file2 ...]
W: Delete specified files from Zip-compatible archive.
W:
W: aapt a[dd] [-v] file.{zip,jar,apk} file1 [file2 ...]
W: Add specified files to Zip-compatible archive.
W:
W: aapt v[ersion]
W: Print program version.
W:
W: Modifiers:
W: -a print Android-specific data (resources, manifest) when listing
W: -c specify which configurations to include. The default is all
W: configurations. The value of the parameter should be a comma
W: separated list of configuration values. Locales should be specified
W: as either a language or language-region pair. Some examples:
W: en
W: port,en
W: port,land,en_US
W: If you put the special locale, zz_ZZ on the list, it will perform
W: pseudolocalization on the default locale, modifying all of the
W: strings so you can look for strings that missed the
W: internationalization process. For example:
W: port,land,zz_ZZ
W: -d one or more device assets to include, separated by commas
W: -f force overwrite of existing files
W: -g specify a pixel tolerance to force images to grayscale, default 0
W: -j specify a jar or zip file containing classes to include
W: -k junk path of file(s) added
W: -m make package directories under location specified by -J
W: -u update existing packages (add new, replace older, remove deleted files
)
W: -v verbose output
W: -x create extending (non-application) resource IDs
W: -z require localization of resource attributes marked with
W: localization="suggested"
W: -A additional directory in which to find raw asset files
W: -G A file to output proguard options into.
W: -F specify the apk file to output
W: -I add an existing package to base include set
W: -J specify where to output R.java resource constant definitions
W: -M specify full path to AndroidManifest.xml to include in zip
W: -P specify where to output public resource definitions
W: -S directory in which to find resources. Multiple directories will be sc
anned
W: and the first match found (left to right) will take precedence.
W: -0 specifies an additional extension for which such files will not
W: be stored compressed in the .apk. An empty string means to not
W: compress any files at all.
W: --debug-mode
W: inserts android:debuggable="true" in to the application node of the
W: manifest, making the application debuggable even on production devices
.
W: --min-sdk-version
W: inserts android:minSdkVersion in to manifest. If the version is 7 or
W: higher, the default encoding for resources will be in UTF-8.
W: --target-sdk-version
W: inserts android:targetSdkVersion in to manifest.
W: --max-res-version
W: ignores versioned resource directories above the given value.
W: --values
W: when used with "dump resources" also includes resource values.
W: --version-code
W: inserts android:versionCode in to manifest.
W: --version-name
W: inserts android:versionName in to manifest.
W: --custom-package
W: generates R.java into a different package.
W: --auto-add-overlay
W: Automatically add resources that are only in overlays.
W: --rename-manifest-package
W: Rewrite the manifest so that its package name is the package name
W: given here. Relative class names (for example .Foo) will be
W: changed to absolute names with the old package so that the code
W: does not need to change.
W: --rename-instrumentation-target-package
W: Rewrite the manifest so that all of its instrumentation
W: components target the given package. Useful when used in
W: conjunction with --rename-manifest-package to fix tests against
W: a package that has been renamed.
W: --product
W: Specifies which variant to choose for strings that have
W: product variants
W: --utf16
W: changes default encoding for resources to UTF-16. Only useful when AP
I
W: level is set to 7 or higher where the default encoding is UTF-8.
W: --non-constant-id
W: Make the resources ID non constant. This is required to make an R java
class
W: that does not contain the final value but is used to make reusable com
piled
W: libraries that need to access resources.
C:\Users\Jeff\Desktop\YazooStructures\apk\ForkingTool\APK>

Categories

Resources