在底层获取安卓wifi的mac地址
来源:互联网 发布:软件总体设计说明书 编辑:程序博客网 时间:2024/04/29 11:09
public static String getLocalMac() { String mac=null; String str = ""; try { Process pp = Runtime.getRuntime().exec("cat /sys/class/net/wlan0/address "); InputStreamReader ir = new InputStreamReader(pp.getInputStream()); LineNumberReader input = new LineNumberReader(ir); for (; null != str;) { str = input.readLine(); if (str != null) { mac = str.trim();// 去空格 break; } } } catch (IOException ex) { // 赋予默认值 ex.printStackTrace(); } return mac;}
0 0
- 在底层获取安卓wifi的mac地址
- Android 获取WIFI MAC地址的方法
- WiFi设备MAC地址的获取-----安卓端
- WiFi设备MAC地址的获取-----服务器端
- 获取WiFi MAC地址总结
- 获取WiFi MAC地址总结
- Android 在wifi下获取IP和MAC地址
- 安卓系统获取mac地址
- 安卓平台获取Mac地址
- 安卓获取接入的Wifi热点设备的Ip地址
- iOS 获取Wifi的SSID及MAC地址
- Android获取Ethernet、WIFI的ip和mac地址
- Android获取Ethernet、WIFI的ip和mac地址
- iOS 获取Wifi的SSID及MAC地址
- iOS 获取Wifi的SSID及MAC地址
- android6.0获取wifi mac地址的一种方法
- 安卓获取wifi ssid的问题
- 在 Ubuntu 16.04 下随机化你的 WiFi MAC 地址
- 使用 Git Hook 实现网站的自动部署
- 怎样使用sqlplus连接oracle11g数据库
- (LeetCode) Roman to Integer --- 罗马数字转整数
- web前端-JavaScript 数据类型 -007
- 解决VS2005 VS2008 vs2010断点无效-源代码与原始版本不同
- 在底层获取安卓wifi的mac地址
- 3分钟让你学会如何团队管理!打造高效团队!
- 视频直播技术详解(5)延迟优化
- 1亿非户籍人口将落户城市 农转非不得要求放弃宅地
- centos6.5 安装lamp
- 基础不牢,地动山摇
- 定义变/常量和变量的初始化
- 这几道事关生鲜电商生死的选择题,你如何选择?
- Android Device Monitor 中的文件权限