mirror of
https://github.com/u0u0/Cocos2d-Lua-Community.git
synced 2026-06-06 03:31:43 +08:00
权限未申请时的保护。
This commit is contained in:
@@ -17,6 +17,9 @@ public class PSDevice {
|
||||
}
|
||||
|
||||
private static String getMacAddress() {
|
||||
if (mContext == null) {
|
||||
return null;
|
||||
}
|
||||
WifiManager wifi = (WifiManager) mContext.getApplicationContext()
|
||||
.getSystemService(Context.WIFI_SERVICE);
|
||||
WifiInfo info = wifi.getConnectionInfo();
|
||||
@@ -38,4 +41,4 @@ public class PSDevice {
|
||||
}
|
||||
return id;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user