bf.smali
.class public Lcom/xiaomi/push/service/bf;
.super Ljava/lang/Object;
# static fields
.field private static a:Lcom/xiaomi/push/service/bf;
# instance fields
.field private b:Landroid/content/Context;
.field private c:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private final d:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
.field private final e:Ljava/util/List;
.annotation system Ldalvik/annotation/Signature;
value = {
"Ljava/util/List",
"<",
"Ljava/lang/String;",
">;"
}
.end annotation
.end field
# direct methods
.method static constructor <clinit>()V
.registers 1
const/4 v0, 0x0
sput-object v0, Lcom/xiaomi/push/service/bf;->a:Lcom/xiaomi/push/service/bf;
return-void
.end method
.method private constructor <init>(Landroid/content/Context;)V
.registers 9
const/4 v0, 0x0
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
iput-object v1, p0, Lcom/xiaomi/push/service/bf;->c:Ljava/util/List;
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
iput-object v1, p0, Lcom/xiaomi/push/service/bf;->d:Ljava/util/List;
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
iput-object v1, p0, Lcom/xiaomi/push/service/bf;->e:Ljava/util/List;
invoke-virtual {p1}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context;
move-result-object v1
iput-object v1, p0, Lcom/xiaomi/push/service/bf;->b:Landroid/content/Context;
iget-object v1, p0, Lcom/xiaomi/push/service/bf;->b:Landroid/content/Context;
if-nez v1, :cond_25
iput-object p1, p0, Lcom/xiaomi/push/service/bf;->b:Landroid/content/Context;
:cond_25
iget-object v1, p0, Lcom/xiaomi/push/service/bf;->b:Landroid/content/Context;
const-string v2, "mipush_app_info"
invoke-virtual {v1, v2, v0}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object v2
const-string v1, "unregistered_pkg_names"
const-string v3, ""
invoke-interface {v2, v1, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
const-string v3, ","
invoke-virtual {v1, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v3
array-length v4, v3
move v1, v0
:goto_3d
if-ge v1, v4, :cond_4f
aget-object v5, v3, v1
invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v6
if-eqz v6, :cond_4c
iget-object v6, p0, Lcom/xiaomi/push/service/bf;->c:Ljava/util/List;
invoke-interface {v6, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_4c
add-int/lit8 v1, v1, 0x1
goto :goto_3d
:cond_4f
const-string v1, "disable_push_pkg_names"
const-string v3, ""
invoke-interface {v2, v1, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
const-string v3, ","
invoke-virtual {v1, v3}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v3
array-length v4, v3
move v1, v0
:goto_5f
if-ge v1, v4, :cond_71
aget-object v5, v3, v1
invoke-static {v5}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v6
if-nez v6, :cond_6e
iget-object v6, p0, Lcom/xiaomi/push/service/bf;->d:Ljava/util/List;
invoke-interface {v6, v5}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_6e
add-int/lit8 v1, v1, 0x1
goto :goto_5f
:cond_71
const-string v1, "disable_push_pkg_names_cache"
const-string v3, ""
invoke-interface {v2, v1, v3}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v1
const-string v2, ","
invoke-virtual {v1, v2}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;
move-result-object v1
array-length v2, v1
:goto_80
if-ge v0, v2, :cond_92
aget-object v3, v1, v0
invoke-static {v3}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z
move-result v4
if-nez v4, :cond_8f
iget-object v4, p0, Lcom/xiaomi/push/service/bf;->e:Ljava/util/List;
invoke-interface {v4, v3}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_8f
add-int/lit8 v0, v0, 0x1
goto :goto_80
:cond_92
return-void
.end method
.method public static a(Landroid/content/Context;)Lcom/xiaomi/push/service/bf;
.registers 2
sget-object v0, Lcom/xiaomi/push/service/bf;->a:Lcom/xiaomi/push/service/bf;
if-nez v0, :cond_b
new-instance v0, Lcom/xiaomi/push/service/bf;
invoke-direct {v0, p0}, Lcom/xiaomi/push/service/bf;-><init>(Landroid/content/Context;)V
sput-object v0, Lcom/xiaomi/push/service/bf;->a:Lcom/xiaomi/push/service/bf;
:cond_b
sget-object v0, Lcom/xiaomi/push/service/bf;->a:Lcom/xiaomi/push/service/bf;
return-object v0
.end method
# virtual methods
.method public a(Ljava/lang/String;)Z
.registers 4
iget-object v1, p0, Lcom/xiaomi/push/service/bf;->c:Ljava/util/List;
monitor-enter v1
:try_start_3
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->c:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
monitor-exit v1
return v0
:catchall_b
move-exception v0
monitor-exit v1
:try_end_d
.catchall {:try_start_3 .. :try_end_d} :catchall_b
throw v0
.end method
.method public b(Ljava/lang/String;)Z
.registers 4
iget-object v1, p0, Lcom/xiaomi/push/service/bf;->d:Ljava/util/List;
monitor-enter v1
:try_start_3
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->d:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
monitor-exit v1
return v0
:catchall_b
move-exception v0
monitor-exit v1
:try_end_d
.catchall {:try_start_3 .. :try_end_d} :catchall_b
throw v0
.end method
.method public c(Ljava/lang/String;)Z
.registers 4
iget-object v1, p0, Lcom/xiaomi/push/service/bf;->e:Ljava/util/List;
monitor-enter v1
:try_start_3
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->e:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
monitor-exit v1
return v0
:catchall_b
move-exception v0
monitor-exit v1
:try_end_d
.catchall {:try_start_3 .. :try_end_d} :catchall_b
throw v0
.end method
.method public d(Ljava/lang/String;)V
.registers 7
iget-object v1, p0, Lcom/xiaomi/push/service/bf;->c:Ljava/util/List;
monitor-enter v1
:try_start_3
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->c:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_2e
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->c:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->c:Ljava/util/List;
const-string v2, ","
invoke-static {v0, v2}, Lcom/xiaomi/push/af;->a(Ljava/util/Collection;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iget-object v2, p0, Lcom/xiaomi/push/service/bf;->b:Landroid/content/Context;
const-string v3, "mipush_app_info"
const/4 v4, 0x0
invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object v2
invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v2
const-string v3, "unregistered_pkg_names"
invoke-interface {v2, v3, v0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
move-result-object v0
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z
:cond_2e
monitor-exit v1
return-void
:catchall_30
move-exception v0
monitor-exit v1
:try_end_32
.catchall {:try_start_3 .. :try_end_32} :catchall_30
throw v0
.end method
.method public e(Ljava/lang/String;)V
.registers 7
iget-object v1, p0, Lcom/xiaomi/push/service/bf;->d:Ljava/util/List;
monitor-enter v1
:try_start_3
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->d:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_2e
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->d:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->d:Ljava/util/List;
const-string v2, ","
invoke-static {v0, v2}, Lcom/xiaomi/push/af;->a(Ljava/util/Collection;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iget-object v2, p0, Lcom/xiaomi/push/service/bf;->b:Landroid/content/Context;
const-string v3, "mipush_app_info"
const/4 v4, 0x0
invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object v2
invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v2
const-string v3, "disable_push_pkg_names"
invoke-interface {v2, v3, v0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
move-result-object v0
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z
:cond_2e
monitor-exit v1
return-void
:catchall_30
move-exception v0
monitor-exit v1
:try_end_32
.catchall {:try_start_3 .. :try_end_32} :catchall_30
throw v0
.end method
.method public f(Ljava/lang/String;)V
.registers 7
iget-object v1, p0, Lcom/xiaomi/push/service/bf;->e:Ljava/util/List;
monitor-enter v1
:try_start_3
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->e:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_2e
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->e:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->e:Ljava/util/List;
const-string v2, ","
invoke-static {v0, v2}, Lcom/xiaomi/push/af;->a(Ljava/util/Collection;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iget-object v2, p0, Lcom/xiaomi/push/service/bf;->b:Landroid/content/Context;
const-string v3, "mipush_app_info"
const/4 v4, 0x0
invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object v2
invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v2
const-string v3, "disable_push_pkg_names_cache"
invoke-interface {v2, v3, v0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
move-result-object v0
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z
:cond_2e
monitor-exit v1
return-void
:catchall_30
move-exception v0
monitor-exit v1
:try_end_32
.catchall {:try_start_3 .. :try_end_32} :catchall_30
throw v0
.end method
.method public g(Ljava/lang/String;)V
.registers 7
iget-object v1, p0, Lcom/xiaomi/push/service/bf;->c:Ljava/util/List;
monitor-enter v1
:try_start_3
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->c:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2e
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->c:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->c:Ljava/util/List;
const-string v2, ","
invoke-static {v0, v2}, Lcom/xiaomi/push/af;->a(Ljava/util/Collection;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iget-object v2, p0, Lcom/xiaomi/push/service/bf;->b:Landroid/content/Context;
const-string v3, "mipush_app_info"
const/4 v4, 0x0
invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object v2
invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v2
const-string v3, "unregistered_pkg_names"
invoke-interface {v2, v3, v0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
move-result-object v0
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z
:cond_2e
monitor-exit v1
return-void
:catchall_30
move-exception v0
monitor-exit v1
:try_end_32
.catchall {:try_start_3 .. :try_end_32} :catchall_30
throw v0
.end method
.method public h(Ljava/lang/String;)V
.registers 7
iget-object v1, p0, Lcom/xiaomi/push/service/bf;->d:Ljava/util/List;
monitor-enter v1
:try_start_3
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->d:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2e
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->d:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->d:Ljava/util/List;
const-string v2, ","
invoke-static {v0, v2}, Lcom/xiaomi/push/af;->a(Ljava/util/Collection;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iget-object v2, p0, Lcom/xiaomi/push/service/bf;->b:Landroid/content/Context;
const-string v3, "mipush_app_info"
const/4 v4, 0x0
invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object v2
invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v2
const-string v3, "disable_push_pkg_names"
invoke-interface {v2, v3, v0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
move-result-object v0
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z
:cond_2e
monitor-exit v1
return-void
:catchall_30
move-exception v0
monitor-exit v1
:try_end_32
.catchall {:try_start_3 .. :try_end_32} :catchall_30
throw v0
.end method
.method public i(Ljava/lang/String;)V
.registers 7
iget-object v1, p0, Lcom/xiaomi/push/service/bf;->e:Ljava/util/List;
monitor-enter v1
:try_start_3
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->e:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->contains(Ljava/lang/Object;)Z
move-result v0
if-eqz v0, :cond_2e
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->e:Ljava/util/List;
invoke-interface {v0, p1}, Ljava/util/List;->remove(Ljava/lang/Object;)Z
iget-object v0, p0, Lcom/xiaomi/push/service/bf;->e:Ljava/util/List;
const-string v2, ","
invoke-static {v0, v2}, Lcom/xiaomi/push/af;->a(Ljava/util/Collection;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
iget-object v2, p0, Lcom/xiaomi/push/service/bf;->b:Landroid/content/Context;
const-string v3, "mipush_app_info"
const/4 v4, 0x0
invoke-virtual {v2, v3, v4}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
move-result-object v2
invoke-interface {v2}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
move-result-object v2
const-string v3, "disable_push_pkg_names_cache"
invoke-interface {v2, v3, v0}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
move-result-object v0
invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z
:cond_2e
monitor-exit v1
return-void
:catchall_30
move-exception v0
monitor-exit v1
:try_end_32
.catchall {:try_start_3 .. :try_end_32} :catchall_30
throw v0
.end method