关闭蓝牙hci日志

@echo off

::1.获取最开始的文件夹路径

set "Start_BT=%~dp0"

for /f %%A in ('powershell -Command "Get-Date -Format yyyy_MMdd_HHmmss"') do set "timestamp=%%A"

echo Timestamp: %timestamp%

title Set_Debug_Set_HCI_LOG%timestamp%

::打开工程模式

adb shell am start -n 工程模式包名/工程模式包名.MainActivity&

::4.获取root权限

:retry

adb root

if %errorlevel% neq 0 (

echo adb root failed. Retrying...

goto retry

)

echo Congratulations To Adb Root For His Success....

::重启工程模式

adb shell am force-stop adb shell am force-stop 工程模式包名

adb shell am start -n 工程模式包名/工程模式包名.MainActivity&

adb shell input tap 216 413

::................start................

:Set_HCI_LOG

adb shell setprop persist.bluetooth.btsnooplogmode disabled

if %errorlevel% neq 0 (

echo Set_HCI_LOG Failed. Set_HCI_LOG...

goto Set_HCI_LOG

)

::................end................

::................start................

::操作蓝牙开关和WiFi开关

:statusbar_open

adb shell service call statusbar 1

if %errorlevel% neq 0 (

echo captive_portal_mode Failed. captive_portal_mode...

goto statusbar_open

)

adb shell input tap 1014 510

adb shell input tap 1014 510

adb shell input tap 1024 310

adb shell input tap 1024 310

adb shell input swipe 956 1074 1000 100

::................end................

::................start................

::打开wifi

:captive_portal_mode1

adb shell settings put global captive_portal_mode 0

if %errorlevel% neq 0 (

echo captive_portal_mode Failed. captive_portal_mode...

goto captive_portal_mode1

)

::................end................

cls

::................start................

echo Congratulations To Adb Root For His Success....

echo ..................Check_HCI_LOG...................

adb shell ls data/misc/bluetooth/logs/

echo ..................Check_HCI_LOG..................

timeout /nobreak /t 6

adb shell am force-stop 工程模式包名

::................end................

timeout /nobreak /t 5

exit

相关推荐
Navicat中国5 分钟前
Navicat Premium Lite 正式登录鸿蒙应用市场
数据库·华为·harmonyos·navicat
Yvonne爱编码11 分钟前
数据库---Day 1 数据库基础
数据库·mysql·oracle
Ricky_Theseus17 分钟前
数据库关系代数 - 连接操作
linux·数据库·算法
2301_7938046920 分钟前
定时任务专家:Python Schedule库使用指南
jvm·数据库·python
guslegend32 分钟前
MySQL高手第三章
数据库·mysql
spring2997921 小时前
MySQL无法连接到本地localhost的解决办法2024.11.8
数据库·mysql·adb
L1624761 小时前
MySQL 8.0 MGR + KeepAlived 生产级全流程搭建手册
数据库·mysql
Rust语言中文社区1 小时前
【Rust日报】用 Rust 重写的 Turso 是一个更好的 SQLite 吗?
开发语言·数据库·后端·rust·sqlite
Dontla1 小时前
VScode插件SQLite Viewer介绍(允许开发者不离开编辑器,直接打开、浏览和查询SQLite数据库文件)(ChromaDB、向量库插件、数据库插件、.sqlite3)DBeaver
数据库·vscode
星辰徐哥1 小时前
易语言数据库操作初步:内置Ado引擎与SQLite3快速上手
数据库·oracle·sqlite·易语言