Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
wanam
Old
(Last edited by wanam; 30th January 2013 at 02:07 PM.)
#1  
wanam's Avatar
Recognized Developer - OP
Thanks Meter 13882
Posts: 3,499
Join Date: Jan 2011
Location: Temara
Cool [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.
WanamLite Roms :
Adam Kernel :
App : Language Enabler
Blog : WanamLite.com
Follow : GooglePlus, FaceBook - Twitter

The Following 17 Users Say Thank You to wanam For This Useful Post: [ Click to Expand ]
 
Coreym
Old
#2  
Coreym's Avatar
Recognized Contributor
Thanks Meter 1236
Posts: 4,939
Join Date: Nov 2010
Location: Boulder, Colorado
I'm sure a lot of folks will like this mod. Looks a little too tricky for me but maybe I'll take a stab at it in the future!

sent from my Galaxy S III
 
..New to XDA-Developers? Read This

my current devices
-OPPO X909- Stock rooted
-Google Nexus 7- Self-built nightlies
-Google Nexus 4- bone stock


GoogleNow/voice search Tricks and Tips
Need Ideas for your NFC enabled device?

 
::indie::
Old
#3  
::indie::'s Avatar
Recognized Developer
Thanks Meter 27812
Posts: 4,646
Join Date: May 2010
Great work, thank you wanam.
::indie's:: Omega Roms Series
Omega Files Pro app - Build and Customize your rom the way you like it!!
Samsung Galaxy S4 Samsung based I9505 - Samsung based I9500
Samsung Galaxy Note II N7100: Samsung based JB 4.1.2
Samsung Galaxy S III I9300: Samsung based: JB 4.1.2 - Omega AOKP - Android 4.2.2
Samsung Galaxy S II I9100 Android 4.1.2 - Android 4.2.2 AOKP
Samsung Galaxy Note 10.1: Samsung based JB 4.1.2
HTC HD2 + Tmous HD2 - Omega v30 - WM6.5.x Build 29022
:: User Friendly Developer ::

If you like my work please consider a donation!
Please use Omegas Threads for Support and Suggestions and don't sent me pm's!

 
Coreym
Old
#4  
Coreym's Avatar
Recognized Contributor
Thanks Meter 1236
Posts: 4,939
Join Date: Nov 2010
Location: Boulder, Colorado
..or maybe the great devs in our community can incorporate this mod into their ROM(s) ^^^

sent from my Galaxy S III
 
..New to XDA-Developers? Read This

my current devices
-OPPO X909- Stock rooted
-Google Nexus 7- Self-built nightlies
-Google Nexus 4- bone stock


GoogleNow/voice search Tricks and Tips
Need Ideas for your NFC enabled device?

 
wanam
Old
#5  
wanam's Avatar
Recognized Developer - OP
Thanks Meter 13882
Posts: 3,499
Join Date: Jan 2011
Location: Temara
Quote:
Originally Posted by Coreym View Post
..or maybe the great devs in our community can incorporate this mod into their ROM(s) ^^^

sent from my Galaxy S III
It's already included on my WanamLite V1.0.
WanamLite Roms :
Adam Kernel :
App : Language Enabler
Blog : WanamLite.com
Follow : GooglePlus, FaceBook - Twitter

The Following 2 Users Say Thank You to wanam For This Useful Post: [ Click to Expand ]
 
Coreym
Old
#6  
Coreym's Avatar
Recognized Contributor
Thanks Meter 1236
Posts: 4,939
Join Date: Nov 2010
Location: Boulder, Colorado
Quote:
Originally Posted by wanam View Post
It's already included on my WanamLite V1.0.
Awesome.. I'm still stock rooted. First time in a long time I've stayed stock. I'm enjoying it for the moment but will eventually start flashing and am def gonna be giving this a run. I think I'm gonna enjoy stock ROMs with this phone!

sent from my GummyROM'd Prime
 
..New to XDA-Developers? Read This

my current devices
-OPPO X909- Stock rooted
-Google Nexus 7- Self-built nightlies
-Google Nexus 4- bone stock


GoogleNow/voice search Tricks and Tips
Need Ideas for your NFC enabled device?

 
Dovern
Old
#7  
Member
Thanks Meter 2
Posts: 41
Join Date: Dec 2010
May i ask how to install this mod?
 
g4rvd4
Old
#8  
g4rvd4's Avatar
Senior Member
Thanks Meter 31
Posts: 302
Join Date: Jul 2010
Location: Mumbai
Quote:
Originally Posted by Dovern View Post
May i ask how to install this mod?
Yes, is there a simpler way to do this (flashing zip with CWM maybe)?
 
jerricson
Old
#9  
Member
Thanks Meter 4
Posts: 30
Join Date: Sep 2011
Default Thanks

Very useful mod. Stock roms should have this as an option.
 
CalInTheZone
Old
#10  
Senior Member
Thanks Meter 62
Posts: 253
Join Date: Dec 2008
Location: Copenhagen
Quote:
Originally Posted by jerricson View Post
Very useful mod. Stock roms should have this as an option.
They have... On log screen press menu, press View by, then All calls... Or am I missing something???
Samsung Galaxy S IV (GT-I9505), Samsung Galaxy S III 4G (GT-I9305) and Samsung Galaxy Note 10.1 3G (GT-N8000)

P.S. Don't reply this to say thanks. Just use the button. Thanks!

The Following User Says Thank You to CalInTheZone For This Useful Post: [ Click to Expand ]
 
Post Reply+
Tags
call, galaxy s3, hide sms, log, sgs3
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...