关闭蓝牙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

相关推荐
伤不起bb18 分钟前
Redis 哨兵模式
数据库·redis·缓存
卑微的Coder19 分钟前
Redis Set集合命令、内部编码及应用场景(详细)
java·数据库·redis
2501_9153738820 分钟前
Redis线程安全深度解析:单线程模型的并发智慧
数据库·redis·安全
呼拉拉呼拉22 分钟前
Redis知识体系
数据库·redis·缓存·知识体系
霖檬ing24 分钟前
Redis——主从&哨兵配置
数据库·redis·缓存
卜及中3 小时前
【Redis/2】核心特性、应用场景与安装配置
数据库·redis·缓存
LucianaiB4 小时前
如何做好一份优秀的技术文档:专业指南与最佳实践
android·java·数据库
Eiceblue4 小时前
Python读取PDF:文本、图片与文档属性
数据库·python·pdf
敖云岚7 小时前
【Redis】分布式锁的介绍与演进之路
数据库·redis·分布式
LUCIAZZZ7 小时前
HikariCP数据库连接池原理解析
java·jvm·数据库·spring·springboot·线程池·连接池