[Android Q&A, Help & Troubleshooting] mihai.zaim:
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

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