version:3.4
fix: update:初始白名单增加扶小鹰app包名
This commit is contained in:
@@ -67,8 +67,8 @@ android {
|
||||
productFlavors {
|
||||
beta {
|
||||
flavorDimensions "default"
|
||||
versionCode 24
|
||||
versionName "3.3"
|
||||
versionCode 25
|
||||
versionName "3.4"
|
||||
}
|
||||
|
||||
official {
|
||||
|
||||
@@ -857,7 +857,9 @@ public class ApkUtils {
|
||||
public static void writeAppPackageList(Context context, String result) {
|
||||
Log.e(TAG, "writeAppPackageList: " + result);
|
||||
addShortcut(context);//开机之后添加图标到桌面
|
||||
HashSet<String> factoryAppList = JGYUtils.getInstance().getOwnApp();
|
||||
HashSet<String> factoryAppList = new HashSet<>();
|
||||
factoryAppList.addAll(JGYUtils.getInstance().getOwnApp());
|
||||
factoryAppList.addAll(JGYUtils.getInstance().getFXYApp());
|
||||
if (!TextUtils.isEmpty(result)) {
|
||||
HashSet<String> writeAppSet = new HashSet<>(Arrays.asList(result.split(",")));
|
||||
writeAppSet.addAll(factoryAppList);
|
||||
|
||||
@@ -80,7 +80,7 @@ public class JGYUtils {
|
||||
public static String MTKTag = "MTK";
|
||||
public static String ZhanruiTag = "展锐";
|
||||
|
||||
HashSet<String> ownApp = new HashSet<String>() {{
|
||||
private HashSet<String> ownApp = new HashSet<String>() {{
|
||||
this.add("com.tt.ttutils");
|
||||
this.add(BuildConfig.APPLICATION_ID);
|
||||
this.add("com.uiui.sn");
|
||||
@@ -108,7 +108,7 @@ public class JGYUtils {
|
||||
this.add("com.uiui.city");
|
||||
}};
|
||||
|
||||
HashSet<String> fuxiaoyingApp = new HashSet<String>() {{
|
||||
private HashSet<String> fuxiaoyingApp = new HashSet<String>() {{
|
||||
this.add(gkwxhd);
|
||||
this.add(fuxiaoying);
|
||||
this.add(moshujia);
|
||||
@@ -133,6 +133,10 @@ public class JGYUtils {
|
||||
return ownApp;
|
||||
}
|
||||
|
||||
public HashSet<String> getFXYApp() {
|
||||
return fuxiaoyingApp;
|
||||
}
|
||||
|
||||
private JGYUtils(Context context) {
|
||||
if (context == null) {
|
||||
throw new RuntimeException("Context is NULL");
|
||||
|
||||
Reference in New Issue
Block a user