当前位置: 首页 > news >正文

破解进入网站后台建设部网站实名制举报

破解进入网站后台,建设部网站实名制举报,杭州互联网企业排名,网络公关事件环境 aosp: android-14.0.0_r1 真机#xff1a;Pixel5 目标 我想把usb连接的两个系统通知屏蔽掉 “正在通过 USB 为此设备充电”“已连接到 USB 调试” 步骤 首先找到这两句内容出现的位置在 frameworks/base/core/res/res/values-zh-rCN/strings.xml string namePixel5 目标 我想把usb连接的两个系统通知屏蔽掉 “正在通过 USB 为此设备充电”“已连接到 USB 调试” 步骤 首先找到这两句内容出现的位置在 frameworks/base/core/res/res/values-zh-rCN/strings.xml string nameusb_charging_notification_title msgid1674124518282666955正在通过 USB 为此设备充电/stringstring nameadb_active_notification_title msgid408390247354560331已连接到 USB 调试/string string nameadb_active_notification_message msgid5617264033476778211点按即可关闭 USB 调试/string然后找到代码实现的位置 分别是 frameworks/base/core/java/android/debug/AdbNotifications.java frameworks/base/services/usb/java/com/android/server/usb/UsbDeviceManager.java Notification.Builder builder new Notification.Builder(mContext, channel).setSmallIcon(com.android.internal.R.drawable.stat_sys_adb).setWhen(0).setOngoing(true).setTicker(title).setDefaults(0) // please be quiet.setColor(mContext.getColor(com.android.internal.R.color.system_notification_accent_color)).setContentTitle(title).setContentText(message).setContentIntent(pi).setVisibility(Notification.VISIBILITY_PUBLIC);if (titleRes com.android.internal.R.string.usb_unsupported_audio_accessory_title) {builder.setStyle(new Notification.BigTextStyle().bigText(message));}Notification notification builder.build();mNotificationManager.notifyAsUser(null, id, notification,UserHandle.ALL);Slog.d(TAG, push notification: title);Log.w(TAG, push notification:title title ;message message);mUsbNotificationId id;if (!mAdbNotificationShown) {Notification notification AdbNotifications.createNotification(mContext,AdbTransportType.USB);mAdbNotificationShown true;Log.w(TAG, updateAdbNotification:id id);mNotificationManager.notifyAsUser(null, id, notification, UserHandle.ALL); }主要是mNotificationManager.notifyAsUser()这个方法它会把内容都通知出去。所以处理它就行如果不想要所有的系统通知屏蔽掉它就行。但我只是不想要两个内容。 修改如下 Notification notification builder.build(); if(message ! null !message.equals(r.getText(com.android.internal.R.string.usb_notification_message))) {mNotificationManager.notifyAsUser(null, id, notification,UserHandle.ALL); }if (!mAdbNotificationShown) {Notification notification AdbNotifications.createNotification(mContext, AdbTransportType.USB);mAdbNotificationShown true;//mNotificationManager.notifyAsUser(null, id, notification, UserHandle.ALL); }很简单吧最后测试通过
http://www.hkea.cn/news/14415815/

相关文章:

  • 贵阳城乡建设学校网站大连网站建设案例
  • 中国建设监理协会网站会员专区海南七星彩网站建设
  • 多种网站班玛县网站建设公司
  • 安徽 建设 招聘信息网站网站建设 安庆
  • 网站建设公司计划书软件下载网站模版
  • 百度的网站收录怎么做汉服网页设计作品
  • 测词汇量的专业网站网站建设导入视频
  • 手机免费建立网站济南seo优化公司
  • 做淘宝推广开网站合适全屋定制品牌推荐
  • 建材公司网站建设方案我爱777在线观看
  • p2p网站建设后期维护私人pk赛车网站怎么做
  • 如何做网站豆瓣厦门seo网络推广
  • 免费建站系统下载乐平网站
  • dw做的网站能搜到吗wordpress主题柚子皮zip
  • 兔展在线制作网站html网页制作总结
  • 榆林尚呈高端网站建设学院评估 网站建设整改
  • 品牌企业网站建设公司价格网站开发端口查询
  • 网站建设有哪些问题视频网站建站程序
  • 做照片视频的网站资讯型电商网站优缺点
  • 襄阳手机网站建设合肥房产网365
  • 织梦网站栏目江苏省建设执业资格中心网站
  • 网站开发 视频播放器wordpress 好用插件
  • 学校网站设计思路系统集成项目管理
  • windows 2003做网站如何知道wordpress
  • html网站免费模板开发公司移交给物业资料说明
  • 做英文网站怎么赚钱网站做流量的论坛贴吧
  • 建站公司网站 phpwind网站建议反馈应该怎么做
  • 廊坊哪里能够做网站微信公众号做电影网站要域名吗
  • 网站建设目的与作用织梦系统做的网站打开慢
  • 龙岗网站建设工程17网站一起做网店质量怎么样