Android教程網
  1. 首頁
  2. Android 技術
  3. Android 手機
  4. Android 系統教程
  5. Android 游戲
 Android教程網 >> Android技術 >> 關於Android編程 >> android apk靜態分析--初出茅廬唐詩宋詞

android apk靜態分析--初出茅廬唐詩宋詞

編輯:關於Android編程

我們需要做的是需要取消下載限制,看效果。

    

關鍵詞:激活提示

[plain] 
grep -rn "激活提示" .    
 
./poetry_java/hxb/poetry/MainActivity.java:285:            new AlertDialog.Builder(this).setTitle("激活提示").setMessage("試用結束,只能閱讀前10篇文章,請選擇完成任務領取20個積分和付費任意方式進行激活?(當前積分:" + f1 + "個,如果沒有成功獲取積分,請退出重新進入.)").setPositiveButton("任務一", new ac(this)).setNeutralButton("任務二", new ad(this)).setNegativeButton("進入付費", new u(this)).show(); 
 
./poetry_java/hxb/poetry/g.java:59:          new AlertDialog.Builder(this.a).setTitle("激活提示").setMessage("試用結束,只能閱讀前10篇文章,請選擇完成任務領取20個積分和付費任意方式進行激活?(當前積分:" + f1 + "個,如果沒有成功獲取積分,請退出重新進入.)").setPositiveButton("任務一", new j(this)).setNeutralButton("任務二", new k(this)).setNegativeButton("進入付費", new l(this)).setOnCancelListener(new m(this)).show(); 

 

Java代碼

[plain]
260   private boolean a(int paramInt) 
 
261   { 
 
262     boolean bool = false; 
 
263     if ((!MyApplication.j()) && (MyApplication.h() > 10) && (this.X.o()) && (paramInt >= 10)) 
 
264     { 
 
265       try 
 
266       { 
 
267         if (!b()) 
 
268         { 
 
269           Toast.makeText(this, "試用結束,請打開網絡進行激活.", 1).show(); 
 
270         } 
 
271         else 
 
272         { 
 
273           if (MyApplication.r() < 20.0F) 
 
274           { 
 
275             com.juzi.main.b.a(this); 
 
276             float f2 = Float.parseFloat(com.juzi.main.b.c(this)); 
 
277             com.juzi.main.b.a(this); 
 
278             com.juzi.main.b.a((int)f2); 
 
279             MyApplication.a(f2); 
 
280           } 
 
281           if (MyApplication.r() < 20.0F)                                                                                                                             
 
282             com.yjfsdk.advertSdk.a.a(this).b(new aa(this));                                                                                                          
 
283           float f1 = MyApplication.r();                                                                                                                              
 
284           if (f1 < 20.0F)                                                                                                                                            
 
285             new AlertDialog.Builder(this).setTitle("激活提示").setMessage("試用結束,只能閱讀前10篇文章,請選擇完成任務領取20個積分和付費任意方式進行激活?(當前積分:" + f1 + "個,如果沒有成功獲取積分,請退出> 
 
    重新進入.)").setPositiveButton("任務一", new ac(this)).setNeutralButton("任務二", new ad(this)).setNegativeButton("進入付費", new u(this)).show(); 
 
286         } 
 
287       }  
 
288       catch (Exception localException)                                                                                                                               
 
289       { 
 
290         localException.printStackTrace();                                                                                                                            
 
291       }  
 
292       MyApplication.a(-20.0F);                                                                                                                                       
 
293       MyApplication.k(); 
 
294       bool = true; 
 
295     }  
 
296     else                                                                                                                                                             
 
297     { 
 
298       bool = true;                                                                                                                                                   
 
299     }  
 
300     return bool;                                                                                                                                                     
 
301   } 

 

在if(f1 < 20.0F)前將f1 設置一個大於20的值不就行了?

Smali 代碼

[plain]
.method private a(I)Z 
 
    .locals 5 
 
    invoke-static {}, Lcom/hxb/poetry/MyApplication;->r()F 
 
    move-result v2 
 
    cmpg-float v3, v2, v4 
 
    const v3, 0x1 
 
    if-gez v3, :cond_3 
 
    new-instance v1, Landroid/app/AlertDialog$Builder; 
 
    invoke-direct {v1, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V 
 
    const-string v3, "\u6fc0\u6d3b\u63d0\u793a" 

在smali中,我們直接將f < 20.0F設置為false,即 f>=20.0F為true

至此,你可以沒有任何限制的下載你想看的詩詞曲了。

  1. 上一頁:
  2. 下一頁:
熱門文章
閱讀排行版
Copyright © Android教程網 All Rights Reserved