PATCH ROM MIUI {Help Needed with Ubuntu (m a newbie on Ubuntu)} - Optimus One, P500, V General

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!!!!

Related

[Q] Can't Compile Settings.apk

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] 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!

Need Help to recompile custom-framwork-res.apk

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

issues building Nougat for hammerhead

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.

Categories

Resources