From f6980498b1ed1dfac6fc74017f48ca56d07e0215 Mon Sep 17 00:00:00 2001 From: yutou Date: Wed, 4 Aug 2021 11:40:20 +0800 Subject: [PATCH] update --- csjConfig/ad_config_5700.cfg | 328 ---------------------------- csjConfig/ad_config_5800.cfg | 341 ------------------------------ csjConfig/ad_config_5801.cfg | 341 ------------------------------ src/com/qy/utils/HeiHeiTools.java | 31 +-- src/com/qy/utils/XMLTools.java | 11 + 5 files changed, 29 insertions(+), 1023 deletions(-) delete mode 100644 csjConfig/ad_config_5700.cfg delete mode 100644 csjConfig/ad_config_5800.cfg delete mode 100644 csjConfig/ad_config_5801.cfg diff --git a/csjConfig/ad_config_5700.cfg b/csjConfig/ad_config_5700.cfg deleted file mode 100644 index 90c6466..0000000 --- a/csjConfig/ad_config_5700.cfg +++ /dev/null @@ -1,328 +0,0 @@ -{ - "array": [ - { - "title": "广点通", - "ltName": "tgd", - "manifest": [ - "", - "", - "", - "" - ], - "class": [ - "com.qq.e.ads.ADActivity", - "com.qq.e.ads.PortraitADActivity", - "com.qq.e.ads.LandscapeADActivity", - "com.qq.e.comm.DownloadService" - ], - "random": [ - "com", - "ww", - "dt" - ], - "rename": { - "ADActivity": "Activity", - "PortraitADActivity": "PortraitActivity", - "LandscapeADActivity": "LandscapeActivity", - "DownloadService": "DownloadService" - }, - "isAllPackage": false, - "isReName": true, - "isJarLib": false, - "packagerlimit": 3, - "isManual": false, - "dex2jar": "D:\\反编译\\dex2jar-2.0\\_d2j-dex2jar.bat", - "manual": [ - { - "class": "com.qq.e.comm.a", - "find": "com/qq/e/ads/ADActivity" - } - ] - }, - { - "title": "聚量", - "ltName": "jla", - "manifest": [ - "/>", - "", - "", - "", - "" - ], - "class": [ - "com.uniplay.adsdk.AdActivity", - "com.uniplay.adsdk.InterstitialAdActivity", - "com.uniplay.adsdk.NetworkChangeActivity", - "com.joomob.activity.AdVideoActivity", - "com.uniplay.adsdk.DownloadService" - ], - "random": [ - "com", - "ww", - "ut" - ], - "rename": { - "AdActivity": "Activity", - "InterstitialAdActivity": "InterstitialActivity", - "NetworkChangeActivity": "NetworkChangeActivity", - "AdVideoActivity": "VideoActivity", - "DownloadService": "DownloadService" - }, - "isAllPackage": false, - "isReName": true, - "isJarLib": false, - "packagerlimit": 3, - "isManual": true, - "dex2jar": "D:\\反编译\\dex2jar-2.0\\_d2j-dex2jar.bat", - "manual": [ - { - "class": "com.uniplay.adsdk.basic.RuleManage", - "find": ".method public configRight", - "msg": "仅保留const-string v0, \"\" return-object v0", - "data":".method public configRight(Landroid/content/Context;Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;\n.locals 3\n.prologue\nconst-string v0, \"\" \nreturn-object v0\n", - "end":".end method" - },{ - "class":"com.uniplay.adsdk.basic.RuleManage", - "find":"const-string v0, \"uniplay.fileprovider\"", - "data":"const-string v0, \"fileprovider\"\n", - "end":"sput-object v0, Lcom/uniplay/adsdk/basic/RuleManage;->FP_UN:Ljava/lang/String;" - } - ] - }, - { - "title": "万维", - "ltName": "OnewaySDK_QY.lt", - "manifest": [ - "" - ], - "class": [ - "mobi.oneway.sdk.AdShowActivity" - ], - "random": [ - "com", - "ww", - "wt" - ], - "rename": { - "AdShowActivity": "ShowActivity" - }, - "isAllPackage": false, - "isReName": true, - "isJarLib": false, - "packagerlimit": 3, - "isManual": true, - "manual": [ - { - "class": "mobi.oneway.sdk.port.Unit", - "find": "const-string v0, \"mobi.oneway.export.AdShowActivity\"" - }, - { - "class": "mobi.oneway.sdk.b.c", - "find": "const-string v1, \"mobi.oneway.export.OWProvider\"" - } - ] - }, - { - "title": "趣赢SDK", - "ltName": "qysdk.jar", - "manifest": [ - "", - " ", - " " - ], - "class": [ - "com.qy.sdk.views.MyActivity", - "com.qy.sdk_rx.listeners.QyReceiver", - "com.qy.sdk.TMProvider", - "com.qy.sdk.rds.BannerView", - "com.qy.sdk.rds.NativeUnifiedsView", - "com.qy.sdk.rds.NativeView", - "com.qy.sdk.rds.RewardView", - "com.qy.sdk.rds.SplashView" - ], - "random": [ - "com", - "opx", - "bh" - ], - "rename": { - "MyActivity": "{>+}Activity", - "QyReceiver": "{>+}Receiver", - "TMProvider":"{>+}TProvider", - "BannerView": "{>+}BView", - "NativeUnifiedsView": "{>+}NUView", - "NativeView": "{>+}NView", - "RewardView": "{>+}RView", - "SplashView": "{>+}OpenView" - - }, - "isAllPackage": true, - "regexPackage":".qy", - "isReName": true, - "isJarLib": true, - "packagerlimit": 3, - "isManual": false, - "manual": [], - "dex2jar": "D:\\反编译\\dex2jar-2.0\\_d2j-dex2jar.bat" - }, - { - "title": "穿山甲", - "ltName": "open_ad_sdk.jar", - "manifest": [ - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - "", - - "", - "", - " ", - "", - "", - "", - "", - "", - - ], - "class":[ - "com.bytedance.sdk.openadsdk.activity.TTLandingPageActivity", - "com.bytedance.sdk.openadsdk.activity.TTPlayableLandingPageActivity", - "com.bytedance.sdk.openadsdk.activity.TTVideoLandingPageActivity", - "com.bytedance.sdk.openadsdk.activity.TTRewardVideoActivity", - "com.bytedance.sdk.openadsdk.activity.TTRewardExpressVideoActivity", - "com.bytedance.sdk.openadsdk.activity.TTFullScreenVideoActivity", - "com.bytedance.sdk.openadsdk.activity.TTFullScreenExpressVideoActivity", - "com.bytedance.sdk.openadsdk.activity.TTDelegateActivity", - "com.bytedance.sdk.openadsdk.multipro.aidl.BinderPoolService", - "com.bytedance.embedapplog.collector.Collector", - "com.bytedance.tea.crash.upload.CrashUploadService", - "com.bytedance.sdk.openadsdk.activity.TTBaseVideoActivity", - "com.ss.android.socialbase.downloader.notification.DownloadNotificationService", - "com.ss.android.socialbase.downloader.downloader.DownloadService", - "com.ss.android.socialbase.downloader.downloader.IndependentProcessDownloadService", - "com.ss.android.socialbase.downloader.impls.DownloadHandleService", - "com.ss.android.socialbase.appdownloader.DownloadHandlerService", - "com.ss.android.socialbase.appdownloader.view.DownloadSizeLimitActivity", - "com.ss.android.socialbase.appdownloader.view.DownloadTaskDeleteActivity", - "com.ss.android.downloadlib.activity.TTDelegateActivity" - ], - "random":[ - "com", - "nusqu", - "gzxem" - ], - "isAllPackage":false, - "isReName":true, - "isJarLib":true, - "packagerlimit":3, - "isManual":true, - "outManifest":false, - "manual":[ - { - "class":"com.bytedance.sdk.openadsdk.downloadnew.a.d", - "find":" const-string v1, \".TTFileProvider\"", - "data":" const-string v1, \".fileprovider\"\n", - "end":" invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;", - "msg":"把TTFileProvider改成fileprovider" - },{ - "class":"com.bytedance.embedapplog.util.TTEncryptUtils", - "find":"const-string v0, \"tobEmbedEncrypt\"", - "data":"const-string v0, \"tob\"\n", - "end":"invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V" - },{ - "class":"com.pgl.sys.ces.a", - "find":"const-string v0, \"nms\"", - "data":"const-string v0, \"hms\"\n", - "end":"invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V" - },{ - "class":"com.pgl.sys.ces.b", - "find":"const-string p1, \"nms\"", - "data":"const-string p1, \"hms\"\n", - "end":"invoke-static {p0, p1}, Lcom/pgl/a/b/e;->a(Landroid/content/Context;Ljava/lang/String;)Z" - } - ], - "rename":{ - "TTLandingPageActivity":"{>+/activity}TTLandingPageActivity", - "TTPlayableLandingPageActivity":"{>+/activity}TTPlayableLandingPageActivity", - "TTVideoLandingPageActivity":"{>+/activity}TTVideoLandingPageActivity", - "TTRewardVideoActivity":"{>+/activity}TTRewardVideoActivity", - "TTRewardExpressVideoActivity":"{>+/activity}TTRewardExpressVideoActivity", - "TTFullScreenVideoActivity":"{>+/activity}TTFullScreenVideoActivity", - "TTFullScreenExpressVideoActivity":"{>+/activity}TTFullScreenExpressVideoActivity", - "TTDelegateActivity":"{>+/activity}TTDelegateActivity", - "TTBaseVideoActivity":"{>+/activity}TTBaseVideoActivity", - "BinderPoolService":"{>+/multipro/aidl}BinderPoolService", - "Collector":"{>+/cc/collector}Collector", - "CrashUploadService":"{>+/cc/crash/upload}CrashUploadService", - "com.ss.android.downloadlib.activity.TTDelegateActivity":"{>+/dl/activity}TTDelegateActivity", - "DownloadNotificationService":"{>+/sb/downloader/notification}DownloadNotificationService", - "DownloadService":"{>+/sb/downloader/downloader}DownloadService", - "IndependentProcessDownloadService":"{>+/sb/downloader/downloader}IndependentProcessDownloadService", - "DownloadHandleService":"{>+/sb/downloader/impls}DownloadHandleService", - "DownloadHandlerService":"{>+/sb/appdownloader}DownloadHandlerService", - "DownloadSizeLimitActivity":"{>+/sb/appdownloader/view}DownloadSizeLimitActivity", - "DownloadTaskDeleteActivity":"{>+/sb/appdownloader/view}DownloadTaskDeleteActivity", - "DownloadReceiver":"{>+/dl/core/download}DownloadReceiver", - - }, - "filter":[ - "com.android", - "com.xandroid", - "com.google", - "com.android", - "com.androidx" - ] - - }, - { - "title": "百青藤", - "ltName": "bsb", - "manifest": [ - "", - " " - ], - "class": [ - "com.baidu.mobads.AppActivity", - "com.baidu.mobads.production.rewardvideo.MobRewardVideoActivity", - "com.baidu.mobads.AppActivityImp" - ], - "random": [ - "com", - "nusqu", - "gzxem", - "bsb" - ], - "rename": { - "AppActivity": "MyActivity", - "MobRewardVideoActivity":"MyRewardVideoActivity", - "AppActivityImp":"MyActivityImp" - }, - "isAllPackage": false, - "isReName": true, - "isJarLib": false, - "packagerlimit": 3, - "isManual": true, - "dex2jar": "D:\\反编译\\dex2jar-2.0\\_d2j-dex2jar.bat", - "manual": [ - { - "class":"com.baidu.mobads.utils.r", - "find":"const-string v1, \".bd.provider\"", - "data":"const-string v1, \".fileprovider\"\n", - "end":"invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;" - },{ - "class":"com.baidu.mobads.utils.r", - "find":"invoke-static {p0, v0, p1}, Lcom/baidu/mobads/openad/BdFileProvider;->getUriForFile(Landroid/content/Context;Ljava/lang/String;Ljava/io/File;)Landroid/net/Uri;", - "data":"invoke-static {p0, v0, p1}, Landroid/support/v4/content/FileProvider;->getUriForFile(Landroid/content/Context;Ljava/lang/String;Ljava/io/File;)Landroid/net/Uri;\n", - "end":":try_end_0" - } - ] - }, - ] -} \ No newline at end of file diff --git a/csjConfig/ad_config_5800.cfg b/csjConfig/ad_config_5800.cfg deleted file mode 100644 index 47108be..0000000 --- a/csjConfig/ad_config_5800.cfg +++ /dev/null @@ -1,341 +0,0 @@ -{ - "array": [ - { - "title": "广点通", - "ltName": "tgd", - "manifest": [ - "", - "", - "", - "", - "", - "" - ], - "class": [ - "com.qq.e.ads.ADActivity", - "com.qq.e.ads.PortraitADActivity", - "com.qq.e.ads.LandscapeADActivity", - "com.qq.e.ads.RewardvideoPortraitADActivity", - "com.qq.e.ads.RewardvideoLandscapeADActivity", - "com.qq.e.comm.DownloadService" - ], - "random": [ - "com", - "riboq", - "qazrj", - "tgd" - ], - "rename": { - "ADActivity": "Activity", - "PortraitADActivity": "PortraitActivity", - "LandscapeADActivity": "LandscapeActivity", - "RewardvideoPortraitADActivity": "RPDActivity", - "RewardvideoLandscapeADActivity": "RLDActivity", - "DownloadService": "DownloadService" - }, - "isAllPackage": false, - "isReName": true, - "isJarLib": false, - "packagerlimit": 3, - "isManual": false, - "dex2jar": "D:\\反编译\\dex2jar-2.0\\_d2j-dex2jar.bat", - "manual": [ - { - "class": "com.qq.e.comm.a", - "find": "com/qq/e/ads/ADActivity" - } - ] - }, - { - "title": "聚量", - "ltName": "jla", - "manifest": [ - "/>", - "", - "", - "", - "", - "" - ], - "class": [ - "com.uniplay.adsdk.AdActivity", - "com.uniplay.adsdk.InterstitialAdActivity", - "com.uniplay.adsdk.NetworkChangeActivity", - "com.joomob.activity.AdVideoActivity", - "com.joomob.activity.AdLandScapeVideoActivity", - "com.uniplay.adsdk.DownloadService" - ], - "random": [ - "com", - "ww", - "ut" - ], - "rename": { - "AdActivity": "Activity", - "InterstitialAdActivity": "InterstitialActivity", - "NetworkChangeActivity": "NetworkChangeActivity", - "AdVideoActivity": "VideoActivity", - "AdLandScapeVideoActivity": "LSVideoActivity", - "DownloadService": "DownloadService" - }, - "isAllPackage": false, - "isReName": true, - "isJarLib": false, - "packagerlimit": 3, - "isManual": true, - "dex2jar": "D:\\反编译\\dex2jar-2.0\\_d2j-dex2jar.bat", - "manual": [ - { - "class": "com.uniplay.adsdk.basic.RuleManage", - "find": ".method public configRight", - "msg": "仅保留const-string v0, \"\" return-object v0", - "data":".method public configRight(Landroid/content/Context;Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;\n.locals 3\n.prologue\nconst-string v0, \"\" \nreturn-object v0\n", - "end":".end method" - },{ - "class":"com.uniplay.adsdk.basic.RuleManage", - "find":"const-string v0, \"uniplay.fileprovider\"", - "data":"const-string v0, \"fileprovider\"\n", - "end":"sput-object v0, Lcom/uniplay/adsdk/basic/RuleManage;->FP_UN:Ljava/lang/String;" - } - ] - }, - { - "title": "万维", - "ltName": "oow", - "manifest": [ - "" - ], - "class": [ - "mobi.oneway.export.AdShowActivity" - ], - "random": [ - "com", - "riboq", - "qazrj", - "oo" - ], - "rename": { - "AdShowActivity": "ShowActivity" - }, - "isAllPackage": false, - "isReName": true, - "isJarLib": false, - "packagerlimit": 3, - "isManual": true, - "manual": [ - { - "class": "mobi.oneway.export.Ad.OnewaySdk", - "find": "new-instance v0, Lmobi/oneway/export/e/a;", - "data":"\n", - "end":"goto :goto_0" - } - ], - "pluginsManual":[ - { - "class": "mobi.oneway.sdk.port.Unit", - "find": "const-string v0, \"mobi.oneway.export.AdShowActivity\"", - "data":"const-string v0, \"${packagename}.ShowActivity\"\n", - "end":"invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;" - }, - { - "class": "mobi.oneway.sdk.c.c", - "find": "const-string v1, \"mobi.oneway.export.OWProvider\"", - "data": "const-string v1, \"${packagename}.OWProvider\"\n", - "end": "invoke-static {v1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;" - } - ] - }, - { - "title": "趣赢SDK", - "ltName": "qysdk.jar", - "manifest": [ - "", - " ", - " " - ], - "class": [ - "com.qy.sdk.views.MyActivity", - "com.qy.sdk_rx.listeners.QyReceiver", - "com.qy.sdk.TMProvider" - ], - "random": [ - "com", - "opx", - "bh" - ], - "rename": { - "MyActivity": "{>+}MActivity", - "QyReceiver": "{>+}Receiver", - "TMProvider":"{>+}TProvider" - - }, - "isAllPackage": true, - "regexPackage":".qy", - "isReName": true, - "isJarLib": true, - "packagerlimit": 3, - "isManual": false, - "manual": [], - "dex2jar": "D:\\反编译\\dex2jar-2.0\\_d2j-dex2jar.bat" - }, - { - "title": "穿山甲", - "ltName": "open_ad_sdk.jar", - "manifest": [ - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - "", - - "", - "", - " ", - "", - "", - "", - "", - "", - - ], - "class":[ - "com.bytedance.sdk.openadsdk.activity.TTLandingPageActivity", - "com.bytedance.sdk.openadsdk.activity.TTPlayableLandingPageActivity", - "com.bytedance.sdk.openadsdk.activity.TTVideoLandingPageActivity", - "com.bytedance.sdk.openadsdk.activity.TTRewardVideoActivity", - "com.bytedance.sdk.openadsdk.activity.TTRewardExpressVideoActivity", - "com.bytedance.sdk.openadsdk.activity.TTFullScreenVideoActivity", - "com.bytedance.sdk.openadsdk.activity.TTFullScreenExpressVideoActivity", - "com.bytedance.sdk.openadsdk.activity.TTDelegateActivity", - "com.bytedance.sdk.openadsdk.multipro.aidl.BinderPoolService", - "com.bytedance.embedapplog.collector.Collector", - "com.bytedance.tea.crash.upload.CrashUploadService", - "com.bytedance.sdk.openadsdk.activity.TTBaseVideoActivity", - "com.ss.android.socialbase.downloader.notification.DownloadNotificationService", - "com.ss.android.socialbase.downloader.downloader.DownloadService", - "com.ss.android.socialbase.downloader.downloader.IndependentProcessDownloadService", - "com.ss.android.socialbase.downloader.impls.DownloadHandleService", - "com.ss.android.socialbase.appdownloader.DownloadHandlerService", - "com.ss.android.socialbase.appdownloader.view.DownloadSizeLimitActivity", - "com.ss.android.socialbase.appdownloader.view.DownloadTaskDeleteActivity", - "com.ss.android.downloadlib.activity.TTDelegateActivity" - ], - "random":[ - "com", - "riboq", - "qazrj" - ], - "isAllPackage":false, - "isReName":true, - "isJarLib":true, - "packagerlimit":3, - "isManual":true, - "outManifest":false, - "manual":[ - { - "class":"com.bytedance.sdk.openadsdk.downloadnew.a.d", - "find":" const-string v1, \".TTFileProvider\"", - "data":" const-string v1, \".fileprovider\"\n", - "end":" invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;", - "msg":"把TTFileProvider改成fileprovider" - },{ - "class":"com.bytedance.embedapplog.util.TTEncryptUtils", - "find":"const-string v0, \"tobEmbedEncrypt\"", - "data":"const-string v0, \"ttb\"\n", - "end":"invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V" - },{ - "class":"com.pgl.sys.ces.a", - "find":"const-string v0, \"nms\"", - "data":"const-string v0, \"ees\"\n", - "end":"invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V" - },{ - "class":"com.pgl.sys.ces.b", - "find":"const-string p1, \"nms\"", - "data":"const-string p1, \"ees\"\n", - "end":"invoke-static {p0, p1}, Lcom/pgl/a/b/e;->a(Landroid/content/Context;Ljava/lang/String;)Z" - } - ], - "rename":{ - "TTLandingPageActivity":"{>+/activity}TTLandingPageActivity", - "TTPlayableLandingPageActivity":"{>+/activity}TTPlayableLandingPageActivity", - "TTVideoLandingPageActivity":"{>+/activity}TTVideoLandingPageActivity", - "TTRewardVideoActivity":"{>+/activity}TTRewardVideoActivity", - "TTRewardExpressVideoActivity":"{>+/activity}TTRewardExpressVideoActivity", - "TTFullScreenVideoActivity":"{>+/activity}TTFullScreenVideoActivity", - "TTFullScreenExpressVideoActivity":"{>+/activity}TTFullScreenExpressVideoActivity", - "TTDelegateActivity":"{>+/activity}TTDelegateActivity", - "TTBaseVideoActivity":"{>+/activity}TTBaseVideoActivity", - "BinderPoolService":"{>+/multipro/aidl}BinderPoolService", - "Collector":"{>+/cc/collector}Collector", - "CrashUploadService":"{>+/cc/crash/upload}CrashUploadService", - "com.ss.android.downloadlib.activity.TTDelegateActivity":"{>+/dl/activity}TTDelegateActivity", - "DownloadNotificationService":"{>+/sb/downloader/notification}DownloadNotificationService", - "DownloadService":"{>+/sb/downloader/downloader}DownloadService", - "IndependentProcessDownloadService":"{>+/sb/downloader/downloader}IndependentProcessDownloadService", - "DownloadHandleService":"{>+/sb/downloader/impls}DownloadHandleService", - "DownloadHandlerService":"{>+/sb/appdownloader}DownloadHandlerService", - "DownloadSizeLimitActivity":"{>+/sb/appdownloader/view}DownloadSizeLimitActivity", - "DownloadTaskDeleteActivity":"{>+/sb/appdownloader/view}DownloadTaskDeleteActivity", - "DownloadReceiver":"{>+/dl/core/download}DownloadReceiver", - - }, - "filter":[ - "com.android", - "com.xandroid", - "com.google", - "com.android", - "com.androidx" - ] - - }, - { - "title": "百青藤", - "ltName": "bsb", - "manifest": [ - "", - " " - ], - "class": [ - "com.baidu.mobads.AppActivity", - "com.baidu.mobads.production.rewardvideo.MobRewardVideoActivity", - "com.baidu.mobads.AppActivityImp" - ], - "random": [ - "com", - "nusqu", - "gzxem", - "bsb" - ], - "rename": { - "AppActivity": "MyActivity", - "MobRewardVideoActivity":"MyRewardVideoActivity", - "AppActivityImp":"MyActivityImp" - }, - "isAllPackage": false, - "isReName": true, - "isJarLib": false, - "packagerlimit": 3, - "isManual": true, - "dex2jar": "D:\\反编译\\dex2jar-2.0\\_d2j-dex2jar.bat", - "manual": [ - { - "class":"com.baidu.mobads.utils.r", - "find":"const-string v1, \".bd.provider\"", - "data":"const-string v1, \".fileprovider\"\n", - "end":"invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;" - },{ - "class":"com.baidu.mobads.utils.r", - "find":"invoke-static {p0, v0, p1}, Lcom/baidu/mobads/openad/BdFileProvider;->getUriForFile(Landroid/content/Context;Ljava/lang/String;Ljava/io/File;)Landroid/net/Uri;", - "data":"invoke-static {p0, v0, p1}, Landroid/support/v4/content/FileProvider;->getUriForFile(Landroid/content/Context;Ljava/lang/String;Ljava/io/File;)Landroid/net/Uri;\n", - "end":":try_end_0" - } - ] - }, - ] -} \ No newline at end of file diff --git a/csjConfig/ad_config_5801.cfg b/csjConfig/ad_config_5801.cfg deleted file mode 100644 index 82768c5..0000000 --- a/csjConfig/ad_config_5801.cfg +++ /dev/null @@ -1,341 +0,0 @@ -{ - "array": [ - { - "title": "广点通", - "ltName": "tgd", - "manifest": [ - "", - "", - "", - "", - "", - "" - ], - "class": [ - "com.qq.e.ads.ADActivity", - "com.qq.e.ads.PortraitADActivity", - "com.qq.e.ads.LandscapeADActivity", - "com.qq.e.ads.RewardvideoPortraitADActivity", - "com.qq.e.ads.RewardvideoLandscapeADActivity", - "com.qq.e.comm.DownloadService" - ], - "random": [ - "com", - "riboq", - "qazrj", - "tgd" - ], - "rename": { - "ADActivity": "Activity", - "PortraitADActivity": "PortraitActivity", - "LandscapeADActivity": "LandscapeActivity", - "RewardvideoPortraitADActivity": "RPDActivity", - "RewardvideoLandscapeADActivity": "RLDActivity", - "DownloadService": "DownloadService" - }, - "isAllPackage": false, - "isReName": true, - "isJarLib": false, - "packagerlimit": 3, - "isManual": false, - "dex2jar": "D:\\反编译\\dex2jar-2.0\\_d2j-dex2jar.bat", - "manual": [ - { - "class": "com.qq.e.comm.a", - "find": "com/qq/e/ads/ADActivity" - } - ] - }, - { - "title": "聚量", - "ltName": "jla", - "manifest": [ - "/>", - "", - "", - "", - "", - "" - ], - "class": [ - "com.uniplay.adsdk.AdActivity", - "com.uniplay.adsdk.InterstitialAdActivity", - "com.uniplay.adsdk.NetworkChangeActivity", - "com.joomob.activity.AdVideoActivity", - "com.joomob.activity.AdLandScapeVideoActivity", - "com.uniplay.adsdk.DownloadService" - ], - "random": [ - "com", - "ww", - "ut" - ], - "rename": { - "AdActivity": "Activity", - "InterstitialAdActivity": "InterstitialActivity", - "NetworkChangeActivity": "NetworkChangeActivity", - "AdVideoActivity": "VideoActivity", - "AdLandScapeVideoActivity": "LSVideoActivity", - "DownloadService": "DownloadService" - }, - "isAllPackage": false, - "isReName": true, - "isJarLib": false, - "packagerlimit": 3, - "isManual": true, - "dex2jar": "D:\\反编译\\dex2jar-2.0\\_d2j-dex2jar.bat", - "manual": [ - { - "class": "com.uniplay.adsdk.basic.RuleManage", - "find": ".method public configRight", - "msg": "仅保留const-string v0, \"\" return-object v0", - "data":".method public configRight(Landroid/content/Context;Ljava/lang/String;[Ljava/lang/String;)Ljava/lang/String;\n.locals 3\n.prologue\nconst-string v0, \"\" \nreturn-object v0\n", - "end":".end method" - },{ - "class":"com.uniplay.adsdk.basic.RuleManage", - "find":"const-string v0, \"uniplay.fileprovider\"", - "data":"const-string v0, \"fileprovider\"\n", - "end":"sput-object v0, Lcom/uniplay/adsdk/basic/RuleManage;->FP_UN:Ljava/lang/String;" - } - ] - }, - { - "title": "万维", - "ltName": "oow", - "manifest": [ - "" - ], - "class": [ - "mobi.oneway.export.AdShowActivity" - ], - "random": [ - "com", - "riboq", - "qazrj", - "oo" - ], - "rename": { - "AdShowActivity": "ShowActivity" - }, - "isAllPackage": false, - "isReName": true, - "isJarLib": false, - "packagerlimit": 3, - "isManual": true, - "manual": [ - { - "class": "mobi.oneway.export.Ad.OnewaySdk", - "find": "new-instance v0, Lmobi/oneway/export/e/a;", - "data":"\n", - "end":"goto :goto_0" - } - ], - "pluginsManual":[ - { - "class": "mobi.oneway.sdk.port.Unit", - "find": "const-string v0, \"mobi.oneway.export.AdShowActivity\"", - "data":"const-string v0, \"${packagename}.ShowActivity\"\n", - "end":"invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;" - }, - { - "class": "mobi.oneway.sdk.c.c", - "find": "const-string v1, \"mobi.oneway.export.OWProvider\"", - "data": "const-string v1, \"${packagename}.OWProvider\"\n", - "end": "invoke-static {v1}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class;" - } - ] - }, - { - "title": "趣赢SDK", - "ltName": "qysdk.jar", - "manifest": [ - "", - " ", - " " - ], - "class": [ - "com.qy.sdk.views.MyActivity", - "com.qy.sdk_rx.listeners.QyReceiver", - "com.qy.sdk.TMProvider" - ], - "random": [ - "com", - "opx", - "bh" - ], - "rename": { - "MyActivity": "{>+}MActivity", - "QyReceiver": "{>+}Receiver", - "TMProvider":"{>+}TProvider" - - }, - "isAllPackage": true, - "regexPackage":".qy", - "isReName": true, - "isJarLib": true, - "packagerlimit": 3, - "isManual": false, - "manual": [], - "dex2jar": "D:\\反编译\\dex2jar-2.0\\_d2j-dex2jar.bat" - }, - { - "title": "穿山甲", - "ltName": "open_ad_sdk.jar", - "manifest": [ - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - " ", - "", - - "", - "", - " ", - "", - "", - "", - "", - "", - - ], - "class":[ - "com.bytedance.sdk.openadsdk.activity.TTLandingPageActivity", - "com.bytedance.sdk.openadsdk.activity.TTPlayableLandingPageActivity", - "com.bytedance.sdk.openadsdk.activity.TTVideoLandingPageActivity", - "com.bytedance.sdk.openadsdk.activity.TTRewardVideoActivity", - "com.bytedance.sdk.openadsdk.activity.TTRewardExpressVideoActivity", - "com.bytedance.sdk.openadsdk.activity.TTFullScreenVideoActivity", - "com.bytedance.sdk.openadsdk.activity.TTFullScreenExpressVideoActivity", - "com.bytedance.sdk.openadsdk.activity.TTDelegateActivity", - "com.bytedance.sdk.openadsdk.multipro.aidl.BinderPoolService", - "com.bytedance.embedapplog.collector.Collector", - "com.bytedance.tea.crash.upload.CrashUploadService", - "com.bytedance.sdk.openadsdk.activity.TTBaseVideoActivity", - "com.ss.android.socialbase.downloader.notification.DownloadNotificationService", - "com.ss.android.socialbase.downloader.downloader.DownloadService", - "com.ss.android.socialbase.downloader.downloader.IndependentProcessDownloadService", - "com.ss.android.socialbase.downloader.impls.DownloadHandleService", - "com.ss.android.socialbase.appdownloader.DownloadHandlerService", - "com.ss.android.socialbase.appdownloader.view.DownloadSizeLimitActivity", - "com.ss.android.socialbase.appdownloader.view.DownloadTaskDeleteActivity", - "com.ss.android.downloadlib.activity.TTDelegateActivity" - ], - "random":[ - "com", - "iaalz", - "tzjyg" - ], - "isAllPackage":false, - "isReName":true, - "isJarLib":true, - "packagerlimit":3, - "isManual":true, - "outManifest":false, - "manual":[ - { - "class":"com.bytedance.sdk.openadsdk.downloadnew.a.d", - "find":" const-string v1, \".TTFileProvider\"", - "data":" const-string v1, \".fileprovider\"\n", - "end":" invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;", - "msg":"把TTFileProvider改成fileprovider" - },{ - "class":"com.bytedance.embedapplog.util.TTEncryptUtils", - "find":"const-string v0, \"tobEmbedEncrypt\"", - "data":"const-string v0, \"teet\"\n", - "end":"invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V" - },{ - "class":"com.pgl.sys.ces.a", - "find":"const-string v0, \"nms\"", - "data":"const-string v0, \"yys\"\n", - "end":"invoke-static {v0}, Ljava/lang/System;->loadLibrary(Ljava/lang/String;)V" - },{ - "class":"com.pgl.sys.ces.b", - "find":"const-string p1, \"nms\"", - "data":"const-string p1, \"yys\"\n", - "end":"invoke-static {p0, p1}, Lcom/pgl/a/b/e;->a(Landroid/content/Context;Ljava/lang/String;)Z" - } - ], - "rename":{ - "TTLandingPageActivity":"{>+/activity}TTLandingPageActivity", - "TTPlayableLandingPageActivity":"{>+/activity}TTPlayableLandingPageActivity", - "TTVideoLandingPageActivity":"{>+/activity}TTVideoLandingPageActivity", - "TTRewardVideoActivity":"{>+/activity}TTRewardVideoActivity", - "TTRewardExpressVideoActivity":"{>+/activity}TTRewardExpressVideoActivity", - "TTFullScreenVideoActivity":"{>+/activity}TTFullScreenVideoActivity", - "TTFullScreenExpressVideoActivity":"{>+/activity}TTFullScreenExpressVideoActivity", - "TTDelegateActivity":"{>+/activity}TTDelegateActivity", - "TTBaseVideoActivity":"{>+/activity}TTBaseVideoActivity", - "BinderPoolService":"{>+/multipro/aidl}BinderPoolService", - "Collector":"{>+/cc/collector}Collector", - "CrashUploadService":"{>+/cc/crash/upload}CrashUploadService", - "com.ss.android.downloadlib.activity.TTDelegateActivity":"{>+/dl/activity}TTDelegateActivity", - "DownloadNotificationService":"{>+/sb/downloader/notification}DownloadNotificationService", - "DownloadService":"{>+/sb/downloader/downloader}DownloadService", - "IndependentProcessDownloadService":"{>+/sb/downloader/downloader}IndependentProcessDownloadService", - "DownloadHandleService":"{>+/sb/downloader/impls}DownloadHandleService", - "DownloadHandlerService":"{>+/sb/appdownloader}DownloadHandlerService", - "DownloadSizeLimitActivity":"{>+/sb/appdownloader/view}DownloadSizeLimitActivity", - "DownloadTaskDeleteActivity":"{>+/sb/appdownloader/view}DownloadTaskDeleteActivity", - "DownloadReceiver":"{>+/dl/core/download}DownloadReceiver", - - }, - "filter":[ - "com.android", - "com.xandroid", - "com.google", - "com.android", - "com.androidx" - ] - - }, - { - "title": "百青藤", - "ltName": "bsb", - "manifest": [ - "", - " " - ], - "class": [ - "com.baidu.mobads.AppActivity", - "com.baidu.mobads.production.rewardvideo.MobRewardVideoActivity", - "com.baidu.mobads.AppActivityImp" - ], - "random": [ - "com", - "nusqu", - "gzxem", - "bsb" - ], - "rename": { - "AppActivity": "MyActivity", - "MobRewardVideoActivity":"MyRewardVideoActivity", - "AppActivityImp":"MyActivityImp" - }, - "isAllPackage": false, - "isReName": true, - "isJarLib": false, - "packagerlimit": 3, - "isManual": true, - "dex2jar": "D:\\反编译\\dex2jar-2.0\\_d2j-dex2jar.bat", - "manual": [ - { - "class":"com.baidu.mobads.utils.r", - "find":"const-string v1, \".bd.provider\"", - "data":"const-string v1, \".fileprovider\"\n", - "end":"invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;" - },{ - "class":"com.baidu.mobads.utils.r", - "find":"invoke-static {p0, v0, p1}, Lcom/baidu/mobads/openad/BdFileProvider;->getUriForFile(Landroid/content/Context;Ljava/lang/String;Ljava/io/File;)Landroid/net/Uri;", - "data":"invoke-static {p0, v0, p1}, Landroid/support/v4/content/FileProvider;->getUriForFile(Landroid/content/Context;Ljava/lang/String;Ljava/io/File;)Landroid/net/Uri;\n", - "end":":try_end_0" - } - ] - }, - ] -} \ No newline at end of file diff --git a/src/com/qy/utils/HeiHeiTools.java b/src/com/qy/utils/HeiHeiTools.java index d87dd42..3f162d7 100644 --- a/src/com/qy/utils/HeiHeiTools.java +++ b/src/com/qy/utils/HeiHeiTools.java @@ -28,6 +28,7 @@ public class HeiHeiTools { public void setApk(File apk) { this.apk = apk; if(parameterMap!=null&¶meterMap.containsValue("#apk")){ + System.out.println("开始获取包名"); Tools.getPackageName(apk, new DialogInterface() { @Override public void onOut(Object data) { @@ -135,6 +136,13 @@ public class HeiHeiTools { tools.sign(); System.out.println("打包完成:" + path); System.out.println("耗时:" + (System.currentTimeMillis() - time) / 1000 + "s"); + Tools.getPackageName(new File(path), new DialogInterface() { + @Override + public void onOut(Object data) { + super.onOut(data); + System.out.println("APK包名 = "+data); + } + }); try { String exec = "adb install " + path.replace(appPackageName, appPackageName + "_sign.apk"); System.out.println("exec = " + exec); @@ -243,40 +251,37 @@ public class HeiHeiTools { } long time; - private static String iconName = "app_icon.png"; + private static String iconName = "icon_152.png"; private static String appPackageName = "game.apk"; private static boolean isOutR=true; private static boolean smali_classes=true; private static Map parameterMap; public static void main(String[] args) { + if(false) + throw new RuntimeException("error"); int status = 1; String packageName = "com.game.test"; - packageName = "com.rydts.heihei.m01"; + packageName = "#apk".trim(); if (status == 0) { parameterMap = new HashMap<>(); parameterMap.put("${applicationId}", packageName); parameterMap.put("#{packageName}",packageName); HeiHeiTools tools = new HeiHeiTools(); - tools.setApk(new File("D:\\ieda\\android_sdk_tools\\幻想圣域-母包.apk")); - tools.setSdkPlugin(new File("D:\\ieda\\android_sdk_tools\\sdk_plugin\\mumayi")); + tools.setApk(new File("D:\\ieda\\android_sdk_tools\\九州八荒录参数-萌主.apk")); + tools.setSdkPlugin(new File("D:\\ieda\\android_sdk_tools\\sdk_plugin\\mengzhu")); tools.start(); - Tools.getPackageName(tools.apk, new DialogInterface() { - @Override - public void onOut(Object data) { - super.onOut(data); - System.out.println("APK包名 = "+data); - } - }); + } else if (status == 1) { parameterMap=new HashMap<>(); parameterMap.put("${applicationId}",packageName); parameterMap.put("#{packageName}",packageName); + //parameterMap.put("#{replace}com.sdyxz.heihei:com.excelliance",packageName+":com.excelliance"); HeiHeiTools tools = new HeiHeiTools(); - File file = new File("D:\\ieda\\android_sdk_tools\\热血神剑-创优.apk"); + File file = new File("D:\\ieda\\android_sdk_tools\\我在江湖-那蓝.apk"); appPackageName = file.getName(); tools.setApk(file); - tools.setSdkPlugin(new File("D:\\ieda\\android_sdk_tools\\sdk_plugin\\chuangyou")); + tools.setSdkPlugin(new File("D:\\ieda\\android_sdk_tools\\sdk_plugin\\nalan")); tools.start(); } else if (status == 2) { unpackLibs(new File("D:\\ieda\\android_sdk_tools\\libs\\tmp"), new SmaliApkToolsPath() { diff --git a/src/com/qy/utils/XMLTools.java b/src/com/qy/utils/XMLTools.java index 3895cdc..7f30002 100644 --- a/src/com/qy/utils/XMLTools.java +++ b/src/com/qy/utils/XMLTools.java @@ -49,6 +49,12 @@ public class XMLTools { BufferedReader bufferedReader=new BufferedReader(new FileReader(outFile)); StringBuilder builder=new StringBuilder(); String tmp; + Map rep=new HashMap<>(); + for (String key : parameterMap.keySet()) { + if(key.startsWith("#{replace}")){ + rep.put(key.replace("#{replace}",""),parameterMap.get(key)); + } + } while ((tmp=bufferedReader.readLine())!=null){ for (String key : parameterMap.keySet()) { if(tmp.contains(key)){ @@ -67,6 +73,11 @@ public class XMLTools { tmp=sp[0]+"package=\""+parameterMap.get("#{packageName}")+"\""+t2.substring(0,t2.length()-1); System.out.println("tmp = " + tmp); } + for (String key : rep.keySet()) { + if(tmp.contains(key)){ + tmp=tmp.replace(key,rep.get(key)); + } + } builder.append(tmp).append("\n"); } Tools.saveConfig(outFile,builder.toString());