好友
阅读权限10
听众
最后登录1970-1-1
|
本帖最后由 Smali 于 2017-7-2 14:54 编辑
看了几位坛友的教程,激起了我内心搞事的想法,我也来分享一下自己的小白去广告方法 - -。
1,把app放到AndroidKill里,直接搜 160x600_as
2,把红色框里的值全改为 0x0
修改前:
修改后:
修改前的代码:[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,保存编译,安装。
|
免费评分
-
查看全部评分
本帖被以下淘专辑推荐:
- · 安卓合集|主题: 1130, 订阅: 1356
- · 杂七杂八|主题: 1074, 订阅: 320
- · 教程类|主题: 265, 订阅: 43
|