[Galaxy S II Android Development] Ticklefish:
I had a look but I can't find an invoke for that method anywhere inside the file. There are plenty of other invokes for methods with the same name in the whole smali folder, but I can't see anything for this particular one.

FC...hmmm....:crying:

Essentially, this is what I'm trying to do.. My navigation bar XML looks like this:

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.NavigationBarView android:background="@drawable/system_bar_background" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="[URL]http://schemas.android.com/apk/res/android[/URL]" xmlns:systemui="[URL]http://schemas.android.com/apk/res-auto[/URL]">
<LinearLayout android:id= [MENTION=228980]iD[/MENTION]/rot0" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="horizontal" android:id= [MENTION=228980]iD[/MENTION]/nav_buttons" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animateLayoutChanges="true">
<View android:visibility="invisible" android:layout_width="@dimen/navigation_side_padding" android:layout_height="fill_parent" android:layout_weight="0.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id= [MENTION=228980]iD[/MENTION]/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" android:layout_marginStart="@dimen/navigation_key_outer_margin" systemui:keyCode="4" />
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id= [MENTION=228980]iD[/MENTION]/home" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" />
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id= [MENTION=228980]iD[/MENTION]/recent_apps" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" android:layout_marginEnd="@dimen/navigation_key_outer_margin" />
<FrameLayout android:layout_width="@dimen/navigation_side_padding" android:layout_height="fill_parent" android:layout_weight="0.0">
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="end" android:id= [MENTION=228980]iD[/MENTION]/menu" android:visibility="invisible" android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:scaleType="centerInside" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" />
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="end" android:id= [MENTION=228980]iD[/MENTION]/ime_switcher" android:visibility="invisible" android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_ime_switcher_default" android:scaleType="centerInside" android:contentDescription="@string/accessibility_ime_switch_button" />
</FrameLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id= [MENTION=228980]iD[/MENTION]/lights_out" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip">
<ImageView android:id= [MENTION=228980]iD[/MENTION]/back_lights_out" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:layout_weight="0.0" android:layout_marginStart="@dimen/navigation_key_outer_margin_lights_out" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<ImageView android:id= [MENTION=228980]iD[/MENTION]/home_lights_out" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_large" android:scaleType="center" android:layout_weight="0.0" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<ImageView android:id= [MENTION=228980]iD[/MENTION]/recent_apps_lights_out" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:layout_weight="0.0" android:layout_marginEnd="@dimen/navigation_key_outer_margin_lights_out" />
</LinearLayout>
<com.android.systemui.statusbar.policy.DeadZone android:layout_gravity="top" android:id= [MENTION=228980]iD[/MENTION]/deadzone" android:layout_width="0.0dip" android:layout_height="0.0dip" systemui:minSize="@dimen/navigation_bar_deadzone_size" systemui:maxSize="@dimen/navigation_bar_deadzone_size_max" systemui:holdTime="@integer/navigation_bar_deadzone_hold" systemui:decayTime="@integer/navigation_bar_deadzone_decay" systemui:orientation="horizontal" />
</LinearLayout>
<FrameLayout android:id= [MENTION=228980]iD[/MENTION]/rot90" android:paddingTop="0.0dip" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
<LinearLayout android:orientation="vertical" android:id= [MENTION=228980]iD[/MENTION]/nav_buttons" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animateLayoutChanges="true">
<FrameLayout android:layout_width="fill_parent" android:layout_height="@dimen/navigation_side_padding" android:layout_weight="0.0">
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="top" android:id= [MENTION=228980]iD[/MENTION]/ime_switcher" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/navigation_extra_key_width" android:src="@drawable/ic_ime_switcher_default" android:scaleType="centerInside" android:contentDescription="@string/accessibility_ime_switch_button" />
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="top" android:id= [MENTION=228980]iD[/MENTION]/menu" android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="40.0dip" android:src="@drawable/ic_sysbar_menu_land" android:scaleType="centerInside" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" />
</FrameLayout>
<com.android.systemui.statusbar.policy.KeyButtonView android:id= [MENTION=228980]iD[/MENTION]/recent_apps" android:layout_width="fill_parent" android:layout_height="@dimen/navigation_key_width" android:layout_marginTop="@dimen/navigation_key_outer_margin" android:src="@drawable/ic_sysbar_recent_land" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id= [MENTION=228980]iD[/MENTION]/home" android:layout_width="fill_parent" android:layout_height="@dimen/navigation_key_width" android:src="@drawable/ic_sysbar_home_land" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id= [MENTION=228980]iD[/MENTION]/back" android:layout_width="fill_parent" android:layout_height="@dimen/navigation_key_width" android:layout_marginBottom="@dimen/navigation_key_outer_margin" android:src="@drawable/ic_sysbar_back_land" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" systemui:keyCode="4" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="@dimen/navigation_side_padding" android:layout_weight="0.0" />
</LinearLayout>
<LinearLayout android:orientation="vertical" android:id= [MENTION=228980]iD[/MENTION]/lights_out" android:visibility="gone" android:layout_width="fill_parent" android:layout_height="fill_parent">
<ImageView android:id= [MENTION=228980]iD[/MENTION]/recent_apps_lights_out" android:layout_width="fill_parent" android:layout_height="@dimen/navigation_key_width" android:layout_marginTop="@dimen/navigation_key_outer_margin_lights_out" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:layout_weight="0.0" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<ImageView android:id= [MENTION=228980]iD[/MENTION]/home_lights_out" android:layout_width="fill_parent" android:layout_height="@dimen/navigation_key_width" android:src="@drawable/ic_sysbar_lights_out_dot_large" android:scaleType="center" android:layout_weight="0.0" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<ImageView android:id= [MENTION=228980]iD[/MENTION]/back_lights_out" android:layout_width="fill_parent" android:layout_height="@dimen/navigation_key_width" android:layout_marginBottom="@dimen/navigation_key_outer_margin_lights_out" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:layout_weight="0.0" />
</LinearLayout>
<com.android.systemui.statusbar.policy.DeadZone android:layout_gravity="top" android:id= [MENTION=228980]iD[/MENTION]/deadzone" android:layout_width="fill_parent" android:layout_height="fill_parent" systemui:minSize="@dimen/navigation_bar_deadzone_size" systemui:maxSize="@dimen/navigation_bar_deadzone_size_max" systemui:holdTime="@integer/navigation_bar_deadzone_hold" systemui:decayTime="@integer/navigation_bar_deadzone_decay" systemui:orientation="vertical" />
</FrameLayout>
</com.android.systemui.statusbar.phone.NavigationBarView>

It's split into two Layouts. One has the [MENTION=228980]iD[/MENTION] of "rot0" and describes the layout when the phone's in portrait. The other has the [MENTION=228980]iD[/MENTION] of "rot90" and is for a landscape layout.

What I'm trying to do is create two separate navigation_bar.xml files. One in "layout-port" and one in "layout-land". For that to work, I need to get rid of those two id's. Otherwise Android insists on only using the XML file in layout-port.

I tried commenting out some of the lines in my NavigationBarView.smali like this:

.method public onFinishInflate()V
.locals 6
const/4 v5, 0x1
const/4 v4, 0x0
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mRotatedViews:[Landroid/view/View;
iget-object v1, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mRotatedViews:[Landroid/view/View;
const/4 v2, 0x2
# const v3, 0x7f100137
# invoke-virtual {p0, v3}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->findViewById(I)Landroid/view/View;
# move-result-object v3
# aput-object v3, v1, v2
# aput-object v3, v0, v4
# iget-object v0, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mRotatedViews:[Landroid/view/View;
# const v1, 0x7f100143
# invoke-virtual {p0, v1}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->findViewById(I)Landroid/view/View;
# move-result-object v1
# aput-object v1, v0, v5
# iget-object v0, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mRotatedViews:[Landroid/view/View;
const/4 v1, 0x3
iget-object v2, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mRotatedViews:[Landroid/view/View;
aget-object v2, v2, v5
aput-object v2, v0, v1
iget-object v0, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mRotatedViews:[Landroid/view/View;
aget-object v0, v0, v4
iput-object v0, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mCurrentView:Landroid/view/View;
invoke-virtual {p0}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->getImeSwitchButton()Landroid/view/View;
move-result-object v0
iget-object v1, p0, Lcom/android/systemui/statusbar/phone/NavigationBarView;->mImeSwitcherClickListener:Landroid/view/View$OnClickListener;
invoke-virtual {v0, v1}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V
invoke-direct {p0}, Lcom/android/systemui/statusbar/phone/NavigationBarView;->updateRTLOrder()V
return-void
.end method

I also deleted the id lines in my two navigation_bar.xml files:

<?xml version="1.0" encoding="utf-8"?>
<com.android.systemui.statusbar.phone.NavigationBarView android:background="@drawable/system_bar_background" android:layout_width="fill_parent" android:layout_height="fill_parent"
xmlns:android="[URL]http://schemas.android.com/apk/res/android[/URL]" xmlns:systemui="[URL]http://schemas.android.com/apk/res-auto[/URL]">
<LinearLayout android:orientation="horizontal" android:id= [MENTION=228980]iD[/MENTION]/nav_buttons" android:clipChildren="false" android:clipToPadding="false" android:layout_width="fill_parent" android:layout_height="fill_parent" android:animateLayoutChanges="true">
<View android:visibility="invisible" android:layout_width="@dimen/navigation_side_padding" android:layout_height="fill_parent" android:layout_weight="0.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id= [MENTION=228980]iD[/MENTION]/back" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_back" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_back" android:layout_marginStart="@dimen/navigation_key_outer_margin" systemui:keyCode="4" />
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id= [MENTION=228980]iD[/MENTION]/home" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_home" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_home" systemui:keyCode="3" systemui:keyRepeat="false" />
<View android:visibility="invisible" android:layout_width="0.0dip" android:layout_height="fill_parent" android:layout_weight="1.0" />
<com.android.systemui.statusbar.policy.KeyButtonView android:id= [MENTION=228980]iD[/MENTION]/recent_apps" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_recent" android:scaleType="center" android:layout_weight="0.0" android:contentDescription="@string/accessibility_recent" android:layout_marginEnd="@dimen/navigation_key_outer_margin" />
<FrameLayout android:layout_width="@dimen/navigation_side_padding" android:layout_height="fill_parent" android:layout_weight="0.0">
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="end" android:id= [MENTION=228980]iD[/MENTION]/menu" android:visibility="invisible" android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_menu" android:scaleType="centerInside" android:contentDescription="@string/accessibility_menu" systemui:keyCode="82" />
<com.android.systemui.statusbar.policy.KeyButtonView android:layout_gravity="end" android:id= [MENTION=228980]iD[/MENTION]/ime_switcher" android:visibility="invisible" android:layout_width="@dimen/navigation_extra_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_ime_switcher_default" android:scaleType="centerInside" android:contentDescription="@string/accessibility_ime_switch_button" />
</FrameLayout>
</LinearLayout>
<LinearLayout android:orientation="horizontal" android:id= [MENTION=228980]iD[/MENTION]/lights_out" android:visibility="gone" android:layout_width="0.0dip" android:layout_height="0.0dip">
<ImageView android:id= [MENTION=228980]iD[/MENTION]/back_lights_out" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:layout_weight="0.0" android:layout_marginStart="@dimen/navigation_key_outer_margin_lights_out" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<ImageView android:id= [MENTION=228980]iD[/MENTION]/home_lights_out" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_large" android:scaleType="center" android:layout_weight="0.0" />
<View android:visibility="invisible" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1.0" />
<ImageView android:id= [MENTION=228980]iD[/MENTION]/recent_apps_lights_out" android:layout_width="@dimen/navigation_key_width" android:layout_height="fill_parent" android:src="@drawable/ic_sysbar_lights_out_dot_small" android:scaleType="center" android:layout_weight="0.0" android:layout_marginEnd="@dimen/navigation_key_outer_margin_lights_out" />
</LinearLayout>
<com.android.systemui.statusbar.policy.DeadZone android:layout_gravity="top" android:id= [MENTION=228980]iD[/MENTION]/deadzone" android:layout_width="0.0dip" android:layout_height="0.0dip" systemui:minSize="@dimen/navigation_bar_deadzone_size" systemui:maxSize="@dimen/navigation_bar_deadzone_size_max" systemui:holdTime="@integer/navigation_bar_deadzone_hold" systemui:decayTime="@integer/navigation_bar_deadzone_decay" systemui:orientation="horizontal" />
</com.android.systemui.statusbar.phone.NavigationBarView>

This gave me a FC.

Any thoughts from anybody? I can't work it out and it's slowly driving me crazy...