作者 pandada8987

接入乐拓SDK

正在显示 100 个修改的文件 包含 327 行增加1 行删除

要显示太多修改。

为保证性能只显示 100 of 100+ 个文件。

... ... @@ -68,6 +68,7 @@ games/
/config/sdk/qingcheng/smali/
/config/sdk/quick/smali/
/config/sdk/669/smali/
/config/sdk/letuo/smali/
# python打包缓存目录不需要提交
**/__pycache__/
\ No newline at end of file
... ...
... ... @@ -34,7 +34,7 @@ def modify_manifest(channel,decompileDir):
applicationNode = root.find('application')
if applicationNode is None:
print("没有找到Application")
print("Application not found")
return
applicationNode.set(key, 'com.stss.sdk.SsnApplication')
... ...
... ... @@ -323,6 +323,30 @@
<param name="splash_copy_to_unity" value="0" />
</channel>
<channel>
<param name="id" value="44" />
<param name="name" value="668" />
<param name="sdk" value="668" />
<param name="desc" value="668" />
<param name="splash" value="0" />
<param name="splash_copy_to_unity" value="0" />
</channel>
<channel>
<param name="id" value="45" />
<param name="name" value="kaka" />
<param name="sdk" value="kaka" />
<param name="desc" value="kaka" />
<param name="splash" value="0" />
<param name="splash_copy_to_unity" value="0" />
</channel>
<channel>
<param name="id" value="46" />
<param name="name" value="letuo" />
<param name="sdk" value="letuo" />
<param name="desc" value="乐拓" />
<param name="splash" value="0" />
<param name="splash_copy_to_unity" value="0" />
</channel>
<channel>
<param name="id" value="1000" />
<param name="name" value="replace-old-sevencattle" />
<param name="sdk" value="replace-old-sevencattle" />
... ...
<?xml version="1.0" encoding="UTF-8"?>
<manifest
xmlns:android="http://schemas.android.com/apk/res/android" >
<permissionConfig>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.CALL_PHONE" />
<uses-permission android:name="com.asus.msa.SupplementaryDID.ACCESS" />
<uses-permission android:name="freemme.permission.msa" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.GET_TASKS" />
<permission
android:name="${applicationId}.permission.xenv.RECEIVE"
android:protectionLevel="signatureOrSystem" />
</permissionConfig>
<applicationConfig android:networkSecurityConfig="@xml/network_security_config">
<activity
android:name="com.xuanfeng.sdk.ui.SDKActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@style/XYFullScreenTheme" />
<activity
android:name="com.xuanfeng.sdk.ui.FloatWebActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@style/XFWebActivityTheme" />
<activity
android:name="com.xuanfeng.sdk.ui.PayWebActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@style/XFWebActivityTheme" />
<activity
android:name="com.alipay.sdk.app.H5PayActivity"
android:configChanges="orientation|keyboardHidden|navigation|screenSize"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:windowSoftInputMode="adjustResize|stateHidden" />
<activity
android:name="com.heepay.plugin.activity.WeChatNotityActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:screenOrientation="behind"
android:theme="@android:style/Theme.Translucent.NoTitleBar" />
<activity
android:name="com.alipay.sdk.auth.AuthActivity"
android:configChanges="orientation|keyboardHidden|navigation"
android:exported="false"
android:screenOrientation="behind" />
<!-- baidu start -->
<activity
android:name="com.baidu.xenv.XenvActivity"
android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale"
android:excludeFromRecents="true"
android:exported="false"
android:launchMode="standard"
android:theme="@android:style/Theme.Translucent" >
<intent-filter>
<action android:name="com.baidu.action.Xenv.VIEW" />
<category android:name="com.baidu.category.xenv" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<service
android:name="com.baidu.xenv.XenvService"
android:exported="false" >
<intent-filter>
<action android:name="com.baidu.action.Xenv.VIEW" />
<category android:name="com.baidu.category.xenv" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</service>
<provider
android:name="com.baidu.xenv.XenvProvider"
android:authorities="${applicationId}.xenv.ac.provider"
android:exported="false" />
<meta-data
android:name="seckey_avscan"
android:value="660346260f8a841a04ec2a56815b421b" />
<meta-data
android:name="appkey_avscan"
android:value="100034" />
<activity android:name="com.bytedance.applog.util.SimulateLaunchActivity" >
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.BROWSABLE" />
<category android:name="android.intent.category.DEFAULT" />
<data
android:host="rangersapplog"
android:path="/picker"
android:scheme="rangersapplog.byax6uyt" />
</intent-filter>
</activity>
<uses-library
android:name="org.apache.http.legacy"
android:required="false" />
<activity
android:name="com.cmic.gen.sdk.view.GenLoginAuthActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:launchMode="singleTop"
android:screenOrientation="unspecified"
android:theme="@style/txTheme" />
<receiver
android:name="com.bytedance.applog.collector.Collector"
android:enabled="true"
android:exported="false" />
<!-- toutiao end -->
<meta-data
android:name="xy_sub_game_id"
android:value="" />
<meta-data
android:name="xy_sub_game_key"
android:value="" />
<activity android:name="com.stss.sdk.SplashActivity"
android:screenOrientation="landscape"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
</activity>
<activity
android:name="com.xuanfeng.sdk.wxapi.SDKWXEntryActivity"
android:label="@string/app_name"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:exported="true"
android:taskAffinity="${applicationId}"
android:launchMode="singleTask"/>
<activity-alias
android:name="${applicationId}.wxapi.WXEntryActivity"
android:exported="true"
android:targetActivity="com.xuanfeng.sdk.wxapi.SDKWXEntryActivity"/>
<meta-data android:name="stss_APPLICATION_PROXY_NAME"
android:value="com.stss.sdk.LeTuoAppListener" />
<meta-data
android:name="STSS_CHANNEL_APPLICATION_CLASS"
android:value="com.xuanfeng.sdk.ui.SDKApplication" />
</applicationConfig>
</manifest>
\ No newline at end of file
... ...
不能预览此文件类型
不能预览此文件类型
#统计平台
PRODUCE_STATISTICAL=https://daily.m.zzx9.cn
#取号平台
PRODUCE_DZH=https://auth.wosms.cn
... ...
{
"supplier":{
"vivo":{
"appid":"100215079"
},
"xiaomi":{
},
"huawei":{
},
"oppo":{
}
}
}
... ...
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import os.path
from xml.etree import ElementTree as ET
from xml.etree.ElementTree import SubElement
from xml.etree.ElementTree import Element
from xml.etree.ElementTree import ElementTree
import os
import os.path
import zipfile
import re
import subprocess
import platform
from xml.dom import minidom
import codecs
import sys
androidNS = 'http://schemas.android.com/apk/res/android'
def execute(channel, decompileDir, packageName):
replace_applicationId_to_AndroidManifest(decompileDir,packageName)
manifest_path = decompileDir + '/AndroidManifest.xml'
find_launch_activity(manifest_path)
return 0
def replace_applicationId_to_AndroidManifest(decompileDir, packageName):
manifestPath = decompileDir + '/AndroidManifest.xml'
manifest_file = open(manifestPath, 'r+', encoding='Utf-8')
manifestContent = str(manifest_file.read())
manifest_file.close()
# 4、replace "${applicationId}" "${JPUSH_PKGNAME}" with packname in AndroidManifest.xml
manifestContent = manifestContent.replace('${applicationId}', packageName)
manifest_new_file = open(manifestPath, 'w', encoding='Utf-8')
manifest_new_file.write(manifestContent)
manifest_new_file.close()
return 0
def find_launch_activity(manifest_path):
ET.register_namespace("android", androidNS)
tree = ET.parse(manifest_path)
root = tree.getroot()
for activity in root.findall('.//activity'):
intent_filter = activity.find('.//intent-filter')
if intent_filter is not None:
action = intent_filter.find('.//action')
if action is not None and action.get('{' + androidNS + '}name') == 'android.intent.action.MAIN':
origin_activity_name = activity.get('{' + androidNS + '}name')
print(origin_activity_name)
activity.remove(intent_filter)
tree.write(manifest_path)
manifest_add(manifest_path, tree, root, origin_activity_name)
break
def manifest_add(manifest_path, tree, root, origin_activity_name):
namespace2 = {'android': 'http://schemas.android.com/apk/res/android'}
target_activity = root.find(".//activity[@android:name='com.stss.sdk.SplashActivity']",
namespace2)
if target_activity is None:
return "SplashActivity not found"
intent_filter = target_activity.find('intent-filter')
if intent_filter is None:
intent_filter = ET.SubElement(target_activity, 'intent-filter')
action_element = ET.SubElement(intent_filter, 'action')
action_element.set('{' + androidNS + '}name', 'android.intent.action.MAIN')
category_element = ET.SubElement(intent_filter, 'category')
category_element.set('{' + androidNS + '}name', 'android.intent.category.LAUNCHER')
meta_data = ET.SubElement(target_activity, 'meta-data')
meta_data.set('android:name', "GAME_ACTIVITY")
meta_data.set('android:value', origin_activity_name)
tree.write(manifest_path)
\ No newline at end of file
... ...
<?xml version="1.0" encoding="UTF-8"?>
<config>
<params>
<param name="xy_game_id" required="1" showName="GameId" desc="渠道提供的xy_game_id" bWriteInManifest="1" bWriteInClient="0" />
<param name="xy_game_key" required="1" showName="GameKey" desc="渠道提供的xy_game_key" bWriteInManifest="1" bWriteInClient="0" />
<param name="xy_tracking_key" value="0" required="0" showName="TrackingKey" desc="渠道提供的xy_tracking_key" bWriteInManifest="1" bWriteInClient="0" />
<param name="xy_screen_orientation" required="1" showName="ScreenOrientation" desc="屏幕方向:横屏landscape,竖屏portrait" bWriteInManifest="1" bWriteInClient="0" />
</params>
<operations>
<operation step="1" type="mergeManifest" from="SDKManifest.xml" to="AndroidManifest.xml" />
<operation step="2" type="copyRes" from="assets" to="assets" />
<operation step="3" type="copyRes" from="libs" to="lib" />
<operation step="4" type="copyRes" from="res" to="res" />
<operation step="5" type="copyRes" from="root" to="" />
</operations>
<plugins>
<plugin name="com.stss.sdk.LeTuoUser" type="1" desc="用户登录接口"/>
<plugin name="com.stss.sdk.LeTuoPay" type="2" desc="用户支付接口"/>
</plugins>
<version>
<name>乐拓</name>
<versionCode>1</versionCode>
<versionName>1.0.1</versionName>
</version>
</config>
\ No newline at end of file
... ...
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
不能预览此文件类型
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android">
<rotate
android:fromDegrees="0"
android:toDegrees="359"
android:duration="500"
android:repeatCount="-1"
android:pivotX="50%"
android:pivotY="50%" />
</set>
\ No newline at end of file
... ...
<set xmlns:android="http://schemas.android.com/apk/res/android" >
<rotate
android:duration="1000"
android:fromDegrees="0"
android:pivotX="50%"
android:pivotY="50%"
android:repeatCount="-1"
android:toDegrees="359" />
</set>
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromXDelta="0"
android:toXDelta="30"
android:duration="600"
android:interpolator="@anim/umcsdk_anim_shake_interpolator" />
\ No newline at end of file
... ...
<?xml version="1.0" encoding="utf-8"?>
<cycleInterpolator xmlns:android="http://schemas.android.com/apk/res/android"
android:cycles="2" />
... ...
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_pressed="false" android:color="#A6000000" />
<item android:state_pressed="true" android:color="#D9000000" />
</selector>
\ No newline at end of file
... ...