[Galaxy S III Android Development] MattBooth:
If it's the Calllog$Calls (or something like that) smali file then you're in the right file :D

---------- Post added at 07:46 PM ---------- Previous post was at 07:35 PM ----------

To save you the hassle of messing around:

.class public Landroid/provider/CallLog$Calls;
.super Ljava/lang/Object;
.source "CallLog.java"

# interfaces
.implements Landroid/provider/BaseColumns;

# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Landroid/provider/CallLog;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x9
name = "Calls"
.end annotation

# static fields
.field public static final ALLOW_VOICEMAILS_PARAM_KEY:Ljava/lang/String; = "allow_voicemails"

.field public static final CACHED_FORMATTED_NUMBER:Ljava/lang/String; = "formatted_number"

.field public static final CACHED_LOOKUP_URI:Ljava/lang/String; = "lookup_uri"

.field public static final CACHED_MATCHED_NUMBER:Ljava/lang/String; = "matched_number"

.field public static final CACHED_NAME:Ljava/lang/String; = "name"

.field public static final CACHED_NORMALIZED_NUMBER:Ljava/lang/String; = "normalized_number"

.field public static final CACHED_NUMBER_LABEL:Ljava/lang/String; = "numberlabel"

.field public static final CACHED_NUMBER_TYPE:Ljava/lang/String; = "numbertype"

.field public static final CACHED_PHOTO_ID:Ljava/lang/String; = "photo_id"

.field public static final CONTENT_FILTER_URI:Landroid/net/Uri; = null

.field public static final CONTENT_ITEM_TYPE:Ljava/lang/String; = "vnd.android.cursor.item/calls"

.field public static final CONTENT_TYPE:Ljava/lang/String; = "vnd.android.cursor.dir/calls"

.field public static final CONTENT_URI:Landroid/net/Uri; = null

.field public static final CONTENT_URI_WITH_VOICEMAIL:Landroid/net/Uri; = null

.field public static final COUNTRY_ISO:Ljava/lang/String; = "countryiso"

.field public static final DATE:Ljava/lang/String; = "date"

.field public static final DEFAULT_SORT_ORDER:Ljava/lang/String; = "date DESC"

.field public static final DURATION:Ljava/lang/String; = "duration"

.field public static final GEOCODED_LOCATION:Ljava/lang/String; = "geocoded_location"

.field public static final INCOMING_TYPE:I = 0x1

.field public static final IS_READ:Ljava/lang/String; = "is_read"

.field public static final LIMIT_PARAM_KEY:Ljava/lang/String; = "limit"

.field public static final MISSED_TYPE:I = 0x3

.field public static final NEW:Ljava/lang/String; = "new"

.field public static final NUMBER:Ljava/lang/String; = "number"

.field public static final OFFSET_PARAM_KEY:Ljava/lang/String; = "offset"

.field public static final OUTGOING_TYPE:I = 0x2

.field public static final SIM_ID:Ljava/lang/String; = "sim_id"

.field public static final TYPE:Ljava/lang/String; = "type"

.field public static final VOICEMAIL_TYPE:I = 0x4

.field public static final VOICEMAIL_URI:Ljava/lang/String; = "voicemail_uri"

# direct methods
.method static constructor <clinit>()V
.locals 3

const-string v0, "content://call_log/calls"

invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

move-result-object v0

sput-object v0, Landroid/provider/CallLog$Calls;->CONTENT_URI:Landroid/net/Uri;

const-string v0, "content://call_log/calls/filter"

invoke-static {v0}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri;

move-result-object v0

sput-object v0, Landroid/provider/CallLog$Calls;->CONTENT_FILTER_URI:Landroid/net/Uri;

sget-object v0, Landroid/provider/CallLog$Calls;->CONTENT_URI:Landroid/net/Uri;

invoke-virtual {v0}, Landroid/net/Uri;->buildUpon()Landroid/net/Uri$Builder;

move-result-object v0

const-string v1, "allow_voicemails"

const-string/jumbo v2, "true"

invoke-virtual {v0, v1, v2}, Landroid/net/Uri$Builder;->appendQueryParameter(Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri$Builder;

move-result-object v0

invoke-virtual {v0}, Landroid/net/Uri$Builder;->build()Landroid/net/Uri;

move-result-object v0

sput-object v0, Landroid/provider/CallLog$Calls;->CONTENT_URI_WITH_VOICEMAIL:Landroid/net/Uri;

return-void
.end method

.method public constructor <init>()V
.locals 0

invoke-direct {p0}, Ljava/lang/Object;-><init>()V

return-void
.end method

.method public static addCall(Lcom/android/internal/telephony/CallerInfo;Landroid/content/Context;Ljava/lang/String;IIJI)Landroid/net/Uri;
.locals 15

invoke-virtual/range {p1 .. p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v1

sget v2, Lcom/android/internal/telephony/PhoneConstants;->PRESENTATION_RESTRICTED:I

move/from16 v0, p3

if-ne v0, v2, :cond_5

const-string p2, "-2"

if-eqz p0, :cond_0

const-string v2, ""

iput-object v2, p0, Lcom/android/internal/telephony/CallerInfo;->name:Ljava/lang/String;

:cond_0
:goto_0
new-instance v12, Landroid/content/ContentValues;

const/4 v2, 0x5

invoke-direct {v12, v2}, Landroid/content/ContentValues;-><init>(I)V

const-string v2, "number"

move-object/from16 v0, p2

invoke-virtual {v12, v2, v0}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

const-string/jumbo v2, "type"

invoke-static/range {p4 .. p4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v3

invoke-virtual {v12, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

const-string v2, "date"

invoke-static/range {p5 .. p6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

move-result-object v3

invoke-virtual {v12, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V

const-string v2, "duration"

move/from16 v0, p7

int-to-long v3, v0

invoke-static {v3, v4}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

move-result-object v3

invoke-virtual {v12, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Long;)V

const-string v2, "new"

const/4 v3, 0x1

invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v3

invoke-virtual {v12, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

const/4 v2, 0x3

move/from16 v0, p4

if-ne v0, v2, :cond_1

const-string v2, "is_read"

const/4 v3, 0x0

invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v3

invoke-virtual {v12, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

:cond_1
if-eqz p0, :cond_2

const-string v2, "name"

iget-object v3, p0, Lcom/android/internal/telephony/CallerInfo;->name:Ljava/lang/String;

invoke-virtual {v12, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

const-string v2, "numbertype"

iget v3, p0, Lcom/android/internal/telephony/CallerInfo;->numberType:I

invoke-static {v3}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

move-result-object v3

invoke-virtual {v12, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/Integer;)V

const-string v2, "numberlabel"

iget-object v3, p0, Lcom/android/internal/telephony/CallerInfo;->numberLabel:Ljava/lang/String;

invoke-virtual {v12, v2, v3}, Landroid/content/ContentValues;->put(Ljava/lang/String;Ljava/lang/String;)V

:cond_2
if-eqz p0, :cond_4

iget-wide v2, p0, Lcom/android/internal/telephony/CallerInfo;->person_id:J

const-wide/16 v4, 0x0

cmp-long v2, v2, v4

if-lez v2, :cond_4

iget-object v2, p0, Lcom/android/internal/telephony/CallerInfo;->normalizedNumber:Ljava/lang/String;

if-eqz v2, :cond_8

iget-object v9, p0, Lcom/android/internal/telephony/CallerInfo;->normalizedNumber:Ljava/lang/String;

sget-object v2, Landroid/provider/ContactsContract$CommonDataKinds$Phone;->CONTENT_URI:Landroid/net/Uri;

const/4 v3, 0x1

new-array v3, v3, [Ljava/lang/String;

const/4 v4, 0x0

const-string v5, "_id"

aput-object v5, v3, v4

const-string v4, "contact_id =? AND data4 =?"

const/4 v5, 0x2

new-array v5, v5, [Ljava/lang/String;

const/4 v6, 0x0

iget-wide v13, p0, Lcom/android/internal/telephony/CallerInfo;->person_id:J

invoke-static {v13, v14}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

move-result-object v13

aput-object v13, v5, v6

const/4 v6, 0x1

aput-object v9, v5, v6

const/4 v6, 0x0

invoke-virtual/range {v1 .. v6}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

move-result-object v7

:goto_1
if-eqz v7, :cond_4

:try_start_0
invoke-interface {v7}, Landroid/database/Cursor;->getCount()I

move-result v2

if-lez v2, :cond_3

invoke-interface {v7}, Landroid/database/Cursor;->moveToFirst()Z

move-result v2

if-eqz v2, :cond_3

sget-object v2, Landroid/provider/ContactsContract$DataUsageFeedback;->FEEDBACK_URI:Landroid/net/Uri;

invoke-virtual {v2}, Landroid/net/Uri;->buildUpon()Landroid/net/Uri$Builder;

move-result-object v2

const/4 v3, 0x0

invoke-interface {v7, v3}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

move-result-object v3

invoke-virtual {v2, v3}, Landroid/net/Uri$Builder;->appendPath(Ljava/lang/String;)Landroid/net/Uri$Builder;

move-result-object v2

const-string/jumbo v3, "type"

const-string v4, "call"

invoke-virtual {v2, v3, v4}, Landroid/net/Uri$Builder;->appendQueryParameter(Ljava/lang/String;Ljava/lang/String;)Landroid/net/Uri$Builder;

move-result-object v2

invoke-virtual {v2}, Landroid/net/Uri$Builder;->build()Landroid/net/Uri;

move-result-object v8

new-instance v2, Landroid/content/ContentValues;

invoke-direct {v2}, Landroid/content/ContentValues;-><init>()V

const/4 v3, 0x0

const/4 v4, 0x0

invoke-virtual {v1, v8, v2, v3, v4}, Landroid/content/ContentResolver;->update(Landroid/net/Uri;Landroid/content/ContentValues;Ljava/lang/String;[Ljava/lang/String;)I
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0

:cond_3
invoke-interface {v7}, Landroid/database/Cursor;->close()V

:cond_4
sget-object v2, Landroid/provider/CallLog$Calls;->CONTENT_URI:Landroid/net/Uri;

invoke-virtual {v1, v2, v12}, Landroid/content/ContentResolver;->insert(Landroid/net/Uri;Landroid/content/ContentValues;)Landroid/net/Uri;

move-result-object v11

invoke-static/range {p1 .. p1}, Landroid/provider/CallLog$Calls;->removeExpiredEntries(Landroid/content/Context;)V

return-object v11

:cond_5
sget v2, Lcom/android/internal/telephony/PhoneConstants;->PRESENTATION_PAYPHONE:I

move/from16 v0, p3

if-ne v0, v2, :cond_6

const-string p2, "-3"

if-eqz p0, :cond_0

const-string v2, ""

iput-object v2, p0, Lcom/android/internal/telephony/CallerInfo;->name:Ljava/lang/String;

goto/16 :goto_0

:cond_6
invoke-static/range {p2 .. p2}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

move-result v2

if-nez v2, :cond_7

sget v2, Lcom/android/internal/telephony/PhoneConstants;->PRESENTATION_UNKNOWN:I

move/from16 v0, p3

if-ne v0, v2, :cond_0

:cond_7
const-string p2, "-1"

if-eqz p0, :cond_0

const-string v2, ""

iput-object v2, p0, Lcom/android/internal/telephony/CallerInfo;->name:Ljava/lang/String;

goto/16 :goto_0

:cond_8
iget-object v2, p0, Lcom/android/internal/telephony/CallerInfo;->phoneNumber:Ljava/lang/String;

if-eqz v2, :cond_9

iget-object v10, p0, Lcom/android/internal/telephony/CallerInfo;->phoneNumber:Ljava/lang/String;

:goto_2
sget-object v2, Landroid/provider/ContactsContract$CommonDataKinds$Callable;->CONTENT_FILTER_URI:Landroid/net/Uri;

invoke-static {v10}, Landroid/net/Uri;->encode(Ljava/lang/String;)Ljava/lang/String;

move-result-object v3

invoke-static {v2, v3}, Landroid/net/Uri;->withAppendedPath(Landroid/net/Uri;Ljava/lang/String;)Landroid/net/Uri;

move-result-object v2

const/4 v3, 0x1

new-array v3, v3, [Ljava/lang/String;

const/4 v4, 0x0

const-string v5, "_id"

aput-object v5, v3, v4

const-string v4, "contact_id =?"

const/4 v5, 0x1

new-array v5, v5, [Ljava/lang/String;

const/4 v6, 0x0

iget-wide v13, p0, Lcom/android/internal/telephony/CallerInfo;->person_id:J

invoke-static {v13, v14}, Ljava/lang/String;->valueOf(J)Ljava/lang/String;

move-result-object v13

aput-object v13, v5, v6

const/4 v6, 0x0

invoke-virtual/range {v1 .. v6}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

move-result-object v7

goto/16 :goto_1

:cond_9
move-object/from16 v10, p2

goto :goto_2

:catchall_0
move-exception v2

invoke-interface {v7}, Landroid/database/Cursor;->close()V

throw v2
.end method

.method public static getLastOutgoingCall(Landroid/content/Context;)Ljava/lang/String;
.locals 7

invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

const/4 v6, 0x0

:try_start_0
sget-object v1, Landroid/provider/CallLog$Calls;->CONTENT_URI:Landroid/net/Uri;

const/4 v2, 0x1

new-array v2, v2, [Ljava/lang/String;

const/4 v3, 0x0

const-string v4, "number"

aput-object v4, v2, v3

const-string/jumbo v3, "type = 2"

const/4 v4, 0x0

const-string v5, "date DESC LIMIT 1"

invoke-virtual/range {v0 .. v5}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

move-result-object v6

if-eqz v6, :cond_0

invoke-interface {v6}, Landroid/database/Cursor;->moveToFirst()Z

move-result v1

if-nez v1, :cond_2

:cond_0
const-string v1, ""
:try_end_0
.catchall {:try_start_0 .. :try_end_0} :catchall_0

if-eqz v6, :cond_1

invoke-interface {v6}, Landroid/database/Cursor;->close()V

:cond_1
:goto_0
return-object v1

:cond_2
const/4 v1, 0x0

:try_start_1
invoke-interface {v6, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
:try_end_1
.catchall {:try_start_1 .. :try_end_1} :catchall_0

move-result-object v1

if-eqz v6, :cond_1

invoke-interface {v6}, Landroid/database/Cursor;->close()V

goto :goto_0

:catchall_0
move-exception v1

if-eqz v6, :cond_3

invoke-interface {v6}, Landroid/database/Cursor;->close()V

:cond_3
throw v1
.end method

.method private static removeExpiredEntries(Landroid/content/Context;)V
.locals 4

invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;

move-result-object v0

sget-object v1, Landroid/provider/CallLog$Calls;->CONTENT_URI:Landroid/net/Uri;

const-string v2, "_id IN (SELECT _id FROM calls ORDER BY date DESC LIMIT -1 OFFSET 500)"

const/4 v3, 0x0

invoke-virtual {v0, v1, v2, v3}, Landroid/content/ContentResolver;->delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I

return-void
.end method

'cause I know there was a lot of trial and error on my part and I'd be happy to save you that hassle lol.