OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 j.java 源代码,内容仅作参考
package com.excelliance.kxqp.gs.ui.add;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import com.android.spush.util.WebActionRouter;
import com.bytedance.sdk.open.aweme.common.constants.ParamKeyConstants;
import com.excelliance.kxqp.GameUtil;
import com.excelliance.kxqp.VersionManager;
import com.excelliance.kxqp.bean.AppExtraBean;
import com.excelliance.kxqp.gs.discover.model.ResponseData;
import com.excelliance.kxqp.gs.game.GameAttributesHelper;
import com.excelliance.kxqp.gs.thpool.tp;
import com.excelliance.kxqp.gs.util.as;
import com.excelliance.kxqp.gs.util.au;
import com.excelliance.kxqp.gs.util.az;
import com.excelliance.kxqp.gs.util.bs;
import com.excelliance.kxqp.gs.util.by;
import com.excelliance.kxqp.gs.util.cd;
import com.excelliance.kxqp.gs.util.cn;
import com.excelliance.kxqp.gs.util.s;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.io.File;
import java.io.InputStream;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import org.apache.http.cookie.ClientCookie;
public class j implements com.excelliance.kxqp.gs.i.e {
public static final String[] f8705a = {"com.papegames.nn4.tw", "tv.danmaku.bili", "com.taptap", "com.tencent.mobileqq", "com.gameloft.android.ANMP.GloftA9HM", "com.aniplex.fategrandorder", "com.tencent.tmgp.sgame", "com.tencent.tmgp.pubgmhd", "com.tencent.mm", "com.studiowildcard.wardrumstudios.ark", "com.herogame.gplay.evolutionchess", "com.example.administrator.essim", "com.reiya.pixiv", "com.google.earth", "com.google.android.marvin.talkback", "com.valvesoftware.android.steam.community", "com.tencent.ig", "com.qooapp.qoohelper", "com.hippo.ehviewer", "com.utopia.pxview", "com.baidu.netdisk", "com.chucklefish.stardewvalley", "com.google.android.apps.maps", "com.ss.android.ugc.aweme", "com.tencent.androidqqmail", "com.NextFloor.DestinyChild", "com.qiyi.video", "com.taobao.taobao", "com.tencent.tmgp.qjnn", "com.netease.cloudmusic", "com.eg.android.AlipayGphone", "com.pearlabyss.blackdesertm.tw2", "com.linegames.dcglobal", "com.axlebolt.standoff2", "com.astragon.cs3", "com.gameloft.android.ANMP.GloftA8HM", "com.sina.weibo", "tw.sonet.princessconnect", "zombie.survival.craft.z", "com.tencent.qqlive", "com.bandainamcoent.saoifww", "com.bilibili.fatego", "jp.konami.pesam", "com.perol.asdpl.pixivez", "com.miHoYo.bh3rdJP", "hk.com.funtown.sk", "com.install.service.store", "com.google.android.GoogleCamera", "com.baidu.tieba", "com.autonavi.minimap", "com.google.android.apps.translate", "com.cygames.Shadowverse", "com.ericxiang.googleinstaller", "com.nekki.shadowfight3", "com.stove.epic7.google", "tw.com.gamer.android.animad", "jp.co.cygames.princessconnectredive", "com.reiya.pixive", "com.igg.castleclash_tw", "com.tencent.tmgp.cf", "com.nianticlabs.pokemongo", "com.rsg.myhero", "com.ea.game.nfs14_row", "com.blizzard.wtcg.hearthstone", "com.tencent.qqmusic", "com.tencent.tmgp.speedmobile", "com.bandainamcoent.jojop3", "com.nintendo.zaba", "com.devsisters.gb", "com.ballistiq.artstation", "com.madfingergames.legends", "com.wayi.myhome", "com.supercell.brawlstars", "com.gameloft.android.ANMP.GloftM5HM", "com.youku.phone", "cn.wps.moffice_eng", "com.gameloft.android.ANMP.GloftASHM", "com.gamedevltd.wwh", "com.nexon.da3.global", "com.iwantavnow", "com.archbears.bs", "com.google.android.Pixel2Mod", "com.epicgames.fortnite", "com.jingdong.app.mall", "com.vespainteractive.KingsRaid", "com.dmm.app.store", "jp.konami.duellinks", "com.shopee.tw", "com.baidu.BaiduMap", "com.netease.lztgglobal", "com.snda.wifilocating", "com.xvideos.app", "org.gappsinstaller.gappsinstaller", "com.stairs.destinychild", "com.nexon.maplem.japan", "com.ss.android.ugc.trill", "com.nintendo.zaga", "com.smile.gifmaker", "org.codeaurora.snapcam", "com.superevilmegacorp.game", "com.qooapp.bungotales", "com.ChillyRoom.DungeonShooter", "com.deviantart.android.damobile", "com.tencent.gwgo", "jp.mbga.a12016007.lite", "jp.hpgames.shinomas", "com.bandainamcoent.saomdas", "com.miHoYo.enterprise.NGHSoD", "dfjghsazdkfjhdf.zkldsjfghdflkgfdj.xldfjkghdlfkjgdfgl", "com.sunborn.girlsfrontline.jp", "com.netmarble.bnsmkr", "moe.feng.nhentai", "com.tw.snsplus.mm.android", "com.kugou.android", "com.mojang.minecraftpe", "com.tencent.android.qqdownloader", "com.howie.gserverinstall", "cc.ccplay.com.papegames.nn4.tw", "com.ztgame.yyzy", "com.azurgames.dinosaurs", "com.Company.BreathofDragons", "com.funplus.myrzx", "jp.co.bandainamcoonline.idolish7global", "com.example.administrator.searchpicturetool", "com.vsco.cam", "com.ttime.lwhx.tw", "com.One.WoodenLetter", "com.google.android.GoogleCameraNext", "com.scee.psxandroid", "jp.co.happyelements.mirror", "com.garena.game.kgtw", "brownmonster.app.game.rushrally3", "com.tw.danmemo", "com.m4399.gamecenter", "com.ubisoft.accovenant", "com.neowizgames.game.browndust.srpg.global", "jp.co.craftegg.band", "net.ngee.pixiver", "com.nexon.maplem.global", "com.pinterest", "com.lucydream.dangerousfellows", "com.dmzj.manhua", "com.t2ksports.nba2k19and", "com.bandainamcoent.dblegends_ww", "com.greatewallvpn.quick", "com.chucklefish.stardewvalley.shiba", "com.herogame.gplay.lastdayrulessurvival", "jp.nicovideo.android", "com.FourFire.InfiniteSoul", "com.baidu.appsearch", "games.wfs.anothereden", "com.lofter.android", "com.ea.games.r3_row", "com.zhiliaoapp.musically", "com.coolapk.market", "com.google.android.apps.photos", "it.rortos.realflightsimulator", "com.hound13.hundredsoul", "com.sankuai.meituan", "com.moviemmapp", "com.gaijin.xom", "com.madfingergames.deadtrigger2", "com.flaregames.zgs", "kr.co.dalcomsoft.superstar.a", "com.xunmeng.pinduoduo", "com.ubisoft.assassinscreed.identity", "com.spotify.music", "com.tencent.tmgp.supercell.clashofclans", "com.discord", "com.rbuttongames.battlemechs", "com.bandainamcoent.jojodr", "com.gameloft.android.ANMP.GloftGGHM", "net.wargaming.wot.blitz", "com.biakmanhuami.cn", "com.bilibili.azurlane", "com.gameloft.android.ANMP.GloftMVHM", "com.android.email", "cc.cc8.hopebox", "com.gamedevltd.destinywarfarepk", "com.xmvideo.app", "com.join.android.app.mgsim.wufun", "com.teamviewer.teamviewer.market.mobile", "klb.android.lovelive", "com.nuts.extremspeedup", "com.google.android.apps.docs", "com.netmarble.sknightsgb", "com.ngame.allstar.eu", "jp.developer.retia.pxviewer", "com.studiowildcard.wardrumstudios.ark.ncr", "com.epicgames.portal", "com.sohu.inputmethod.sogou", "com.rockstargames.gtasa", "com.ea.game.pvzfree_row", "com.com2us.smon.normal.freefull.google.kr.android.common", "com.jack.facebookdesktop", "jp.co.ponos.superstarsmtown", "com.supercell.hayday", "com.bandainamcoent.opbrww", "com.baidu.homework", "com.tencent.KiHan", "com.netflix.mediaclient", "net.gamon.bdTW", "air.tv.douyu.android", "com.makingfun.mageandminions", "com.nexon.axe.global", "com.zhihu.android", "com.ea.gp.simsmobile", "com.pubg.krmobile", "com.flerogames.aos.g2079", "com.xmcy.hykb", "com.wandoujia.phoenix2", "com.ea.gp.pvzheroes", "com.eilojiang", "com.nexon.nsc.maplem", "com.astragon.cs2016", "com.wuba", "com.cowbeans.pixelsurvival2", "com.smartjoy.LastOrigin_C", "com.google.android.street", "com.elevenbitstudios.twomstoriesmobile", "shibaicom.papegames.nn4.tw", "com.xfplay.play", "jp.ne.ambition.bungomayoi", "jp.customcast.cc2", "cn.amazon.mShop.android", "com.nexon.bnb2", "com.duowan.kiwi", "com.supercell.clashofclans", "com.ted.android", "com.pixonic.wwr", "com.pikpok.dr2.play", "jp.co.pokelabo.sinoalice", "jp.co.bandainamcoent.BNEI0242", "com.ojiang.zgame", "com.ovital.ovitalMap", "com.komoe.sinoalicegoogle", "com.adobe.psmobile", "leagueofmonkeys.torquedrift", "cn.pure", "com.elevenbitstudios.twommobile", "com.diezhi.qjnnjp", "com.pp.assistant", "com.miui.virtualsim", "com.netease.dwrg", "com.sogou.androidtool", "com.plarium.raidlegends", "com.gameloft.android.ANMP.GloftMOHM", "com.miHoYo.bh3.bilibili", "com.kuaikan.comic", "com.aldagames.warpolygon", "jp.co.lifewonders.housamo", "net.metaquotes.metatrader4", "com.cn.mdv.xjsp2", "com.gamebox.shiba", "com.squareenixmontreal.hitmansniperandroid", "com.bluebottlegames.neoscavengermobile", "com.and.games505.TerrariaPaid", "com.ActionSquare.GiganticX", "com.ea.game.pvz2_na", "com.tencent.tmgp.qqx5", "com.imageline.FLM", "com.tencent.karaoke", "com.gameloft.android.ANMP.GloftOLHM", "com.googlesuit.ggkj", "com.vanced.android.youtube", "com.ekkorr.endlessfrontier.global", "com.netease.onmyoji", "com.astragon.trucksimtwo", "com.ztgame.bob", "com.blayzegames.iosfps", "com.playkot.ageofmagic", "org.coursera.android", "com.aniplex.highschoolfleet", "com.huawei.hwid", "com.asobimo.toramonline", "tw.sonet.wcp", "com.xxxxxx", "com.muzhiwan.gsfinstaller", "com.tencent.tmgp.pubgm", "com.huluxia.gametools", "ru.zdevs.zarchiver", "com.tencent.iglite", "com.bilibili.comic", "com.swordman.reforged", "tw.com.gamer.android.activecenter", "com.sofunny.Sausage", "jp.co.bandainamcoonline.idolish7", "tw.sonet.aga", "com.bandainamcoent.digimon_linkz_ww", "com.one.cucumber", "com.sdu.didi.psnger", "com.atec.superlightforfacebook", "com.google.ar.core", "com.wb.goog.injustice.brawler2017", "com.bilibili.app.in", "cc.ccplay.com.studiowildcard.wardrumstudios.ark", "tv.twitch.android.viewer", "com.taobao.idlefish", "com.behance.behance", "me.ele", "com.tencent.igce", "com.YoStarJP.AzurLane", "com.nhnpa.cpstw", "com.duokan.reader", "com.ea.games.simsfreeplay_row", "com.nintendo.zara", "com.hunantv.imgo.activity", "com.iflytek.inputmethod", "cc.soonet.bit", "com.bushiroad.conanrunner", "com.lovelycat", "com.tinyco.potter", "com.ubisoft.uplay", "com.bethsoft.blade", "com.fantablade.icey", "com.allzeus.browser", "cn.ninegame.gamemanager", "com.tencent.token", "com.tencent.tako.muses", "org.mozilla.rocket", "com.bandainamcoent.citywars", "com.naver.vapp", "com.smartjoy.LastOrigin_G", "com.klab.utapri.shininglive.global", "jp.arithmetic.pj001", "moe.low.arc", "com.netease.moba", "com.tencent.tmgp.sgamece", "com.campmobile.snowcamera", "com.a24dev.pixittiForAndroid", "com.dilidili.app", "com.ximalaya.ting.android", "com.upgadata.up7723", "com.shopee.my", "com.nwz.ichampclient", "com.ea.game.simcitymobile_row", "com.tencent.ngame.chty", "com.mobile.legends", "com.mashirocchi.gp", "com.unionpay", "com.iwantavnow.android", "com.yingyonghui.market", "com.Zonmob.ShadowofDeath.FightingGames", "com.up2me.mgo", "com.tencent.tim", "com.kkptech.kkpsy", "com.ct.client", "com.gamedevltd.wwhpk", "com.ubisoft.hungrydragon", "com.fds.infiniteflight", "com.lilithgame.roc.gp", "com.gamevil.talion.android.google.global.normal", "zmob.com.magnetman", "com.dalcomsoft.ssb", "com.iplay.assistant", "com.nnfour.rel", "com.komoe.a3gp", "cn.wsds.gamemaster", "com.flightradar24free", "com.futbin", "com.google.android.apps.authenticator2", "com.criticalforceentertainment.criticalops", "com.lion.market", "com.nemo.vidmate", "com.tencent.map", "com.komoe.madokagp", "com.jiongji.andriod.card", "com.dounai.phonelive", "com.gameloft.android.ANMP.GloftM4HM", "jp.pokemon.pokemonquest", "com.iloen.melon", "jp.Marvelous.senbura", "com.yixia.xg", "com.papegames.evol", "com.miHoYo.bh3oversea", "com.garena.game.kgvn", "com.gamevil.heiroflight.android.google.global.normal", "com.ndemiccreations.rebelinc", "com.dmm.games.touken", "com.netease.mrzh", "com.dle.afterpulse", "com.nutaku.eoa.enus", "com.nexon.durango.global", "com.dianping.v1", "com.hippiegame.nevergone", "com.sj4399.googletools", "com.bandainamcogames.dbzdokkan", "com.cowbeans.pixelsurvivalworld", "com.blayzegames.newfps", "com.nhnpa.cps", "me.zepeto.main", "com.morningtec.abyss", "hk.com.funtown.snb", "com.garena.game.fctw", "com.sozap.badmen", "com.lifan.app", "com.qqgame.hlddz", "com.pear.hot", "com.nekki.shadowfight", "com.paypal.android.p2pmobile", "eu.pokemmo.client", "com.edkongames.mobs", "com.mobirix.idleknights", "com.qooapp.bungotales.gp", "com.sankakucomplex.channel.black", "com.gamevil.kritikamobile.android.google.global.normal", "com.diosapp.nhb", "com.netease.wyclx", "com.elex.nikkigp", "jp.colopl.alice", "cn.soulapp.android", "com.picsart.studio", "com.tencent.wifimanager", "com.feralinteractive.rometw", "jp.co.dmm.ne.janmusutenpai", "com.mfashiongallery.emag", "com.jjwxc.reader", "com.zhongduomei.rrmj.society", "com.tencent.qqpimsecure", "com.tencent.FileManager", "com.tencent.tmgp.supercell.clashroyale", "com.burakgon.dnschanger", "com.papegames.nn4.mi", "net.wrightflyer.anothereden", "com.awesapp.isafe", "com.moefantasy.neoforce", "com.dmm.dmmlabo.kancolle", "com.tencent.elemental", "com.ilike.cartoon"};
public static final String[] f8706b = {"com.gameloft.android.ANMP.GloftA9HM", "com.chucklefish.stardewvalley", "com.astragon.cs3", "com.ea.game.nfs14_row", "com.mojang.minecraftpe", "brownmonster.app.game.rushrally3", "com.t2ksports.nba2k19and", "com.FourFire.InfiniteSoul", "it.rortos.realflightsimulator", "com.ubisoft.assassinscreed.identity", "com.rbuttongames.battlemechs", "com.gameloft.android.ANMP.GloftGGHM", "com.rockstargames.gtasa", "com.astragon.cs2016", "com.elevenbitstudios.twommobile", "com.squareenixmontreal.hitmansniperandroid", "com.and.games505.TerrariaPaid", "com.ea.game.pvz2_na", "com.imageline.FLM", "com.gameloft.android.ANMP.GloftOLHM", "com.fantablade.icey", "com.fds.infiniteflight", "com.gameloft.android.ANMP.GloftM4HM", "com.dle.afterpulse", "com.feralinteractive.rometw"};
public static List<String> d = Arrays.asList(f8706b);
private static j e;
private static volatile boolean h;
private Context f;
private List<c> i;
private List<c> j;
private Gson l;
private com.excelliance.kxqp.util.master.d m;
private List<Runnable> g = new ArrayList();
public List<String> c = Arrays.asList(f8705a);
private Runnable n = new Runnable() {
@Override
public void run() {
if (j.this.f == null) {
return;
}
by a2 = by.a(j.this.f, "global_config");
if (a2.b("sp_guide_local_import", false).booleanValue()) {
return;
}
boolean unused = j.h = true;
Intent intent = new Intent(j.this.f, (Class<?>) GuideImportActivity.class);
intent.addFlags(268435456);
j.this.f.startActivity(intent);
a2.a("sp_guide_local_import", true);
}
};
private com.excelliance.kxqp.gs.ui.nyactivitys.b k = new com.excelliance.kxqp.gs.ui.nyactivitys.b();
private j(final Context context) {
this.f = context;
this.k.execute(new Runnable() {
@Override
public void run() {
j.this.m = new com.excelliance.kxqp.util.master.d(context.getApplicationContext());
}
});
h = by.a(context, "global_config").b("sp_guide_local_import", false).booleanValue();
this.l = new Gson();
}
public void d(Context context) {
try {
InputStream open = context.getAssets().open("recommend.json");
byte[] bArr = new byte[open.available()];
open.read(bArr);
open.close();
a((ResponseData<g>) this.l.a(new String(bArr), new TypeToken<ResponseData<g>>() {
}.getType()));
} catch (Exception e2) {
e2.printStackTrace();
}
}
public static j a(Context context) {
if (e == null) {
synchronized (com.excelliance.kxqp.gs.discover.bbs.a.class) {
if (e == null) {
e = new j(context.getApplicationContext());
}
}
}
return e;
}
public static boolean b(Context context) {
return !com.excelliance.kxqp.gs.util.b.z(context) || h;
}
public void a(Runnable runnable) {
if (b(this.f)) {
Log.d("GuideImportHelper", "addAfterRunnable interrupted");
runnable.run();
} else {
synchronized (this) {
this.g.add(runnable);
}
}
}
public void b() {
if (b(this.f)) {
return;
}
Log.d("GuideImportHelper", "handleImportGuide: " + this.j);
if (!s.a(this.j)) {
this.k.execute(this.n);
} else {
this.k.a(new Runnable() {
@Override
public void run() {
j.this.b();
}
}, 300L);
}
}
public List<c> c() {
return this.j;
}
public synchronized void d() {
if (b(this.f)) {
return;
}
tp.f(new Runnable() {
@Override
public void run() {
j.this.d(j.this.f);
j.this.f();
ArrayList arrayList = new ArrayList();
PackageManager packageManager = j.this.f.getPackageManager();
for (String str : j.this.c) {
if (!bs.n(str)) {
try {
PackageInfo packageInfo = packageManager.getPackageInfo(str, 0);
if (packageInfo != null) {
String charSequence = packageInfo.applicationInfo.loadLabel(packageManager).toString();
Bitmap a2 = com.excelliance.kxqp.gs.util.k.a(packageInfo.applicationInfo.loadIcon(packageManager));
String j = VersionManager.getInstance().j(str);
if (a2 != null) {
com.excelliance.kxqp.gs.util.k.b(a2, j);
}
c cVar = new c();
cVar.f8694a = str;
cVar.g = 9;
cVar.h = 5;
cVar.f8695b = charSequence;
cVar.d = j;
cVar.e = GameUtil.getIntance().h(str);
cVar.j = j.a(str) ? 3 : 1;
arrayList.add(cVar);
}
} catch (PackageManager.NameNotFoundException e2) {
e2.printStackTrace();
} catch (Exception e3) {
e3.printStackTrace();
}
}
}
j.this.j = arrayList;
}
});
}
public static boolean a(String str) {
return d != null && d.contains(str);
}
public void f() {
ResponseData<g> b2 = new com.excelliance.kxqp.gs.discover.bbs.c(this.f).b(cn.i(this.f).toString(), "https://api.ourplay.com.cn/goneload/list", new com.excelliance.kxqp.gs.discover.a.c<g>() {
@Override
public ResponseData<g> a(String str) {
try {
return (ResponseData) new Gson().a(str, new TypeToken<ResponseData<g>>() {
}.getType());
} catch (Exception e2) {
az.d("GuideImportHelper", "syncServerConfig/ex:" + e2.getMessage());
return null;
}
}
});
Log.d("GuideImportHelper", "syncServerConfig: " + b2);
a(b2);
}
private void a(ResponseData<g> responseData) {
if (responseData != null && responseData.code == 1) {
if (responseData.data != null) {
if (!s.a(responseData.data.f8698a)) {
this.c = responseData.data.f8698a;
}
if (s.a(responseData.data.f8699b)) {
return;
}
d = responseData.data.f8699b;
return;
}
return;
}
az.d("GuideImportHelper", "refreshList error:" + responseData);
}
public void a(List<c> list) {
if (s.a(list)) {
return;
}
by.a(this.f, "global_config").a("sp_guide_import_app_list", this.l.a(list));
by.a(this.f, "global_config").a("sp_key_guide_import_ready", true);
Intent intent = new Intent(this.f.getPackageName() + ".action_guide_import_add_game");
intent.putExtra("appBeans", (Serializable) list);
intent.putExtra(ParamKeyConstants.WebViewConstants.QUERY_FROM, "guideImport");
this.f.sendBroadcast(intent);
}
public void e() {
if (s.a(this.g)) {
return;
}
Iterator<Runnable> it = this.g.iterator();
while (it.hasNext()) {
it.next().run();
}
}
@Override
public void a() {
this.k = null;
this.j = null;
this.f = null;
this.g = null;
this.c = null;
e = null;
}
public synchronized void a(String str, String str2, int i) {
if (com.excelliance.kxqp.gs.util.b.z(this.f)) {
if (this.i == null) {
String b2 = by.a(this.f, "global_config").b("sp_guide_import_app_list", "");
if (TextUtils.isEmpty(b2)) {
return;
} else {
this.i = (List) this.l.a(b2, new TypeToken<List<c>>() {
}.getType());
}
}
if (s.a(this.i)) {
return;
}
boolean z = true;
for (c cVar : this.i) {
if (TextUtils.equals(cVar.f8694a, str)) {
cVar.g = 8;
cVar.f = i;
cVar.e = str2;
cVar.i = GameUtil.getIntance().b(str2, this.f);
a(cVar);
}
if (cVar.g != 8) {
z = false;
}
}
String a2 = this.l.a(this.i);
Log.d("GuideImportHelper", "onImportInstalled/json: " + a2);
by.a(this.f, "global_config").a("sp_guide_import_app_list", a2);
if (z) {
Log.d("GuideImportHelper", "完成了引导导入,此时已全部安装完成,触发悬浮窗: ");
b(this.i);
by.a(this.f, "global_config").a("sp_guide_import_app_list", "");
a();
}
}
}
private boolean a(c cVar) {
if (b(cVar)) {
Log.d("GuideImportHelper", "whenInstalled: 依赖跳转gp");
return false;
}
if (c(cVar)) {
Log.d("GuideImportHelper", "whenInstalled: 依赖gms");
return false;
}
au a2 = au.a();
if (!a2.p(cVar.f8694a, this.f)) {
if (d(cVar)) {
Log.d("GuideImportHelper", "whenInstalled: 依赖辅包");
return false;
}
File file = new File(cVar.e);
AppExtraBean d2 = com.excelliance.kxqp.util.master.e.d(this.f, cVar.f8694a, cVar.f);
boolean z = !com.excelliance.kxqp.util.master.c.b(file);
if (!z && com.excelliance.kxqp.util.master.e.a(cVar.e) && this.m != null && this.m.c()) {
return false;
}
if (!z && d2.getCpu() == 2 && !com.excelliance.kxqp.util.master.e.a(cVar.e)) {
Log.d("GuideImportHelper", "whenInstalled: 需要删除");
return false;
}
}
boolean m = a2.m(cVar.f8694a, this.f);
if (a2.n(cVar.f8694a, this.f)) {
Log.d("GuideImportHelper", "whenInstalled: 通讯软件国际版,允许启动");
} else if (m) {
Log.d("GuideImportHelper", "whenInstalled: 依赖usb调试模式");
return false;
}
Log.d("GuideImportHelper", "whenInstalled/target: " + cVar);
Intent intent = new Intent(this.f.getPackageName() + ".action_guide_import_add_game_completed");
intent.putExtra("targetApp", cVar);
this.f.sendBroadcast(intent);
return true;
}
private boolean b(c cVar) {
return cVar.j == 3;
}
private void b(List<c> list) {
if (s.a(list)) {
return;
}
Iterator<c> it = list.iterator();
while (it.hasNext()) {
if (a(it.next())) {
return;
}
}
c cVar = list.get(0);
Log.d("GuideImportHelper", "whenAllDone/targetApp: " + cVar);
Intent intent = new Intent(this.f.getPackageName() + ".action_guide_import_add_game_completed");
intent.putExtra("targetApp", cVar);
this.f.sendBroadcast(intent);
}
private boolean c(c cVar) {
if (as.d(this.f, false)) {
return GameAttributesHelper.b(this.f, cVar.f8694a, cVar.e, false);
}
return false;
}
private boolean d(c cVar) {
Bundle bundle = new Bundle();
bundle.putString(WebActionRouter.KEY_PKG, cVar.f8694a);
bundle.putString(ClientCookie.PATH_ATTR, cVar.e);
AppExtraBean d2 = com.excelliance.kxqp.util.master.e.d(this.f, cVar.f8694a, cVar.f);
az.d("GuideImportHelper", "depend64 " + d2.getDepend64());
if (d2.getDepend64() == 1) {
bundle.putInt("cpu", 2);
}
if (d2.getCpu() == 2) {
bundle.putInt("cpu", d2.getCpu());
}
this.f.getPackageName();
String string = bundle.getString(WebActionRouter.KEY_PKG);
String string2 = bundle.getString(ClientCookie.PATH_ATTR);
return (bundle.getInt("cpu", 0) == 2 || cd.a(string2) || com.excelliance.kxqp.util.master.e.b(string2) || com.excelliance.kxqp.util.master.e.a(this.f, string, 0)) && !com.excelliance.kxqp.util.master.e.a(this.f);
}
public static boolean c(Context context) {
return by.a(context, "global_config").b("sp_key_guide_import_ready", false).booleanValue();
}
}