version:3.4

fix:
update:初始白名单增加扶小鹰app包名
This commit is contained in:
2022-07-25 15:46:44 +08:00
parent 4521e729a2
commit 6c05c45fc8
3 changed files with 11 additions and 5 deletions

View File

@@ -67,8 +67,8 @@ android {
productFlavors { productFlavors {
beta { beta {
flavorDimensions "default" flavorDimensions "default"
versionCode 24 versionCode 25
versionName "3.3" versionName "3.4"
} }
official { official {

View File

@@ -857,7 +857,9 @@ public class ApkUtils {
public static void writeAppPackageList(Context context, String result) { public static void writeAppPackageList(Context context, String result) {
Log.e(TAG, "writeAppPackageList: " + result); Log.e(TAG, "writeAppPackageList: " + result);
addShortcut(context);//开机之后添加图标到桌面 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)) { if (!TextUtils.isEmpty(result)) {
HashSet<String> writeAppSet = new HashSet<>(Arrays.asList(result.split(","))); HashSet<String> writeAppSet = new HashSet<>(Arrays.asList(result.split(",")));
writeAppSet.addAll(factoryAppList); writeAppSet.addAll(factoryAppList);

View File

@@ -80,7 +80,7 @@ public class JGYUtils {
public static String MTKTag = "MTK"; public static String MTKTag = "MTK";
public static String ZhanruiTag = "展锐"; public static String ZhanruiTag = "展锐";
HashSet<String> ownApp = new HashSet<String>() {{ private HashSet<String> ownApp = new HashSet<String>() {{
this.add("com.tt.ttutils"); this.add("com.tt.ttutils");
this.add(BuildConfig.APPLICATION_ID); this.add(BuildConfig.APPLICATION_ID);
this.add("com.uiui.sn"); this.add("com.uiui.sn");
@@ -108,7 +108,7 @@ public class JGYUtils {
this.add("com.uiui.city"); this.add("com.uiui.city");
}}; }};
HashSet<String> fuxiaoyingApp = new HashSet<String>() {{ private HashSet<String> fuxiaoyingApp = new HashSet<String>() {{
this.add(gkwxhd); this.add(gkwxhd);
this.add(fuxiaoying); this.add(fuxiaoying);
this.add(moshujia); this.add(moshujia);
@@ -133,6 +133,10 @@ public class JGYUtils {
return ownApp; return ownApp;
} }
public HashSet<String> getFXYApp() {
return fuxiaoyingApp;
}
private JGYUtils(Context context) { private JGYUtils(Context context) {
if (context == null) { if (context == null) {
throw new RuntimeException("Context is NULL"); throw new RuntimeException("Context is NULL");