通过ADB口,实现设置和读取MAC地址
2015-06-04 14:09
351 查看
read and write MAC through ADB
Android APP of setting the MAC
@echo designed by Herman.Xu
color 0A
echo===========Start to modify MAC address===========
echo.设置MAC地址输入w,读取MAC地址输入r
set /p choice=输入开启的版本(w r):
if "%choice%"=="w" goto writeMac
if "%choice%"=="r" goto readMac
:writeMac
cls
echo.请输入你要设置的MAC地址,注意格式不要空格,比如:00:01:02:03:04:05
set /p macaddress=
adb shell "echo MAC=%macaddress% > /data/system/eth0-macaddress.conf"
#adb shell "echo MAC=%macaddress% > /data/system/.svn/text-base/eth0-macaddress.conf.svn-base"
echo.回车重启,设置的MAC地址生效
pause
adb reboot
:readMac
adb pull /data/system/eth0-macaddress.conf C:\
set /p a=<C:\eth0-macaddress.conf
echo.%a%
pause
Android APP of setting the MAC
@echo designed by Herman.Xu
color 0A
echo===========Start to modify MAC address===========
echo.设置MAC地址输入w,读取MAC地址输入r
set /p choice=输入开启的版本(w r):
if "%choice%"=="w" goto writeMac
if "%choice%"=="r" goto readMac
:writeMac
cls
echo.请输入你要设置的MAC地址,注意格式不要空格,比如:00:01:02:03:04:05
set /p macaddress=
adb shell "echo MAC=%macaddress% > /data/system/eth0-macaddress.conf"
#adb shell "echo MAC=%macaddress% > /data/system/.svn/text-base/eth0-macaddress.conf.svn-base"
echo.回车重启,设置的MAC地址生效
pause
adb reboot
:readMac
adb pull /data/system/eth0-macaddress.conf C:\
set /p a=<C:\eth0-macaddress.conf
echo.%a%
pause
相关文章推荐
- ReleaseNotes 3.3.1
- Android Studio 导入OSChina客户端
- Android手机SD卡文件或目录拷贝、复制、粘贴功能实现代码
- Android SDK Manager更新版慢解决办法
- 一机一码注册方式的实现(C#)
- 苹果IOS平台支持概览
- 目录好博客
- sql之left join、right join、inner join的区别
- 后台增加一个左侧列表菜单menu菜单的方法
- 解读大型网站系统架构的演化
- iis7+php5.4的安装配置
- Android-Layout 布局属性 & 参数标签 集合
- 黑马程序员-IOS基础---scanf函数用法及注意事项
- Maven Dependency Scope
- 一个web项目web.xml的配置中<context-param>配置作用
- EJB_Client结合Weblogic
- MySQL 内存和CPU优化相关的参数
- WP runtime post 请求, json 解析
- 数据库中的(if-else)
- Android-UI基础