这里直接修改原帖的方法
原帖在最后
找到请求广告的代码
[Java] 纯文本查看 复制代码public void onRequestAD(String str, String str2, ADBean aDBean) {
SinkLog.i("ProcessBackAD", "onRequestAD");
List validADs = this.mADRequest.getValidADs(aDBean, this.mSupportADList); // 请求广告代码
boolean z = false;
if (validADs != null && validADs.size() > 0) {
this.mADBean = (ADBean.DataBean) validADs.get(0);
ADBean.DataBean dataBean = this.mADBean;
if (dataBean != null && !TextUtils.isEmpty(dataBean.brgb)) {
SinkLog.i("ProcessBackAD", "onRequestAD mADBean.brgb=" + this.mADBean.brgb);
this.mServerColor = this.mADBean.brgb;
}
z = true;
}
SinkLog.i("ProcessBackAD", "onRequestAD hasValidAD: " + z);
if (z) {
return;
}
SinkDataReport.getInstance().onADRequestComplete(this.mPlayInfo, "", "3", 0, 0, false, 1);
if (this.mADCallback != null) {
this.mADCallback.onADEnd(this, -1);
}
}
定位到 com/hpplay/sdk/sink/business/ads/cloud/ADRequest; getValidADs方法
让请求广告的接口返回空
找的图片位置插入
const/4 p1, 0x0
微信截图_20240128200339.png (58.47 KB, 下载次数: 0)
下载附件
2024-1-28 20:04 上传
然后投屏就没有广告了
原帖在这里 可以先看原帖
某电视投屏软件去广告 https://www.52pojie.cn/forum.php?mod=viewthread&tid=1733587