[HTC One S] tbonanno231:
Sense 4.1 com.htc.resources.apk

Great thread! Thanks for everyone's contribution.

A colleague and I are seeing an outstanding issue with com.htc.resources.apk on Sense 4.1. Technically, we are working on the Evo 4G LTE, but there probably isn't much difference between that and the rest of the One line, so it should be applicable.

Using the latest apktool 1.5.0, you still get the zero_dummy_dimen problem when trying to recompile. As described in the OP, you remove that value from public.xml, and BAM, it works. You think you are in the clear. Wrong.

After installing the recompiled com.htc.resources.apk and testing, we've found that there are bugs as a result of this change. There are two places in particular which we've found so far, but there may be more.

When selecting the menu button in the stock browser, you get a force close and the following logcat message:

E/EmbeddedLogger( (432): : App crashed! Process: com.android.browser

E/EmbeddedLogger( (432): : App crashed! Package: com.android.browser v402421054 (4.2.2218112430.421054.421054)

E/EmbeddedLogger( (432): : Application Label: Internet

E/AndroidRuntime( (8219): : FATAL EXCEPTION: main

E/AndroidRuntime( (8219): : android.content.res.Resources$NotFoundException: Resource ID #0x2050209

E/AndroidRuntime( (8219): :	at android.content.res.Resources.getValue(Resources.java:1104)

E/AndroidRuntime( (8219): :	at android.content.res.Resources.getDimension(Resources.java:550)

E/AndroidRuntime( (8219): :	at com.htc.widget.ExpandableListPopupBubbleWindow.<init>(ExpandableListPopupBubbleWindow.java:276)

E/AndroidRuntime( (8219): :	at com.htc.widget.ExpandableListPopupBubbleWindow.<init>(ExpandableListPopupBubbleWindow.java:217)

E/AndroidRuntime( (8219): :	at com.android.browser.HtcNavigationBarPhone.showMenu(HtcNavigationBarPhone.java)

E/AndroidRuntime( (8219): :	at com.android.browser.PhoneUi.onMenuKey(PhoneUi.java)

E/AndroidRuntime( (8219): :	at com.android.browser.HtcNavigationBarPhone.onClick(HtcNavigationBarPhone.java)

E/AndroidRuntime( (8219): :	at android.view.View.performClick(View.java:3538)

E/AndroidRuntime( (8219): :	at android.view.View$PerformClick.run(View.java:14319)

E/AndroidRuntime( (8219): :	at android.os.Handler.handleCallback(Handler.java:608)

E/AndroidRuntime( (8219): :	at android.os.Handler.dispatchMessage(Handler.java:92)

E/AndroidRuntime( (8219): :	at android.os.Looper.loop(Looper.java:156)

E/AndroidRuntime( (8219): :	at android.app.ActivityThread.main(ActivityThread.java:5060)

E/AndroidRuntime( (8219): :	at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime( (8219): :	at java.lang.reflect.Method.invoke(Method.java:511)

E/AndroidRuntime( (8219): :	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)

E/AndroidRuntime( (8219): :	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)

E/AndroidRuntime( (8219): :	at dalvik.system.NativeStart.main(Native Method)

Notice the highlighted text, which is a reference to that zero_dummy_dimen resource. Also, when you tap the phonebook selector in contacts, you get a similar problem. FC and logcat as follows:

E/EmbeddedLogger( (432): : App crashed! Process: com.android.htcdialer

E/EmbeddedLogger( (432): : App crashed! Package: com.android.htcdialer v400441985 (4.0.2218273040.441985.427590)

E/EmbeddedLogger( (432): : App crashed! Package: com.android.htccontacts v400423867 (4.0.2217343269.423867.399238)

E/EmbeddedLogger( (432): : Application Label: <MULTIPLE_PACKAGE>

E/AndroidRuntime( (1957): : FATAL EXCEPTION: main

E/AndroidRuntime( (1957): : android.content.res.Resources$NotFoundException: Resource ID #0x2050209

E/AndroidRuntime( (1957): :	at android.content.res.Resources.getValue(Resources.java:1104)

E/AndroidRuntime( (1957): :	at android.content.res.Resources.getDimension(Resources.java:550)

E/AndroidRuntime( (1957): :	at com.htc.widget.ExpandableListPopupBubbleWindow.<init>(ExpandableListPopupBubbleWindow.java:276)

E/AndroidRuntime( (1957): :	at com.htc.widget.ExpandableListPopupBubbleWindow.<init>(ExpandableListPopupBubbleWindow.java:217)

E/AndroidRuntime( (1957): :	at com.htc.widget.ActionBarDropDown.showInternal(ActionBarDropDown.java:748)

E/AndroidRuntime( (1957): :	at com.htc.widget.ActionBarDropDown$2.onAnimationEnd(ActionBarDropDown.java:367)

E/AndroidRuntime( (1957): :	at android.animation.ValueAnimator.endAnimation(ValueAnimator.java:1040)

E/AndroidRuntime( (1957): :	at android.animation.ValueAnimator.access$900(ValueAnimator.java:49)

E/AndroidRuntime( (1957): :	at android.animation.ValueAnimator$AnimationHandler.handleMessage(ValueAnimator.java:675)

E/AndroidRuntime( (1957): :	at android.os.Handler.dispatchMessage(Handler.java:99)

E/AndroidRuntime( (1957): :	at android.os.Looper.loop(Looper.java:156)

E/AndroidRuntime( (1957): :	at android.app.ActivityThread.main(ActivityThread.java:5060)

E/AndroidRuntime( (1957): :	at java.lang.reflect.Method.invokeNative(Native Method)

E/AndroidRuntime( (1957): :	at java.lang.reflect.Method.invoke(Method.java:511)

E/AndroidRuntime( (1957): :	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)

E/AndroidRuntime( (1957): :	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)

E/AndroidRuntime( (1957): :	at dalvik.system.NativeStart.main(Native Method)

Has anyone solved this? I noticed people mentioning that you can completely delete public.xml and it will be recreated. I haven't tried this yet, but might it be a fix for this problem?

I will eventually test this theory and report back, but, if anyone already has a solution, please let us know.

Thanks in advance for your help.