Need Help to recompile custom-framwork-res.apk - Android Q&A, Help & Troubleshooting

Whenever i tried to recompile any custom framework-res.apk (like oppo-framework-res.apk, oxygen-framework-res.apk, lenovo-res.apk, vivo-res.apk) i got error
errors are like:
W: Could not find sources
oxygen-framework-res.apk\res\layout\preference_dialog_colorpicker.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/colors_row_1').
preference_dialog_colorpicker.xml:6: error: Error: No resource found that matches the given name (at 'id' with value '@id/check_0'
oxygen-framework-res.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:465)
at brut.androlib.Androlib.buildResources(Androlib.java:403)
at brut.androlib.Androlib.build(Androlib.java:291)
at brut.androlib.Androlib.build(Androlib.java:261)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
No issue with decompile
I can decompile and recompile any other apps including framework-res.apk, just problem xxxy-framework-res.apk
please help...

how decompile framwork-res.apk?

pradeepsmehra said:
Whenever i tried to recompile any custom framework-res.apk (like oppo-framework-res.apk, oxygen-framework-res.apk, lenovo-res.apk, vivo-res.apk) i got error
errors are like:
W: Could not find sources
oxygen-framework-res.apk\res\layout\preference_dialog_colorpicker.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/colors_row_1').
preference_dialog_colorpicker.xml:6: error: Error: No resource found that matches the given name (at 'id' with value '@id/check_0'
oxygen-framework-res.apk\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:465)
at brut.androlib.Androlib.buildResources(Androlib.java:403)
at brut.androlib.Androlib.build(Androlib.java:291)
at brut.androlib.Androlib.build(Androlib.java:261)
at brut.apktool.Main.cmdBuild(Main.java:225)
at brut.apktool.Main.main(Main.java:84)
No issue with decompile
I can decompile and recompile any other apps including framework-res.apk, just problem xxxy-framework-res.apk
please help...
Click to expand...
Click to collapse
ARe you installing all the frameworks files? Could be that apktool is not updated to work with that os. It is a common thing with china based OS that they make changes that apktool cant and wont support.

zelendel said:
ARe you installing all the frameworks files? Could be that apktool is not updated to work with that os. It is a common thing with china based OS that they make changes that apktool cant and wont support.
Click to expand...
Click to collapse
Thanks for reply ,
buddy i am using latest apktool version 2.02
only two framework are available in ROM both are installed.
yes ..i was thinking same that they are modding apk so that apktool not able to do re-engineering.
i also post error in apktool thread in github lets see if iBoatPaches will add support in next version of apktool ...

Have you tried installing systemui as well as the frameworks? It might be worth a shot usually helps with dummy files
Sent from my SM-N920C using Tapatalk

sawdoctor said:
Have you tried installing systemui as well as the frameworks? It might be worth a shot usually helps with dummy files
Sent from my SM-N920C using Tapatalk
Click to expand...
Click to collapse
yes buddy, i also tried that..
if i tried recompile in normal way its giving very log error log. then i tried to rename framework-res.apk into 1.apk and oxygen-framework-res.apk into 2.apk and place them c:/apktool/
now the error log is short, only 4xml value showing no resource.
C:\apktool\oxygen-framework-res\res\values\styles.xml:40: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Material.BaseDialog'.
C:\apktool\oxygen-framework-res\res\values\styles.xml:44: error: Error retrieving parent for item: No resource found that matches the given name'@android:style/Theme.Material.Dialog.BaseAlert'.
C:\apktool\oxygen-framework-res\res\values\styles.xml:51: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Material.SearchBar'.
C:\apktool\oxygen-framework-res\res\values\styles.xml:54: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Material.CompactMenu'.

pradeepsmehra said:
yes buddy, i also tried that..
if i tried recompile in normal way its giving very log error log. then i tried to rename framework-res.apk into 1.apk and oxygen-framework-res.apk into 2.apk and place them c:/apktool/
now the error log is short, only 4xml value showing no resource.
C:\apktool\oxygen-framework-res\res\values\styles.xml:40: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Material.BaseDialog'.
C:\apktool\oxygen-framework-res\res\values\styles.xml:44: error: Error retrieving parent for item: No resource found that matches the given name'@android:style/Theme.Material.Dialog.BaseAlert'.
C:\apktool\oxygen-framework-res\res\values\styles.xml:51: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Material.SearchBar'.
C:\apktool\oxygen-framework-res\res\values\styles.xml:54: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Material.CompactMenu'.
Click to expand...
Click to collapse
Have you tried a different apktool? I had to switch back to android 2.00 to decompile marshmallow framework
Sent from my SM-N920C using Tapatalk

sawdoctor said:
Have you tried a different apktool? I had to switch back to android 2.00 to decompile marshmallow framework
Sent from my SM-N920C using Tapatalk
Click to expand...
Click to collapse
yes i tried 2.0 also...

pradeepsmehra said:
yes i tried 2.0 also...
Click to expand...
Click to collapse
if any body can help, please here is the uploaded framework files. and error log
http://pastebin.com/KPbExsRE
https://drive.google.com/file/d/0B4wqBB_yOlMwNGh0YzZoWlFmSEk/view?usp=sharing

Related

PATCH ROM MIUI {Help Needed with Ubuntu (m a newbie on Ubuntu)}

Hey guys....I started working on MIUI patch ROM but m a newbie in Ubuntu so m stuck with a permission thing, hope someone can help..
When i execute make command, this is what i get
Code:
[email protected]:/home/ubuntu/Desktop/MiCode-legacy-patchrom-a6a023f/P500# make
/home/ubuntu/Desktop/MiCode-legacy-patchrom-a6a023f/tools/apktool d -f /home/ubuntu/Desktop/MiCode-legacy-patchrom-a6a023f/miui/system/framework/services.jar .build/services_miui
make: execvp: /home/ubuntu/Desktop/MiCode-legacy-patchrom-a6a023f/tools/apktool: Permission denied
make: *** [.build/services_miui] Error 127
Don't use ur desktop folder..use your home folder..
for permissions use chmod u+x pathofffilename
Sent from my HTC Explorer A310e using Tapatalk 2
williamcharles said:
Don't use ur desktop folder..use your home folder..
for permissions use chmod u+x pathofffilename
Sent from my HTC Explorer A310e using Tapatalk 2
Click to expand...
Click to collapse
I had tried in home folder but that didn't worked.. and for permission, do I have to give permission to apktool coz apktool can't execute commands..
Sent from my LG-P500 using Tapatalk 2
fundoozzz said:
Hey guys....I started working on MIUI patch ROM but m a newbie in Ubuntu so m stuck with a permission thing, hope someone can help..
When i execute make command, this is what i get
Code:
[email protected]:/home/ubuntu/Desktop/MiCode-legacy-patchrom-a6a023f/P500# make
/home/ubuntu/Desktop/MiCode-legacy-patchrom-a6a023f/tools/apktool d -f /home/ubuntu/Desktop/MiCode-legacy-patchrom-a6a023f/miui/system/framework/services.jar .build/services_miui
make: execvp: /home/ubuntu/Desktop/MiCode-legacy-patchrom-a6a023f/tools/apktool: Permission denied
make: *** [.build/services_miui] Error 127
Click to expand...
Click to collapse
you are root so you should have all permission.just check you install everything perfect. btw don't need to become root user
check mdroid studioandroid for help
aspee said:
you are root so you should have all permission.just check you install everything perfect. btw don't need to become root user
check mdroid studioandroid for help
Click to expand...
Click to collapse
yes thats what I was wondering coz I was root....n patch ROM compiling is different so mdroid's studio won't work... Any idea!!
Bump...... !!! Arjen!! Bytecode!!
Sent from my LG-P500 using Tapatalk 2
M not sure, but try chmod 777 'pathoffile'...
Sent from my LG-P500 using xda premium
Update:-
All errors except one resolved and after this only zip needs to be formed for testing..
Now the bad part is that SystemUI.apk refuse to compile...
Everyone on github is facing same issue.
I will be editing miuisystemui.apk and if this doesn't work then I will be needing developers help to edit the porting.mk file so that it skips miuisystemui.apk compilation
So the error is this while compiling SystemUI
Code:
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_notifications.xml:2: error: Error: No resource found that matches the given name (at 'layout_marginBottom' with value '@dimen/notification_item_divider_height').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_notifications.xml:6: error: Error: No resource found that matches the given name (at 'id' with value '@id/usb_mode_notification').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_notifications.xml:7: error: Error: No resource found that matches the given name (at 'layout_width' with value '@dimen/notification_icon_size').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_notifications.xml:7: error: Error: No resource found that matches the given name (at 'layout_height' with value '@dimen/notification_icon_size').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_notifications.xml:8: error: Error: No resource type specified (at 'textAppearance' with value '@101580807').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_notifications.xml:8: error: Error: No resource found that matches the given name (at 'text' with value '@string/usb_mode_notification').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_notifications.xml:9: error: Error: No resource found that matches the given name (at 'id' with value '@id/usb_mode_button').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle_list').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:5: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:5: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:6: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:6: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:7: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:7: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:8: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:8: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:10: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle_list').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:11: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:11: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:12: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:12: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:13: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:13: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:14: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:14: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:16: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle_list').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:17: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:17: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:18: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:18: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:19: error: Error: No resource found that matches the given name (at 'id' with value '@id/toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:19: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:20: error: Error: No resource found that matches the given name (at 'id' with value '@id/brightness_toggle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:20: error: Error: No resource found that matches the given name (at 'style' with value '@style/StatusBarGridItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:22: error: Error: No resource found that matches the given name (at 'id' with value '@id/manual_brightness_panel').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_expanded_toggles.xml:24: error: Error: No resource found that matches the given name (at 'id' with value '@id/manual_briException in thread "main" ghtness').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle.xml:2: error: Error: No resource found that matches the given name (at 'id' with value '@id/button_privacy_mode').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_divider.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/status_bar_toggle_divider_lable').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_divider.xml:4: error: Error: No resource found that matches the given name (at 'text' with value '@string/status_bar_toggle_divider_list').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_divider.xml:4: error: Error: No resource found that matches the given name (at 'style' with value '@*miui:style/TextAppearance.ListView.SecondaryItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_item.xml:2: error: Error: No resource found that matches the given name (at 'style' with value '@*miui:style/ListItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_item.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/icon').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_item.xml:5: error: Error: No resource found that matches the given name (at 'id' with value '@id/title').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_item.xml:5: error: Error: No resource found that matches the given name (at 'style' with value '@*miui:style/TextAppearance.ListView.PrimaryItem').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_item.xml:6: error: Error: No resource found that matches the given name (at 'id' with value '@id/drag_handle').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_style_preference.xml:4: error: Error: No resource found that matches the given name (at 'id' with value '@id/status_bar_toggle_style_compact').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_style_preference.xml:6: error: Error: No resource type specified (at 'textAppearance' with value '@101580854').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_style_preference.xml:6: error: Error: No resource found that matches the given name (at 'id' with value '@id/status_bar_toggle_style_compact_text').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_style_preference.xml:6: error: Error: No resource found that matches the given name (at 'text' with value '@string/status_bar_toggle_style_compact').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_style_preference.xml:8: error: Error: No resource found that matches the given name (at 'id' with value '@id/status_bar_toggle_style_single_page').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_style_preference.xml:10: error: Error: No resource type specified (at 'textAppearance' with value '@101580854').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_style_preference.xml:10: error: Error: No resource found that matches the given name (at 'id' with value '@id/status_bar_toggle_style_single_page_text').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/layout/status_bar_toggle_style_preference.xml:10: error: Error: No resource found that matches the given name (at 'text' with value '@string/status_bar_toggle_style_single_page').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/xml/toggle_settings.xml:2: error: Error: No resource found that matches the given name (at 'title' with value '@string/status_bar_toggle_settings').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/xml/toggle_settings.xml:5: error: Error: No resource found that matches the given name (at 'title' with value '@string/status_bar_toggle_style').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/xml/toggle_settings.xml:6: error: Error: No resource found that matches the given name (at 'title' with value '@string/status_bar_toggle_style').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/xml/toggle_settings.xml:9: error: Error: No resource found that matches the given name (at 'title' with value '@string/status_bar_toggle_arrangement').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/xml/toggle_settings.xml:12: error: Error: No resource found that matches the given name (at 'title' with value '@string/battery_indicator_style').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/xml/toggle_settings.xml:13: error: Error: No resource found that matches the given name (at 'title' with value '@string/default_usb_mode').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/xml/toggle_settings.xml:14: error: Error: No resource found that matches the given name (at 'title' with value '@string/expandable_under_fullscreen').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/xml/toggle_settings.xml:14: error: Error: No resource found that matches the given name (at 'summary' with value '@string/expandable_under_fullscreen_summary').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/xml/toggle_settings.xml:15: error: Error: No resource found that matches the given name (at 'title' with value '@string/enable_back_long_press').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/color/tab_lable_color.xml:4: error: Error: No resource found that matches the given name (at 'color' with value '@color/tab_lable_color_p').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/color/tab_lable_color.xml:5: error: Error: No resource found that matches the given name (at 'color' with value '@color/tab_lable_color_p').
/home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res/color/tab_lable_color.xml:6: error: Error: No resource found that matches the given name (at 'color' with value '@color/tab_lable_color_n').
brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, /tmp/APKTOOL1354576437632756126.tmp, -I, /root/apktool/framework/1.apk, -S, /home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res, -M, /home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/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/APKTOOL1354576437632756126.tmp, -I, /root/apktool/framework/1.apk, -S, /home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/res, -M, /home/saurabh/Desktop/MiCode-legacy-patchrom-a6a023f/P500/.build/SystemUI/AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:191)
... 6 more
make: *** [.build/MIUISystemUI.apk] Error 1
Already referred this
And below i am attaching build folder so if someone can modify it to skip compilation of MIUISystemUI.apk
These are all xml missing resources error...xml contains the layout...how android will display its contents..its menu..setting...its option...u need to check in xml files for this error.
Sent from my HTC Explorer A310e using Tapatalk 2
williamcharles said:
These are all xml missing resources error...xml contains the layout...how android will display its contents..its menu..setting...its option...u need to check in xml files for this error.
Sent from my HTC Explorer A310e using Tapatalk 2
Click to expand...
Click to collapse
Had already checked that and everything is in place.. can u modify build folder to skip building systemui...
Thanks
fundoozzz said:
Had already checked that and everything is in place.. can u modify build folder to skip building systemui...
Thanks
Click to expand...
Click to collapse
Decompile framework port miui gb systemui and compared with yours
Sent from my LG-P500 using xda premium
ROM compiled but didn't boot..not even the boot animation...and the bad part is my lappy ditched again,so can't work
fundoozzz said:
ROM compiled but didn't boot..not even the boot animation...and the bad part is my lappy ditched again,so can't work
Click to expand...
Click to collapse
What's the logcat says?
Its first attempt to boot and you got failure that doesn't mean it wont boot
Keep moving forward!
Sent from my LG-P500 using xda premium
aspee said:
What's the logcat says?
Its first attempt to boot and you got failure that doesn't mean it wont boot
Keep moving forward!
Sent from my LG-P500 using xda premium
Click to expand...
Click to collapse
Can't get log...laptop dead..
Any1 wanna help!!!!

Eclipse error

i have a error in my app
error: Error retrieving parent for item: No resource found that matches the given name '@*android:style/Theme.Holo'.
please help
You are compiling the project using an older API (a version below Android 4.0).
Be careful when you choose "Minimum Required SDK", "Target SDK" and "Compile With" for your project.
R: Eclipse error
Quote !
Keep up MEGA project.
Bye

[Q/SOLVED] Decompiling Gallery2.apk (4.2.2 CM rom)

Hey guys, trying to recompile Gallery2.apk from a 4.2.2 custom ROM but I can't seem to find the appropriate framework to compile against.
Using apktool, tried pulling the framework-res.apk from the ROM itself but still can't get it to compile. The error I keep getting is:
Gallery2.apk\res\values\styles.xml:148: error: Error retrieving parent for item: No resource found that matches the given name 'TextAppearance'.
Tried various framework files but still no luck.
Any ideas?
EDIT: Now I feel stupid for opening this thread, found an answer: go to the aforementioned file (res\values\styles.xml) line 148 and edit where:
<style name="TextAppearance.DialogWindowTitle"> change to : <style name="TextAppearance.DialogWindowTitle" parent="@*android:style/TextAppearance.DialogWindowTitle"> Have no idea why this is the way it is but it works for me :|

[Q] Recompile SystemUI.apk

Hello,
Today I've been trying to de/re-compile the SystemUI.apk from i9300's android 4.3 build, and after some time the decompiling part goes flawless,
however, when I try to recompile it, I get the following errors:
Code:
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_notifica
tion_panel_title.xml:14: error: Error: No resource found that matches the given
name (at 'style' with value '@style/SystemBarNotificationText').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_notifica
tion_panel_title.xml:19: error: Error: No resource found that matches the given
name (at 'style' with value '@style/SystemBarNotificationText').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_notifica
tion_panel_title.xml:21: error: Error: No resource found that matches the given
name (at 'style' with value '@style/SystemBarNotificationText').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:5: error: Error: No resource found that matches the given name (at 'st
yle' with value '@style/SystemBarPanelSettingsRow').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:6: error: Error: No resource found that matches the given name (at 'st
yle' with value '@style/SystemBarPanelSettingsIcon').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:7: error: Error: No resource found that matches the given name (at 'st
yle' with value '@style/SystemBarPanelSettingsContents').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:10: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:11: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsRow').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:12: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsIcon').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:13: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsContents').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:15: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:16: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsRow').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:17: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsIcon').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:18: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsContents').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:21: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:22: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsRow').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:23: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsIcon').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:26: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:27: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsRow').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:28: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsIcon').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:29: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsContents').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:32: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsPanelSeparator').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:33: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsRow').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:34: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsIcon').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:35: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsContents').
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res\layout\system_bar_settings
_view.xml:37: error: Error: No resource found that matches the given name (at 's
tyle' with value '@style/SystemBarPanelSettingsPanelSeparator').
Exception in thread "main" brut.androlib.AndrolibException: brut.androlib.Androl
ibException: brut.common.BrutException: could not exec command: [aapt, p, --min-
sdk-version, 18, --target-sdk-version, 18, -F, C:\Users\Dylan\AppData\Local\Temp
\APKTOOL3727523403346755097.tmp, -I, C:\Users\Dylan\apktool\framework\1.apk, -S,
C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res, -M, C:\Users\Dylan\Downl
oads\APKTool\APKTool\SystemUI\AndroidManifest.xml]
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:355)
at brut.androlib.Androlib.buildResources(Androlib.java:280)
at brut.androlib.Androlib.build(Androlib.java:203)
at brut.androlib.Androlib.build(Androlib.java:176)
at brut.apktool.Main.cmdBuild(Main.java:214)
at brut.apktool.Main.main(Main.java:74)
Caused by: brut.androlib.AndrolibException: brut.common.BrutException: could not
exec command: [aapt, p, --min-sdk-version, 18, --target-sdk-version, 18, -F, C:
\Users\Dylan\AppData\Local\Temp\APKTOOL3727523403346755097.tmp, -I, C:\Users\Dyl
an\apktool\framework\1.apk, -S, C:\Users\Dylan\Downloads\APKTool\APKTool\SystemU
I\res, -M, C:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\AndroidManifest.xml
]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:335)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:333)
... 5 more
Caused by: brut.common.BrutException: could not exec command: [aapt, p, --min-sd
k-version, 18, --target-sdk-version, 18, -F, C:\Users\Dylan\AppData\Local\Temp\A
PKTOOL3727523403346755097.tmp, -I, C:\Users\Dylan\apktool\framework\1.apk, -S, C
:\Users\Dylan\Downloads\APKTool\APKTool\SystemUI\res, -M, C:\Users\Dylan\Downloa
ds\APKTool\APKTool\SystemUI\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:89)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.jav
a:333)
... 6 more
I understand that the styles are missing, but he, I'm recompiling it, so shouldn't they be there!?
I assume I'm missing an .apk file which I have to include, but I don't quite get which one, or wether it's caused by aapt or the apk's..
as this is my first apk editing, I'd thought I could ask for help around here.
Regards!
Make sure you're using both of the frameworks...
eg...
apktool if framework-res.apk
apktool if twframework-res.apk
and try again....
EDIT - Just realised you're trying to decompile & recompile AOSP/CM SystemUI. Ignore my comment above....
EDIT2 - Ive had a look into it and the styles that are showing as missing should be in SystemUI\res\values-sw720dp\styles.xml
Are you using the latest apktool/aapt from here - http://forum.xda-developers.com/showthread.php?t=1755243
I've just successfully decompiled/recompiled the SystemUI from Slim 4.3.
Hope this helps...
mikep99 said:
Make sure you're using both of the frameworks...
eg...
apktool if framework-res.apk
apktool if twframework-res.apk
and try again....
EDIT - Just realised you're trying to decompile & recompile AOSP/CM SystemUI. Ignore my comment above....
EDIT2 - Ive had a look into it and the styles that are showing as missing should be in SystemUI\res\values-sw720dp\styles.xml
Are you using the latest apktool/aapt from here - http://forum.xda-developers.com/showthread.php?t=1755243
I've just successfully decompiled/recompiled the SystemUI from Slim 4.3.
Hope this helps...
Click to expand...
Click to collapse
I'm recompiling the SystemUI.apk of sammy's original 4.3, and there is no values-sw720dp directory in /res as I can see..
I just updated apktool and aapt using the given links, but the problem still occurs.. ( the exact same )
Thanks for trying to help me out!
(
AAPT.exe crc32 = 0x3D99FA82
APKTOOL.jar crc32 = 0xF4E84FE0
)
EDIT:
I added them manually from the android sdk.. compiling fine now, but I still don't understand why it was missing
HalfDead93 said:
I'm recompiling the SystemUI.apk of sammy's original 4.3, and there is no values-sw720dp directory in /res as I can see..
I just updated apktool and aapt using the given links, but the problem still occurs.. ( the exact same )
Thanks for trying to help me out!
Click to expand...
Click to collapse
No problem.
Have a look at this post - http://forum.xda-developers.com/showpost.php?p=46773564&postcount=2124
It looks like the same problem you're having.
mikep99 said:
No problem.
Have a look at this post - http://forum.xda-developers.com/showpost.php?p=46773564&postcount=2124
It looks like the same problem you're having.
Click to expand...
Click to collapse
Yup, I did the exact same and it's working just fine :]
Thanks for helping out!
HalfDead93 said:
Yup, I did the exact same and it's working just fine :]
Thanks for helping out!
Click to expand...
Click to collapse
Out of interest, can you tell me how you found the styles in the SDK?
I've got the IDE/SDK installed but can't work it out
mikep99 said:
Out of interest, can you tell me how you found the styles in the SDK?
I've got the IDE/SDK installed but can't work it out
Click to expand...
Click to collapse
well, not the SDK, sorry, but the github of a sysui
( cant post links, so no link )
HalfDead93 said:
well, not the SDK, sorry, but the github of a sysui
( cant post links, so no link )
Click to expand...
Click to collapse
ah, right. Thanks for the info...

[Q] I'm trying to compile SecSettings2.apk

I'm trying to de/compile SecSettings2 with apk manager.
and i have error:
C:\rom\apk_manager_6.1_fix_softdx\other\..\projects\SecSettings2.apk\res\layout-sw768dp\tap_hold_delay.xml:9: error: Error: No resource found that matches the given name (at 'style' with value '@style/TapAndHoldDelayButtonTab').
C:\rom\apk_manager_6.1_fix_softdx\other\..\projects\SecSettings2.apk\res\layout-sw768dp\tap_hold_delay.xml:10: error: Error: No resource found that matches the given name (at 'style' with value '@style/TapAndHoldDelayButtonTab').
I added framework-res.apk and twframework-res.apk. and it still doesn't work :crying: Need Help!

Categories

Resources