Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,784,382 Members 46,442 Now Online
XDA Developers Android and Mobile Development Forum

[tutorial]**Fix for recompiling framework-res with apktool** 4/15/2012

Tip us?
 
fernando sor
Old
#121  
fernando sor's Avatar
Recognized Themer - OP
Thanks Meter 5,414
Posts: 9,428
Join Date: Sep 2010
Location: north of the wall
Quote:
Originally Posted by runandhide05 View Post
Fyi its all done and there are in depth instructions on that thread on the third post if you r curious.
and thanks again for your help bud

Sent from my Galaxy Nexus using Tapatalk 2
I checked it out. Clever mod

Sent from my ADR6425LVW using xda premium
Bad seed Customs Founder



 
runandhide05
Old
#122  
runandhide05's Avatar
Recognized Contributor
Thanks Meter 2,398
Posts: 2,744
Join Date: Apr 2011

 
DONATE TO ME
Quote:
Originally Posted by fernando sor View Post
I checked it out. Clever mod

Sent from my ADR6425LVW using xda premium
Thank you

Sent from my Galaxy Nexus using Tapatalk 2
 
Tiffany84
Old
#123  
Tiffany84's Avatar
Recognized Themer
Thanks Meter 2,879
Posts: 5,737
Join Date: Jul 2010

 
DONATE TO ME
Quote:
Originally Posted by he_stheone64 View Post
Hi Fernando - I accidentally stumbled about this thread (I have a One S, no X...). I never had issues with compiling framework, since I used a modded apktool version from day 1 (I used that already on Galaxy Nexus), which compiles plurals just fine.

Initially I also had some issue with com.htc.resources, but could solve these fairly quick. Since I`m sure One X com.htc. is fairly similar to One S, maybe my fix can help you guys too.

This was the original error log

PHP Code:
C:\apk_manager_5.0\other\..\projects\com.htc.resources.apk\res\values\layouts.xml:3errorFound tag layout where item is expected
C
:\apk_manager_5.0\other\..\projects\com.htc.resources.apk\res\values\public.xml:1975error: Public entry identifier 0x2050209 entry index is larger than available symbols (index 521total symbols 521).
C:\apk_manager_5.0\other\..\projects\com.htc.resources.apk\res\values\public.xml:1975error: Public symbol dimen/zero_dummy_dimen declared here is not defined
This is how I solved it:

Step 1: Fixing layout tags in layouts.xml

I replaced all tags with:

<item type="layout" at the front and </item> at the end

PHP Code:
<resources>
    <
item type="layout" name="htc_list_item_imageicon_text">@layout/zzzz_htc_list_item_imageicon_text</item>
    <
item type="layout" name="pin_keyboard">@layout/zzzz_pin_keyboard</item>
    <
item type="layout" name="zero_dummy_layout">@layout/alert_dialog</item>
    <
item type="layout" name="htc_list_item_2text_2stamp">@layout/zzzz_htc_list_item_2text_2stamp</item>
    <
item type="layout" name="htc_list_item_2text_bright">@layout/zzzz_htc_list_item_2text_bright</item>
    <
item type="layout" name="htc_list_item_image_2text_image_bright">@layout/zzzz_htc_list_item_image_2text_image_bright</item>
    <
item type="layout" name="htc_list_item_imageicon_2text_2stamp">@layout/zzzz_htc_list_item_imageicon_2text_2stamp</item>
    <
item type="layout" name="htc_list_item_separator">@layout/zzzz_htc_list_item_separator</item>
    <
item type="layout" name="htc_list_item_dlna_1">false</item>
</
resources
Step 2: Fixing public.xml error

Here I simply deleted the entry, since apktool is rebuilding that just fine

Hope that helps you guys here also with your issues.

OMG!! Thank you SOOO much for posting this. I've been pulling my hair out trying to get resources to compile for the AT&T One X and after I did what u suggested it compiled without error. Can't thank you enough.
 
*$M3RT$*
Old
#124  
*$M3RT$*'s Avatar
Senior Member
Thanks Meter 35
Posts: 473
Join Date: Mar 2010
Location: Frankfurt
I edit the framework-res from insertcoin v6.4.5.

I edited \framework\res\values\bools.xml. Becouse i want to disable the 360 roating and change
Quote:
<bool name="config_allowAllRotations">true</bool>
to

Quote:
<bool name="config_allowAllRotations">false</bool>
I have edited anims.xml, layout.xml, raws.xml, plurals.xml, plurals.xml as in the description of fernando sor. But when I recompiling i get this.




(| HTC One | Silver | InsertCoin |)
(| Nexus 7 (2013) | WiFi | PACman |)
 
rayford85
Old
#125  
rayford85's Avatar
Recognized Themer
Thanks Meter 5,182
Posts: 4,252
Join Date: May 2011

 
DONATE TO ME
Quote:
Originally Posted by *$M3RT$* View Post
I edit the framework-res from insertcoin v6.4.5.

I edited \framework\res\values\bools.xml. Becouse i want to disable the 360 roating and change


to



I have edited anims.xml, layout.xml, raws.xml, plurals.xml, plurals.xml as in the description of fernando sor. But when I recompiling i get this.

Just delete that public Id. The apk will build the proper public id.

Sent from my HTC One X using xda premium
 
fernando sor
Old
#126  
fernando sor's Avatar
Recognized Themer - OP
Thanks Meter 5,414
Posts: 9,428
Join Date: Sep 2010
Location: north of the wall
Quote:
Originally Posted by rayford85 View Post
Just delete that public Id. The apk will build the proper public id.

Sent from my HTC One X using xda premium
ok cool. also you missed pin_keyboard in res/values/layout.xml
Bad seed Customs Founder



 
*$M3RT$*
Old
#127  
*$M3RT$*'s Avatar
Senior Member
Thanks Meter 35
Posts: 473
Join Date: Mar 2010
Location: Frankfurt
Quote:
Originally Posted by rayford85 View Post
Just delete that public Id. The apk will build the proper public id.

Sent from my HTC One X using xda premium
where is the id?

Quote:
Originally Posted by fernando sor View Post
ok cool. also you missed pin_keyboard in res/values/layout.xml
how i insert the pin_keyboard in res/values/layout.xml?



(| HTC One | Silver | InsertCoin |)
(| Nexus 7 (2013) | WiFi | PACman |)
 
rayford85
Old
#128  
rayford85's Avatar
Recognized Themer
Thanks Meter 5,182
Posts: 4,252
Join Date: May 2011

 
DONATE TO ME
Quote:
Originally Posted by fernando sor View Post
ok cool. also you missed pin_keyboard in res/values/layout.xml
Lol, hard to see it on the xda app

Sent from my HTC One X using xda premium
 
fernando sor
Old
#129  
fernando sor's Avatar
Recognized Themer - OP
Thanks Meter 5,414
Posts: 9,428
Join Date: Sep 2010
Location: north of the wall
Quote:
Originally Posted by *$M3RT$* View Post
where is the id?



how i insert the pin_keyboard in res/values/layout.xml?
No I meant he had missed that when he did the fix

Sent from my EVO using xda premium
Bad seed Customs Founder



 
*$M3RT$*
Old
#130  
*$M3RT$*'s Avatar
Senior Member
Thanks Meter 35
Posts: 473
Join Date: Mar 2010
Location: Frankfurt
How i fix his now? What I must do for recompiling without problems?



(| HTC One | Silver | InsertCoin |)
(| Nexus 7 (2013) | WiFi | PACman |)

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes