吾爱破解 - 52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 15408|回复: 67
收起左侧

[Android 原创] apk去广告 小白版

  [复制链接]
Smali 发表于 2017-7-2 14:50
本帖最后由 Smali 于 2017-7-2 14:54 编辑

看了几位坛友的教程,激起了我内心搞事的想法,我也来分享一下自己的小白去广告方法 - -。
1,把app放到AndroidKill里,直接搜  160x600_as
    QQ截图20170702144828.png QQ截图20170702144838.png QQ截图20170702135510.png
2,把红色框里的值全改为 0x0
修改前:
QQ截图20170702144026.png QQ截图20170702144054.png
修改后:
QQ截图20170702144433.png QQ截图20170702144342.png
修改前的代码:
[Java] 纯文本查看 复制代码
.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

修改后的代码:
[Java] 纯文本查看 复制代码
.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,保存编译,安装。
QQ截图20170702144742.png QQ截图20170702144753.png

免费评分

参与人数 19吾爱币 +24 热心值 +18 收起 理由
strive青春 + 1 + 1 欢迎分析讨论交流,吾爱破解论坛有你更精彩!
kozyan + 1 + 1 先评分,再仔细研究一下!
ssdbmm + 1 + 1 谢谢@Thanks!
二黑 + 1 + 1 谢谢@Thanks!
hmily4311 + 1 + 1 我很赞同!
ZF0806 + 1 用心讨论,共获提升!
死宅松柏叶 + 1 萌新受教了
kexue8 + 1 + 1 谢谢@Thanks!
山野闲鹤 + 1 + 1 谢谢@Thanks!
dou023 + 1 + 1 谢谢@Thanks!
52破解☆ + 1 + 1 我很赞同!
yyshun + 2 + 1 欢迎分析讨论交流,吾爱破解论坛有你更精彩!
CheatHigh + 1 + 1 谢谢@Thanks!
qtfreet00 + 6 + 1 感谢发布原创作品,吾爱破解论坛因你更精彩!
yabghu + 1 + 1 感谢发布原创作品,吾爱破解论坛因你更精彩!
ok_welcome + 1 + 1 我很赞同!
有你的远方 + 1 + 1 热心回复!
独行风云 + 1 + 1 感谢发布原创作品,吾爱破解论坛因你更精彩!
小志918 + 1 + 1 谢谢@Thanks!

查看全部评分

本帖被以下淘专辑推荐:

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

当合 发表于 2017-7-2 16:28
不过它还是会耗流量的,只不过是不会出现在屏幕上了

免费评分

参与人数 1热心值 +1 收起 理由
610100 + 1 我很赞同!

查看全部评分

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
兄弟,大小你是怎么确定的,有没有什么特技?

老司机可以根据经验啊
当合 发表于 2017-7-2 16:31
独行风云 发表于 2017-7-2 15:55
楼主您好,请问为什么要直接搜  160x600_as
而不是搜索其它?

楼主应该是老司机一眼看出来的
sunfly 发表于 2017-7-2 16:38
你好厉害啊
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则

返回列表

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

GMT+8, 2024-11-24 21:52

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

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