Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

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

OP fernando sor

31st May 2012, 02:00 AM   |  #121  
fernando sor's Avatar
OP Recognized Themer
Flag north of the wall
Thanks Meter: 5,481
 
9,464 posts
Join Date:Joined: Sep 2010
More
Quote:
Originally Posted by runandhide05

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
31st May 2012, 02:09 AM   |  #122  
runandhide05's Avatar
Recognized Contributor
Thanks Meter: 2,470
 
2,826 posts
Join Date:Joined: Apr 2011
Donate to Me
More
Quote:
Originally Posted by fernando sor

I checked it out. Clever mod

Sent from my ADR6425LVW using xda premium

Thank you

Sent from my Galaxy Nexus using Tapatalk 2
1st June 2012, 10:51 AM   |  #123  
Tiffany84's Avatar
Recognized Themer
Thanks Meter: 2,976
 
5,838 posts
Join Date:Joined: Jul 2010
Donate to Me
Quote:
Originally Posted by he_stheone64

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.
4th June 2012, 08:22 PM   |  #124  
*$M3RT$*'s Avatar
Senior Member
Flag Greenhouse (Amsterdam)
Thanks Meter: 37
 
505 posts
Join Date:Joined: Mar 2010
More
Exclamation
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.

4th June 2012, 09:29 PM   |  #125  
rayford85's Avatar
Recognized Themer
Thanks Meter: 5,226
 
4,260 posts
Join Date:Joined: May 2011
Donate to Me
Quote:
Originally Posted by *$M3RT$*

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
4th June 2012, 09:35 PM   |  #126  
fernando sor's Avatar
OP Recognized Themer
Flag north of the wall
Thanks Meter: 5,481
 
9,464 posts
Join Date:Joined: Sep 2010
More
Quote:
Originally Posted by rayford85

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
4th June 2012, 10:00 PM   |  #127  
*$M3RT$*'s Avatar
Senior Member
Flag Greenhouse (Amsterdam)
Thanks Meter: 37
 
505 posts
Join Date:Joined: Mar 2010
More
Quote:
Originally Posted by rayford85

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

ok cool. also you missed pin_keyboard in res/values/layout.xml

how i insert the pin_keyboard in res/values/layout.xml?
4th June 2012, 10:25 PM   |  #128  
rayford85's Avatar
Recognized Themer
Thanks Meter: 5,226
 
4,260 posts
Join Date:Joined: May 2011
Donate to Me
Quote:
Originally Posted by fernando sor

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
4th June 2012, 10:33 PM   |  #129  
fernando sor's Avatar
OP Recognized Themer
Flag north of the wall
Thanks Meter: 5,481
 
9,464 posts
Join Date:Joined: Sep 2010
More
Quote:
Originally Posted by *$M3RT$*

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
4th June 2012, 10:37 PM   |  #130  
*$M3RT$*'s Avatar
Senior Member
Flag Greenhouse (Amsterdam)
Thanks Meter: 37
 
505 posts
Join Date:Joined: Mar 2010
More
How i fix his now? What I must do for recompiling without problems?

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes