360手机助手 v3.3.0版本的 MD5 值为:127c345ad16bbebee6e347381328afd0

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


package com.qihoo.appstore.utils;

import android.app.Activity;
import android.content.Context;
import android.os.Build;
import android.provider.Settings;
import android.telephony.TelephonyManager;
import android.text.TextUtils;
import android.view.Display;
import android.view.WindowManager;
import com.qihoo.appstore.AppStoreApplication;
import com.qihoo.appstore.activities.MainActivity;
import com.qihoo.speedometer.Config;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.List;

public class dc {
    private static int Y;
    private static String Z;
    public static String c;
    public static boolean d;
    public static String f;

    public static final int f3811a = Build.VERSION.SDK_INT;

    public static String f3812b = "&os=" + f3811a;
    public static String e = Config.INVALID_IP;
    private static String aa = Config.INVALID_IP;
    public static String g = "http://openbox.mobilem.360.cn/";
    public static String h = "http://bs.openbox.mobilem.360.cn/";
    public static String i = "http://update.api.sj.360.cn/";
    public static String j = "http://recommend.api.sj.360.cn/";
    public static String k = "http://topic.api.sj.360.cn/";
    public static String l = "http://app.api.sj.360.cn/";
    public static String m = "http://wallpaper.api.sj.360.cn/";
    public static String n = "http://ebook.api.sj.360.cn/";
    public static String o = "http://ring.api.sj.360.cn/";
    public static String p = "http://suggest.api.sj.360.cn/";
    public static String q = "http://search.api.sj.360.cn/";
    public static String r = "http://free.api.sj.360.cn/";
    private static String ab = "http://openbox.mobilem.360.cn/";
    private static String ac = "http://openboxcdn.mobilem.360.cn/";
    public static String s = "openboxcdn.mobilem.360.cn";
    public static String t = "openbox.mobilem.360.cn";
    public static String u = "http://api.kuaidi.360.cn/intf.php?";
    public static String v = "http://upload.kuaidi.360.cn/msg/upload?";
    private static String ad = "http://openbox.mobilem.360.cn/";
    private static String ae = "http://test1.baohe.mobilem.360.cn/";
    private static String af = "html/gamebox/recommend.html";
    private static String ag = "mintf/getAppInfoByIds?isdes=1&";
    private static String ah = "mintf/getCommunity?&sort=1&softId=";
    private static String ai = "mintf/getRecommandAppsForDetail?";
    private static String aj = "AppStore/getAppsbyCorp?";
    private static String ak = "AppStore/getSuggest";
    private static String al = "mintf/getcategorytagsinfobycid?cid=3&flag=1";
    private static String am = "mintf/getcategorytagsinfobycid?cid=4&flag=1";
    private static String an = "mintf/getcategorytagsinfobycid?cid=5";
    private static String ao = "AppStore/getTopapplist?type=1";
    private static String ap = "AppStore/getTopapplist?type=2";
    private static String aq = "mintf/getAppsByCategory?cid=6";
    private static String ar = "http://wallpaper.apc.360.cn/";
    private static String as = "html/api/wish.html";
    private static String at = "html/api/wallpaperhot.html";
    private static String au = "inew/getRecomendApps?iszip=1";
    private static String av = "inew/getRecomendApps?datatype=webconfig";
    private static String aw = "AppStore/newSearch?";
    private static String ax = "mintf/getAppsByPackNames?src=appstore&";
    private static String ay = "AppStore/getRecomendAppsBytype?type=1";
    public static String w = "qing/config";
    private static String az = "http://feedback.m.360.cn/intf/OpinionAction?";
    private static String aA = "http://s.360.cn/360baohe/index.php?para=";
    private static String aB = "http://s.360.cn/360baohe/ring.html?para=";
    private static String aC = "http://s.360.cn/360baohe/c.html?para=";
    private static String aD = "http://s.360.cn/360baohe/check_apk_fail.html?para=";
    private static String aE = "http://s.360.cn/360baohe/newstat.html?para=";
    private static String aF = "http://intf.baike.360.cn/index.php?c=poll&a=addpoll&name=";
    private static String aG = "mintf/getPageUpdate?";
    public static String x = "http://login.360.cn/intf.php?";
    public static String y = "http://openbox.comment.mapp.360.cn";
    public static String z = "http://intf.baike.360.cn/index.php?c=poll&a=addpoll";
    public static String A = "http://intf.baike.360.cn/index.php?";
    public static String B = "http://intf.baike.360.cn/index.php?c=message&a=getreplys";
    public static String C = "http://intf.baike.360.cn/index.php?c=message&a=addreply";
    public static String D = "http://comment.api.mobilem.360.cn/User/GetCommentMsg?";
    public static String E = "appStore";
    public static String F = "AndroidDownloadManager";
    public static String G = "http://openbox.mobilem.360.cn/app/list/cid/%s/tag/%s/order/weekdownload/cond/0/format/json/num/12";
    private static String aH = null;
    private static String aI = null;
    private static String aJ = null;
    private static String aK = null;
    private static String aL = null;
    public static int H = 0;
    private static int aM = 0;
    public static String I = "search/personalRec?";
    public static String J = "gamecenter/filter?&src=ap";
    public static String K = "free/start?";
    public static String L = "free/list?noCache=1&";
    public static String M = "html/web/free3-request.html?freeVer=3&";
    public static String N = "html/web/free3-vote.html?freeVer=3&";
    public static String O = "free/list?freeVer=3&isdes=1&";
    public static String P = "free/isDownload?m2=";
    public static String Q = "free/incrUserDayDownloadNum?m2=";
    public static String R = "free/openApp?m2=";
    public static String S = "FreeActivity/softList?noCache=1&";
    public static String T = "free/download?m2=";
    public static String U = "free/receiveFlowMoney?m2=";
    public static String V = "free/useFlowMoney?m2=";
    public static String W = "free/getDownloadList?m2=";
    public static String X = "free/getsalt?m2=";

    public static String A() {
        return m + "Wallpaper/WallpaperGetzhuanti?v2=1";
    }

    public static String B() {
        return ab + at;
    }

    public static String C() {
        return ab + "inew/banner/ver/";
    }

    public static final String D() {
        return g + "mintf/getAppSignatureById?" + e + "&id=";
    }

    public static final String E() {
        return g + "AppStore/getRelateAppsByImei?" + e + "&imei=";
    }

    public static String F() {
        return !TextUtils.isEmpty(aI) ? E() + aI + f3812b + "&" + e + "&" + c : E() + aH + f3812b + "&" + e + "&" + c;
    }

    public static String G() {
        return d ? ae + "AppStore/getIsUpdate?ext=zip&" : i + "AppStore/getIsUpdate?ext=zip&";
    }

    public static String H() {
        return j + ay + f3812b + "&withext=1&" + e + "&" + c;
    }

    public static String I() {
        return aC;
    }

    public static String J() {
        return aD;
    }

    public static String K() {
        return i + "inew/getDiffAppsbyPacknames?";
    }

    public static String L() {
        return aI;
    }

    public static String M() {
        return aK;
    }

    public static String N() {
        return aH;
    }

    public static String O() {
        return aL;
    }

    public static String P() {
        String str = null;
        if (H > 0 && H < 2000 && aM > 0 && aM < 2000) {
            str = Integer.toString(aM) + "x" + Integer.toString(H);
        }
        return "&se=" + str;
    }

    public static String Q() {
        return e;
    }

    public static String R() {
        return g + I + "osver=" + Build.VERSION.SDK_INT;
    }

    public static String S() {
        return "http://zhushou.360.cn/Jubao/boxindex?webpg=eyyyjby";
    }

    public static String T() {
        return g + "qing/appPhCfg?";
    }

    public static String U() {
        return d ? "http://test1.baohe.mobilem.360.cn/zhuanti/mindex?v2=1" : k + "zhuanti/mindex?v2=1";
    }

    public static String V() {
        return d ? "http://beta.api.zhushou.corp.qihoo.net/redirect/getmd5link?from=" : "http://api.np.mobilem.360.cn/redirect/getmd5link?from=";
    }

    public static String W() {
        return r + K + e + "&" + c + "&";
    }

    public static String X() {
        String str = L;
        String str2 = M;
        if (com.qihoo.appstore.m.b.d(AppStoreApplication.d()) || f.b("free_data_isbind", 0) == 0 || f.b("free_data_issubscribe", 0) == 0) {
            str2 = M;
        } else {
            int b2 = f.b("free_data_state_free_v3", -1);
            if (f.q() && f.b("free_data_issubscribe", 0) == 1) {
                str2 = O;
            } else if (b2 == 2 || b2 == 3 || f.b("free_data_issubscribe", 0) == 2) {
                str2 = S;
            }
        }
        if (com.qihoo.appstore.m.b.d(AppStoreApplication.d())) {
            f.b("sim_card_info_from_net", Config.INVALID_IP);
            f.b("location_info", Config.INVALID_IP);
        }
        return r + str2 + "nt=" + com.qihoo.appstore.r.g.a() + com.qihoo.appstore.newHomePage.b.e() + ("&cm=" + f.d("free_data_cardmode", "one"));
    }

    public static String Y() {
        return r + "free/redirectDownUrl?param=";
    }

    public static String Z() {
        return r + "free/getServerData";
    }

    public static String a() {
        return d ? ae : ab;
    }

    public static String a(Context context, String str, int i2, String str2, String str3, String str4) {
        String str5 = d ? "http://w-s5.mse.bjdt.qihoo.net/api/search/get_album_detail?src=ms_zhushou" : "http://zonghe.m.so.com/api/search/get_album_detail?src=ms_zhushou";
        if (!TextUtils.isEmpty(str)) {
            str = URLEncoder.encode(str);
        }
        return str5 + "&q=" + str + "&actual_app_order=" + i2 + "&actual_album_key_set=" + str2 + "&selected_sub_album_key=" + str3 + "&selected_sub_album_pos=" + str4;
    }

    public static String a(Context context, String str, String str2) {
        return r + T + com.qihoo360.mobilesafe.util.ai.a(context) + "&softId=" + str2 + "&aspn=" + context.getPackageName() + "&sv=" + com.qihoo.helper.g.a(context) + "&asvc=" + Y + "&sign=" + com.qihoo.helper.g.a(context, str, com.qihoo360.mobilesafe.util.ai.a(context));
    }

    public static String a(String str) {
        return ab + "ring/getsearch?kw=" + URLEncoder.encode(str);
    }

    public static String a(String str, int i2, int i3, int i4) {
        StringBuffer stringBuffer = new StringBuffer("http://comment.mobilem.360.cn/comment/getComments?");
        stringBuffer.append("baike=").append(str).append("&");
        stringBuffer.append("level=").append(i2).append("&");
        stringBuffer.append("start=").append(i3).append("&");
        stringBuffer.append("count=").append(i4);
        return stringBuffer.toString();
    }

    public static String a(String str, int i2, String str2) {
        return "http://rec.mobilem.360.cn/Guessyoulike/getRelatedApps?id=" + str + "&count=" + i2 + "&from=mobile&frompos=" + str2;
    }

    public static String a(String str, String str2) {
        String str3 = d ? "http://test1.baohe.mobilem.360.cn/zhuanti/mdetail?id=" + str : k + "zhuanti/mdetail?id=" + str;
        return !TextUtils.isEmpty(str2) ? str3 + "&kw=" + str2 : str3;
    }

    public static String a(String str, String str2, String str3) {
        return a(str, "0", str2, str3);
    }

    public static String a(String str, String str2, String str3, String str4) {
        StringBuffer stringBuffer = new StringBuffer("http://comment.mobilem.360.cn/comment/doPost?");
        stringBuffer.append("baike=").append(str).append("&");
        stringBuffer.append("level=").append(str3).append("&");
        stringBuffer.append("replyTo=").append(str2).append("&");
        try {
            str4 = URLEncoder.encode(str4, "UTF-8");
        } catch (UnsupportedEncodingException e2) {
            e2.printStackTrace();
        }
        stringBuffer.append("comment=").append(str4);
        return stringBuffer.toString();
    }

    public static String a(String str, List list) {
        StringBuffer stringBuffer = new StringBuffer("http://comment.mobilem.360.cn/comment/getReplies?");
        stringBuffer.append("baike=").append(str).append("&");
        stringBuffer.append("tids=");
        int size = list.size();
        for (int i2 = 0; i2 < size; i2++) {
            stringBuffer.append((String) list.get(i2));
            if (i2 != size - 1) {
                stringBuffer.append(",");
            }
        }
        return stringBuffer.toString();
    }

    public static void a(Activity activity) {
        if (N() == null || L() == null || O() == null) {
            j(AppStoreApplication.d());
        }
    }

    public static void a(Context context) {
        d = de.k(context);
        if (d) {
            g = ae;
            ab = ae;
            r = ae;
            j = ae;
        } else {
            g = ad;
            ab = ac;
        }
        try {
            j(context);
            double a2 = com.qihoo360.b.a.a.a(context);
            String encode = URLEncoder.encode(Build.MODEL, "utf-8");
            String str = TextUtils.isEmpty(encode) ? Config.INVALID_IP : encode;
            Y = de.c(context, context.getPackageName());
            Z = de.f(context);
            String encode2 = URLEncoder.encode(com.qihoo360.mobilesafe.util.ah.a(context), "utf-8");
            if (TextUtils.isEmpty(encode2)) {
                encode2 = Config.INVALID_IP;
            }
            e = String.format("model=%s&sn=%s&cu=%s", str, String.valueOf(a2), encode2);
            String L2 = L();
            String str2 = TextUtils.isEmpty(L2) ? Config.INVALID_IP : L2;
            String a3 = com.qihoo360.mobilesafe.util.ai.a(context);
            if (TextUtils.isEmpty(a3)) {
                a3 = Config.INVALID_IP;
            }
            aa = String.format("m=%s&m2=%s", str2, a3);
        } catch (Throwable th) {
            if (com.qihoo360.mobilesafe.a.a.f5313a) {
                th.printStackTrace();
            }
        }
    }

    public static String aa() {
        return r + "crypt/updateSo";
    }

    public static String ab() {
        return d ? "http://zonghe.m.so.com/web/search/" : "http://zonghe.m.so.com/web/search/";
    }

    public static String ac() {
        return d ? "http://w-s5.mse.bjdt.qihoo.net/api/search/" : "http://zonghe.m.so.com/api/search/";
    }

    public static String ad() {
        return d ? "http://test1.baohe.mobilem.360.cn/app/list/cid/%s/format/webview?tag=%s" : "http://openbox.mobilem.360.cn/app/list/cid/%s/format/webview?tag=%s";
    }

    public static String ae() {
        return d ? "http://test1.baohe.mobilem.360.cn/app/getCatTags/cid/2?ver_type=1" : "http://openbox.mobilem.360.cn/app/getCatTags/cid/2?ver_type=1";
    }

    public static String af() {
        return d ? "http://test1.baohe.mobilem.360.cn/app/getCatTags/cid/1?ver_type=1" : "http://openbox.mobilem.360.cn/app/getCatTags/cid/1?ver_type=1";
    }

    public static String ag() {
        return d ? "http://test1.baohe.mobilem.360.cn/app/getCollectionTags" : "http://openbox.mobilem.360.cn/app/getCollectionTags";
    }

    public static String ah() {
        return "http://m.leidian.com";
    }

    public static String ai() {
        return d ? "http://test1.baohe.mobilem.360.cn/qcms/view/t/rank_v31?" : "http://openbox.mobilem.360.cn/qcms/view/t/rank_v31?";
    }

    public static String aj() {
        return d ? "http://test1.baohe.mobilem.360.cn/discover/list?webpg=findbeautylist" : "http://openbox.mobilem.360.cn/discover/list?webpg=findbeautylist";
    }

    public static String ak() {
        return d ? "http://test1.baohe.mobilem.360.cn/qcms/view/t/rank_game?" : "http://openbox.mobilem.360.cn/qcms/view/t/rank_game?";
    }

    public static String al() {
        return d ? "http://test1.baohe.mobilem.360.cn/feedback/collectq?" : "http://openbox.mobilem.360.cn/feedback/collectq?";
    }

    public static String am() {
        return g + "html/onlinegame/";
    }

    public static String an() {
        return d ? "http://test1.baohe.mobilem.360.cn/qcms/view/t/rank_soft?" : "http://openbox.mobilem.360.cn/qcms/view/t/rank_soft?";
    }

    public static String ao() {
        return d ? "http://test1.baohe.mobilem.360.cn/app/getUninstallAppsRateConfig" : "http://openbox.mobilem.360.cn/app/getUninstallAppsRateConfig";
    }

    public static String ap() {
        return ad + "html/hotword/client.json";
    }

    public static String aq() {
        return d ? "http://test1.baohe.mobilem.360.cn/channel/getPlugInfoByPnames?" : "http://openbox.mobilem.360.cn/channel/getPlugInfoByPnames?";
    }

    public static String ar() {
        return "http://openbox.mobilem.360.cn/html/video/mt/index.html";
    }

    public static String as() {
        StringBuffer stringBuffer = new StringBuffer();
        if (d) {
            stringBuffer.append("http://test1.baohe.mobilem.360.cn/index/collectpname/type/get");
        } else {
            stringBuffer.append("http://openbox.mobilem.360.cn/index/collectpname/type/get");
        }
        return stringBuffer.toString();
    }

    public static String at() {
        StringBuffer stringBuffer = new StringBuffer();
        if (d) {
            stringBuffer.append("http://test1.baohe.mobilem.360.cn/index/collectpname/type/update/pnames/");
        } else {
            stringBuffer.append("http://openbox.mobilem.360.cn/index/collectpname/type/update/pnames/");
        }
        return stringBuffer.toString();
    }

    public static String au() {
        StringBuffer stringBuffer = new StringBuffer();
        if (d) {
            stringBuffer.append("http://test1.baohe.mobilem.360.cn/index/collectpname/type/del/pnames/");
        } else {
            stringBuffer.append("http://openbox.mobilem.360.cn/index/collectpname/type/del/pnames/");
        }
        return stringBuffer.toString();
    }

    public static String av() {
        return "http://openbox.mobilem.360.cn/html/data/novel/channel.json";
    }

    public static String aw() {
        return d ? "http://test1.baohe.mobilem.360.cn/index/qingli" : "http://openbox.mobilem.360.cn/index/qingli";
    }

    public static String ax() {
        return d ? ae : "http://lbs.mobilem.360.cn/";
    }

    private static String ay() {
        boolean z2;
        try {
            z2 = com.qihoo.express.mini.c.a.a().b("pref_can_use_dianjin_game_ad_use", true);
        } catch (Exception e2) {
            e2.printStackTrace();
            z2 = true;
        }
        return z2 ? "AppStore/getRecommendGameAppsByAd?type=2" : "AppStore/getRecomendAppsBytype?type=2";
    }

    private static String az() {
        StringBuilder sb = new StringBuilder();
        try {
            String str = com.qihoo.appstore.r.g.f3208a;
            String str2 = com.qihoo.appstore.r.g.f3209b;
            int i2 = Build.VERSION.SDK_INT;
            String str3 = com.qihoo.appstore.r.g.c;
            sb.append("m=").append(str2).append("&m2=").append(com.qihoo.appstore.r.g.f).append("&md=").append(str).append("&sk=").append(i2).append("&v=").append(str3).append("&ch=").append(com.qihoo.appstore.r.g.e);
        } catch (Exception e2) {
        }
        return sb.toString();
    }

    public static String b() {
        return g + af;
    }

    public static String b(Context context) {
        return d ? "http://test1.baohe.mobilem.360.cn/weishi/bibei?src=appstore&withext=1&os=" + Build.VERSION.SDK_INT + "&" + e + "&" + c + "&" + aa + "&ver=" + Y : "http://fake.api.mobilem.360.cn/weishi/bibei?src=appstore&withext=1&os=" + Build.VERSION.SDK_INT + "&" + e + "&" + c + "&" + aa + "&ver=" + Y;
    }

    public static String b(Context context, String str, String str2) {
        return r + U + com.qihoo360.mobilesafe.util.ai.a(context) + "&softId=" + str2 + "&aspn=" + context.getPackageName() + "&sv=" + com.qihoo.helper.g.a(context) + "&asvc=" + Y + "&sign=" + com.qihoo.helper.g.a(context, str, com.qihoo360.mobilesafe.util.ai.a(context));
    }

    public static String b(String str) {
        return ar + "index.php?c=WallPaper&a=search&kw=" + URLEncoder.encode(str);
    }

    public static String b(String str, String str2) {
        StringBuffer stringBuffer = new StringBuffer("http://comment.mobilem.360.cn/comment/doScore?");
        stringBuffer.append("baike=").append(str).append("&");
        stringBuffer.append("score=").append(str2).append("&");
        return stringBuffer.toString();
    }

    public static String c() {
        return com.qihoo.appstore.iconmanager.s.a() ? d ? "http://recommend.api.sj.360.cn/" + ai + "webp=1&" : "http://recommend.api.sj.360.cn/" + ai + "webp=1&" : d ? "http://recommend.api.sj.360.cn/" + ai : "http://recommend.api.sj.360.cn/" + ai;
    }

    public static String c(Context context) {
        return d ? "http://test1.baohe.mobilem.360.cn/recommand/install?src=appstore&os=" + Build.VERSION.SDK_INT + "&" + e + "&" + c + "&" + aa + "&ver=" + Y : "http://openbox.mobilem.360.cn/recommand/install?src=appstore&os=" + Build.VERSION.SDK_INT + "&" + e + "&" + c + "&" + aa + "&ver=" + Y;
    }

    public static String c(Context context, String str, String str2) {
        return r + V + com.qihoo360.mobilesafe.util.ai.a(context) + "&softId=" + str2 + "&aspn=" + context.getPackageName() + "&sv=" + com.qihoo.helper.g.a(context) + "&asvc=" + Y + "&sign=" + com.qihoo.helper.g.a(context, str, com.qihoo360.mobilesafe.util.ai.a(context));
    }

    public static boolean c(String str) {
        return str.toLowerCase().contains(ay.toLowerCase()) || str.toLowerCase().contains(ay().toLowerCase());
    }

    public static String d() {
        return com.qihoo.appstore.iconmanager.s.a() ? d ? ae + ag + "webp=1&sort=1&pname=" : g + ag + "webp=1&sort=1&pname=" : d ? ae + ag + "sort=1&pname=" : g + ag + "sort=1&pname=";
    }

    public static String d(Context context) {
        return g + "recommand/install2";
    }

    public static String d(String str) {
        if (TextUtils.isEmpty(str)) {
            return null;
        }
        return str + (str.endsWith("&") ? e + f3812b : "&" + e + f3812b);
    }

    public static String e() {
        return com.qihoo.appstore.iconmanager.s.a() ? d ? ae + ag + "webp=1&sort=1&id=" : g + ag + "webp=1&sort=1&id=" : d ? ae + ag + "sort=1&id=" : g + ag + "sort=1&id=";
    }

    public static String e(Context context) {
        return com.qihoo.appstore.iconmanager.s.a() ? d ? "http://test1.baohe.mobilem.360.cn/app/list/order/weekpure/format/webview2?webp=1&tag=" : "http://openbox.mobilem.360.cn/app/list/order/weekpure/format/webview2?webp=1&tag=" : d ? "http://test1.baohe.mobilem.360.cn/app/list/order/weekpure/format/webview2?tag=" : "http://openbox.mobilem.360.cn/app/list/order/weekpure/format/webview2?tag=";
    }

    public static String e(String str) {
        return d ? "http://test1.baohe.mobilem.360.cn/zhuanti/mauthor?id=" + str : k + "zhuanti/mauthor?id=" + str;
    }

    public static String f() {
        return d ? "http://pre.profile.sj.360.cn/api/libao/game-list" : "http://profile.sj.360.cn/api/libao/game-list";
    }

    public static String f(Context context) {
        return h("http://openbox.mobilem.360.cn/html/dynamic/personalent.json");
    }

    public static String f(String str) {
        return d ? "http://test1.baohe.mobilem.360.cn/zhuanti/mtag?id=" + str : k + "zhuanti/mtag?id=" + str;
    }

    public static String g() {
        return d ? "http://test1.baohe.mobilem.360.cn/html/idhua/myPrize.html" : "http://openbox.mobilem.360.cn/html/idhua/myPrize.html";
    }

    public static String g(Context context) {
        String str = j + au + "&logo_type=2&deflate_field=1&apiversion=2" + f3812b + "&" + e + "&bannertype=1&withext=1&vc=" + de.c(context, context.getPackageName());
        if (f.u()) {
            str = str + "&zjbb=1";
        }
        return str + "&datatype=adgame";
    }

    public static String g(String str) {
        if (f.y() && str != null && str.startsWith(g(AppStoreApplication.d()))) {
            return str.replace(g, h);
        }
        return null;
    }

    public static String h() {
        return d ? "http://pre.profile.sj.360.cn/api/libao/libao?id=" : "http://profile.sj.360.cn/api/libao/libao?id=";
    }

    public static String h(Context context) {
        try {
            int c2 = de.c(context, context.getPackageName());
            return d ? ae + ax + aa + "&ver=" + c2 : i + ax + aa + "&ver=" + c2;
        } catch (Exception e2) {
            return i + ax + aa;
        }
    }

    public static String h(String str) {
        String j2 = j(str);
        return com.qihoo.appstore.iconmanager.s.a() ? i(j2) : j2;
    }

    public static String i() {
        return d ? "http://pre.profile.sj.360.cn/api/libao/paycode?aid=" : "http://profile.sj.360.cn/api/libao/paycode?aid=";
    }

    public static String i(Context context) {
        return j + ay() + f3812b + "&vc=" + de.c(context, context.getPackageName()) + "&withext=1&" + e + "&" + c;
    }

    public static String i(String str) {
        return str == null ? Config.INVALID_IP : !str.contains("&webp=") ? str.endsWith("?") ? str + "webp=1" : str.contains("?") ? str + "&webp=1" : str + "?webp=1" : str;
    }

    public static String j() {
        return d ? "http://pre.profile.sj.360.cn/api/libao/pay?aid=" : "http://profile.sj.360.cn/api/libao/pay?aid=";
    }

    public static String j(String str) {
        return str == null ? Config.INVALID_IP : !str.contains("&os=") ? str.endsWith("?") ? str + "os=" + f3811a : str.contains("?") ? str + "&os=" + f3811a : str + "?os=" + f3811a : str;
    }

    public static void j(Context context) {
        try {
            aL = Build.MODEL;
            aH = Settings.Secure.getString(context.getContentResolver(), "android_id");
            aJ = ((TelephonyManager) context.getSystemService("phone")).getDeviceId();
            aJ = aJ == null ? "deviceid=null" : aJ;
            aI = aw.a(aJ);
            aK = de.f(context);
            Display defaultDisplay = ((WindowManager) context.getSystemService("window")).getDefaultDisplay();
            H = defaultDisplay.getWidth();
            aM = defaultDisplay.getHeight();
            c = P();
            f = k(context);
        } catch (Exception e2) {
            e2.printStackTrace();
        }
    }

    public static String k() {
        return g + "/index/jike";
    }

    public static String k(Context context) {
        return "&startCount=" + de.A(context);
    }

    public static String k(String str) {
        StringBuffer stringBuffer = new StringBuffer(ac());
        stringBuffer.append("apptuijian?src=ms_zhushou&s=0&n=20&id=");
        stringBuffer.append(str);
        return h(stringBuffer.toString());
    }

    public static String l() {
        return d ? ae + "index/qinglidashi" : ab + "index/qinglidashi";
    }

    public static String l(Context context) {
        return r + W + com.qihoo360.mobilesafe.util.ai.a(context);
    }

    public static String m() {
        return "http://zsall.mobilem.360.cn/ebook/presetBookshelf";
    }

    public static String m(Context context) {
        return r + X + com.qihoo360.mobilesafe.util.ai.a(context);
    }

    public static final String n() {
        return ab + "AppStore/getRelateAppsById?" + e;
    }

    public static String n(Context context) {
        return r + P + com.qihoo360.mobilesafe.util.ai.a(context);
    }

    public static String o() {
        return ab + aj + e + "&";
    }

    public static String o(Context context) {
        return r + R + com.qihoo360.mobilesafe.util.ai.a(context);
    }

    public static String p() {
        return ab + "mintf/getAppsByCategory?csid=101714&start=0&count=20" + f3812b + "&" + e;
    }

    public static String p(Context context) {
        return r + Q + com.qihoo360.mobilesafe.util.ai.a(context);
    }

    public static String q() {
        return ab + "inew/smsList";
    }

    public static String q(Context context) {
        return d ? "http://test1.baohe.mobilem.360.cn/search/getNewSearchTab?v2=1" : "http://openbox.mobilem.360.cn/search/getNewSearchTab?v2=1";
    }

    public static String r() {
        return o + "ring/RingGetNewest?bannertype=1";
    }

    public static String r(Context context) {
        String str = "AppStore/getHotWordsIconsOfSearch?" + az();
        return d ? ae + str : g + str;
    }

    public static String s() {
        return com.qihoo.appstore.r.g.a("http://sug.m.so.com/suggest/zhushou?src=ms_zhushou", MainActivity.g());
    }

    public static String s(Context context) {
        long a2 = f.a("home_page_last_request_time", 0L);
        String str = d ? "http://test1.baohe.mobilem.360.cn/inew/getTimelineList?vc=" + de.c(context, context.getPackageName()) : "http://openbox.mobilem.360.cn/Inew/getTimelineList?vc=" + de.c(context, context.getPackageName());
        return a2 != 0 ? str + "&timestamp=" + a2 : str;
    }

    public static String t() {
        return d ? "http://test1.baohe.mobilem.360.cn/html/api/hmd.html" : "http://openbox.mobilem.360.cn/html/api/hmd.html";
    }

    public static String u() {
        return o + "ring/list/order/weektotal/num/20/?";
    }

    public static String v() {
        return ab + "ring/getSearchWord?count=49";
    }

    public static String w() {
        return ab + "ring/getSearchRec?count=20";
    }

    public static String x() {
        return o + "ring/RingGetCategorys?";
    }

    public static String y() {
        return ab + "Wallpaper/WallpaperGetNewest?";
    }

    public static String z() {
        return ab + "Wallpaper/WallpaperCategorys";
    }
}