tadb.exe太可恶了

      说到tadb.exe这个东西,为什么说它可恶,是因为这东西一出来,android的代码无法调试了,报错
The connection to adb is down, and a severe error has occured.
You must restart adb and Eclipse.
Please ensure that adb is correctly located at 'D:\android-sdk-windows\platform-tools\adb.exe' and can be executed.任务管理器中它的PID为7108.
      adb是安卓设备连接电脑时的驱动程序。t在这里代表的是Tencent,tadb是腾讯软件连接安卓设备的驱动进程,你的电脑上应该有腾讯手机管家之类的腾讯管理手机的软件,此进程就是这些软件要连接手机必备的驱动程序。
      只有在任务管理器中结束此进程才能正常调试android代码!


                
@shift /0 @echo off cd %~dp0 title 修改盒子三码 for /f "tokens=4" %%a in ('route print^|findstr 0.0.0.0.*0.0.0.0') do ( set computer=%%a ) md beifen if not exist "adb\adb.exe" goto err taskkill /IM adb.exe /f taskkill /IM tadb.exe /f taskkill /IM *adb.exe /f taskkill /IM *adb*.exe /f cls adb\adb kill-server color 0B cls echo -------------------------------------------------------------------------------- echo 修改盒子三码 echo. echo 日 期:%DATE% 时间%TIME:~0,8% echo. echo 电脑的IP地址为:%computer% echo. echo 修改三码文件盒子adb必须能开启才能获取信息 echo -------------------------------------------------------------------------------- ECHO "%3" if "%3"=="1" goto 读取三码信息 if "%3"=="2" goto 修改deviceid if "%3"=="3" goto 修改usid if "%3"=="4" goto 修改mac if "%3"=="5" goto 修改mac_wifi if "%3"=="11" goto 修改stbid if "%3"=="6" goto :重启 if "%3"=="7" goto :mac if "%3"=="8" goto :wifi goto end :读取三码信息 echo. adb\adb connect %1:%2 adb\adb root adb\adb connect %1:%2 adb\adb remount adb\adb connect %1:%2 adb\adb devices| find /i "%1:%2" && ( echo.&echo *****机顶盒连接成功***** & echo.) || (goto err2) ping -n 1 127.1 >nul 2>nul adb\adb shell "su -c 'echo mac>/sys/class/unifykeys/name'" adb\adb shell "su -c 'cat /sys/class/unifykeys/read'">1\mac.txt ping -n 1 127.1 >nul 2>nul adb\adb shell "su -c 'echo mac_wifi>/sys/class/unifykeys/name'" adb\adb shell "su -c 'cat /sys/class/unifykeys/read'">1\mac_wifi.txt ping -n 1 127.1 >nul 2>nul adb\adb shell "su -c 'echo deviceid>/sys/class/unifykeys/name'" adb\adb shell "su -c 'cat /sys/class/unifykeys/read'">1\deviceid.txt ping -n 1 127.1 >nul 2>nul adb\adb shell "su -c 'echo usid>/sys/class/unifykeys/name'" adb\adb shell "su -c 'cat /sys/class/unifykeys/read'">1\usid.txt ping -n 1 127.1 >nul 2>nul adb\adb shell "su -c 'echo stbid>/sys/class/unifykeys/name'" adb\adb shell "su -c 'cat /sys/class/unifykeys/read'">1\stbid.txt ping -n 1 127.1 >nul 2>nul exit :修改deviceid echo. adb\adb connect %1:%2 adb\adb root adb\adb connect %1:%2 adb\adb remount adb\adb connect %1:%2 adb\adb devices| find /i "%1:%2" && ( echo.&echo *****机顶盒连接成功***** & echo.) || (goto err2) ping -n 2 127.1 >nul 2>nul adb\adb shell "su -c 'echo deviceid>/sys/class/unifykeys/name'" adb\adb shell "su -c 'echo %4 > /sys/class/unifykeys/write'" adb\adb shell "su -c 'cat /sys/class/unifykeys/read'" ping -n 2 127.1 >nul 2>nul exit :修改usid echo. adb\adb connect %1:%2 adb\adb root adb\adb connect %1:%2 adb\adb remount adb\adb connect %1:%2 adb\adb devices| find /i "%1:%2" && ( echo.&echo *****机顶盒连接成功***** & echo.) || (goto err2) ping -n 2 127.1 >nul 2>nul adb\adb shell "su -c 'echo usid>/sys/class/unifykeys/name'" adb\adb shell "su -c 'echo %4 > /sys/class/unifykeys/write'" adb\adb shell "su -c 'cat /sys/class/unifykeys/read'" ping -n 2 127.1 >nul 2>nul exit :修改mac echo. adb\adb connect %1:%2 adb\adb root adb\adb connect %1:%2 adb\adb remount adb\adb connect %1:%2 adb\adb devices| find /i "%1:%2" && ( echo.&echo *****机顶盒连接成功***** & echo.) || (goto err2) ping -n 2 127.1 >nul 2>nul adb\adb shell "su -c 'echo mac>/sys/class/unifykeys/name'" adb\adb shell "su -c 'echo %4 > /sys/class/unifykeys/write'" adb\adb shell "su -c 'cat /sys/class/unifykeys/read'" ping -n 2 127.1 >nul 2>nul exit :修改mac_wifi echo. adb\adb connect %1:%2 adb\adb root adb\adb connect %1:%2 adb\adb remount adb\adb connect %1:%2 adb\adb devices| find /i "%1:%2" && ( echo.&echo *****机顶盒连接成功***** & echo.) || (goto err2) ping -n 2 127.1 >nul 2>nul adb\adb shell "su -c 'echo mac_wifi>/sys/class/unifykeys/name'" adb\adb shell "su -c 'echo %4 > /sys/class/unifykeys/write'" adb\adb shell "su -c 'cat /sys/class/unifykeys/read'" ping -n 2 127.1 >nul 2>nul exit :修改stbid echo. adb\adb connect %1:%2 adb\adb root adb\adb connect %1:%2 adb\adb remount adb\adb connect %1:%2 adb\adb devices| find /i "%1:%2" && ( echo.&echo *****机顶盒连接成功***** & echo.) || (goto err2) ping -n 2 127.1 >nul 2>nul adb\adb shell "su -c 'echo stbid>/sys/class/unifykeys/name'" adb\adb shell "su -c 'echo %4 > /sys/class/unifykeys/write'" adb\adb shell "su -c 'cat /sys/class/unifykeys/read'" ping -n 2 127.1 >nul 2>nul exit :重启 echo. adb\adb connect %1:%2 adb\adb root adb\adb connect %1:%2 adb\adb remount adb\adb connect %1:%2 adb\adb devices| find /i "%1:%2" && ( echo.&echo *****机顶盒连接成功***** & echo.) || (goto err2) ping -n 2 127.1 >nul 2>nul adb\adb shell reboot exit :mac echo. DIY\adb connect %1:%2 DIY\adb root DIY\adb connect %1:%2 DIY\adb remount DIY\adb connect %1:%2 DIY\adb devices| find /i "%1:%2" && ( echo.&echo *****机顶盒连接成功***** & echo.) || (goto err2) DIY\adb shell mount -o remount,rw /system DIY\adb root DIY\adb shell if [ -e /system/bin/remotecfg.sh ]; then "echo >> /system/bin/remotecfg.sh '\n'"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/install-recovery.sh ]; then "echo >> /system/bin/install-recovery.sh '\n'"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/preinstall.sh ]; then "echo >> /system/bin/preinstall.sh '\n'"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/remotecfg.sh ]; then "echo >> /system/bin/remotecfg.sh busybox ifconfig eth0 down"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/install-recovery.sh ]; then "echo >> /system/bin/install-recovery.sh busybox ifconfig eth0 down"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/preinstall.sh ]; then "echo >> /system/bin/preinstall.sh busybox ifconfig eth0 down"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/remotecfg.sh ]; then "echo >> /system/bin/remotecfg.sh '\n'"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/install-recovery.sh ]; then "echo >> /system/bin/install-recovery.sh '\n'"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/preinstall.sh ]; then "echo >> /system/bin/preinstall.sh '\n'"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/remotecfg.sh ]; then "echo >> /system/bin/remotecfg.sh busybox ifconfig eth0 hw ether %4"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/install-recovery.sh ]; then "echo >> /system/bin/install-recovery.sh busybox ifconfig eth0 hw ether %4"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/preinstall.sh ]; then "echo >> /system/bin/preinstall.sh busybox ifconfig eth0 hw ether %4"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/remotecfg.sh ]; then "echo >> /system/bin/remotecfg.sh '\n'"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/install-recovery.sh ]; then "echo >> /system/bin/install-recovery.sh '\n'"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/preinstall.sh ]; then "echo >> /system/bin/preinstall.sh '\n'"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/remotecfg.sh ]; then "echo >> /system/bin/remotecfg.sh busybox ifconfig eth0 up"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/install-recovery.sh ]; then "echo >> /system/bin/install-recovery.sh busybox ifconfig eth0 up"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/preinstall.sh ]; then "echo >> /system/bin/preinstall.sh busybox ifconfig eth0 up"; else echo "it does not exist"; fi; ECHO 上传完成!! pause&exit :wifi echo. DIY\adb connect %1:%2 DIY\adb root DIY\adb connect %1:%2 DIY\adb remount DIY\adb connect %1:%2 DIY\adb devices| find /i "%1:%2" && ( echo.&echo *****机顶盒连接成功***** & echo.) || (goto err2) DIY\adb shell mount -o remount,rw /system DIY\adb root DIY\adb shell if [ -e /system/bin/remotecfg.sh ]; then "echo >> /system/bin/remotecfg.sh '\n'"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/install-recovery.sh ]; then "echo >> /system/bin/install-recovery.sh '\n'"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/preinstall.sh ]; then "echo >> /system/bin/preinstall.sh '\n'"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/remotecfg.sh ]; then "echo >> /system/bin/remotecfg.sh busybox ifconfig wlan0 down"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/install-recovery.sh ]; then "echo >> /system/bin/install-recovery.sh busybox ifconfig wlan0 down"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/preinstall.sh ]; then "echo >> /system/bin/preinstall.sh busybox ifconfig wlan0 down"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/remotecfg.sh ]; then "echo >> /system/bin/remotecfg.sh '\n'"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/install-recovery.sh ]; then "echo >> /system/bin/install-recovery.sh '\n'"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/preinstall.sh ]; then "echo >> /system/bin/preinstall.sh '\n'"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/remotecfg.sh ]; then "echo >> /system/bin/remotecfg.sh busybox ifconfig wlan0 hw ether %4"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/install-recovery.sh ]; then "echo >> /system/bin/install-recovery.sh busybox ifconfig wlan0 hw ether %4"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/preinstall.sh ]; then "echo >> /system/bin/preinstall.sh busybox ifconfig wlan0 hw ether %4"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/remotecfg.sh ]; then "echo >> /system/bin/remotecfg.sh '\n'"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/install-recovery.sh ]; then "echo >> /system/bin/install-recovery.sh '\n'"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/preinstall.sh ]; then "echo >> /system/bin/preinstall.sh '\n'"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/remotecfg.sh ]; then "echo >> /system/bin/remotecfg.sh busybox ifconfig wlan0 up"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/install-recovery.sh ]; then "echo >> /system/bin/install-recovery.sh busybox ifconfig wlan0 up"; else echo "it does not exist"; fi; DIY\adb shell if [ -e /system/bin/preinstall.sh ]; then "echo >> /system/bin/preinstall.sh busybox ifconfig wlan0 up"; else echo "it does not exist"; fi; ECHO 上传完成!! pause&exit 给我弄成可以输入ip 链接设备
07-24
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值