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

相关推荐
大新屋20 分钟前
MongoDB 分片集群复制数据库副本
数据库·mongodb
努力的小郑22 分钟前
放弃使用 Redis 事务!这才是它正确的打开方式!
数据库·redis
ademen2 小时前
spring第9课,spring对DAO的支持
java·数据库·spring
Java小白程序员2 小时前
SQL 语句进阶实战:从基础查询到性能优化全指南
数据库·sql·性能优化
君不见,青丝成雪2 小时前
Hadoop技术栈(四)HIVE常用函数汇总
大数据·数据库·数据仓库·hive·sql
不羁。。7 小时前
【撸靶笔记】第七关:GET - Dump into outfile - String
数据库·笔记·oracle
yangchanghua1119 小时前
pgsql 如何查询今天范围内的数据(当天0点0分0秒 - 当天23点59分59秒....)
数据库·pgsql
larance9 小时前
SQLAlchemy 的异步操作来批量保存对象列表
数据库·python
python_chai9 小时前
从数据汇总到高级分析,SQL 查询进阶实战(下篇)—— 分组、子查询与窗口函数全攻略
数据库·sql·mysql