正在显示
100 个修改的文件
包含
327 行增加
和
1 行删除
| @@ -68,6 +68,7 @@ games/ | @@ -68,6 +68,7 @@ games/ | ||
| 68 | /config/sdk/qingcheng/smali/ | 68 | /config/sdk/qingcheng/smali/ |
| 69 | /config/sdk/quick/smali/ | 69 | /config/sdk/quick/smali/ |
| 70 | /config/sdk/669/smali/ | 70 | /config/sdk/669/smali/ |
| 71 | +/config/sdk/letuo/smali/ | ||
| 71 | 72 | ||
| 72 | # python打包缓存目录不需要提交 | 73 | # python打包缓存目录不需要提交 |
| 73 | **/__pycache__/ | 74 | **/__pycache__/ |
| @@ -34,7 +34,7 @@ def modify_manifest(channel,decompileDir): | @@ -34,7 +34,7 @@ def modify_manifest(channel,decompileDir): | ||
| 34 | 34 | ||
| 35 | applicationNode = root.find('application') | 35 | applicationNode = root.find('application') |
| 36 | if applicationNode is None: | 36 | if applicationNode is None: |
| 37 | - print("没有找到Application") | 37 | + print("Application not found") |
| 38 | return | 38 | return |
| 39 | 39 | ||
| 40 | applicationNode.set(key, 'com.stss.sdk.SsnApplication') | 40 | applicationNode.set(key, 'com.stss.sdk.SsnApplication') |
| @@ -323,6 +323,30 @@ | @@ -323,6 +323,30 @@ | ||
| 323 | <param name="splash_copy_to_unity" value="0" /> | 323 | <param name="splash_copy_to_unity" value="0" /> |
| 324 | </channel> | 324 | </channel> |
| 325 | <channel> | 325 | <channel> |
| 326 | + <param name="id" value="44" /> | ||
| 327 | + <param name="name" value="668" /> | ||
| 328 | + <param name="sdk" value="668" /> | ||
| 329 | + <param name="desc" value="668" /> | ||
| 330 | + <param name="splash" value="0" /> | ||
| 331 | + <param name="splash_copy_to_unity" value="0" /> | ||
| 332 | + </channel> | ||
| 333 | + <channel> | ||
| 334 | + <param name="id" value="45" /> | ||
| 335 | + <param name="name" value="kaka" /> | ||
| 336 | + <param name="sdk" value="kaka" /> | ||
| 337 | + <param name="desc" value="kaka" /> | ||
| 338 | + <param name="splash" value="0" /> | ||
| 339 | + <param name="splash_copy_to_unity" value="0" /> | ||
| 340 | + </channel> | ||
| 341 | + <channel> | ||
| 342 | + <param name="id" value="46" /> | ||
| 343 | + <param name="name" value="letuo" /> | ||
| 344 | + <param name="sdk" value="letuo" /> | ||
| 345 | + <param name="desc" value="乐拓" /> | ||
| 346 | + <param name="splash" value="0" /> | ||
| 347 | + <param name="splash_copy_to_unity" value="0" /> | ||
| 348 | + </channel> | ||
| 349 | + <channel> | ||
| 326 | <param name="id" value="1000" /> | 350 | <param name="id" value="1000" /> |
| 327 | <param name="name" value="replace-old-sevencattle" /> | 351 | <param name="name" value="replace-old-sevencattle" /> |
| 328 | <param name="sdk" value="replace-old-sevencattle" /> | 352 | <param name="sdk" value="replace-old-sevencattle" /> |
config/sdk/letuo/SDKManifest.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<manifest | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" > | ||
| 4 | + <permissionConfig> | ||
| 5 | + <uses-permission android:name="android.permission.INTERNET" /> | ||
| 6 | + <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | ||
| 7 | + <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | ||
| 8 | + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> | ||
| 9 | + <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | ||
| 10 | + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | ||
| 11 | + <uses-permission android:name="android.permission.CALL_PHONE" /> | ||
| 12 | + <uses-permission android:name="com.asus.msa.SupplementaryDID.ACCESS" /> | ||
| 13 | + <uses-permission android:name="freemme.permission.msa" /> | ||
| 14 | + <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | ||
| 15 | + <uses-permission android:name="android.permission.GET_TASKS" /> | ||
| 16 | + <permission | ||
| 17 | + android:name="${applicationId}.permission.xenv.RECEIVE" | ||
| 18 | + android:protectionLevel="signatureOrSystem" /> | ||
| 19 | + </permissionConfig> | ||
| 20 | + <applicationConfig android:networkSecurityConfig="@xml/network_security_config"> | ||
| 21 | + <activity | ||
| 22 | + android:name="com.xuanfeng.sdk.ui.SDKActivity" | ||
| 23 | + android:configChanges="orientation|keyboardHidden|screenSize" | ||
| 24 | + android:theme="@style/XYFullScreenTheme" /> | ||
| 25 | + <activity | ||
| 26 | + android:name="com.xuanfeng.sdk.ui.FloatWebActivity" | ||
| 27 | + android:configChanges="orientation|keyboardHidden|screenSize" | ||
| 28 | + android:theme="@style/XFWebActivityTheme" /> | ||
| 29 | + <activity | ||
| 30 | + android:name="com.xuanfeng.sdk.ui.PayWebActivity" | ||
| 31 | + android:configChanges="orientation|keyboardHidden|screenSize" | ||
| 32 | + android:theme="@style/XFWebActivityTheme" /> | ||
| 33 | + <activity | ||
| 34 | + android:name="com.alipay.sdk.app.H5PayActivity" | ||
| 35 | + android:configChanges="orientation|keyboardHidden|navigation|screenSize" | ||
| 36 | + android:screenOrientation="portrait" | ||
| 37 | + android:theme="@android:style/Theme.NoTitleBar.Fullscreen" | ||
| 38 | + android:windowSoftInputMode="adjustResize|stateHidden" /> | ||
| 39 | + <activity | ||
| 40 | + android:name="com.heepay.plugin.activity.WeChatNotityActivity" | ||
| 41 | + android:configChanges="orientation|keyboardHidden|screenSize" | ||
| 42 | + android:screenOrientation="behind" | ||
| 43 | + android:theme="@android:style/Theme.Translucent.NoTitleBar" /> | ||
| 44 | + <activity | ||
| 45 | + android:name="com.alipay.sdk.auth.AuthActivity" | ||
| 46 | + android:configChanges="orientation|keyboardHidden|navigation" | ||
| 47 | + android:exported="false" | ||
| 48 | + android:screenOrientation="behind" /> | ||
| 49 | + <!-- baidu start --> | ||
| 50 | + <activity | ||
| 51 | + android:name="com.baidu.xenv.XenvActivity" | ||
| 52 | + android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale" | ||
| 53 | + android:excludeFromRecents="true" | ||
| 54 | + android:exported="false" | ||
| 55 | + android:launchMode="standard" | ||
| 56 | + android:theme="@android:style/Theme.Translucent" > | ||
| 57 | + <intent-filter> | ||
| 58 | + <action android:name="com.baidu.action.Xenv.VIEW" /> | ||
| 59 | + <category android:name="com.baidu.category.xenv" /> | ||
| 60 | + <category android:name="android.intent.category.DEFAULT" /> | ||
| 61 | + </intent-filter> | ||
| 62 | + </activity> | ||
| 63 | + <service | ||
| 64 | + android:name="com.baidu.xenv.XenvService" | ||
| 65 | + android:exported="false" > | ||
| 66 | + <intent-filter> | ||
| 67 | + <action android:name="com.baidu.action.Xenv.VIEW" /> | ||
| 68 | + <category android:name="com.baidu.category.xenv" /> | ||
| 69 | + <category android:name="android.intent.category.DEFAULT" /> | ||
| 70 | + </intent-filter> | ||
| 71 | + </service> | ||
| 72 | + <provider | ||
| 73 | + android:name="com.baidu.xenv.XenvProvider" | ||
| 74 | + android:authorities="${applicationId}.xenv.ac.provider" | ||
| 75 | + android:exported="false" /> | ||
| 76 | + <meta-data | ||
| 77 | + android:name="seckey_avscan" | ||
| 78 | + android:value="660346260f8a841a04ec2a56815b421b" /> | ||
| 79 | + <meta-data | ||
| 80 | + android:name="appkey_avscan" | ||
| 81 | + android:value="100034" /> | ||
| 82 | + <activity android:name="com.bytedance.applog.util.SimulateLaunchActivity" > | ||
| 83 | + <intent-filter> | ||
| 84 | + <action android:name="android.intent.action.VIEW" /> | ||
| 85 | + <category android:name="android.intent.category.BROWSABLE" /> | ||
| 86 | + <category android:name="android.intent.category.DEFAULT" /> | ||
| 87 | + <data | ||
| 88 | + android:host="rangersapplog" | ||
| 89 | + android:path="/picker" | ||
| 90 | + android:scheme="rangersapplog.byax6uyt" /> | ||
| 91 | + </intent-filter> | ||
| 92 | + </activity> | ||
| 93 | + <uses-library | ||
| 94 | + android:name="org.apache.http.legacy" | ||
| 95 | + android:required="false" /> | ||
| 96 | + <activity | ||
| 97 | + android:name="com.cmic.gen.sdk.view.GenLoginAuthActivity" | ||
| 98 | + android:configChanges="orientation|keyboardHidden|screenSize" | ||
| 99 | + android:launchMode="singleTop" | ||
| 100 | + android:screenOrientation="unspecified" | ||
| 101 | + android:theme="@style/txTheme" /> | ||
| 102 | + <receiver | ||
| 103 | + android:name="com.bytedance.applog.collector.Collector" | ||
| 104 | + android:enabled="true" | ||
| 105 | + android:exported="false" /> | ||
| 106 | + <!-- toutiao end --> | ||
| 107 | + <meta-data | ||
| 108 | + android:name="xy_sub_game_id" | ||
| 109 | + android:value="" /> | ||
| 110 | + <meta-data | ||
| 111 | + android:name="xy_sub_game_key" | ||
| 112 | + android:value="" /> | ||
| 113 | + <activity android:name="com.stss.sdk.SplashActivity" | ||
| 114 | + android:screenOrientation="landscape" | ||
| 115 | + android:configChanges="orientation|keyboardHidden|screenSize" | ||
| 116 | + android:theme="@android:style/Theme.NoTitleBar.Fullscreen"> | ||
| 117 | + </activity> | ||
| 118 | + <activity | ||
| 119 | + android:name="com.xuanfeng.sdk.wxapi.SDKWXEntryActivity" | ||
| 120 | + android:label="@string/app_name" | ||
| 121 | + android:theme="@android:style/Theme.Translucent.NoTitleBar" | ||
| 122 | + android:exported="true" | ||
| 123 | + android:taskAffinity="${applicationId}" | ||
| 124 | + android:launchMode="singleTask"/> | ||
| 125 | + <activity-alias | ||
| 126 | + android:name="${applicationId}.wxapi.WXEntryActivity" | ||
| 127 | + android:exported="true" | ||
| 128 | + android:targetActivity="com.xuanfeng.sdk.wxapi.SDKWXEntryActivity"/> | ||
| 129 | + <meta-data android:name="stss_APPLICATION_PROXY_NAME" | ||
| 130 | + android:value="com.stss.sdk.LeTuoAppListener" /> | ||
| 131 | + <meta-data | ||
| 132 | + android:name="STSS_CHANNEL_APPLICATION_CLASS" | ||
| 133 | + android:value="com.xuanfeng.sdk.ui.SDKApplication" /> | ||
| 134 | + </applicationConfig> | ||
| 135 | +</manifest> |
config/sdk/letuo/STSSAgg_LeTuo.jar
0 → 100644
不能预览此文件类型
config/sdk/letuo/assets/39285EFA.dex
0 → 100644
不能预览此文件类型
config/sdk/letuo/assets/image/xuanfeng.png
0 → 100644
30.5 KB
config/sdk/letuo/assets/supplierconfig.json
0 → 100644
config/sdk/letuo/channel_action.py
0 → 100644
| 1 | +#!/usr/bin/env python | ||
| 2 | +# -*- coding: utf-8 -*- | ||
| 3 | + | ||
| 4 | +import os | ||
| 5 | +import os.path | ||
| 6 | +from xml.etree import ElementTree as ET | ||
| 7 | +from xml.etree.ElementTree import SubElement | ||
| 8 | +from xml.etree.ElementTree import Element | ||
| 9 | +from xml.etree.ElementTree import ElementTree | ||
| 10 | +import os | ||
| 11 | +import os.path | ||
| 12 | +import zipfile | ||
| 13 | +import re | ||
| 14 | +import subprocess | ||
| 15 | +import platform | ||
| 16 | +from xml.dom import minidom | ||
| 17 | +import codecs | ||
| 18 | +import sys | ||
| 19 | + | ||
| 20 | +androidNS = 'http://schemas.android.com/apk/res/android' | ||
| 21 | + | ||
| 22 | +def execute(channel, decompileDir, packageName): | ||
| 23 | + replace_applicationId_to_AndroidManifest(decompileDir,packageName) | ||
| 24 | + manifest_path = decompileDir + '/AndroidManifest.xml' | ||
| 25 | + find_launch_activity(manifest_path) | ||
| 26 | + return 0 | ||
| 27 | + | ||
| 28 | + | ||
| 29 | +def replace_applicationId_to_AndroidManifest(decompileDir, packageName): | ||
| 30 | + manifestPath = decompileDir + '/AndroidManifest.xml' | ||
| 31 | + manifest_file = open(manifestPath, 'r+', encoding='Utf-8') | ||
| 32 | + manifestContent = str(manifest_file.read()) | ||
| 33 | + manifest_file.close() | ||
| 34 | + | ||
| 35 | + # 4、replace "${applicationId}" "${JPUSH_PKGNAME}" with packname in AndroidManifest.xml | ||
| 36 | + manifestContent = manifestContent.replace('${applicationId}', packageName) | ||
| 37 | + | ||
| 38 | + manifest_new_file = open(manifestPath, 'w', encoding='Utf-8') | ||
| 39 | + manifest_new_file.write(manifestContent) | ||
| 40 | + manifest_new_file.close() | ||
| 41 | + | ||
| 42 | + return 0 | ||
| 43 | + | ||
| 44 | + | ||
| 45 | +def find_launch_activity(manifest_path): | ||
| 46 | + ET.register_namespace("android", androidNS) | ||
| 47 | + tree = ET.parse(manifest_path) | ||
| 48 | + root = tree.getroot() | ||
| 49 | + | ||
| 50 | + for activity in root.findall('.//activity'): | ||
| 51 | + intent_filter = activity.find('.//intent-filter') | ||
| 52 | + if intent_filter is not None: | ||
| 53 | + action = intent_filter.find('.//action') | ||
| 54 | + if action is not None and action.get('{' + androidNS + '}name') == 'android.intent.action.MAIN': | ||
| 55 | + origin_activity_name = activity.get('{' + androidNS + '}name') | ||
| 56 | + print(origin_activity_name) | ||
| 57 | + activity.remove(intent_filter) | ||
| 58 | + tree.write(manifest_path) | ||
| 59 | + manifest_add(manifest_path, tree, root, origin_activity_name) | ||
| 60 | + break | ||
| 61 | + | ||
| 62 | + | ||
| 63 | +def manifest_add(manifest_path, tree, root, origin_activity_name): | ||
| 64 | + namespace2 = {'android': 'http://schemas.android.com/apk/res/android'} | ||
| 65 | + target_activity = root.find(".//activity[@android:name='com.stss.sdk.SplashActivity']", | ||
| 66 | + namespace2) | ||
| 67 | + | ||
| 68 | + if target_activity is None: | ||
| 69 | + return "SplashActivity not found" | ||
| 70 | + | ||
| 71 | + intent_filter = target_activity.find('intent-filter') | ||
| 72 | + if intent_filter is None: | ||
| 73 | + intent_filter = ET.SubElement(target_activity, 'intent-filter') | ||
| 74 | + | ||
| 75 | + action_element = ET.SubElement(intent_filter, 'action') | ||
| 76 | + action_element.set('{' + androidNS + '}name', 'android.intent.action.MAIN') | ||
| 77 | + | ||
| 78 | + category_element = ET.SubElement(intent_filter, 'category') | ||
| 79 | + category_element.set('{' + androidNS + '}name', 'android.intent.category.LAUNCHER') | ||
| 80 | + | ||
| 81 | + meta_data = ET.SubElement(target_activity, 'meta-data') | ||
| 82 | + meta_data.set('android:name', "GAME_ACTIVITY") | ||
| 83 | + meta_data.set('android:value', origin_activity_name) | ||
| 84 | + | ||
| 85 | + tree.write(manifest_path) |
config/sdk/letuo/config.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<config> | ||
| 3 | + <params> | ||
| 4 | + <param name="xy_game_id" required="1" showName="GameId" desc="渠道提供的xy_game_id" bWriteInManifest="1" bWriteInClient="0" /> | ||
| 5 | + <param name="xy_game_key" required="1" showName="GameKey" desc="渠道提供的xy_game_key" bWriteInManifest="1" bWriteInClient="0" /> | ||
| 6 | + <param name="xy_tracking_key" value="0" required="0" showName="TrackingKey" desc="渠道提供的xy_tracking_key" bWriteInManifest="1" bWriteInClient="0" /> | ||
| 7 | + <param name="xy_screen_orientation" required="1" showName="ScreenOrientation" desc="屏幕方向:横屏landscape,竖屏portrait" bWriteInManifest="1" bWriteInClient="0" /> | ||
| 8 | + </params> | ||
| 9 | + <operations> | ||
| 10 | + <operation step="1" type="mergeManifest" from="SDKManifest.xml" to="AndroidManifest.xml" /> | ||
| 11 | + <operation step="2" type="copyRes" from="assets" to="assets" /> | ||
| 12 | + <operation step="3" type="copyRes" from="libs" to="lib" /> | ||
| 13 | + <operation step="4" type="copyRes" from="res" to="res" /> | ||
| 14 | + <operation step="5" type="copyRes" from="root" to="" /> | ||
| 15 | + </operations> | ||
| 16 | + <plugins> | ||
| 17 | + <plugin name="com.stss.sdk.LeTuoUser" type="1" desc="用户登录接口"/> | ||
| 18 | + <plugin name="com.stss.sdk.LeTuoPay" type="2" desc="用户支付接口"/> | ||
| 19 | + </plugins> | ||
| 20 | + <version> | ||
| 21 | + <name>乐拓</name> | ||
| 22 | + <versionCode>1</versionCode> | ||
| 23 | + <versionName>1.0.1</versionName> | ||
| 24 | + </version> | ||
| 25 | +</config> |
不能预览此文件类型
不能预览此文件类型
config/sdk/letuo/libs/HeepayPlugin_v3.5.jar
0 → 100644
不能预览此文件类型
config/sdk/letuo/libs/LoToSDK-HY-2.0.0.jar
0 → 100644
不能预览此文件类型
config/sdk/letuo/libs/OauthSDK_V.4.0.6.jar
0 → 100644
不能预览此文件类型
不能预览此文件类型
config/sdk/letuo/libs/STSSAggSdk.jar
0 → 100644
不能预览此文件类型
config/sdk/letuo/libs/alipaySdk-20160223.jar
0 → 100644
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
config/sdk/letuo/libs/arm64-v8a/libgism.so
0 → 100644
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
config/sdk/letuo/libs/arm64-v8a/libxenv.so
0 → 100644
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
config/sdk/letuo/libs/armeabi-v7a/libgism.so
0 → 100644
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
config/sdk/letuo/libs/armeabi-v7a/libxenv.so
0 → 100644
不能预览此文件类型
config/sdk/letuo/libs/armeabi/lib39285EFA.so
0 → 100644
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
config/sdk/letuo/libs/armeabi/libgism.so
0 → 100644
不能预览此文件类型
不能预览此文件类型
config/sdk/letuo/libs/armeabi/libturingad.so
0 → 100644
不能预览此文件类型
config/sdk/letuo/libs/armeabi/libxenv.so
0 → 100644
不能预览此文件类型
config/sdk/letuo/libs/bcprov-jdk16-139.jar
0 → 100644
不能预览此文件类型
config/sdk/letuo/libs/humesdk-1.0.0.jar
0 → 100644
不能预览此文件类型
不能预览此文件类型
config/sdk/letuo/libs/monitorsdk-1.0.4.jar
0 → 100644
不能预览此文件类型
config/sdk/letuo/libs/msa_mdid_1.0.13.jar
0 → 100644
不能预览此文件类型
config/sdk/letuo/libs/sdk_gism-1.3.2.jar
0 → 100644
不能预览此文件类型
config/sdk/letuo/libs/tracking1.5.4.jar
0 → 100644
不能预览此文件类型
不能预览此文件类型
config/sdk/letuo/libs/x86/lib39285EFA.so
0 → 100644
不能预览此文件类型
config/sdk/letuo/libs/x86/libCtaApiLib.so
0 → 100644
不能预览此文件类型
config/sdk/letuo/libs/x86/libEncryptorP.so
0 → 100644
不能预览此文件类型
config/sdk/letuo/libs/x86/libgism.so
0 → 100644
不能预览此文件类型
config/sdk/letuo/libs/x86/libtobEncrypt.so
0 → 100644
不能预览此文件类型
config/sdk/letuo/libs/x86/libturingad.so
0 → 100644
不能预览此文件类型
config/sdk/letuo/libs/x86/libxenv.so
0 → 100644
不能预览此文件类型
config/sdk/letuo/libs/x86_64/libCtaApiLib.so
0 → 100644
不能预览此文件类型
329 字节
307 字节
1.2 KB
2.0 KB
7.1 KB
2.0 KB
6.4 KB
667 字节
966 字节
2.1 KB
1.5 KB
2.4 KB
2.3 KB
2.3 KB
2.3 KB
19.4 KB
1.7 KB
430 字节
2.7 KB
1.5 KB
1.5 KB
1.5 KB
2.2 KB
675 字节
4.7 KB
2.9 KB
2.1 KB
3.9 KB
340.3 KB
3.6 KB
5.9 KB
2.3 KB
3.5 KB
2.1 KB
5.0 KB
2.9 KB
3.2 KB
-
请 注册 或 登录 后发表评论