169 lines
3.9 KiB
Smali
169 lines
3.9 KiB
Smali
.class public Lcom/moji/push/MJPushService;
|
|
.super Landroid/app/Service;
|
|
.source "MJPushService.java"
|
|
|
|
|
|
# instance fields
|
|
.field private a:I
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 1
|
|
|
|
.line 15
|
|
invoke-direct {p0}, Landroid/app/Service;-><init>()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 18
|
|
iput v0, p0, Lcom/moji/push/MJPushService;->a:I
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method private a(Landroid/content/Intent;)V
|
|
.locals 3
|
|
|
|
const-string v0, "MJPushService"
|
|
|
|
.line 53
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V
|
|
|
|
const-string v2, "processCallUp service start count:"
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
iget v2, p0, Lcom/moji/push/MJPushService;->a:I
|
|
|
|
invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
|
|
|
|
invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-static {v0, v1}, Lcom/moji/tool/log/MJLogger;->c(Ljava/lang/String;Ljava/lang/String;)V
|
|
|
|
.line 54
|
|
iget v0, p0, Lcom/moji/push/MJPushService;->a:I
|
|
|
|
if-lez v0, :cond_0
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 58
|
|
invoke-static {}, Lcom/moji/callup/MJCallUpManager;->a()Lcom/moji/callup/MJCallUpManager;
|
|
|
|
move-result-object v0
|
|
|
|
iget v1, p0, Lcom/moji/push/MJPushService;->a:I
|
|
|
|
invoke-virtual {v0, p1, v1}, Lcom/moji/callup/MJCallUpManager;->a(Landroid/content/Intent;I)V
|
|
|
|
:cond_1
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public onBind(Landroid/content/Intent;)Landroid/os/IBinder;
|
|
.locals 1
|
|
|
|
.line 36
|
|
invoke-static {}, Lcom/igexin/sdk/GTServiceManager;->getInstance()Lcom/igexin/sdk/GTServiceManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p1}, Lcom/igexin/sdk/GTServiceManager;->onBind(Landroid/content/Intent;)Landroid/os/IBinder;
|
|
|
|
move-result-object p1
|
|
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public onCreate()V
|
|
.locals 1
|
|
|
|
.line 22
|
|
invoke-super {p0}, Landroid/app/Service;->onCreate()V
|
|
|
|
.line 23
|
|
invoke-static {}, Lcom/igexin/sdk/GTServiceManager;->getInstance()Lcom/igexin/sdk/GTServiceManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0}, Lcom/igexin/sdk/GTServiceManager;->onCreate(Landroid/content/Context;)V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onDestroy()V
|
|
.locals 1
|
|
|
|
.line 41
|
|
invoke-super {p0}, Landroid/app/Service;->onDestroy()V
|
|
|
|
const/4 v0, 0x0
|
|
|
|
.line 42
|
|
iput v0, p0, Lcom/moji/push/MJPushService;->a:I
|
|
|
|
.line 43
|
|
invoke-static {}, Lcom/igexin/sdk/GTServiceManager;->getInstance()Lcom/igexin/sdk/GTServiceManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/igexin/sdk/GTServiceManager;->onDestroy()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onLowMemory()V
|
|
.locals 1
|
|
|
|
.line 48
|
|
invoke-super {p0}, Landroid/app/Service;->onLowMemory()V
|
|
|
|
.line 49
|
|
invoke-static {}, Lcom/igexin/sdk/GTServiceManager;->getInstance()Lcom/igexin/sdk/GTServiceManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0}, Lcom/igexin/sdk/GTServiceManager;->onLowMemory()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public onStartCommand(Landroid/content/Intent;II)I
|
|
.locals 1
|
|
|
|
.line 28
|
|
invoke-super {p0, p1, p2, p3}, Landroid/app/Service;->onStartCommand(Landroid/content/Intent;II)I
|
|
|
|
.line 29
|
|
invoke-direct {p0, p1}, Lcom/moji/push/MJPushService;->a(Landroid/content/Intent;)V
|
|
|
|
.line 30
|
|
iget v0, p0, Lcom/moji/push/MJPushService;->a:I
|
|
|
|
add-int/lit8 v0, v0, 0x1
|
|
|
|
iput v0, p0, Lcom/moji/push/MJPushService;->a:I
|
|
|
|
.line 31
|
|
invoke-static {}, Lcom/igexin/sdk/GTServiceManager;->getInstance()Lcom/igexin/sdk/GTServiceManager;
|
|
|
|
move-result-object v0
|
|
|
|
invoke-virtual {v0, p0, p1, p2, p3}, Lcom/igexin/sdk/GTServiceManager;->onStartCommand(Landroid/app/Service;Landroid/content/Intent;II)I
|
|
|
|
move-result p1
|
|
|
|
return p1
|
|
.end method
|