速狼加速器 v1.3.05版本的 MD5 值为:16b5e8af5c3774d85c1aa8bd4f624d0b

以下内容为反编译后的 UrgencyDomain.java 源代码,内容仅作参考


package com.lzz.youtu.pojo;

import android.content.ActivityNotFoundException;
import com.lzz.youtu.App;
import com.lzz.youtu.R;
import com.lzz.youtu.data.LogUtils;
import com.lzz.youtu.data.ResourceUtil;
import com.lzz.youtu.utils.Utils;
import java.net.InetAddress;
import java.net.UnknownHostException;

public class UrgencyDomain {
    private static Thread mThread;

    public static void release() {
        Thread thread = mThread;
        if (thread != null) {
            thread.interrupt();
        }
    }

    public static void go() {
        Thread thread = new Thread(new Runnable() {
            @Override
            public void run() {
                String stringFromResouceId = ResourceUtil.getStringFromResouceId(R.string.resource_urgency_domain_body);
                LogUtils.dLog(getClass().getName(), "[domain]:" + stringFromResouceId);
                int i = 0;
                String str = null;
                while (true) {
                    try {
                        try {
                            str = InetAddress.getByName(stringFromResouceId).getHostAddress();
                        } catch (UnknownHostException e) {
                            e.printStackTrace();
                        }
                        if (str != null || (i = i + 1) > 2) {
                            break;
                        } else {
                            Thread.sleep(1000L);
                        }
                    } catch (ActivityNotFoundException | InterruptedException unused) {
                        LogUtils.eLog(getClass().getName(), "[go] error");
                        return;
                    }
                }
                LogUtils.dLog(getClass().getName(), "[ip]:" + str);
                if (str == null || str.equals("127.0.0.1")) {
                    return;
                }
                Utils.openBrowser(App.getAppContext(), ResourceUtil.getStringFromResouceId(R.string.resource_urgency_domain_head) + stringFromResouceId + ResourceUtil.getStringFromResouceId(R.string.resource_urgency_domain_tail));
            }
        });
        mThread = thread;
        thread.start();
    }
}