.method public c()Ljava/lang/String;
.locals 3
const/4 v1, 0x0
const-string v0, "wifi"
invoke-virtual {p0, v0}, Lcom/genwen/looltv/start/Appstart;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Landroid/net/wifi/WifiManager;
if-nez v0, :cond_1
move-object v0, v1
:goto_0
if-eqz v0, :cond_2
invoke-virtual {v0}, Landroid/net/wifi/WifiInfo;->getMacAddress()Ljava/lang/String;
move-result-object v0
if-eqz v0, :cond_0
const-string v1, ":"
const-string v2, ""
invoke-virtual {v0, v1, v2}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
move-result-object v0
new-instance v1, Ljava/lang/StringBuilder;
const-string v2, "8c0f"
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v0
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object v0
:cond_0
:goto_1
return-object v0
:cond_1
invoke-virtual {v0}, Landroid/net/wifi/WifiManager;->getConnectionInfo()Landroid/net/wifi/WifiInfo;
move-result-object v0
goto :goto_0
:cond_2
move-object v0, v1
goto :goto_1
.end method
这是一个简单的 smali 函数,它在从 mac 地址中剥离 : 之后返回以“8c0f”开头的设备的 mac 地址。
我希望它返回一个像“8c0f0f0f0f0f0f0f”这样的静态mac地址,而不是真正的mac地址。我怎样才能做到这一点?