[MOD]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 "SecContacts.apk" (use my
repackedApk_Manager if you have any issue with your apktool).
Edit "Contacts.apk\smali\com\android\contacts\activ itie s\DialtactsActivity.smali", search for "onBackPressed" method and make these changes :
Code:
:cond_4
iget-object v0, p0, Lcom/android/contacts/activities/DialtactsActivity;->mCallLogFragment:Lcom/sec/android/app/dialertab/calllog/CallLogFragment;
iget-object v1, p0, Lcom/android/contacts/activities/DialtactsActivity;->mCallLogFragment:Lcom/sec/android/app/dialertab/calllog/CallLogFragment;
const/4 v1, 0x1
++iput v1, v0, Lcom/sec/android/app/dialertab/calllog/CallLogFragment;->mWhichButton:I
--iput v0, v0, Lcom/sec/android/app/dialertab/calllog/CallLogFragment;->mWhichButton:I
goto :goto_0
:cond_5
invoke-virtual {p0}, Lcom/android/contacts/activities/DialtactsActivity;->isTaskRoot()Z
move-result v0
Then edit "Contacts.apk\smali\com\sec\android\app\dialer tab\ calllog\CallLogFragment.smali":
Code:
.method public constructor <init>()V
.locals 3
const/4 v0, 0x1
const/4 v2, 0x0
const/4 v1, 0x0
invoke-direct {p0}, Lcom/sec/android/app/dialertab/widget/DialtactsListFragment;-><init>()V
iput-boolean v0, p0, Lcom/sec/android/app/dialertab/calllog/CallLogFragment;->mSweepActionEnabled:Z
iput-object v1, p0, Lcom/sec/android/app/dialertab/calllog/CallLogFragment;->unlockReceiver:Lcom/sec/android/app/dialertab/calllog/CallLogFragment$UnlockReceiver;
iput-boolean v2, p0, Lcom/sec/android/app/dialertab/calllog/CallLogFragment;->mResetMissedCheck:Z
++iput v0, p0, Lcom/sec/android/app/dialertab/calllog/CallLogFragment;->mWhichButton:I
--iput v2, p0, Lcom/sec/android/app/dialertab/calllog/CallLogFragment;->mWhichButton:I
iput v0, p0, Lcom/sec/android/app/dialertab/calllog/CallLogFragment;->CONTEXTMENU_CALL:I
That's all, compile and enjoy.
If you get a different Registers number, you just need to check at the beginning of each method what register has the value "0x1" and put it on "mWhichButton".
GT-I9300_WanamLite.ZSALED.Hide.SMS.From.Call.Logs.zip
Uploaded patches to be used on deodexed Roms.