So I've been working on trying to port Nougat to hammerhead; reverted the commits that removed 8974 from the tree, removed the default wallpaper. The build gets mostly complete when it starts erroring while building the apps with errors like:
Code:
...
packages/apps/Contacts/res/values/styles.xml:60: error: Error: No resource found that ma
tches the given name: attr 'android:homeAsUpIndicator'.
packages/apps/Contacts/res/values/styles.xml:68: error: Error: No resource found that ma
tches the given name: attr 'android:icon'.
packages/apps/Contacts/res/values/styles.xml:69: error: Error: No resource found that ma
tches the given name: attr 'android:listViewStyle'.
packages/apps/Contacts/res/values/styles.xml:66: error: Error: No resource found that ma
tches the given name: attr 'android:textColorPrimary'.
...
I usually do a lot of kernel work, and don't do ANY Android app dev, but I don't really understand what the hell it's complaining about. I can remove the Android.mk files for these apps, but then I won't have them in my build. So far, Bluetooth, Bluetooth_midi, Basic [Screensaver], and Calendar are affected.
What is the underlying cause of this issue?
Also, first post here, so sorry for probably wrong forum.
wrong tag synced
for future travelers, I had synced to the wrong tag. I had synced to android-7.0.0_r14 not android-7.0.0_r21.
Related
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!!!!
Someone Please Help me, I Can't Compile my Settings.apk
Here the Log :
--------------------------------------------------------------------------
|21/12/2012 -- 6:16:27,00|
--------------------------------------------------------------------------
'chcp' is not recognized as an internal or external command,
operable program or batch file.
'mode' is not recognized as an internal or external command,
operable program or batch file.
java version "1.7.0_06"
Java(TM) SE Runtime Environment (build 1.7.0_06-b24)
Java HotSpot(TM) Client VM (build 23.2-b09, mixed mode, sharing)
'mode' is not recognized as an internal or external command,
operable program or batch file.
'mode' is not recognized as an internal or external command,
operable program or batch file.
I: Copying raw classes.dex file...
I: Loading resource table...
W: Skipping "android" package group
I: Loaded.
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: C:\Users\user\apktool\framework\1-api16.apk
I: Loaded.
I: Decoding file-resources...
I: Decoding values*/* XMLs...
I: Done.
I: Copying assets and libs...
'mode' is not recognized as an internal or external command,
operable program or batch file.
I: Copying classes.dex file...
I: Checking whether resources has changed...
I: Building resources...
E:\Apk-Changer_alpha13\out\Settings\res\layout\lockscreen_targets.xml:7: error: No resource identifier found for attribute 'rightChevronDrawable' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout\lockscreen_targets.xml:7: error: No resource identifier found for attribute 'hitRadius' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout\lockscreen_targets.xml:7: error: No resource identifier found for attribute 'verticalOffset' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout\lockscreen_targets.xml:7: error: No resource identifier found for attribute 'horizontalOffset' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'rightChevronDrawable' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'hitRadius' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'verticalOffset' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'horizontalOffset' in package 'android'
Exception in thread "main" brut.androlib.AndrolibException: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\user\AppData\Local\Temp\APKTOOL5694611997528935709.tmp, -I, C:\Users\user\apktool\framework\1-api16.apk, -S, E:\Apk-Changer_alpha13\out\Settings\res, -M, E:\Apk-Changer_alpha13\out\Settings\AndroidManifest.xml]
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:251)
at brut.androlib.Androlib.buildResourcesFull(Androlib.java:324)
at brut.androlib.Androlib.buildResources(Androlib.java:269)
at brut.androlib.Androlib.build(Androlib.java:192)
at brut.androlib.Androlib.build(Androlib.java:174)
at brut.apktool.Main.cmdBuild(Main.java:185)
at brut.apktool.Main.main(Main.java:70)
Caused by: brut.common.BrutException: could not exec command: [aapt, p, -F, C:\Users\user\AppData\Local\Temp\APKTOOL5694611997528935709.tmp, -I, C:\Users\user\apktool\framework\1-api16.apk, -S, E:\Apk-Changer_alpha13\out\Settings\res, -M, E:\Apk-Changer_alpha13\out\Settings\AndroidManifest.xml]
at brut.util.OS.exec(OS.java:83)
at brut.androlib.res.AndrolibResources.aaptPackage(AndrolibResources.java:249)
... 6 more
'mode' is not recognized as an internal or external command,
operable program or batch file.
'mode' is not recognized as an internal or external command,
operable program or batch file.
Click to expand...
Click to collapse
I use Apkchanger to compile my Settings.apk and I using CM9 ROM.
Please Help me!
Ok lets break this down so you can "in future" know how to debug what your doing.
"DCTDR" (Design, Coding, Testing, Debugging, Repeat) :laugh:
Ok now i have had my fun.
Code:
'chcp' is not recognized as an internal or external command,
operable program or batch file.
'mode' is not recognized as an internal or external command,
operable program or batch file.
This means that you computer can not find these files, either the library is not installed or your not linking to it.
java version "1.7.0_06"
Java(TM) SE Runtime Environment (build 1.7.0_06-b24)
Java HotSpot(TM) Client VM (build 23.2-b09, mixed mode, sharing)
Click to expand...
Click to collapse
Your JAVA is outdated, with newer version of java there are bug fixes and more library implemented/added. if the program you using is built on a newer version of java you may have issues building applications. also make sure you get the updated JDK <-development kit not the EE version
Head over HERE to get the update
Code:
E:\Apk-Changer_alpha13\out\Settings\res\layout\lockscreen _targets.xml:7: error: No resource identifier found for attribute 'rightChevronDrawable' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout\lockscreen _targets.xml:7: error: No resource identifier found for attribute 'hitRadius' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout\lockscreen _targets.xml:7: error: No resource identifier found for attribute 'verticalOffset' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout\lockscreen _targets.xml:7: error: No resource identifier found for attribute 'horizontalOffset' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'rightChevronDrawable' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'hitRadius' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'verticalOffset' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'horizontalOffset' in package 'android'
solve the previous issues and this may resolve it's self. from the quick read i had it's telling you that you have an attribute but it does not call/use anything, making it unused code.
which i believe starts from this Warning
Code:
W: Skipping "android" package group
on a further read it skipped it, so it cant find it when trying to recompile
what helped me out was to make a backup of the framework file the app comes with and use the framework-res.apk from your rom
Code:
I: Loading resource table from file: C:\Users\user\apktool\framework\1-api16.apk
replace with your framework-res.apk
Although i di use FJ APKTools 2.4.
think of a resource identifier as a name of the pizza your want to buy.
Now the attribute is the pizza
so in English it say's, hey i want that pizza, but the shop says, sorry we dont have it
narcarsiss said:
Ok lets break this down so you can "in future" know how to debug what your doing.
"DCTDR" (Design, Coding, Testing, Debugging, Repeat) :laugh:
Ok now i have had my fun.
Code:
'chcp' is not recognized as an internal or external command,
operable program or batch file.
'mode' is not recognized as an internal or external command,
operable program or batch file.
This means that you computer can not find these files, either the library is not installed or your not linking to it.
Your JAVA is outdated, with newer version of java there are bug fixes and more library implemented/added. if the program you using is built on a newer version of java you may have issues building applications. also make sure you get the updated JDK <-development kit not the EE version
Head over HERE to get the update
Code:
E:\Apk-Changer_alpha13\out\Settings\res\layout\lockscreen _targets.xml:7: error: No resource identifier found for attribute 'rightChevronDrawable' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout\lockscreen _targets.xml:7: error: No resource identifier found for attribute 'hitRadius' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout\lockscreen _targets.xml:7: error: No resource identifier found for attribute 'verticalOffset' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout\lockscreen _targets.xml:7: error: No resource identifier found for attribute 'horizontalOffset' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'rightChevronDrawable' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'hitRadius' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'verticalOffset' in package 'android'
E:\Apk-Changer_alpha13\out\Settings\res\layout-land\lockscreen_targets.xml:8: error: No resource identifier found for attribute 'horizontalOffset' in package 'android'
solve the previous issues and this may resolve it's self. from the quick read i had it's telling you that you have an attribute but it does not call/use anything, making it unused code.
which i believe starts from this Warning
Code:
W: Skipping "android" package group
on a further read it skipped it, so it cant find it when trying to recompile
what helped me out was to make a backup of the framework file the app comes with and use the framework-res.apk from your rom
Code:
I: Loading resource table from file: C:\Users\user\apktool\framework\1-api16.apk
replace with your framework-res.apk
Although i di use FJ APKTools 2.4.
think of a resource identifier as a name of the pizza your want to buy.
Now the attribute is the pizza
so in English it say's, hey i want that pizza, but the shop says, sorry we dont have it
Click to expand...
Click to collapse
Thank you! I Try it!
Q&A for [TOOL][CROSSPLATFORM] jBART - BurgerZ Android ROM Tools
Some developers prefer that questions remain separate from their main development thread to help keep things organized. Placing your question within this thread will increase its chances of being answered by a member of the community or by the developer.
Before posting, please use the forum search and read through the discussion thread for [TOOL][CROSSPLATFORM] jBART - BurgerZ Android ROM Tools. If you can't find an answer, post it here, being sure to give as much information as possible (firmware version, steps to reproduce, logcat if available) so that you can get help.
Thanks for understanding and for helping to keep XDA neat and tidy!
Download link not working
By I came to know about this from another threat and I want to use it translate some special apPS of less is to English but unfortunately downloading link not working and also how to apps duthch language to English by it
:angel:
jBart - MIUI v6 - MiNote Pro
Hello,
I am trying to decompile and compile rom for miui note pro Version: V6.6.4.0.LXHCNCF (MIUI6)downloaded from miui site with jBart.
But even when I just decompile and compile apks, so few of them end up with error. First I had problem with resource folders which contains mcc9999 in their names, after I removed those folders I was able to compile without errors more apks. I have tried to search for a solution of those problems but I couldnt find it.
(I use the newest version from github)
But according to log I am still unable to compile those apks:
Code:
.....
[24.07.2015 23:45:21] I: ******** All files compiled ********
[24.07.2015 23:45:21] I: Errors found: 9
[24.07.2015 23:45:21] I: --> FileExplorer.apk
[24.07.2015 23:45:21] I: --> miui.apk
[24.07.2015 23:45:21] I: --> miuisystem.apk
[24.07.2015 23:45:21] I: --> Stk.apk
[24.07.2015 23:45:21] I: --> InCallUI.apk
[24.07.2015 23:45:21] I: --> Music.apk
[24.07.2015 23:45:21] I: --> Settings.apk
[24.07.2015 23:45:21] I: --> framework-ext-res.apk
[24.07.2015 23:45:21] I: --> framework-res.apk
.....
For example for miui.apk it says "no resource found"
Code:
.....
[24.07.2015 23:43:45] W: C:\Users\Tadeáš\Desktop\ROM\jBART-master\miui_MINotePro_V6.6.4.0.LXHCNCF_d2da9d1ea3_5.0.zip.bzprj\appDecompiled\system__app__miui\miui.apk\res\color\spinner_list_text_light.xml:4: error: Error: No resource found that matches the given name (at 'color' with value '@color/spinner_list_text_color_disabled_light').
[24.07.2015 23:43:45] W:
[24.07.2015 23:43:45] W: C:\Users\Tadeáš\Desktop\ROM\jBART-master\miui_MINotePro_V6.6.4.0.LXHCNCF_d2da9d1ea3_5.0.zip.bzprj\appDecompiled\system__app__miui\miui.apk\res\color\spinner_list_text_light.xml:5: error: Error: No resource found that matches the given name (at 'color' with value '@color/spinner_list_text_color_pressed_light').
[24.07.2015 23:43:45] W:
[24.07.2015 23:43:45] W: C:\Users\Tadeáš\Desktop\ROM\jBART-master\miui_MINotePro_V6.6.4.0.LXHCNCF_d2da9d1ea3_5.0.zip.bzprj\appDecompiled\system__app__miui\miui.apk\res\color\spinner_list_text_light.xml:6: error: Error: No resource found that matches the given name (at 'color' with value '@color/spinner_list_text_color_normal_light').
[24.07.2015 23:43:45] W:
[24.07.2015 23:43:45] W: C:\Users\Tadeáš\Desktop\ROM\jBART-master\miui_MINotePro_V6.6.4.0.LXHCNCF_d2da9d1ea3_5.0.zip.bzprj\appDecompiled\system__app__miui\miui.apk\res\color\tertiary_text_dark.xml:4: error: Error: No resource found that matches the given name (at 'color' with value '@color/dim_foreground_dark_disabled').
[24.07.2015 23:43:45] W:
[24.07.2015 23:43:45] W: C:\Users\Tadeáš\Desktop\ROM\jBART-master\miui_MINotePro_V6.6.4.0.LXHCNCF_d2da9d1ea3_5.0.zip.bzprj\appDecompiled\system__app__miui\miui.apk\res\color\tertiary_text_dark.xml:5: error: Error: No resource found that matches the given name (at 'color' with value '@color/pressed_text_dark').
[24.07.2015 23:43:45] W:
[24.07.2015 23:43:45] W: C:\Users\Tadeáš\Desktop\ROM\jBART-master\miui_MINotePro_V6.6.4.0.LXHCNCF_d2da9d1ea3_5.0.zip.bzprj\appDecompiled\system__app__miui\miui.apk\res\color\tertiary_text_dark.xml:6: error: Error: No resource found that matches the given name (at 'color' with value '@color/selected_text_dark').
[24.07.2015 23:43:45] W:
[24.07.2015 23:43:45] W: C:\Users\Tadeáš\Desktop\ROM\jBART-master\miui_MINotePro_V6.6.4.0.LXHCNCF_d2da9d1ea3_5.0.zip.bzprj\appDecompiled\system__app__miui\miui.apk\res\color\tertiary_text_dark.xml:7: error: Error: No resource found that matches the given name (at 'color' with value '@color/activated_text_dark').
.....
Someone solved this problem? Or any workaround how could I translate this rom? Before jBart I tried everything manualy but I had similar problems and could not overcome them.
Thanks for help! And sorry for my english
Seidak
Which miui version? Did u use latest jBart?
Version as I mentioned is ROM V6.6.4.0.LXHCNCF (MIUI6) and yes I use the latest version of jBart from GitHub.
How to decompile Miui V7 with godzila ui?
Flyme OS problem with jBART
jBart is really cool tool ;]
It would be great if you will make it possible to translate Flyme OS with it also (now I do it with single app decompilation ;p)
Hm, I have some small problem.
When I decompile and compile some files in Flyme OS 5.5.11.24 (without even making any changes) than the Overflow menu and dialogs doesn't work (app on phone stops running).
Does anyone have similar problem ?
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!
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