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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值