|
|
@@ -155,53 +155,76 @@ public class ImageDeepDetector {
|
|
|
if (TextUtils.isEmpty(path)) {
|
|
|
return false;
|
|
|
}
|
|
|
- if (path.contains("com.kuaishou.nebula") && (path.contains("live_gift_store_icon_directory") ||
|
|
|
- path.contains("magic_finger_resource") || path.contains("theme_resource") ||
|
|
|
- path.contains("magic_emoji_resource") || path.contains(".material_library_resource") ||
|
|
|
- path.contains("sticker_resource") || path.contains("preload%2Ficon%2Fcommon") ||
|
|
|
- path.contains("preload/icon/common") || path.contains(".emoji")
|
|
|
+ if (path.contains("com.kuaishou.nebula") && (path.endsWith("live_gift_store_icon_directory") ||
|
|
|
+ path.endsWith("magic_finger_resource") || path.endsWith("theme_resource") ||
|
|
|
+ path.endsWith("magic_emoji_resource") || path.endsWith(".material_library_resource") ||
|
|
|
+ path.endsWith("sticker_resource") || path.endsWith("preload%2Ficon%2Fcommon") ||
|
|
|
+ path.endsWith("preload/icon/common") || path.endsWith(".emoji")
|
|
|
)) {
|
|
|
return true;
|
|
|
}
|
|
|
- if ((path.contains("com.tencent.mobileqq") || path.contains("com.tencent.tim")) && (path.contains("qvideo_newvideo_tips") ||
|
|
|
- path.contains("Gameicon") || path.contains("html5") || path.contains(".preloaduni"))) {
|
|
|
+ if ((path.contains("com.tencent.mobileqq") || path.endsWith("com.tencent.tim")) && (path.endsWith("qvideo_newvideo_tips") ||
|
|
|
+ path.endsWith("Gameicon") || path.endsWith("html5") || path.endsWith(".preloaduni") ||
|
|
|
+ path.endsWith(".apollo")) || path.endsWith("editor%2Fresources") || path.endsWith("editor/resources") ||
|
|
|
+ path.endsWith("lottie") || path.endsWith(".vaspoke") || path.endsWith("newpoke") ||
|
|
|
+ path.endsWith("qcircle%2Ffile%2Fdownload") || path.endsWith("qcircle/file/download") ||
|
|
|
+ path.endsWith("qzone%2Fzip_cache") || path.endsWith("qzone/zip_cache") || path.endsWith("poke") ||
|
|
|
+ path.endsWith("DoutuRes")) {
|
|
|
return true;
|
|
|
}
|
|
|
- if ((path.contains("com.ss.android.article.video") || path.contains("com.ss.android.ugc.aweme")) && (path.contains("liveroom") ||
|
|
|
- path.contains("effect") || path.contains("card_3d_res") || path.contains("weboffline") || path.contains("fantasy_lottie_res")
|
|
|
+ if ((path.contains("com.ss.android.article.video") || path.contains("com.ss.android.ugc.aweme")) && (path.endsWith("liveroom") ||
|
|
|
+ path.endsWith("effect") || path.endsWith("card_3d_res") || path.endsWith("weboffline") || path.endsWith("fantasy_lottie_res")
|
|
|
)) {
|
|
|
return true;
|
|
|
}
|
|
|
- if ((path.contains("com.taobao.taobao") || path.contains("com.tmall.wireless")) && (path.contains("AVFSCache") ||
|
|
|
- path.contains("gs_fs"))) {
|
|
|
+ if ((path.contains("com.taobao.taobao") || path.contains("com.tmall.wireless")) && (path.endsWith("AVFSCache") ||
|
|
|
+ path.endsWith("gs_fs"))) {
|
|
|
return true;
|
|
|
}
|
|
|
- if ((path.contains("com.baidu.BaiduMap")) && (path.contains("sticker"))) {
|
|
|
+ if ((path.contains("com.baidu.BaiduMap")) && (path.endsWith("sticker"))) {
|
|
|
return true;
|
|
|
}
|
|
|
- if ((path.contains("com.eg.android.AlipayGphone")) && (path.contains("Sandbox") ||
|
|
|
- path.contains("emojiFiles"))) {
|
|
|
+ if ((path.contains("com.eg.android.AlipayGphone")) && (path.endsWith("Sandbox") ||
|
|
|
+ path.endsWith("emojiFiles"))) {
|
|
|
return true;
|
|
|
}
|
|
|
- if ((path.contains("air.tv.douyu.android")) && (path.contains("skin_download_dir"))) {
|
|
|
+ if ((path.contains("air.tv.douyu.android")) && (path.endsWith("skin_download_dir"))) {
|
|
|
return true;
|
|
|
}
|
|
|
- if (path.contains("tencent/MobileQQ/doodle_template") || path.contains("tencent%2FMobileQQ%2Fdoodle_template")) {
|
|
|
+ if ((path.contains("com.kugou.android")) && (path.endsWith("kugou/lyric") ||
|
|
|
+ path.endsWith("kugou%2Flyric"))) {
|
|
|
return true;
|
|
|
}
|
|
|
- if (path.contains(".mob_ad/.material") || path.contains("mob_ad%2F.material")) {
|
|
|
+ if ((path.contains("com.ss.android.article.news") || path.contains("com.ss.android.ugc.aweme"))
|
|
|
+ && (path.endsWith("resources%2Fvariety") || path.endsWith("resources/variety"))) {
|
|
|
return true;
|
|
|
}
|
|
|
- if (path.contains("bddownload/common") || path.contains("bddownload%2Fcommon")) {
|
|
|
+ if ((path.contains("com.autonavi.minimap") || path.contains("com.amap.android.ams")) && (path.endsWith("sharetrip.taxi") ||
|
|
|
+ path.endsWith("sharetrip%2Ftaxi") || path.endsWith("httpcache"))) {
|
|
|
return true;
|
|
|
}
|
|
|
- if (path.contains("Pictures/.gs_fs") || path.contains("Pictures%2F.gs_fs")) {
|
|
|
+ if (path.contains("tencent/MobileQQ/doodle_template") || path.endsWith("tencent%2FMobileQQ%2Fdoodle_template")) {
|
|
|
return true;
|
|
|
}
|
|
|
- if (path.contains("files/amap") || path.contains("files%2Famap")) {
|
|
|
+ if (path.contains(".mob_ad/.material") || path.endsWith("mob_ad%2F.material")) {
|
|
|
return true;
|
|
|
}
|
|
|
- if (path.contains("__MACOSX")) {
|
|
|
+ if (path.contains("bddownload/common") || path.endsWith("bddownload%2Fcommon")) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (path.contains("Pictures/.gs_fs") || path.endsWith("Pictures%2F.gs_fs")) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (path.endsWith("files/amap") || path.endsWith("files%2Famap")) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (path.endsWith("ksadsdk")) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (path.endsWith("files%2Fbddownload%2Fimg_download") || path.endsWith("files/bddownload/img_download")) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ if (path.endsWith("__MACOSX")) {
|
|
|
return true;
|
|
|
}
|
|
|
} catch (Exception ignore) {
|
|
|
@@ -584,7 +607,10 @@ public class ImageDeepDetector {
|
|
|
path.contains("com.meizu.media.gallery") ||
|
|
|
path.contains("com.oppo.gallery3d") ||
|
|
|
path.contains("com.android.gallery") ||
|
|
|
- path.contains("DCIM")
|
|
|
+ path.contains("com.huawei.photos") ||
|
|
|
+ path.contains("DCIM") ||
|
|
|
+ path.contains("Pictures") ||
|
|
|
+ path.contains(".RecycleBin")
|
|
|
)) {
|
|
|
return true;
|
|
|
}
|