千寻位置 v2.8.9版本的 MD5 值为:c028423c956e81d2a162977350c0ec2e
以下内容为反编译后的 SipTest.java 源代码,内容仅作参考
package com.yanzhenjie.permission.checker;
import android.content.Context;
import android.net.sip.SipManager;
import android.net.sip.SipProfile;
class SipTest implements PermissionTest {
private Context mContext;
public SipTest(Context context) {
this.mContext = context;
}
@Override
public boolean test() throws Throwable {
SipManager newInstance;
if (!SipManager.isApiSupported(this.mContext) || (newInstance = SipManager.newInstance(this.mContext)) == null) {
return true;
}
SipProfile.Builder builder = new SipProfile.Builder("Permission", "127.0.0.1");
builder.setPassword("password");
SipProfile build = builder.build();
newInstance.open(build);
newInstance.close(build.getUriString());
return true;
}
}