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

相关推荐
m0_687399842 分钟前
QT combox 前缀匹配
开发语言·数据库·qt
vvvae12348 小时前
分布式数据库
数据库
雪域迷影9 小时前
PostgreSQL Docker Error – 5432: 地址已被占用
数据库·docker·postgresql
bug菌¹10 小时前
滚雪球学Oracle[4.2讲]:PL/SQL基础语法
数据库·oracle
逸巽散人10 小时前
SQL基础教程
数据库·sql·oracle
月空MoonSky10 小时前
Oracle中TRUNC()函数详解
数据库·sql·oracle
momo小菜pa10 小时前
【MySQL 06】表的增删查改
数据库·mysql
向上的车轮11 小时前
Django学习笔记二:数据库操作详解
数据库·django
编程老船长11 小时前
第26章 Java操作Mongodb实现数据持久化
数据库·后端·mongodb
全栈师12 小时前
SQL Server中关于个性化需求批量删除表的做法
数据库·oracle