package com.lody.virtual.client.hook.patchs.bluetooth;
import com.lody.virtual.client.core.VirtualCore;
import com.lody.virtual.client.hook.base.StaticHook;
import java.lang.reflect.Method;
class GetAddress extends StaticHook {
GetAddress(){
super("getAddress");
}
@Override
public Object afterCall(Object who, Method method, Object[] args, Object result) throws Throwable {
if (VirtualCore.get().getPhoneInfoDelegate() != null) {
String res = VirtualCore.get().getPhoneInfoDelegate().getBluetoothAddress((String) result);
if (res != null) {
return res;
}
}
return super.afterCall(who, method, args, result);
}
}