recompile issue on oxygen-framework-res.apk for oneplus x #1091

Closed
pradeepsmehra opened this Issue Nov 27, 2015 · 6 comments

Projects

None yet

3 participants

@pradeepsmehra

recompiling generating errors in android 5.1.1 custom framework.
mostly error is from style.xml in material theme.

Error Log:
http://pastebin.com/KPbExsRE

Frameworks:
https://drive.google.com/file/d/0B4wqBB_yOlMwNGh0YzZoWlFmSEk/view?usp=sharing

@iBotPeaches
Owner

Different error for me.

ibotpeaches@tombstone:~/Downloads/Apktool/Bug1091$ apktool b oxygen-framework-res
I: Using Apktool 2.0.3-e7c1bc-SNAPSHOT
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/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').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:5: error: Error: No resource found that matches the given name (at 'id' with value '@id/color_0').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:6: error: Error: No resource found that matches the given name (at 'id' with value '@id/check_0').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:6: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_color_picker_check_mark').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:8: error: Error: No resource found that matches the given name (at 'id' with value '@id/color_1').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:9: error: Error: No resource found that matches the given name (at 'id' with value '@id/check_1').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:9: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_color_picker_check_mark').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:11: error: Error: No resource found that matches the given name (at 'id' with value '@id/color_2').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:12: error: Error: No resource found that matches the given name (at 'id' with value '@id/check_2').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:12: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_color_picker_check_mark').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:14: error: Error: No resource found that matches the given name (at 'id' with value '@id/color_3').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:15: error: Error: No resource found that matches the given name (at 'id' with value '@id/check_3').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:15: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_color_picker_check_mark').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:18: error: Error: No resource found that matches the given name (at 'id' with value '@id/colors_row_2').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:18: error: Error: No resource found that matches the given name (at 'layout_below' with value '@id/colors_row_1').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:19: error: Error: No resource found that matches the given name (at 'id' with value '@id/color_4').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:20: error: Error: No resource found that matches the given name (at 'id' with value '@id/check_4').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:20: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_color_picker_check_mark').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:22: error: Error: No resource found that matches the given name (at 'id' with value '@id/color_5').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:23: error: Error: No resource found that matches the given name (at 'id' with value '@id/check_5').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:23: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_color_picker_check_mark').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:25: error: Error: No resource found that matches the given name (at 'id' with value '@id/color_6').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:26: error: Error: No resource found that matches the given name (at 'id' with value '@id/check_6').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:26: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_color_picker_check_mark').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:28: error: Error: No resource found that matches the given name (at 'id' with value '@id/color_7').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:29: error: Error: No resource found that matches the given name (at 'id' with value '@id/check_7').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:29: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_color_picker_check_mark').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:32: error: Error: No resource found that matches the given name (at 'id' with value '@id/message').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:32: error: Error: No resource found that matches the given name (at 'text' with value '@string/color_picker_message_default').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/layout/preference_dialog_colorpicker.xml:32: error: Error: No resource found that matches the given name (at 'layout_below' with value '@id/colors_row_2').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/drawable/ic_lock_power_screenshot.xml:2: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_lock_screenshot_alpha').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/drawable/ic_lock_reboot_bootloader.xml:2: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_lock_reboot_bootloader_alpha').

/home/ibotpeaches/Downloads/Apktool/Bug1091/oxygen-framework-res/res/drawable/ic_lock_reboot_recovery.xml:2: error: Error: No resource found that matches the given name (at 'src' with value '@drawable/ic_lock_reboot_recovery_alpha').

Are you positive you installed framework-res.apk from your frameworks folder when decoded oxygen-framework-res?

@pradeepsmehra

Yes, that is the same error when i install framework by regular method (apktool if xxxx.apk)
then i rename framwork-res-apk into 1.apk and oxygen-framwork-res.apk into 2.apk and place them into C:/user/xxx/apktool/framwork

then error log is short, only 4 xml value missed in resource ...

@iBotPeaches
Owner

Strange method of using frameworks there. You can just install them via apktool if framework-res.apk and apktool if oxygen-framework-res.apk, which tags and moves them into the apktool framework directory.

If you do that method, you might have same error as me.

@pradeepsmehra

yes error is exactly same as yours, when i used normal method to install framwork (apktool if framwork-res.apk)

i changed the error log accordingly.

http://pastebin.com/KPbExsRE

@osamaalboss

How to find sources
On Dec 1, 2015 2:39 PM, "pradeepsmehra" notifications@github.com wrote:

yes error is exactly same as yours, when i used normal method to install
framwork (apktool if framwork-res.apk)


Reply to this email directly or view it on GitHub
#1091 (comment)
.

@iBotPeaches iBotPeaches self-assigned this Jan 15, 2017
@iBotPeaches iBotPeaches added this to the 2.2.2 - Bug Fixes milestone Jan 15, 2017
@iBotPeaches
Owner
➜  Bug1091 apktool if framework-res.apk -t 1091
I: Framework installed to: /home/ibotpeaches/.local/share/apktool/framework/1-1091.apk
➜  Bug1091 apktool d oxygen-framework-res.apk -t 1091 -f
I: Using Apktool 2.2.2-b60db0-SNAPSHOT on oxygen-framework-res.apk
I: Loading resource table...
I: Decoding AndroidManifest.xml with resources...
I: Loading resource table from file: /home/ibotpeaches/.local/share/apktool/framework/1-1091.apk
I: Regular manifest package...
I: Decoding file-resources...
I: Decoding values */* XMLs...
I: Copying assets and libs...
I: Copying unknown files...
I: Copying original files...
➜  Bug1091 apktool b oxygen-framework-res
I: Using Apktool 2.2.2-b60db0-SNAPSHOT
W: Could not find sources
I: Checking whether resources has changed...
I: Building resources...
I: Building apk file...
I: Copying unknown files/dir...
➜  Bug1091 

Fixed with changes from iBotPeaches/platform_frameworks_base#2

Will be in 2.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment