[MOD][ICS]How to Set Logs type to "View by All Call Logs" - Hide SMS from Call Logs

I made this mod to fix Homam's mod, Homam tried in his mod to prevent sms from being logged, this mod worked well for GB Roms, but is not compatible with Stock Email app on ICS Roms.

So i followed karl999999's idea, and i made a more clean and stable changes.
This mod will :
  • Not remove any log
  • Set the Default Call logs type to "View All Call logs" (no SMS)
  • Let you view/edit all other logs types
You have to decompile "Contacts.apk" (use my Apk_Manager if you have any issue with your apktool).


Edit "Contacts.apk\smali\com\android\contacts\activitie s\DialtactsActivity.smali" (Red changes) :
Code:
.method public onBackPressed()V
.locals 3

const/4 v2, 0x1

iget-object v0, p0, Lcom/android/contacts/activities/DialtactsActivity;->mDialpadFragment:Lcom/sec/android/app/dialertab/dialpad/DialpadFragment;

if-eqz v0, :cond_0
Then edit "Contacts.apk\smali\com\sec\android\app\dialertab\ calllog\CallLogFragment.smali" (Red changes) :

Code:
.method public constructor ()V
.locals 2

const/4 v1, 0x1

invoke-direct {p0}, Lcom/sec/android/app/dialertab/widget/DialtactsListFragment;->()V

const/4 v0, -0x1

iput v0, p0, Lcom/sec/android/app/dialertab/calllog/CallLogFragment;->mCallType:I

iput-boolean v1, p0, Lcom/sec/android/app/dialertab/calllog/CallLogFragment;->mSweepActionEnabled:Z

const/4 v0, 0x0

iput v1, p0, Lcom/sec/android/app/dialertab/calllog/CallLogFragment;->mWhichButton:I
That's all, compile and enjoy.

Uploaded patches to be used on stock deodexed Roms.

0 comments:

Post a Comment

Open Panel

Blogroll

counter