由于软件的特殊性,安全起见请自行折腾,不提供成品
闲鱼app为当前最新版6.7.30,未来更新方法可能会有不同。软件自带校验,用MT管理器的一键去除校验(加强版)功能即可。神奇的的是加强版居然可以轻松绕过检测,应该加个so校验,检测自身是否被hook,可提升app的安全性。
谷歌上的闲鱼貌似没有广告,但是很久不更新了,版本非常旧,不建议使用。
方法一:修改AndroidManifest
通过活动记录,可以发现启动顺序是【com.taobao.fleamarket.home.activity.MainActivity】→【com.taobao.fleamarket.home.activity.AdvertActivity】→【com.taobao.fleamarket.home.activity.MainActivity】
可以发现MainActivity既是启动界面也是主窗口,中间插了个AdvertActivity,那么把AdvertActivity删掉即可。所以打开AndroidManifest,搜索AdvertActivity,只有一个结果,把它的权限删掉即可。
- <activity android:configChanges="orientation" android:name="com.taobao.fleamarket.home.activity.AdvertActivity" android:screenOrientation="portrait" android:theme="@style/FishAppTheme.AdvertScreen"/>
方法二:修改dex
直接打开AdvertActivity这个文件,然后看看有什么玩意儿在里面。
打开后直接找onCreate(Landroid/os/Bundle;)V,可以发现有个字符串“AdvertActivity_onCreate-START”,往下拉会看见“AdvertActivity_onCreate-END”。
AdvertActivity_onCreate-END下面有个地址:cond_1,看看是从哪里跳下来的。如果运行到:cond_1就不能立即到达AdvertActivity_onCreate-END,就会显示广告倒计时。
- .line 44
- .local v1, "type":Ljava/lang/String;
- if-eqz v1, :cond_1
如上图绿框,就是要删掉的部分,不给他运行到:cond_1。回编译测试,启动5秒的广告已经去除。
方法三:干掉布局窗口
通过布局抓取软件,可以获得广告界面为advert_img,通过查询public,可以获得id="0x7f100fb3",然后代码搜索0x7f100fb3。有1个关键结果,定位到init(Landroid/content/Context;)V这个方法,通过java可以发现他在查找广告区域。
关键smali代码如下:
- .line 87
- const v2, 0x7f100fb4
- invoke-virtual {p0, v2}, Lcom/taobao/fleamarket/home/view/SplashScreenView;->findViewById(I)Landroid/view/View;
- move-result-object v2
- check-cast v2, Landroid/widget/FrameLayout;
- iput-object v2, p0, Lcom/taobao/fleamarket/home/view/SplashScreenView;->mAdvertZone【广告区域】:Landroid/widget/FrameLayout;
- .line 88
- const v2, 0x7f100fb7
- invoke-virtual {p0, v2}, Lcom/taobao/fleamarket/home/view/SplashScreenView;->findViewById(I)Landroid/view/View;
- move-result-object v2
- check-cast v2, Landroid/widget/FrameLayout;
- iput-object v2, p0, Lcom/taobao/fleamarket/home/view/SplashScreenView;->mLogoZone【商标区域】:Landroid/widget/FrameLayout;
- .line 89
- const v2, 0x7f100505
- invoke-virtual {p0, v2}, Lcom/taobao/fleamarket/home/view/SplashScreenView;->findViewById(I)Landroid/view/View;
- move-result-object v2
- check-cast v2, Lcom/taobao/idlefish/ui/widget/FishImageView;
- iput-object v2, p0, Lcom/taobao/fleamarket/home/view/SplashScreenView;->mLogo【商标】:Lcom/taobao/idlefish/ui/widget/FishImageView;
- .line 90
- const v2, 0x7f100fb3
- invoke-virtual {p0, v2}, Lcom/taobao/fleamarket/home/view/SplashScreenView;->findViewById(I)Landroid/view/View;
- move-result-object v2
- check-cast v2, Lcom/taobao/idlefish/ui/imageview/FishNetworkImageView;
- iput-object v2, p0, Lcom/taobao/fleamarket/home/view/SplashScreenView;->mAdvertImg【广告图片】:Lcom/taobao/idlefish/ui/imageview/FishNetworkImageView;
- .line 91
- const v2, 0x7f100fb2
- invoke-virtual {p0, v2}, Lcom/taobao/fleamarket/home/view/SplashScreenView;->findViewById(I)Landroid/view/View;
- move-result-object v2
- check-cast v2, Lcom/taobao/idlefish/multimedia/video/api/player/VideoPlayerView;
- iput-object v2, p0, Lcom/taobao/fleamarket/home/view/SplashScreenView;->mSurfaceView【动态效果】:Lcom/taobao/idlefish/multimedia/video/api/player/VideoPlayerView;
- .line 92
- const v2, 0x7f100fb5
- invoke-virtual {p0, v2}, Lcom/taobao/fleamarket/home/view/SplashScreenView;->findViewById(I)Landroid/view/View;
- move-result-object v2
- iput-object v2, p0, Lcom/taobao/fleamarket/home/view/SplashScreenView;->mAdvertClose【关闭按钮】:Landroid/view/View;
- .line 93
- iget-object v2, p0, Lcom/taobao/fleamarket/home/view/SplashScreenView;->mAdvertClose:Landroid/view/View;
- const/16 v3, 0x8
- invoke-virtual {v2, v3}, Landroid/view/View;->setVisibility(I)V
- .line 94
- const v2, 0x7f100fb6
- invoke-virtual {p0, v2}, Lcom/taobao/fleamarket/home/view/SplashScreenView;->findViewById(I)Landroid/view/View;
- move-result-object v2
- check-cast v2, Landroid/widget/TextView;
- iput-object v2, p0, Lcom/taobao/fleamarket/home/view/SplashScreenView;->mAdvertCloseText【关闭按钮文字】:Landroid/widget/TextView;
把这些代码全部删掉即可,回编译测试,开启软件已经没有启动广告了。
最后BB几句,闲鱼骗子多,小白卖家也多,慎用。我见过东西坏了都看不出的卖家,对手上的物品一无所知。
声明:本站所有资源均由网友分享,如有侵权内容,请在文章下方留言,本站会立即处理。