[Galaxy S II Themes and Apps] shoman94:
Not sure if you can help me out here but I performed the incall record mod. This it for my ROM based on uckk6 for the i777 sgs2.

All the code matches your code posted. Except for the 3 public ID's.

I matched the 2 you quoted with my public ID.

The 3rd one is that yours was 0x7f0d01b7 and mine was 0x7f0d01b8.

The was the only change I had to do. Otherwise all your code matched well unless I'm missing something. I also changed your :cond_leo to :cond_sho.

Everything compiled correctly but I don't have any difference what so ever in how my phone.apk is functioning.

Add call is still there and I have no options for anywhere for call recording.

Here is the DIFF of my phone.apk/InCallButtonsView.smali

856c856
< iget-object v6, p0, Lcom/android/phone/InCallButtonsView;->mRecordButton:Landroid/widget/Button;
---
> iget-object v6, p0, Lcom/android/phone/InCallButtonsView;->mAddButton:Landroid/widget/Button;
900,924d899
< iget-object v6, p0, Lcom/android/phone/InCallButtonsView;->mInCallScreen:Lcom/android/phone/InCallScreen;
<
< sget-object v6, Lcom/android/phone/InCallScreen;->mPhoneVoiceRecorder:Lcom/android/phone/PhoneVoiceRecorder;
<
< invoke-virtual {v6}, Lcom/android/phone/PhoneVoiceRecorder;->isVoiceRecording()Z
<
< move-result v6
<
< if-nez v6, :cond_sho
<
< .line 274
< iget-object v6, p0, Lcom/android/phone/InCallButtonsView;->mRecordButton:Landroid/widget/Button;
<
< const v7, 0x7f0d037f
<
< invoke-virtual {v6, v7}, Landroid/widget/Button;->setText(I)V
<
< .line 275
< iget-object v6, p0, Lcom/android/phone/InCallButtonsView;->mRecordButton:Landroid/widget/Button;
<
< iget-object v7, p0, Lcom/android/phone/InCallButtonsView;->mStartRecordIcon:Landroid/graphics/drawable/Drawable;
<
< invoke-virtual {v6, v11, v7, v11, v11}, Landroid/widget/Button;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
<
< :goto_gc
938c913
< if-eqz v6, :cond_fig
---
> if-eqz v6, :cond_f
956,980d930
< iget-object v6, p0, Lcom/android/phone/InCallButtonsView;->inCallControlState:Lcom/android/phone/InCallControlState;
<
< iget-boolean v6, v6, Lcom/android/phone/InCallControlState;->bluetoothIndicatorOn:Z
<
< if-eqz v6, :cond_fra
<
< iget-object v6, p0, Lcom/android/phone/InCallButtonsView;->mInCallScreen:Lcom/android/phone/InCallScreen;
<
< sget-object v6, Lcom/android/phone/InCallScreen;->mPhoneVoiceRecorder:Lcom/android/phone/PhoneVoiceRecorder;
<
< invoke-virtual {v6}, Lcom/android/phone/PhoneVoiceRecorder;->isVoiceRecording()Z
<
< move-result v6
<
< if-eqz v6, :cond_fra
<
< .line 301
< iget-object v6, p0, Lcom/android/phone/InCallButtonsView;->mInCallScreen:Lcom/android/phone/InCallScreen;
<
< sget-object v6, Lcom/android/phone/InCallScreen;->mPhoneVoiceRecorder:Lcom/android/phone/PhoneVoiceRecorder;
<
< invoke-virtual {v6}, Lcom/android/phone/PhoneVoiceRecorder;->stopRecord()V
<
< .line 303
< :cond_fra
985,996d934
< iget-object v7, p0, Lcom/android/phone/InCallButtonsView;->inCallControlState:Lcom/android/phone/InCallControlState;
<
< iget-boolean v7, v7, Lcom/android/phone/InCallControlState;->bluetoothEnabled:Z
<
< if-eqz v7, :cond_10
<
< iget-object v7, p0, Lcom/android/phone/InCallButtonsView;->mInCallScreen:Lcom/android/phone/InCallScreen;
<
< sget-object v7, Lcom/android/phone/InCallScreen;->mPhoneVoiceRecorder:Lcom/android/phone/PhoneVoiceRecorder;
<
< invoke-virtual {v7}, Lcom/android/phone/PhoneVoiceRecorder;->isVoiceRecording()Z
<
1372,1412d1309
< iget-object v6, p0, Lcom/android/phone/InCallButtonsView;->mRecordButton:Landroid/widget/Button;
<
< iget-object v7, p0, Lcom/android/phone/InCallButtonsView;->mInCallScreen:Lcom/android/phone/InCallScreen;
<
< invoke-virtual {v7}, Lcom/android/phone/InCallScreen;->getUpdatedInCallControlState()Lcom/android/phone/InCallControlState;
<
< move-result-object v7
<
< iget-boolean v7, v7, Lcom/android/phone/InCallControlState;->bluetoothIndicatorOn:Z
<
< if-nez v7, :cond_f
<
< move v7, v10
<
< :goto_c
< invoke-virtual {v6, v7}, Landroid/widget/Button;->setEnabled(Z)V
<
< .line 260
< iget-object v6, p0, Lcom/android/phone/InCallButtonsView;->mInCallScreen:Lcom/android/phone/InCallScreen;
<
< sget-boolean v6, Lcom/android/phone/InCallScreen;->liveshare_option:Z
<
< if-eqz v6, :cond_ci
<
< iget-object v6, p0, Lcom/android/phone/InCallButtonsView;->mInCallScreen:Lcom/android/phone/InCallScreen;
<
< invoke-virtual {v6}, Lcom/android/phone/InCallScreen;->isDialerOpened()Z
<
< move-result v6
<
< if-nez v6, :cond_ci
<
< .line 262
< iget-object v6, p0, Lcom/android/phone/InCallButtonsView;->mHDVideoButton:Landroid/widget/Button;
<
< invoke-virtual {v6, v9}, Landroid/widget/Button;->setVisibility(I)V
<
< .line 263
< iget-object v6, p0, Lcom/android/phone/InCallButtonsView;->mHDVideoButton:Landroid/widget/Button;
<
< invoke-virtual {v6, v11}, Landroid/widget/Button;->setEnabled(Z)V
1417,1443d1313
< move v7, v9
<
< goto :goto_c
<
< :cond_ci
< iget-object v6, p0, Lcom/android/phone/InCallButtonsView;->mHDVideoButton:Landroid/widget/Button;
<
< invoke-virtual {v6, v8}, Landroid/widget/Button;->setVisibility(I)V
<
< goto/16 :goto_3
<
< :cond_sho
< iget-object v6, p0, Lcom/android/phone/InCallButtonsView;->mRecordButton:Landroid/widget/Button;
<
< const v7, 0x7f0d0380
<
< invoke-virtual {v6, v7}, Landroid/widget/Button;->setText(I)V
<
<	iget-object v6, p0, Lcom/android/phone/InCallButtonsView;->mRecordButton:Landroid/widget/Button;
<
< iget-object v7, p0, Lcom/android/phone/InCallButtonsView;->mStopRecordIcon:Landroid/graphics/drawable/Drawable;
<
< invoke-virtual {v6, v11, v7, v11, v11}, Landroid/widget/Button;->setCompoundDrawablesWithIntrinsicBounds(Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;Landroid/graphics/drawable/Drawable;)V
<
< goto/16 :goto_gc
<
< :cond_fig

Thanks I hope hope for some of your adivce.

Jason