Hi
I plan to Decompile Settings.apk APK Studio's I Now I want Recompile error was finished.
SDK and JDK installed the latest version of the latest version've also got the latest version of APKTool
Please help me
ROM version CM12.1
Error:
I: Using Apktool 2.0.0
W: Could not find sources
I: Building resources...
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:117: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferencePanel'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:125: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceHeaderList'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:136: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceFragmentList'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:143: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceHeaderPanel'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:144: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceHeaderList'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:145: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceFragment'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:290: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Preference.Material.DialogPreference'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:349: error: Error: No resource found that matches the given name: attr 'android:closeItemLayout'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:347: error: Error: No resource found that matches the given name: attr 'android:errorColor'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:346: error: Error: No resource found that matches the given name: attr 'androidreferencePanelStyle'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:348: error: Error: No resource found that matches the given name: attr 'android:successColor'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:370: error: Error: No resource found that matches the given name: attr 'android:closeItemLayout'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:368: error: Error: No resource found that matches the given name: attr 'android:errorColor'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:367: error: Error: No resource found that matches the given name: attr 'androidreferencePanelStyle'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:369: error: Error: No resource found that matches the given name: attr 'android:successColor'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:414: error: Error: No resource found that matches the given name: attr 'android:closeItemLayout'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:412: error: Error: No resource found that matches the given name: attr 'android:errorColor'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:410: error: Error: No resource found that matches the given name: attr 'androidreferenceFragmentListStyle'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:411: error: Error: No resource found that matches the given name: attr 'androidreferenceFragmentPaddingSide'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:406: error: Error: No resource found that matches the given name: attr 'androidreferenceFragmentStyle'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:408: error: Error: No resource found that matches the given name: attr 'androidreferenceHeaderPanelStyle'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:409: error: Error: No resource found that matches the given name: attr 'androidreferenceListStyle'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:407: error: Error: No resource found that matches the given name: attr 'androidreferencePanelStyle'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:413: error: Error: No resource found that matches the given name: attr 'android:successColor'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:456: error: Error: No resource found that matches the given name: attr 'android:closeItemLayout'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:454: error: Error: No resource found that matches the given name: attr 'android:errorColor'.
C:\Users\Pouya\Desktop\Settings\res\values\styles.xml:455: error: Error: No resource found that matches the given name: attr 'android:successColor'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\Pouya\AppData\Local\Temp\brut_util_Jar_6415734235692862927.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-7148efb99f, -F, C:\Users\Pouya\AppData\Local\Temp\APKTOOL6294396769437643753.tmp, -0, arsc, -I, C:\Users\Pouya\apktool\framework\1.apk, -S, C:\Users\Pouya\Desktop\Settings\res, -M, C:\Users\Pouya\Desktop\Settings\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:458)
at brut.androlib.Androlib.buildResources(Androlib.java:396)
at brut.androlib.Androlib.build(Androlib.java:285)
at brut.androlib.Androlib.build(Androlib.java:256)
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\Pouya\AppData\Local\Temp\brut_util_Jar_6415734235692862927.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-7148efb99f, -F, C:\Users\Pouya\AppData\Local\Temp\APKTOOL6294396769437643753.tmp, -0, arsc, -I, C:\Users\Pouya\apktool\framework\1.apk, -S, C:\Users\Pouya\Desktop\Settings\res, -M, C:\Users\Pouya\Desktop\Settings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:419)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:444)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\Pouya\AppData\Local\Temp\brut_util_Jar_6415734235692862927.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-7148efb99f, -F, C:\Users\Pouya\AppData\Local\Temp\APKTOOL6294396769437643753.tmp, -0, arsc, -I, C:\Users\Pouya\apktool\framework\1.apk, -S, C:\Users\Pouya\Desktop\Settings\res, -M, C:\Users\Pouya\Desktop\Settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:413)
... 6 more
Related
If this is not the right place to post this, then mods, please move it.
I am trying to do some theming via XML edits. Its not working right if I use a hex editor. I cant find all of the colors I want to change, and the ones that I can change come out wrong. I was able to use the apktool and decode the xmls into plain text and edit them that way, however, I am not able to encode them again. I tried to use the build to command to rebuild the entire framework-res.apk, but it erroers out and I can figure out why.
Anyway, is it possible to convert the attached xml back to binary or, better, point me to where I could do it myself? I havent been able to find anything.
Thanks.
if you look at the log of apktool then you might find out what's wrong (usually it's some wrongly edited .9.pngs. if you solve these problems your apk will compile fine with all the xmls
Is there a way to find out which PNG is messed up. Im getting 100s of lines of errorsa and its over flowing the cmd prompt buffer, so I have no idea where its starting.
if you use apkmanager it will save the log to file and you can look through it
and if you look for aapt warnings you can find them
Here the error output, the took out the hundred of crogram.... not defined errors. I havent had any luck trying to trouble shoot this. Im assuming its because of the uknown or missing sources, but I havent figured out how to fix it.
Code:
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_left_end_confirm_gray.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_left_end_confirm_green.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_left_end_confirm_red.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_left_end_confirm_yellow.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_left_end_normal.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_left_end_pressed.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_right_end_confirm_gray.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_right_end_confirm_green.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_right_end_confirm_red.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_right_end_confirm_yellow.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_right_end_normal.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_right_end_pressed.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\status_bar_close_on.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\status_bar_header_background.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\status_bar_item_app_background_normal.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\status_bar_item_background_normal.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\statusbar_background.9.png
C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\values\public.xml:2728: error: Public entry identifier 0x10801a3 entry index is larger than available symbols (index 419, total symbols 39).
C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\values\public.xml:2728: error: Public symbol drawable/APKTOOL_DUMMY_01a3 declared here is not defined.
C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\values\public.xml:2753: error: Public entry identifier 0x108023a entry index is larger than available symbols (index 570, total symbols 39).
C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\values\public.xml:2753: error: Public symbol drawable/APKTOOL_DUMMY_023a declared here is not defined.
C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\values\public.xml:2754: error: Public entry identifier 0x108023b entry index is larger than available symbols (index 571, total symbols 39).
C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\values\public.xml:2858: error: Public symbol drawable/zz_vzw_stat_sys_roaming_cdma_custom3_flash declared here is not defined.
C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\values\public.xml:3618: error: Public symbol drawable/zz_vzw_stat_sys_roaming_cdma_flash_custom3_anim1 declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\dkosmach\AppData\Local\Temp\APKTOOL2037895822355495266.tmp, -x, -S, C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res, -M, C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\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:\Users\dkosmach\AppData\Local\Temp\APKTOOL2037895822355495266.tmp, -x, -S, C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res, -M, C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
The system cannot find the file specified.
Another issue Im having is when using APK manager. After I decdode and modify the XMLs, I try to recomple the framework-res.apk. I follow the instructions and delete any files I modified from the keep folder. When I continue, my the changed files are still missing, they are not being copied over. Am I doing something wrong? Or is it because of the errors?
the problem is with the files that are in lines starting with "Failure processing PNG image"
if you open them in android skd's draw9patch and you save them it will be good. if you repair all the files then it will recompile fine
helllmonkey said:
Here the error output, the took out the hundred of crogram.... not defined errors. I havent had any luck trying to trouble shoot this. Im assuming its because of the uknown or missing sources, but I havent figured out how to fix it.
Code:
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_left_end_confirm_gray.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_left_end_confirm_green.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_left_end_confirm_red.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_left_end_confirm_yellow.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_left_end_normal.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_left_end_pressed.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_right_end_confirm_gray.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_right_end_confirm_green.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_right_end_confirm_red.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_right_end_confirm_yellow.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_right_end_normal.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\jog_tab_bar_right_end_pressed.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\status_bar_close_on.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\status_bar_header_background.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\status_bar_item_app_background_normal.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\status_bar_item_background_normal.9.png
libpng error: Read Error
ERROR: Failure processing PNG image C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\drawable-hdpi\statusbar_background.9.png
C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\values\public.xml:2728: error: Public entry identifier 0x10801a3 entry index is larger than available symbols (index 419, total symbols 39).
C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\values\public.xml:2728: error: Public symbol drawable/APKTOOL_DUMMY_01a3 declared here is not defined.
C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\values\public.xml:2753: error: Public entry identifier 0x108023a entry index is larger than available symbols (index 570, total symbols 39).
C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\values\public.xml:2753: error: Public symbol drawable/APKTOOL_DUMMY_023a declared here is not defined.
C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\values\public.xml:2754: error: Public entry identifier 0x108023b entry index is larger than available symbols (index 571, total symbols 39).
C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\values\public.xml:2858: error: Public symbol drawable/zz_vzw_stat_sys_roaming_cdma_custom3_flash declared here is not defined.
C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res\values\public.xml:3618: error: Public symbol drawable/zz_vzw_stat_sys_roaming_cdma_flash_custom3_anim1 declared here is not defined.
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\dkosmach\AppData\Local\Temp\APKTOOL2037895822355495266.tmp, -x, -S, C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res, -M, C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\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:\Users\dkosmach\AppData\Local\Temp\APKTOOL2037895822355495266.tmp, -x, -S, C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\res, -M, C:\Program Files (x86)\Android\android-sdk\platform-tools\other\..\projects\framework-res.apk\AndroidManifest.xml]
at brut.util.OS.exec(Unknown Source)
... 7 more
The system cannot find the file specified.
Click to expand...
Click to collapse
Make sure those images mentioned in the log are fixed - i.e. they have guides in the image for the system to read. If you don't know what I mean, it means that these images are not properly saved as .9.png files.
Thanks guys, I got it to compile last night, except my modified XMLs didnt copy over. I only tried it once, and my brain was fried from trying to fix this, so Im going to spend more time with it today.
helllmonkey said:
Thanks guys, I got it to compile last night, except my modified XMLs didnt copy over. I only tried it once, and my brain was fried from trying to fix this, so Im going to spend more time with it today.
Click to expand...
Click to collapse
lol...
*my brain was fried from trying to fix this*
I know that feeling when in apkmode LOL
helllmonkey said:
Another issue Im having is when using APK manager. After I decdode and modify the XMLs, I try to recomple the framework-res.apk. I follow the instructions and delete any files I modified from the keep folder. When I continue, my the changed files are still missing, they are not being copied over. Am I doing something wrong? Or is it because of the errors?
Click to expand...
Click to collapse
Did you also delete the resources.arsc file (if modding XMLs)?
I know I am supposed to, but I was rushed trying to get it done before I went home for the day and I was quite tired, so I may have forgot too. I havent had time to try it again though. Hopefully I can get to it this afternoon.
Hi,
I'm trying to add a dictionary to LatinImeGoogle.apk from ICSSGS' latest port (RC4.2 for I9000), and I manage to disassemble the apk, but not to reassemble.
This happens even if I didn't change anything inside.
Also, I get errors on both Windows and Linux.
Please help!
Thanx
Windows error:
c:\Windows>apktool b -f c:\da_apks\LatinImeGoogle
I: Smaling...
I: Building resources...
invalid resource directory name: c:\da_apks\LatinImeGoogle\res/layout-sw768dp
invalid resource directory name: c:\da_apks\LatinImeGoogle\res/values-sw600dp
invalid resource directory name: c:\da_apks\LatinImeGoogle\res/values-sw600dp-la
nd
invalid resource directory name: c:\da_apks\LatinImeGoogle\res/values-sw768dp
invalid resource directory name: c:\da_apks\LatinImeGoogle\res/values-sw768dp-la
nd
invalid resource directory name: c:\da_apks\LatinImeGoogle\res/xml-sw600dp
invalid resource directory name: c:\da_apks\LatinImeGoogle\res/xml-sw600dp-land
invalid resource directory name: c:\da_apks\LatinImeGoogle\res/xml-sw768dp
invalid resource directory name: c:\da_apks\LatinImeGoogle\res/xml-sw768dp-land
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutExce
ption: could not exec command: [aapt, p, -F, C:\Users\Erez\AppData\Local\Temp\AP
KTOOL5255303126555889179.tmp, -I, C:\Users\Erez\apktool\framework\1.apk, -S, c:\
da_apks\LatinImeGoogle\res, -M, c:\da_apks\LatinImeGoogle\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\U
sers\Erez\AppData\Local\Temp\APKTOOL5255303126555889179.tmp, -I, C:\Users\Erez\a
pktool\framework\1.apk, -S, c:\da_apks\LatinImeGoogle\res, -M, c:\da_apks\LatinI
meGoogle\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:191)
... 6 more
And the Linux (Ubuntu) error:
[email protected]:~/Desktop$ sudo apktool b ./extraction
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL6670999592100072401.tmp, -I, /root/apktool/framework/1.apk, -S, /home/e/Desktop/./extraction/res, -M, /home/e/Desktop/./extraction/AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:193)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:301)
at brut.androlib.Androlib.buildResources(Androlib.java:248)
at brut.androlib.Androlib.build(Androlib.java:171)
at brut.androlib.Androlib.build(Androlib.java:154)
at brut.apktool.Main.cmdBuild(Main.java:182)
at brut.apktool.Main.main(Main.java:67)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL6670999592100072401.tmp, -I, /root/apktool/framework/1.apk, -S, /home/e/Desktop/./extraction/res, -M, /home/e/Desktop/./extraction/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:87)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
Caused by: java.io.IOException: Cannot run program "aapt": java.io.IOException: error=13, Permission denied
at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
at java.lang.Runtime.exec(Runtime.java:593)
at java.lang.Runtime.exec(Runtime.java:466)
at brut.util.OS.exec(OS.java:78)
... 7 more
Caused by: java.io.IOException: java.io.IOException: error=13, Permission denied
at java.lang.UNIXProcess.<init>(UNIXProcess.java:148)
at java.lang.ProcessImpl.start(ProcessImpl.java:65)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:453)
... 10 more
Had the same issue editing ics .apk
Fixed only by using perkas apkmanager in his stash.
Sent from my SGH-T959 using XDA
hmm.. Thanks, but I have no idea what that means
EDIT: I downloaded the tool, and the problem persists. Do I need to add anything in the command line or something?
Hey guys, I'm trying to recompile Home.apk but I'm getting multiple errors, anyone know a solution to this?
Cheers
Code:
C:\apktool>apktool b C:\apktool\home
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\apktool\home\res\values\styles.xml:25: error: Error retrieving parent for ite
m: No resource found that matches the given name 'Layout'.
C:\apktool\home\res\values\styles.xml:33: error: Error retrieving parent for ite
m: No resource found that matches the given name 'Layout.CuiMainMenuItem'.
C:\apktool\home\res\values-land\styles.xml:3: error: Error retrieving parent for
item: No resource found that matches the given name 'Layout.CuiMainMenuItem'.
C:\apktool\home\res\values\styles.xml:49: error: Error retrieving parent for ite
m: No resource found that matches the given name 'Layout.CuiMainMenuItem'.
C:\apktool\home\res\values\styles.xml:57: error: Error retrieving parent for ite
m: No resource found that matches the given name 'Layout'.
C:\apktool\home\res\values-land\styles.xml:24: error: Error retrieving parent fo
r item: No resource found that matches the given name 'Layout'.
C:\apktool\home\res\values-sw800dp\styles.xml:7: error: Error retrieving parent
for item: No resource found that matches the given name 'Layout.CuiPickerTitle'.
C:\apktool\home\res\values-sw800dp-v17\styles.xml:13: error: Error retrieving pa
rent for item: No resource found that matches the given name 'Layout.CuiPickerTi
tle'.
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\Users\JEEBO_~1\AppData\Local\T
emp\APKTOOL7086740129581580055.tmp, -0, arsc, -I, E:\apktool\framework\1.apk, -I
, E:\apktool\framework\2.apk, -S, C:\apktool\home\res, -M, C:\apktool\home\Andro
idManifest.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, 17, --target-sdk-version, 17, -F, C:
\Users\JEEBO_~1\AppData\Local\Temp\APKTOOL7086740129581580055.tmp, -0, arsc, -I,
E:\apktool\framework\1.apk, -I, E:\apktool\framework\2.apk, -S, C:\apktool\home
\res, -M, C:\apktool\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, 17, --target-sdk-version, 17, -F, C:\Users\JEEBO_~1\AppData\Local\Tem
p\APKTOOL7086740129581580055.tmp, -0, arsc, -I, E:\apktool\framework\1.apk, -I,
E:\apktool\framework\2.apk, -S, C:\apktool\home\res, -M, C:\apktool\home\Android
Manifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
Yo Guys! After a long time I am writing a thread on Apktool after writing THIS thread!
So, this time I shall be dealing with finding the errors while recompiling a SYSTEM App in apktool!
Most of us know how to decompile/recompile apks, but if we get the error, we often get scared and feel lost.
So this guide shall surely be helping you with knowing what error have you exactly faced, and may be you can work on it
THIS GUIDE IS HUGE SO YOU NEED PATIENCE TO READ IT! So, let's start.
So, for example, I tried the 5TabUI guide by Sir @dendenXD in my JB 4.2.2 device. When I recompiled I got this error:
Code:
C:\Documents and Settings\TEMP>apktool b SystemUIGionee
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
C:\Documents and Settings\TEMP\SystemUIGionee\res\layout\gemini_status_bar_expanded.xml:10: error: Error: No resource found that matches the given name (at 'id' with value '@id/dendenxd').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, --min-sdk-version, 17, --target-sdk-version, 17,
-F, C:\DOCUME~1\TEMP\LOCALS~1\Temp\APKTOOL7638241710007663088.tmp,
-0, arsc, -I, C:\Documents and Settings\TEMP\apktool\framework\1.apk,
-S, C:\Documents and Settings\TEMP\SystemUIGionee\res,
-M, C:\Documents and Settings\TEMP\SystemUIGionee\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, 17, --target-sdk-version, 17,
-F, C:\DOCUME~1\TEMP\LOCALS~1\Temp\APKTOOL7638241710007663088.tmp, -0, arsc,
-I, C:\Documents and Settings\TEMP\apktool\framework\1.apk,
-S, C:\Documents and Settings\TEMP\SystemUIGionee\res,
-M, C:\Documents and Settings\TEMP\SystemUIGionee\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-sdk-version, 17, --target-sdk-version, 17,
-F, C:\DOCUME~1\TEMP\LOCALS~1\Temp\APKTOOL7638241710007663088.tmp, -0, arsc,
-I, C:\Documents and Settings\TEMP\apktool\framework\1.apk,
-S, C:\Documents and Settings\TEMP\SystemUIGionee\res,
-M, C:\Documents and Settings\TEMP\SystemUIGionee\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Documents and Settings\TEMP>
Big isn't it? Well not hard though.
Let's see what apktool has got for you.
Scroll through the error.
And find this line in my error.
Code:
C:\Documents and Settings\TEMP\SystemUIGionee\res\layout\gemini_status_bar_expanded.xml:10: error: Error: No resource found that matches the given name (at 'id' with value '@id/dendenxd').
Notice some thing?
The line above is the only error that I got, so we now have a easy work!
When checking error,
First separate it.
Okay let me separate every thing.
This is the xml, where you have a error.
Code:
C:\Documents and Settings\TEMP\SystemUIGionee\res\layout\gemini_status_bar_expanded.xml
In the same line you will see a number, here it is:
Code:
:10:
This it the number of line in the xml where error is seen.
Next, the error!
This is the error that I am facing:
Code:
error: Error: No resource found that matches the given name (at 'id' with value '@id/dendenxd')
Yes, that is the error!
So here is the solution to solve the 'id' errors.
In my case, I will open gemini_status_bar_expanded, directly jump to line 10, and look for @id/dendenxd in the line, alright?
Now just make:
Code:
@id/dendenxd
Look like this:
Code:
@+id/dendenxd
Save the XML. Done. Now recompile the UI and voila! You are done!
Now next, we shall be dealing with a big error than the previous one.
Recently, one of my friend gave me a UI that even when recompiled directly without any changes, would give a big list of errors!
So I tried it and removed the errors!
This is what the error was:
Code:
C:\Documents and Settings\TEMP>apktool b AryanUI
I: Checking whether sources has changed...
I: Smaling...
I: Checking whether resources has changed...
I: Building resources...
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 17, --target-sdk-version, 17, -F, C:\DOCUME~1\TEMP\LOCALS~1\Temp\AP
KTOOL1329044921247052698.tmp, -I, C:\Documents and Settings\TEMP\apktool\framewo
rk\1.apk, -S, C:\Documents and Settings\TEMP\AryanUI\res, -M, C:\Documents and S
ettings\TEMP\AryanUI\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, 17, --target-sdk-version, 17, -F, C:
\DOCUME~1\TEMP\LOCALS~1\Temp\APKTOOL1329044921247052698.tmp, -I, C:\Documents an
d Settings\TEMP\apktool\framework\1.apk, -S, C:\Documents and Settings\TEMP\Arya
nUI\res, -M, C:\Documents and Settings\TEMP\AryanUI\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, 17, --target-sdk-version, 17, -F, C:\DOCUME~1\TEMP\LOCALS~1\Temp\APKT
OOL1329044921247052698.tmp, -I, C:\Documents and Settings\TEMP\apktool\framework
\1.apk, -S, C:\Documents and Settings\TEMP\AryanUI\res, -M, C:\Documents and Set
tings\TEMP\AryanUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:355)
... 6 more
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_notification_panel_
title.xml:14: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarNotificationText').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_notification_panel_
title.xml:19: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarNotificationText').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_notification_panel_
title.xml:21: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarNotificationText').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_notification_panel_
title_gemini.xml:14: error: Error: No resource found that matches the given name
(at 'style' with value '@style/SystemBarNotificationText').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_notification_panel_
title_gemini.xml:19: error: Error: No resource found that matches the given name
(at 'style' with value '@style/SystemBarNotificationText').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_notification_panel_
title_gemini.xml:24: error: Error: No resource found that matches the given name
(at 'style' with value '@style/SystemBarNotificationText').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_notification_panel_
title_gemini.xml:26: error: Error: No resource found that matches the given name
(at 'style' with value '@style/SystemBarNotificationText').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:5
: error: Error: No resource found that matches the given name (at 'style' with v
alue '@style/SystemBarPanelSettingsRow').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:6
: error: Error: No resource found that matches the given name (at 'style' with v
alue '@style/SystemBarPanelSettingsIcon').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:7
: error: Error: No resource found that matches the given name (at 'style' with v
alue '@style/SystemBarPanelSettingsContents').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:1
0: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:1
1: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsRow').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:1
2: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsIcon').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:1
3: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsContents').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:1
5: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:1
6: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsRow').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:1
7: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsIcon').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:1
8: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsContents').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:2
1: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:2
2: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsRow').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:2
3: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsIcon').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:2
6: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:2
7: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsRow').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:2
8: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsIcon').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:2
9: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsContents').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:3
2: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:3
3: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsRow').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:3
4: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsIcon').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:3
5: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsContents').
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_settings_view.xml:3
7: error: Error: No resource found that matches the given name (at 'style' with
value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Documents and Settings\TEMP>
Veeeery biiiiiig!!!!
Yes, now this is time consuming!
Now. what we have to do is, look for the errors.
Yes, right above I told you how to look for a error, just like that let's solve one error here.
So one of the error is:
Code:
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_notification_panel_
title.xml:14: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarNotificationText').
So, according to this, the error is in:
Code:
C:\Documents and Settings\TEMP\AryanUI\res\layout\system_bar_notification_panel_title.xml
In line:
Code:
:14:
And the error is:
Code:
Error: No resource found that matches the given name (at 'style' with value'@style/SystemBarNotificationText').
So, how to solve this if there is no style with such name in your UI?
SIMPLE, JUST DELETE THOSE LINES FROM THE XMLs!Yes!
Let's do it.
I shall now open system_bar_notification_panel_title.xml, look at line 14 in it, and search for a line like:
Code:
style="@style/SystemBarNotificationText"
And simply delete that WHOLE line and save the xml.
Same goes with all other errors! If you find a error that has been titled this value not found from an xml, simply delete the line, with correct SPACING by the way!
Easy right!
Now coming to smali errors while recompiling.
Most of the smalis are usually built for apktool 1.5.2 , so I always recommend using apktool 1.5.2 for daily use.
If it is specified that the mod needs apktool 2.0.0, then you are free to use apktool 2.0.0!
That's it for today! Hope this helped you!
Credits:
@iBotPeaches[For APKTOOL!]
@out386 [Ritayan Chakraborty: For helping me out in troubleshooting errors and solve the 'id' errors]
@arun.negi004[For the tip of deleting the required lines] @Aniruddha_Pathak[ME]
And YOU!
HIT THANKS IF YOU LIKED MY WORKS!
Goodwork ill try this 1 hope it will work :good
kenzukie said:
Goodwork ill try this 1 hope it will work :good
Click to expand...
Click to collapse
Do tell me how it worked for you And don't forget to hit thanks if it worked!
Hello guys ,
I get this error when I try to recompile SystemUi
Log For : SystemUI.apk
Log Type : Recompiling
Log Recorded At : Mon 04-01-2016 20:13:24.99
Log Recorded By : Advanced ApkTool v4.1.0 By BDFreak
------------------------------------------------------
warning: string 'data_usage_disable_mobile_vzw_3' has no default translation.
warning: string 'flight_mode_disabled_on_demo_devices' has no default translation.
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\battery_low_heads_up_noti.xml:2: error: No resource identifier found for attribute 'layout_maxHeight' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\battery_low_heads_up_noti.xml:2: error: No resource identifier found for attribute 'layout_minHeight' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'handleDrawable' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'outerRingDrawable' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'pointDrawable' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'outerRadius' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'glowRadius' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'vibrationDuration' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'snapMargin' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'feedbackCount' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'firstItemOffset' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'magneticTargets' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\keyguard_glow_pad_view.xml:2: error: No resource identifier found for attribute 'allowScaling' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\notification_public_default.xml:2: error: No resource identifier found for attribute 'layout_maxHeight' in package 'android'
C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res\layout\notification_public_default.xml:2: error: No resource identifier found for attribute 'layout_minHeight' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [C:\Users\DRAHMA~1\AppData\Local\Temp\brut_util_Jar_7407859493212729898.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-N9200ZCU2AOL2, -F, C:\Users\DRAHMA~1\AppData\Local\Temp\APKTOOL1809012509551128119.tmp, -0, arsc, -I, C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:442)
at brut.androlib.Androlib.buildResources(Androlib.java:379)
at brut.androlib.Androlib.build(Androlib.java:282)
at brut.androlib.Androlib.build(Androlib.java:255)
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\DRAHMA~1\AppData\Local\Temp\brut_util_Jar_7407859493212729898.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-N9200ZCU2AOL2, -F, C:\Users\DRAHMA~1\AppData\Local\Temp\APKTOOL1809012509551128119.tmp, -0, arsc, -I, C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:506)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:428)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [C:\Users\DRAHMA~1\AppData\Local\Temp\brut_util_Jar_7407859493212729898.tmp, p, --forced-package-id, 127, --min-sdk-version, 22, --target-sdk-version, 22, --version-code, 22, --version-name, 5.1.1-N9200ZCU2AOL2, -F, C:\Users\DRAHMA~1\AppData\Local\Temp\APKTOOL1809012509551128119.tmp, -0, arsc, -I, C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\1-BDFreak\Frameworks\1.apk, -S, C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\res, -M, C:\Users\Dr AHMAD\Desktop\New folder (2)\Advanced+ApkTool+v4.1.0+By+BDFreak+Repackecd+By+Kmokhtar79\AdvancedApkTool\3-Out\SystemUI.apk\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:500)
... 6 more
------------------------------------------------------
Click to expand...
Click to collapse
* I have the 2 frameworks installed
* This isn't the stock ( DarkAu Note 5 rom)
I hope someone can help me
7odaahmad said:
Hello guys ,
I get this error when I try to recompile SystemUi
* I have the 2 frameworks installed
* This isn't the stock ( DarkAu Note 5 rom)
I hope someone can help me
Click to expand...
Click to collapse
try this:
go to res\layout\battery_low_heads_up_noti.xml:2, and find layout_MaxHeight. Replace the negative number with "unbounded"
Do the same for res\layout-v22\battery_low_heads_up_noti.xml:2
Also, read the LOG file carefully and try to identify what the other errors mean. This isn't that hard. Hope this helps, Good Luck
Azar_98 said:
try this:
go to res\layout\battery_low_heads_up_noti.xml:2, and find layout_MaxHeight. Replace the negative number with "unbounded"
Do the same for res\layout-v22\battery_low_heads_up_noti.xml:2
Also, read the LOG file carefully and try to identify what the other errors mean. This isn't that hard. Hope this helps, Good Luck
Click to expand...
Click to collapse
Thanks for your answer man
but I found another solution that worked for me
by editing the "apktool.yml" file and delete the QMG files data from it and it worked perfectly
Thank U again for your answer
7odaahmad said:
Thanks for your answer man
but I found another solution that worked for me
by editing the "apktool.yml" file and delete the QMG files data from it and it worked perfectly
Thank U again for your answer
Click to expand...
Click to collapse
No problem mate, glad you solved it