吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 856|回复: 18
上一主题 下一主题
收起左侧

[Android 求助] 去掉广告就得不到积分的这个拧螺丝的应该怎么解决呢

[复制链接]
跳转到指定楼层
楼主
冥界3大法王 发表于 2024-11-26 16:13 回帖奖励
本帖最后由 冥界3大法王 于 2024-11-28 13:05 编辑

http://xl3.ydyspc.com:90/xlhs/co ... anningdiao_1.01.apk
试了几次修改没有成功这个只要在权限清单里把联网权限去掉了,广告就都消失了,但是如果把广告弄得消失的掉的话,游戏的增加空位和解锁孔位的功能就用不了了,因为得不到广告提供的奖励了。
不知像这种类型的应该怎么去分析?


[Asm] 纯文本查看 复制代码
.class Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5$3;
.super Ljava/lang/Object;
.source "myPlayableTT.java"

# interfaces
.implements Lcom/bytedance/sdk/openadsdk/TTRewardVideoAd$RewardAdInteractionListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5;->onRewardVideoAdLoad(Lcom/bytedance/sdk/openadsdk/TTRewardVideoAd;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$1:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5;


# direct methods
.method constructor <init>(Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5;)V
    .registers 2

    .line 562
    iput-object p1, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5$3;->this$1:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onAdClose()V
    .registers 5

    .line 579
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5$3;->this$1:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5;

    iget-object v0, v0, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5;->this$0:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT;

    const/4 v1, 0x0

    iput-boolean v1, v0, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT;->m_bShowing:Z

    .line 580
    sget-object v0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->Instance:Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;

    invoke-virtual {v0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->ResumeMusic()V

    .line 581
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    sput-wide v2, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT;->m_lastCloseVideoTime:J

    .line 582
    sget-object v0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->Instance:Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;

    iget-object v2, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5$3;->this$1:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5;

    iget-object v2, v2, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5;->this$0:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT;

    iget-boolean v2, v2, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT;->m_bRewardedVideoVerify:Z

    invoke-virtual {v0, v2}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->OnRewardedVerify(Z)V

    .line 583
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5$3;->this$1:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5;

    iget-object v0, v0, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5;->this$0:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT;

    iget-boolean v0, v0, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT;->m_bRewardedVideoVerify:Z

    .line 584
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5$3;->this$1:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5;

    iget-object v0, v0, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5;->this$0:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT;

    iput-boolean v1, v0, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT;->m_bRewardedVideoVerify:Z

    const-string v0, "TTAds"

    const-string v1, "rewardVideoAd close"

    .line 586
    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    return-void
.end method

.method public onAdShow()V
    .registers 3

    const-string v0, "TTAds"

    const-string v1, "rewardVideoAd show"

    .line 566
    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 567
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5$3;->this$1:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5;

    iget-object v0, v0, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5;->this$0:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT;

    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT;->m_bRewardedVideoVerify:Z

    return-void
.end method

.method public onAdVideoBarClick()V
    .registers 3

    const-string v0, "TTAds"

    const-string v1, "rewardVideoAd bar click"

    .line 572
    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 574
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5$3;->this$1:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5;

    iget-object v0, v0, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5;->this$0:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT;

    const/4 v1, 0x1

    iput-boolean v1, v0, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT;->m_bRewardedVideoVerify:Z

    return-void
.end method

.method public onRewardArrived(ZILandroid/os/Bundle;)V
    .registers 4

    const-string p1, "TTAds"

    const-string p2, "rewardVideoAd onRewardArrived"

    .line 607
    invoke-static {p1, p2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    return-void
.end method

.method public onRewardVerify(ZILjava/lang/String;ILjava/lang/String;)V
    .registers 6

    .line 613
    new-instance p4, Ljava/lang/StringBuilder;

    invoke-direct {p4}, Ljava/lang/StringBuilder;-><init>()V

    const-string p5, "verify:"

    invoke-virtual {p4, p5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p4, p1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string p1, " amount:"

    invoke-virtual {p4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p4, p2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    const-string p1, " name:"

    invoke-virtual {p4, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p4, p3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string p2, "TTAds"

    invoke-static {p2, p1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 615
    iget-object p1, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5$3;->this$1:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5;

    iget-object p1, p1, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT$5;->this$0:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT;

    const/4 p2, 0x1

    iput-boolean p2, p1, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT;->m_bRewardedVideoVerify:Z

    .line 616
    sget-object p1, Lcom/createmaster/dgame/dGameAppAndroidCore/myConfig;->TT_REWARDED_ID:Ljava/lang/String;

    const-string p2, "RewardedVideo"

    invoke-static {p1, p2}, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableTT;->UploadATAdInfo(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method public onSkippedVideo()V
    .registers 3

    const-string v0, "TTAds"

    const-string v1, "rewardVideoAd skipped"

    .line 601
    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    return-void
.end method

.method public onVideoComplete()V
    .registers 3

    const-string v0, "TTAds"

    const-string v1, "rewardVideoAd complete"

    .line 591
    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    return-void
.end method

.method public onVideoError()V
    .registers 3

    const-string v0, "TTAds"

    const-string v1, "rewardVideoAd error"

    .line 596
    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    return-void
.end method




[Asm] 纯文本查看 复制代码
.class public Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;
.super Landroid/app/Activity;
.source "dGameAppAndroidActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity$JSApis;
    }
.end annotation


# static fields
.field public static Instance:Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity; = null

.field protected static final MSGTYPE_SHOWBANNER:I = 0x4

.field protected static final MSGTYPE_SHOWHTMLDIALOG:I = 0x5

.field protected static final MSGTYPE_SHOWINTERSTITIALIMAGE:I = 0x3

.field protected static final MSGTYPE_SHOWINTERSTITIALVIDEO:I = 0x2

.field protected static final MSGTYPE_SHOWREWARDED:I = 0x1

.field public static m_nSafeAreaBottom:I

.field public static m_nSafeAreaTop:I


# instance fields
.field protected m_bPrivacyAgree:Z

.field protected m_filePacker:Lcom/createmaster/dgame/dGameAppAndroidCore/dFilePacker;

.field protected m_nLocalLanguage:I

.field protected m_pMyPlayable:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableAll;

.field protected m_showRewardedHandler:Landroid/os/Handler;

.field public m_strAppList:Ljava/lang/String;

.field protected m_webView:Landroid/webkit/WebView;


# direct methods
.method static constructor <clinit>()V
    .registers 0

    return-void
.end method

.method public constructor <init>()V
    .registers 2

    .line 68
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    const/4 v0, 0x0

    .line 82
    iput-boolean v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_bPrivacyAgree:Z

    .line 83
    iput v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_nLocalLanguage:I

    const-string v0, ""

    .line 84
    iput-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_strAppList:Ljava/lang/String;

    return-void
.end method

.method public static checkDeviceHasNavigationBar(Landroid/content/Context;)Z
    .registers 7

    .line 600
    invoke-virtual {p0}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object p0

    const-string v0, "config_showNavigationBar"

    const-string v1, "bool"

    const-string v2, "android"

    .line 601
    invoke-virtual {p0, v0, v1, v2}, Landroid/content/res/Resources;->getIdentifier(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)I

    move-result v0

    const/4 v1, 0x0

    if-lez v0, :cond_16

    .line 603
    invoke-virtual {p0, v0}, Landroid/content/res/Resources;->getBoolean(I)Z

    move-result p0

    goto :goto_17

    :cond_16
    const/4 p0, 0x0

    :goto_17
    :try_start_17
    const-string v0, "android.os.SystemProperties"

    .line 606
    invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;

    move-result-object v0

    const-string v2, "get"

    const/4 v3, 0x1

    new-array v4, v3, [Ljava/lang/Class;

    .line 607
    const-class v5, Ljava/lang/String;

    aput-object v5, v4, v1

    invoke-virtual {v0, v2, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method;

    move-result-object v2

    new-array v4, v3, [Ljava/lang/Object;

    const-string v5, "qemu.hw.mainkeys"

    aput-object v5, v4, v1

    .line 608
    invoke-virtual {v2, v0, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const-string v2, "1"

    .line 609
    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3f

    goto :goto_4a

    :cond_3f
    const-string v1, "0"

    .line 611
    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0
    :try_end_45
    .catch Ljava/lang/Exception; {:try_start_17 .. :try_end_45} :catch_4b

    if-eqz v0, :cond_49

    const/4 v1, 0x1

    goto :goto_4a

    :cond_49
    move v1, p0

    :goto_4a
    move p0, v1

    :catch_4b
    return p0
.end method

.method public static getActionBarHeight(Landroid/app/Activity;)I
    .registers 5

    .line 592
    new-instance v0, Landroid/util/TypedValue;

    invoke-direct {v0}, Landroid/util/TypedValue;-><init>()V

    .line 593
    invoke-virtual {p0}, Landroid/app/Activity;->getTheme()Landroid/content/res/Resources$Theme;

    move-result-object v1

    const v2, 0x10102eb

    const/4 v3, 0x1

    invoke-virtual {v1, v2, v0, v3}, Landroid/content/res/Resources$Theme;->resolveAttribute(ILandroid/util/TypedValue;Z)Z

    move-result v1

    if-eqz v1, :cond_22

    .line 594
    iget v0, v0, Landroid/util/TypedValue;->data:I

    invoke-virtual {p0}, Landroid/app/Activity;->getResources()Landroid/content/res/Resources;

    move-result-object p0

    invoke-virtual {p0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object p0

    invoke-static {v0, p0}, Landroid/util/TypedValue;->complexToDimensionPixelSize(ILandroid/util/DisplayMetrics;)I

    move-result p0

    return p0

    :cond_22
    const/4 p0, 0x0

    return p0
.end method


# virtual methods
.method protected InitCutScreen()V
    .registers 3

    .line 551
    invoke-virtual {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v0

    const/4 v1, 0x1

    .line 552
    iput v1, v0, Landroid/view/WindowManager$LayoutParams;->layoutInDisplayCutoutMode:I

    .line 553
    invoke-virtual {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->getWindow()Landroid/view/Window;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V

    .line 555
    invoke-static {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->checkDeviceHasNavigationBar(Landroid/content/Context;)Z

    move-result v0

    if-eqz v0, :cond_1e

    .line 556
    invoke-static {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->getActionBarHeight(Landroid/app/Activity;)I

    move-result v0

    sput v0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_nSafeAreaBottom:I

    .line 557
    :cond_1e
    invoke-virtual {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    .line 559
    invoke-virtual {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    invoke-virtual {v0}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object v0

    new-instance v1, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity$7;

    invoke-direct {v1, p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity$7;-><init>(Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setOnApplyWindowInsetsListener(Landroid/view/View$OnApplyWindowInsetsListener;)V

    return-void
.end method

.method public Login()V
    .registers 5

    const/4 v0, 0x1

    .line 375
    invoke-static {v0}, Landroid/webkit/WebView;->setWebContentsDebuggingEnabled(Z)V

    .line 376
    new-instance v1, Landroid/webkit/WebView;

    invoke-direct {v1, p0}, Landroid/webkit/WebView;-><init>(Landroid/content/Context;)V

    iput-object v1, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_webView:Landroid/webkit/WebView;

    .line 377
    invoke-virtual {v1}, Landroid/webkit/WebView;->getSettings()Landroid/webkit/WebSettings;

    move-result-object v1

    const/4 v2, 0x2

    .line 378
    invoke-virtual {v1, v2}, Landroid/webkit/WebSettings;->setCacheMode(I)V

    .line 379
    invoke-virtual {v1, v0}, Landroid/webkit/WebSettings;->setJavaScriptEnabled(Z)V

    const/4 v2, 0x0

    .line 380
    invoke-virtual {v1, v2}, Landroid/webkit/WebSettings;->setAppCacheEnabled(Z)V

    .line 381
    invoke-virtual {v1, v2}, Landroid/webkit/WebSettings;->setSupportZoom(Z)V

    .line 382
    invoke-virtual {v1, v0}, Landroid/webkit/WebSettings;->setDomStorageEnabled(Z)V

    .line 383
    invoke-virtual {v1, v0}, Landroid/webkit/WebSettings;->setDatabaseEnabled(Z)V

    .line 384
    invoke-virtual {v1, v0}, Landroid/webkit/WebSettings;->setJavaScriptCanOpenWindowsAutomatically(Z)V

    .line 385
    invoke-virtual {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v3

    invoke-virtual {v3}, Landroid/content/Context;->getCacheDir()Ljava/io/File;

    move-result-object v3

    invoke-virtual {v3}, Ljava/io/File;->getAbsolutePath()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v3}, Landroid/webkit/WebSettings;->setDatabasePath(Ljava/lang/String;)V

    .line 386
    invoke-virtual {v1, v0}, Landroid/webkit/WebSettings;->setAllowUniversalAccessFromFileURLs(Z)V

    .line 387
    invoke-virtual {v1, v0}, Landroid/webkit/WebSettings;->setAllowFileAccess(Z)V

    .line 388
    invoke-virtual {v1, v2}, Landroid/webkit/WebSettings;->setMediaPlaybackRequiresUserGesture(Z)V

    .line 389
    invoke-virtual {v1, v0}, Landroid/webkit/WebSettings;->setAllowFileAccessFromFileURLs(Z)V

    .line 390
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_webView:Landroid/webkit/WebView;

    new-instance v1, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity$2;

    invoke-direct {v1, p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity$2;-><init>(Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setWebChromeClient(Landroid/webkit/WebChromeClient;)V

    .line 398
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_webView:Landroid/webkit/WebView;

    new-instance v1, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity$JSApis;

    invoke-direct {v1, p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity$JSApis;-><init>(Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;)V

    const-string v3, "androidJSApis"

    invoke-virtual {v0, v1, v3}, Landroid/webkit/WebView;->addJavascriptInterface(Ljava/lang/Object;Ljava/lang/String;)V

    .line 400
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_webView:Landroid/webkit/WebView;

    invoke-virtual {p0, v0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->setContentView(Landroid/view/View;)V

    .line 402
    new-instance v0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity$3;

    invoke-direct {v0, p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity$3;-><init>(Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;)V

    iput-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_showRewardedHandler:Landroid/os/Handler;

    .line 459
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_webView:Landroid/webkit/WebView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setVisibility(I)V

    .line 460
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_webView:Landroid/webkit/WebView;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setVisibility(I)V

    .line 461
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_webView:Landroid/webkit/WebView;

    new-instance v1, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity$4;

    invoke-direct {v1, p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity$4;-><init>(Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;)V

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->setWebViewClient(Landroid/webkit/WebViewClient;)V

    .line 487
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_webView:Landroid/webkit/WebView;

    invoke-virtual {v0, v2}, Landroid/webkit/WebView;->setBackgroundColor(I)V

    .line 488
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_webView:Landroid/webkit/WebView;

    const-string v1, "http://127.0.0.1/index.html"

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    return-void
.end method

.method public OnInterstitialImageClosed()V
    .registers 3

    .line 363
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_webView:Landroid/webkit/WebView;

    const-string v1, "javascript:window.interstitialImageClosed()"

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    return-void
.end method

.method public OnInterstitialVideoClosed()V
    .registers 3

    .line 359
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_webView:Landroid/webkit/WebView;

    const-string v1, "javascript:window.interstitialVideoClosed()"

    invoke-virtual {v0, v1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    return-void
.end method

.method public OnRewardedVerify(Z)V
    .registers 5

    .line 355
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_webView:Landroid/webkit/WebView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "javascript:window.rewardedVideoVerifyed("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    const-string p1, ")"

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {v0, p1}, Landroid/webkit/WebView;->loadUrl(Ljava/lang/String;)V

    return-void
.end method

.method public PauseMusic()V
    .registers 1

    return-void
.end method

.method public ResumeMusic()V
    .registers 1

    return-void
.end method

.method protected ShowExitDialog()V
    .registers 6

    .line 499
    iget v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_nLocalLanguage:I

    const/16 v1, 0x6e

    if-ne v0, v1, :cond_f

    const-string v0, "确定要退出吗?"

    const-string v1, "退出"

    const-string v2, "确定"

    const-string v3, "取消"

    goto :goto_17

    :cond_f
    const-string v0, "Exit app?"

    const-string v1, "exit"

    const-string v2, "OK"

    const-string v3, "Cancel"

    .line 506
    :goto_17
    new-instance v4, Landroid/app/AlertDialog$Builder;

    invoke-direct {v4, p0}, Landroid/app/AlertDialog$Builder;-><init>(Landroid/content/Context;)V

    .line 507
    invoke-virtual {v4, v0}, Landroid/app/AlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 508
    invoke-virtual {v4, v1}, Landroid/app/AlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Landroid/app/AlertDialog$Builder;

    .line 509
    new-instance v0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity$5;

    invoke-direct {v0, p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity$5;-><init>(Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;)V

    invoke-virtual {v4, v2, v0}, Landroid/app/AlertDialog$Builder;->setPositiveButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 517
    new-instance v0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity$6;

    invoke-direct {v0, p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity$6;-><init>(Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;)V

    invoke-virtual {v4, v3, v0}, Landroid/app/AlertDialog$Builder;->setNegativeButton(Ljava/lang/CharSequence;Landroid/content/DialogInterface$OnClickListener;)Landroid/app/AlertDialog$Builder;

    .line 523
    invoke-virtual {v4}, Landroid/app/AlertDialog$Builder;->create()Landroid/app/AlertDialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/AlertDialog;->show()V

    return-void
.end method

.method public Start()V
    .registers 3

    .line 131
    invoke-virtual {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->getWindow()Landroid/view/Window;

    move-result-object v0

    const/16 v1, 0x80

    invoke-virtual {v0, v1, v1}, Landroid/view/Window;->setFlags(II)V

    .line 132
    new-instance v0, Lcom/createmaster/dgame/dGameAppAndroidCore/dFilePacker;

    invoke-direct {v0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dFilePacker;-><init>()V

    iput-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_filePacker:Lcom/createmaster/dgame/dGameAppAndroidCore/dFilePacker;

    .line 133
    invoke-virtual {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->getPackageName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/createmaster/dgame/dGameAppAndroidCore/dFilePacker;->SetPassword(Ljava/lang/String;)V

    .line 134
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_filePacker:Lcom/createmaster/dgame/dGameAppAndroidCore/dFilePacker;

    const-string v1, "app.dgpk"

    invoke-virtual {v0, v1}, Lcom/createmaster/dgame/dGameAppAndroidCore/dFilePacker;->LoadFromFile(Ljava/lang/String;)Z

    .line 136
    :try_start_1e
    invoke-virtual {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->InitCutScreen()V
    :try_end_21
    .catchall {:try_start_1e .. :try_end_21} :catchall_21

    :catchall_21
    return-void
.end method

.method public onBackPressed()V
    .registers 1

    .line 491
    invoke-virtual {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->ShowExitDialog()V

    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .registers 3

    .line 87
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 89
    invoke-virtual {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->getIntent()Landroid/content/Intent;

    move-result-object p1

    invoke-virtual {p1}, Landroid/content/Intent;->getFlags()I

    move-result p1

    const/high16 v0, 0x400000

    and-int/2addr p1, v0

    if-eqz p1, :cond_1b

    const-string p1, "libgl2jni"

    const-string v0, "FLAG_ACTIVITY_BROUGHT_TO_FRONT"

    .line 90
    invoke-static {p1, v0}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 91
    invoke-virtual {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->finish()V

    return-void

    .line 94
    :cond_1b
    sput-object p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->Instance:Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;

    .line 97
    sget p1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v0, 0xb

    if-le p1, v0, :cond_37

    sget p1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v0, 0x13

    if-ge p1, v0, :cond_37

    .line 98
    invoke-virtual {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->getWindow()Landroid/view/Window;

    move-result-object p1

    invoke-virtual {p1}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object p1

    const/16 v0, 0x8

    .line 99
    invoke-virtual {p1, v0}, Landroid/view/View;->setSystemUiVisibility(I)V

    goto :goto_44

    .line 102
    :cond_37
    invoke-virtual {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->getWindow()Landroid/view/Window;

    move-result-object p1

    invoke-virtual {p1}, Landroid/view/Window;->getDecorView()Landroid/view/View;

    move-result-object p1

    const/16 v0, 0x1706

    .line 107
    invoke-virtual {p1, v0}, Landroid/view/View;->setSystemUiVisibility(I)V

    .line 111
    :goto_44
    sget p1, Landroid/os/Build$VERSION;->SDK_INT:I

    const/16 v0, 0x1c

    if-lt p1, v0, :cond_55

    .line 112
    invoke-virtual {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->getWindow()Landroid/view/Window;

    move-result-object p1

    invoke-virtual {p1}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object p1

    const/4 v0, 0x1

    iput v0, p1, Landroid/view/WindowManager$LayoutParams;->layoutInDisplayCutoutMode:I

    .line 114
    :cond_55
    invoke-virtual {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->getResources()Landroid/content/res/Resources;

    move-result-object p1

    const v0, 0x7f0c0001

    invoke-virtual {p1, v0}, Landroid/content/res/Resources;->getString(I)Ljava/lang/String;

    move-result-object p1

    .line 115
    invoke-static {p1}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result p1

    iput p1, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_nLocalLanguage:I

    .line 117
    new-instance p1, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableAll;

    invoke-direct {p1}, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableAll;-><init>()V

    iput-object p1, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_pMyPlayable:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableAll;

    .line 118
    invoke-virtual {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->Start()V

    .line 119
    new-instance p1, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity$1;

    invoke-direct {p1, p0, p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity$1;-><init>(Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;Landroid/content/Context;)V

    .line 128
    invoke-virtual {p0}, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->Login()V

    return-void
.end method

.method protected onPause()V
    .registers 2

    .line 526
    invoke-super {p0}, Landroid/app/Activity;->onPause()V

    .line 527
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_webView:Landroid/webkit/WebView;

    if-eqz v0, :cond_a

    .line 528
    invoke-virtual {v0}, Landroid/webkit/WebView;->onPause()V

    .line 530
    :cond_a
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_pMyPlayable:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableAll;

    if-eqz v0, :cond_11

    .line 531
    invoke-virtual {v0}, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableAll;->onPause()V

    :cond_11
    return-void
.end method

.method protected onResume()V
    .registers 2

    .line 538
    invoke-super {p0}, Landroid/app/Activity;->onResume()V

    .line 539
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_webView:Landroid/webkit/WebView;

    if-eqz v0, :cond_a

    .line 540
    invoke-virtual {v0}, Landroid/webkit/WebView;->onResume()V

    .line 542
    :cond_a
    iget-object v0, p0, Lcom/createmaster/dgame/dGameAppAndroidCore/dGameAppAndroidActivity;->m_pMyPlayable:Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableAll;

    if-eqz v0, :cond_11

    .line 543
    invoke-virtual {v0}, Lcom/createmaster/dgame/dGameAppAndroidCore/myPlayableAll;->onResume()V

    :cond_11
    return-void
.end method

.method protected onStop()V
    .registers 1

    .line 535
    invoke-super {p0}, Landroid/app/Activity;->onStop()V

    return-void
.end method

免费评分

参与人数 1热心值 +1 收起 理由
cc5i1 + 1 用心讨论,共获提升!

查看全部评分

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

推荐
mitian 发表于 2024-11-29 14:52
mitian 发表于 2024-11-29 12:13
搞定了,等我发帖子

【游戏逆向】关于跳过广告领取奖励的解决策略
https://bbs.binmt.cc/thread-142542-1-1.html
(出处: MT论坛)
沙发
cc5i1 发表于 2024-11-26 16:55
你这个没有图片,很多人看见可能就走了,建议弄张图给大家看看
3#
rl910407 发表于 2024-11-26 17:09
没有图片,很多人看见可能就走了,建议弄张图给大家看
4#
RSE 发表于 2024-11-26 17:11
确实,好歹截几个图看看吧
5#
946825328 发表于 2024-11-26 17:26
大哥 你好歹截个图 让兄弟们看下哈你这 怎么搞
6#
 楼主| 冥界3大法王 发表于 2024-11-26 17:30 |楼主
946825328 发表于 2024-11-26 17:26
大哥 你好歹截个图 让兄弟们看下哈你这 怎么搞

安卓手机里咋传图片,老大教我
7#
etclub 发表于 2024-11-26 17:33
蹲一个后续
8#
946825328 发表于 2024-11-26 17:35
冥界3大法王 发表于 2024-11-26 17:30
安卓手机里咋传图片,老大教我

另外一个手机 emm
9#
lizooo 发表于 2024-11-26 18:37
蹲个后续,期待大神出手,咱也跟着学习学习
10#
Hy99297 发表于 2024-11-26 20:00
换个思路,过滤拦截加载的广告视频替换为空白视频。
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-12-23 22:18

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表