Smali 发表于 2017-7-2 14:50

apk去广告 小白版

本帖最后由 Smali 于 2017-7-2 14:54 编辑

看了几位坛友的教程,激起了我内心搞事的想法,我也来分享一下自己的小白去广告方法 - -。
1,把app放到AndroidKill里,直接搜160x600_as
   
2,把红色框里的值全改为 0x0
修改前:

修改后:

修改前的代码:.method static constructor <clinit>()V
    .locals 6

    const/16 v5, 0x140

    const/4 v4, -0x3

    new-instance v0, Lcom/google/android/gms/ads/g;

    const/16 v1, 0x32

    const-string v2, "320x50_mb"

    invoke-direct {v0, v5, v1, v2}, Lcom/google/android/gms/ads/g;-><init>(IILjava/lang/String;)V

    sput-object v0, Lcom/google/android/gms/ads/g;->a:Lcom/google/android/gms/ads/g;

    new-instance v0, Lcom/google/android/gms/ads/g;

    const/16 v1, 0x1d4

    const/16 v2, 0x3c

    const-string v3, "468x60_as"

    invoke-direct {v0, v1, v2, v3}, Lcom/google/android/gms/ads/g;-><init>(IILjava/lang/String;)V

    sput-object v0, Lcom/google/android/gms/ads/g;->b:Lcom/google/android/gms/ads/g;

    new-instance v0, Lcom/google/android/gms/ads/g;

    const/16 v1, 0x64

    const-string v2, "320x100_as"

    invoke-direct {v0, v5, v1, v2}, Lcom/google/android/gms/ads/g;-><init>(IILjava/lang/String;)V

    sput-object v0, Lcom/google/android/gms/ads/g;->c:Lcom/google/android/gms/ads/g;

    new-instance v0, Lcom/google/android/gms/ads/g;

    const/16 v1, 0x2d8

    const/16 v2, 0x5a

    const-string v3, "728x90_as"

    invoke-direct {v0, v1, v2, v3}, Lcom/google/android/gms/ads/g;-><init>(IILjava/lang/String;)V

    sput-object v0, Lcom/google/android/gms/ads/g;->d:Lcom/google/android/gms/ads/g;

    new-instance v0, Lcom/google/android/gms/ads/g;

    const/16 v1, 0x12c

    const/16 v2, 0xfa

    const-string v3, "300x250_as"

    invoke-direct {v0, v1, v2, v3}, Lcom/google/android/gms/ads/g;-><init>(IILjava/lang/String;)V

    sput-object v0, Lcom/google/android/gms/ads/g;->e:Lcom/google/android/gms/ads/g;

    new-instance v0, Lcom/google/android/gms/ads/g;

    const/16 v1, 0xa0

    const/16 v2, 0x258

    const-string v3, "160x600_as"

    invoke-direct {v0, v1, v2, v3}, Lcom/google/android/gms/ads/g;-><init>(IILjava/lang/String;)V

    sput-object v0, Lcom/google/android/gms/ads/g;->f:Lcom/google/android/gms/ads/g;

    new-instance v0, Lcom/google/android/gms/ads/g;

    const/4 v1, -0x1

    const/4 v2, -0x2

    const-string v3, "smart_banner"

    invoke-direct {v0, v1, v2, v3}, Lcom/google/android/gms/ads/g;-><init>(IILjava/lang/String;)V

    sput-object v0, Lcom/google/android/gms/ads/g;->g:Lcom/google/android/gms/ads/g;

    new-instance v0, Lcom/google/android/gms/ads/g;

    const/4 v1, -0x4

    const-string v2, "fluid"

    invoke-direct {v0, v4, v1, v2}, Lcom/google/android/gms/ads/g;-><init>(IILjava/lang/String;)V

    sput-object v0, Lcom/google/android/gms/ads/g;->h:Lcom/google/android/gms/ads/g;

    new-instance v0, Lcom/google/android/gms/ads/g;

    const/4 v1, 0x0

    const-string v2, "search_v2"

    invoke-direct {v0, v4, v1, v2}, Lcom/google/android/gms/ads/g;-><init>(IILjava/lang/String;)V

    sput-object v0, Lcom/google/android/gms/ads/g;->i:Lcom/google/android/gms/ads/g;

    return-void
.end method
修改后的代码:
.method static constructor <clinit>()V
    .locals 6

    const/16 v5, 0x140

    const/4 v4, -0x3

    new-instance v0, Lcom/google/android/gms/ads/g;

    const/16 v1, 0x0

    const-string v2, "320x50_mb"

    invoke-direct {v0, v5, v1, v2}, Lcom/google/android/gms/ads/g;-><init>(IILjava/lang/String;)V

    sput-object v0, Lcom/google/android/gms/ads/g;->a:Lcom/google/android/gms/ads/g;

    new-instance v0, Lcom/google/android/gms/ads/g;

    const/16 v1, 0x0

    const/16 v2, 0x0

    const-string v3, "468x60_as"

    invoke-direct {v0, v1, v2, v3}, Lcom/google/android/gms/ads/g;-><init>(IILjava/lang/String;)V

    sput-object v0, Lcom/google/android/gms/ads/g;->b:Lcom/google/android/gms/ads/g;

    new-instance v0, Lcom/google/android/gms/ads/g;

    const/16 v1, 0x0

    const-string v2, "320x100_as"

    invoke-direct {v0, v5, v1, v2}, Lcom/google/android/gms/ads/g;-><init>(IILjava/lang/String;)V

    sput-object v0, Lcom/google/android/gms/ads/g;->c:Lcom/google/android/gms/ads/g;

    new-instance v0, Lcom/google/android/gms/ads/g;

    const/16 v1, 0x0

    const/16 v2, 0x0

    const-string v3, "728x90_as"

    invoke-direct {v0, v1, v2, v3}, Lcom/google/android/gms/ads/g;-><init>(IILjava/lang/String;)V

    sput-object v0, Lcom/google/android/gms/ads/g;->d:Lcom/google/android/gms/ads/g;

    new-instance v0, Lcom/google/android/gms/ads/g;

    const/16 v1, 0x0

    const/16 v2, 0x0

    const-string v3, "300x250_as"

    invoke-direct {v0, v1, v2, v3}, Lcom/google/android/gms/ads/g;-><init>(IILjava/lang/String;)V

    sput-object v0, Lcom/google/android/gms/ads/g;->e:Lcom/google/android/gms/ads/g;

    new-instance v0, Lcom/google/android/gms/ads/g;

    const/16 v1, 0x0

    const/16 v2, 0x0

    const-string v3, "160x600_as"

    invoke-direct {v0, v1, v2, v3}, Lcom/google/android/gms/ads/g;-><init>(IILjava/lang/String;)V

    sput-object v0, Lcom/google/android/gms/ads/g;->f:Lcom/google/android/gms/ads/g;

    new-instance v0, Lcom/google/android/gms/ads/g;

    const/4 v1, -0x1

    const/4 v2, -0x2

    const-string v3, "smart_banner"

    invoke-direct {v0, v1, v2, v3}, Lcom/google/android/gms/ads/g;-><init>(IILjava/lang/String;)V

    sput-object v0, Lcom/google/android/gms/ads/g;->g:Lcom/google/android/gms/ads/g;

    new-instance v0, Lcom/google/android/gms/ads/g;

    const/4 v1, -0x4

    const-string v2, "fluid"

    invoke-direct {v0, v4, v1, v2}, Lcom/google/android/gms/ads/g;-><init>(IILjava/lang/String;)V

    sput-object v0, Lcom/google/android/gms/ads/g;->h:Lcom/google/android/gms/ads/g;

    new-instance v0, Lcom/google/android/gms/ads/g;

    const/4 v1, 0x0

    const-string v2, "search_v2"

    invoke-direct {v0, v4, v1, v2}, Lcom/google/android/gms/ads/g;-><init>(IILjava/lang/String;)V

    sput-object v0, Lcom/google/android/gms/ads/g;->i:Lcom/google/android/gms/ads/g;

    return-void
.end method

3,保存编译,安装。


当合 发表于 2017-7-2 16:28

不过它还是会耗流量的,只不过是不会出现在屏幕上了

mlken 发表于 2017-7-3 01:01

独行风云 发表于 2017-7-2 15:55
楼主您好,请问为什么要直接搜160x600_as
而不是搜索其它?

因为这个谷歌广告的尺寸就是这个吧{:1_912:}

宇宙小菜鸟 发表于 2017-7-2 15:29

你这是掩耳盗铃啊老铁!

独行风云 发表于 2017-7-2 15:55

楼主您好,请问为什么要直接搜160x600_as
而不是搜索其它?

GLaDOS 发表于 2017-7-2 16:08

兄弟,大小你是怎么确定的,有没有什么特技?

小小怪 发表于 2017-7-2 16:18

厉害了 静态编译

夏雨微凉 发表于 2017-7-2 16:27

眼不见心不烦.png

当合 发表于 2017-7-2 16:30

GLaDOS 发表于 2017-7-2 16:08
兄弟,大小你是怎么确定的,有没有什么特技?

老司机可以根据经验啊{:1_926:}

当合 发表于 2017-7-2 16:31

独行风云 发表于 2017-7-2 15:55
楼主您好,请问为什么要直接搜160x600_as
而不是搜索其它?

楼主应该是老司机一眼看出来的

sunfly 发表于 2017-7-2 16:38

你好厉害啊
页: [1] 2 3 4 5 6 7
查看完整版本: apk去广告 小白版