254 lines
		
	
	
		
			6.4 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
			
		
		
	
	
			254 lines
		
	
	
		
			6.4 KiB
		
	
	
	
		
			Smali
		
	
	
	
	
	
| .class public Ltid/sktelecom/ssolib/b/b;
 | |
| .super Ljava/lang/Object;
 | |
| .source "SSOPreference.java"
 | |
| 
 | |
| 
 | |
| # instance fields
 | |
| .field public a:Landroid/content/Context;
 | |
| 
 | |
| .field private final b:Ljava/lang/String;
 | |
| 
 | |
| 
 | |
| # direct methods
 | |
| .method public constructor <init>(Landroid/content/Context;)V
 | |
|     .locals 1
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ljava/lang/Object;-><init>()V
 | |
| 
 | |
|     const-string v0, "com.sktelecom.pref"
 | |
| 
 | |
|     .line 2
 | |
|     iput-object v0, p0, Ltid/sktelecom/ssolib/b/b;->b:Ljava/lang/String;
 | |
| 
 | |
|     .line 3
 | |
|     iput-object p1, p0, Ltid/sktelecom/ssolib/b/b;->a:Landroid/content/Context;
 | |
| 
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method private a()Ltid/sktelecom/ssolib/common/a;
 | |
|     .locals 2
 | |
| 
 | |
|     .line 1
 | |
|     :try_start_0
 | |
|     new-instance v0, Ltid/sktelecom/ssolib/common/a;
 | |
| 
 | |
|     iget-object v1, p0, Ltid/sktelecom/ssolib/b/b;->a:Landroid/content/Context;
 | |
| 
 | |
|     invoke-static {v1}, Ltid/sktelecom/ssolib/common/l;->e(Landroid/content/Context;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     invoke-direct {v0, v1}, Ltid/sktelecom/ssolib/common/a;-><init>(Ljava/lang/String;)V
 | |
|     :try_end_0
 | |
|     .catch Ljava/security/NoSuchAlgorithmException; {:try_start_0 .. :try_end_0} :catch_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :catch_0
 | |
|     move-exception v0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-virtual {v0}, Ljava/security/NoSuchAlgorithmException;->getMessage()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     invoke-static {v0}, Ltid/sktelecom/ssolib/common/c;->b(Ljava/lang/String;)V
 | |
| 
 | |
|     const/4 v0, 0x0
 | |
| 
 | |
|     :goto_0
 | |
|     return-object v0
 | |
| .end method
 | |
| 
 | |
| 
 | |
| # virtual methods
 | |
| .method public a(Ljava/lang/String;Ljava/lang/String;)V
 | |
|     .locals 4
 | |
| 
 | |
|     .line 3
 | |
|     invoke-direct {p0}, Ltid/sktelecom/ssolib/b/b;->a()Ltid/sktelecom/ssolib/common/a;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 4
 | |
|     :try_start_0
 | |
|     iget-object v1, p0, Ltid/sktelecom/ssolib/b/b;->a:Landroid/content/Context;
 | |
| 
 | |
|     const-string v2, "com.sktelecom.pref"
 | |
| 
 | |
|     const/4 v3, 0x0
 | |
| 
 | |
|     invoke-virtual {v1, v2, v3}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     .line 6
 | |
|     invoke-virtual {v0, p2}, Ltid/sktelecom/ssolib/common/a;->a(Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p2
 | |
| 
 | |
|     invoke-interface {v1, p1, p2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
 | |
| 
 | |
|     .line 7
 | |
|     invoke-interface {v1}, Landroid/content/SharedPreferences$Editor;->commit()Z
 | |
|     :try_end_0
 | |
|     .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :catch_0
 | |
|     move-exception p1
 | |
| 
 | |
|     .line 8
 | |
|     invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-static {p1}, Ltid/sktelecom/ssolib/common/c;->b(Ljava/lang/String;)V
 | |
| 
 | |
|     :cond_0
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public b(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
 | |
|     .locals 4
 | |
| 
 | |
|     .line 1
 | |
|     invoke-direct {p0}, Ltid/sktelecom/ssolib/b/b;->a()Ltid/sktelecom/ssolib/common/a;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     if-eqz v0, :cond_0
 | |
| 
 | |
|     .line 2
 | |
|     iget-object v1, p0, Ltid/sktelecom/ssolib/b/b;->a:Landroid/content/Context;
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     const-string v3, "com.sktelecom.pref"
 | |
| 
 | |
|     invoke-virtual {v1, v3, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
 | |
| 
 | |
|     move-result-object v1
 | |
| 
 | |
|     .line 3
 | |
|     :try_start_0
 | |
|     invoke-interface {v1, p1, p2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-virtual {v0, p1}, Ltid/sktelecom/ssolib/common/a;->b(Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p2
 | |
|     :try_end_0
 | |
|     .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :catch_0
 | |
|     move-exception p1
 | |
| 
 | |
|     .line 4
 | |
|     invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-static {p1}, Ltid/sktelecom/ssolib/common/c;->b(Ljava/lang/String;)V
 | |
| 
 | |
|     :cond_0
 | |
|     :goto_0
 | |
|     return-object p2
 | |
| .end method
 | |
| 
 | |
| .method public c(Ljava/lang/String;Ljava/lang/String;)V
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     :try_start_0
 | |
|     iget-object v0, p0, Ltid/sktelecom/ssolib/b/b;->a:Landroid/content/Context;
 | |
| 
 | |
|     const-string v1, "com.sktelecom.pref"
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 2
 | |
|     invoke-interface {v0}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 3
 | |
|     invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences$Editor;->putString(Ljava/lang/String;Ljava/lang/String;)Landroid/content/SharedPreferences$Editor;
 | |
| 
 | |
|     .line 4
 | |
|     invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z
 | |
|     :try_end_0
 | |
|     .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :catch_0
 | |
|     move-exception p1
 | |
| 
 | |
|     .line 5
 | |
|     invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-static {p1}, Ltid/sktelecom/ssolib/common/c;->b(Ljava/lang/String;)V
 | |
| 
 | |
|     :goto_0
 | |
|     return-void
 | |
| .end method
 | |
| 
 | |
| .method public d(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
 | |
|     .locals 3
 | |
| 
 | |
|     .line 1
 | |
|     iget-object v0, p0, Ltid/sktelecom/ssolib/b/b;->a:Landroid/content/Context;
 | |
| 
 | |
|     const-string v1, "com.sktelecom.pref"
 | |
| 
 | |
|     const/4 v2, 0x0
 | |
| 
 | |
|     invoke-virtual {v0, v1, v2}, Landroid/content/Context;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;
 | |
| 
 | |
|     move-result-object v0
 | |
| 
 | |
|     .line 2
 | |
|     :try_start_0
 | |
|     invoke-interface {v0, p1, p2}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p2
 | |
|     :try_end_0
 | |
|     .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
 | |
| 
 | |
|     goto :goto_0
 | |
| 
 | |
|     :catch_0
 | |
|     move-exception p1
 | |
| 
 | |
|     .line 3
 | |
|     invoke-virtual {p1}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;
 | |
| 
 | |
|     move-result-object p1
 | |
| 
 | |
|     invoke-static {p1}, Ltid/sktelecom/ssolib/common/c;->b(Ljava/lang/String;)V
 | |
| 
 | |
|     :goto_0
 | |
|     return-object p2
 | |
| .end method
 |