正在显示
98 个修改的文件
包含
4628 行增加
和
0 行删除
config/sdk/668/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.READ_PHONE_STATE"/> | ||
| 7 | + <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/> | ||
| 8 | + <uses-permission android:name="android.permission.ACCESS_NETWORK_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="com.asus.msa.SupplementaryDID.ACCESS"/> | ||
| 12 | + <uses-permission android:name="freemme.permission.msa"/> | ||
| 13 | + <uses-permission android:name="android.permission.WRITE_SETTINGS"/> | ||
| 14 | + <uses-permission android:name="android.permission.VIBRATE"/> | ||
| 15 | + </permissionConfig> | ||
| 16 | + <applicationConfig android:usesCleartextTraffic="true" | ||
| 17 | + proxyApplication="com.stss.sdk.ManDiAppListener"> | ||
| 18 | + <uses-library android:name="org.apache.http.legacy" android:required="false" /> | ||
| 19 | + <activity android:windowSoftInputMode="stateAlwaysHidden" android:theme="@style/brsdk_transparent" | ||
| 20 | + android:name="com.brsdk.android.ui.BRUIPermission" android:configChanges="orientation|keyboardHidden|screenSize|keyboard|fontScale" | ||
| 21 | + android:screenOrientation="behind"/> | ||
| 22 | + <meta-data | ||
| 23 | + android:name="STSS_CHANNEL_APPLICATION_CLASS" | ||
| 24 | + android:value="com.brsdk.android.BRApplication" /> | ||
| 25 | + </applicationConfig> | ||
| 26 | +</manifest> |
config/sdk/668/assets/brsdk_config.json
0 → 100644
config/sdk/668/assets/brsdk_sign_config.json
0 → 100644
| 1 | +{ | ||
| 2 | + "Sign": "Dv8q0/cJ8GbCKCmEaffpwLg96X4N6tJHQau2Xtq+T012csQkWnNg2iqngDe4oaQDiouS4Im/IFkbUvl3K2ZDD3lMHLSrQJ+Sgaq8He4nPy8UDGohu6CacruHXM3tjSG5UQYlEeHLzuOmAy2kmuYJbhKYJAt06dSXi4brZZhe+NVgGxtdKyyfwATRrGqruVcA46312m3nu3h+IcMTRfbyC7U7+mntBmzgCQGcrOQEEiOW2B/N6pubb2IBlaS4BTndItiDoJNsPl7q2pBUp16SHo+lCcyk0EpzuZ8IIzYQ9tTIS4XTX6keaS7bBpTwgjO61XSkR3qE6sr1OyBGQEDgDQ==" | ||
| 3 | +} |
config/sdk/668/assets/supplierconfig.json
0 → 100644
config/sdk/668/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 | + | ||
| 23 | +def execute(channel, decompileDir, packageName): | ||
| 24 | + write_params_to_config(channel, decompileDir) | ||
| 25 | + modify_main_activity_smali(decompileDir) | ||
| 26 | + return 0 | ||
| 27 | + | ||
| 28 | +def write_params_to_config(channel, decompileDir): | ||
| 29 | + AppID = '' | ||
| 30 | + AppKey = '' | ||
| 31 | + AppVersion = '1.0' | ||
| 32 | + ScreenType = '1' | ||
| 33 | + if channel['params'] != None and len(channel['params']) > 0: | ||
| 34 | + for param in channel['params']: | ||
| 35 | + if param['name'] == 'AppID': | ||
| 36 | + AppID = param['value'] | ||
| 37 | + elif param['name'] == 'AppKey': | ||
| 38 | + AppKey = param['value'] | ||
| 39 | + | ||
| 40 | + | ||
| 41 | + developer_config_path = decompileDir + '/assets/brsdk_config.json' | ||
| 42 | + euConfigFile = open(developer_config_path, 'r+', encoding='Utf-8') | ||
| 43 | + configContent = str(euConfigFile.read()) | ||
| 44 | + euConfigFile.close() | ||
| 45 | + | ||
| 46 | + configContent = configContent.replace('CHANNEL_AppID', AppID) | ||
| 47 | + configContent = configContent.replace('CHANNEL_AppKey', AppKey) | ||
| 48 | + | ||
| 49 | + developer_config_file = open(developer_config_path, 'w', encoding='Utf-8') | ||
| 50 | + developer_config_file.write(configContent) | ||
| 51 | + developer_config_file.close() | ||
| 52 | + | ||
| 53 | + return 0 | ||
| 54 | + | ||
| 55 | +def modify_main_activity_smali(decompileDir): | ||
| 56 | + | ||
| 57 | + manifestFile = decompileDir + "/AndroidManifest.xml" | ||
| 58 | + # manifestFile = file_utils.getFullPath(manifestFile) | ||
| 59 | + ET.register_namespace('android', androidNS) | ||
| 60 | + key = '{' + androidNS + '}name' | ||
| 61 | + | ||
| 62 | + tree = ET.parse(manifestFile) | ||
| 63 | + root = tree.getroot() | ||
| 64 | + | ||
| 65 | + applicationNode = root.find('application') | ||
| 66 | + if applicationNode is None: | ||
| 67 | + return | ||
| 68 | + | ||
| 69 | + activityNodeLst = applicationNode.findall('activity') | ||
| 70 | + if activityNodeLst is None: | ||
| 71 | + return | ||
| 72 | + | ||
| 73 | + mainActivityName = '' | ||
| 74 | + for activityNode in activityNodeLst: | ||
| 75 | + bMain = False | ||
| 76 | + intentNodeLst = activityNode.findall('intent-filter') | ||
| 77 | + if intentNodeLst is None: | ||
| 78 | + break | ||
| 79 | + for intentNode in intentNodeLst: | ||
| 80 | + bFindAction = False | ||
| 81 | + bFindCategory = False | ||
| 82 | + | ||
| 83 | + actionNodeLst = intentNode.findall('action') | ||
| 84 | + if actionNodeLst is None: | ||
| 85 | + break | ||
| 86 | + for actionNode in actionNodeLst: | ||
| 87 | + if actionNode.attrib[key] == 'android.intent.action.MAIN': | ||
| 88 | + bFindAction = True | ||
| 89 | + break | ||
| 90 | + | ||
| 91 | + categoryNodeLst = intentNode.findall('category') | ||
| 92 | + if categoryNodeLst is None: | ||
| 93 | + break | ||
| 94 | + for categoryNode in categoryNodeLst: | ||
| 95 | + if categoryNode.attrib[key] == 'android.intent.category.LAUNCHER': | ||
| 96 | + bFindCategory = True | ||
| 97 | + break | ||
| 98 | + | ||
| 99 | + if bFindAction and bFindCategory: | ||
| 100 | + bMain = True | ||
| 101 | + break | ||
| 102 | + | ||
| 103 | + if bMain: | ||
| 104 | + mainActivityName = activityNode.attrib[key] | ||
| 105 | + break | ||
| 106 | + | ||
| 107 | + if len(mainActivityName) == 0: | ||
| 108 | + return | ||
| 109 | + | ||
| 110 | + mainActivityPath = mainActivityName.replace(".", "/") | ||
| 111 | + mainActivityPath = decompileDir + '/smali/' + mainActivityPath + '.smali' | ||
| 112 | + | ||
| 113 | + f = open(mainActivityPath, 'r+', encoding='Utf-8') | ||
| 114 | + mainActivityContent = str(f.read()) | ||
| 115 | + f.close() | ||
| 116 | + | ||
| 117 | + fl = open(mainActivityPath, 'r+') | ||
| 118 | + lines = fl.readlines() | ||
| 119 | + fl.close() | ||
| 120 | + | ||
| 121 | + superClassLine = lines[1] | ||
| 122 | + superClassLine.strip() | ||
| 123 | + superClassName = 'Landroid/app/Activity;' | ||
| 124 | + if superClassLine.startswith(".super"): | ||
| 125 | + blocks = superClassLine.split() | ||
| 126 | + superClassName = blocks[len(blocks)-1] | ||
| 127 | + | ||
| 128 | + replaceTxt = 'invoke-super {p0, p1, p2, p3}, ' + superClassName + '->onRequestPermissionsResult(I[Ljava/lang/String;[I)V' | ||
| 129 | + | ||
| 130 | + idx = mainActivityContent.find(replaceTxt) | ||
| 131 | + if idx == -1: | ||
| 132 | + targetTxt = "\n.method public onRequestPermissionsResult(I[Ljava/lang/String;[I)V\n .locals 2\n\n invoke-super {p0, p1, p2, p3}, " + superClassName + "->onRequestPermissionsResult(I[Ljava/lang/String;[I)V\n\n invoke-static {p1, p2, p3}, Lcom/stss/sdk/STSSAggGame;->onRequestPermissionsResult(I[Ljava/lang/String;[I)V\n\n return-void\n.end method" | ||
| 133 | + mainActivityContent = mainActivityContent + targetTxt | ||
| 134 | + else: | ||
| 135 | + targetTxt = " invoke-super {p0, p1, p2, p3}, " + superClassName + "->onRequestPermissionsResult(I[Ljava/lang/String;[I)V\n\n invoke-static {p1, p2, p3}, Lcom/stss/sdk/STSSAggGame;->onRequestPermissionsResult(I[Ljava/lang/String;[I)V" | ||
| 136 | + mainActivityContent = mainActivityContent[:idx] + targetTxt + mainActivityContent[(idx + len(replaceTxt)):] | ||
| 137 | + | ||
| 138 | + f2 = open(mainActivityPath, 'w', encoding='Utf-8') | ||
| 139 | + f2.write(mainActivityContent) | ||
| 140 | + f2.close() | ||
| 141 | + | ||
| 142 | + return 0 |
config/sdk/668/config.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<config> | ||
| 3 | + <params> | ||
| 4 | + <param name="AppID" required="1" showName="AppID" desc="QianQian sdk app id" bWriteInManifest="0" bWriteInClient="1" /> | ||
| 5 | + <param name="AppKey" required="1" showName="AppKey" desc="QianQian sdk app key" bWriteInManifest="0" bWriteInClient="1" /> | ||
| 6 | + <param name="AppOrientation" required="1" showName="AppOrientation" desc="QianQian sdk orientation" bWriteInManifest="0" bWriteInClient="1" /> | ||
| 7 | + </params> | ||
| 8 | + <operations> | ||
| 9 | + <operation step="1" type="mergeManifest" from="SDKManifest.xml" to="AndroidManifest.xml" /> | ||
| 10 | + <operation step="2" type="copyRes" from="assets" to="assets" /> | ||
| 11 | + <operation step="3" type="copyRes" from="libs" to="lib" /> | ||
| 12 | + <operation step="4" type="copyRes" from="res" to="res" /> | ||
| 13 | + <operation step="5" type="copyRes" from="root" to="" /> | ||
| 14 | + </operations> | ||
| 15 | + <plugins> | ||
| 16 | + <plugin name="com.stss.sdk.QianQianUser" type="1" desc="用户登录接口"/> | ||
| 17 | + <plugin name="com.stss.sdk.QianQianPay" type="2" desc="用户支付接口"/> | ||
| 18 | + </plugins> | ||
| 19 | + <version> | ||
| 20 | + <name>芊芊668</name> | ||
| 21 | + <versionCode>1</versionCode> | ||
| 22 | + <versionName>1.0.1</versionName> | ||
| 23 | + </version> | ||
| 24 | +</config> |
config/sdk/668/libs/arm64-v8a/libbrgame.so
0 → 100644
不能预览此文件类型
config/sdk/668/libs/arm64-v8a/libsecsdk.so
0 → 100644
不能预览此文件类型
config/sdk/668/libs/armeabi-v7a/libbrgame.so
0 → 100644
不能预览此文件类型
config/sdk/668/libs/armeabi-v7a/libsecsdk.so
0 → 100644
不能预览此文件类型
config/sdk/668/libs/armeabi/libbrgame.so
0 → 100644
不能预览此文件类型
config/sdk/668/libs/armeabi/libsecsdk.so
0 → 100644
不能预览此文件类型
config/sdk/668/libs/x86/libbrgame.so
0 → 100644
不能预览此文件类型
config/sdk/668/libs/x86/libsecsdk.so
0 → 100644
不能预览此文件类型
config/sdk/668/libs/x86_64/libbrgame.so
0 → 100644
不能预览此文件类型
config/sdk/668/libs/x86_64/libsecsdk.so
0 → 100644
不能预览此文件类型
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<set xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <translate | ||
| 4 | + android:duration="100" | ||
| 5 | + android:fromYDelta="100%p" | ||
| 6 | + android:toYDelta="0" | ||
| 7 | + /> | ||
| 8 | + <alpha | ||
| 9 | + android:duration="100" | ||
| 10 | + android:fromAlpha="0.0" | ||
| 11 | + android:toAlpha="1.0" | ||
| 12 | + /> | ||
| 13 | +</set> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<set xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <translate | ||
| 4 | + android:duration="100" | ||
| 5 | + android:fromYDelta="0" | ||
| 6 | + android:toYDelta="100%p" | ||
| 7 | + /> | ||
| 8 | + <alpha | ||
| 9 | + android:duration="100" | ||
| 10 | + android:fromAlpha="1.0" | ||
| 11 | + android:toAlpha="0.0" | ||
| 12 | + /> | ||
| 13 | +</set> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<set xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <translate | ||
| 4 | + android:duration="100" | ||
| 5 | + android:fromXDelta="-100%p" | ||
| 6 | + android:toXDelta="0" | ||
| 7 | + /> | ||
| 8 | + <alpha | ||
| 9 | + android:duration="100" | ||
| 10 | + android:fromAlpha="0.0" | ||
| 11 | + android:toAlpha="1.0" | ||
| 12 | + /> | ||
| 13 | +</set> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<set xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <translate | ||
| 4 | + android:duration="100" | ||
| 5 | + android:fromXDelta="0" | ||
| 6 | + android:toXDelta="-100%p" | ||
| 7 | + /> | ||
| 8 | + <alpha | ||
| 9 | + android:duration="100" | ||
| 10 | + android:fromAlpha="1.0" | ||
| 11 | + android:toAlpha="0.0" | ||
| 12 | + /> | ||
| 13 | +</set> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<set xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <translate | ||
| 4 | + android:duration="100" | ||
| 5 | + android:fromXDelta="100%p" | ||
| 6 | + android:toXDelta="0" | ||
| 7 | + /> | ||
| 8 | + <alpha | ||
| 9 | + android:duration="100" | ||
| 10 | + android:fromAlpha="0.0" | ||
| 11 | + android:toAlpha="1.0" | ||
| 12 | + /> | ||
| 13 | +</set> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<set xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <translate | ||
| 4 | + android:duration="100" | ||
| 5 | + android:fromXDelta="0" | ||
| 6 | + android:toXDelta="100%p" | ||
| 7 | + /> | ||
| 8 | + <alpha | ||
| 9 | + android:duration="100" | ||
| 10 | + android:fromAlpha="1.0" | ||
| 11 | + android:toAlpha="0.0" | ||
| 12 | + /> | ||
| 13 | +</set> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<set xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <translate | ||
| 4 | + android:duration="100" | ||
| 5 | + android:fromYDelta="-100%p" | ||
| 6 | + android:toYDelta="0" | ||
| 7 | + /> | ||
| 8 | + <alpha | ||
| 9 | + android:duration="100" | ||
| 10 | + android:fromAlpha="0.0" | ||
| 11 | + android:toAlpha="1.0" | ||
| 12 | + /> | ||
| 13 | +</set> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<set xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <translate | ||
| 4 | + android:duration="100" | ||
| 5 | + android:fromYDelta="0" | ||
| 6 | + android:toYDelta="-100%p" | ||
| 7 | + /> | ||
| 8 | + <alpha | ||
| 9 | + android:duration="100" | ||
| 10 | + android:fromAlpha="1.0" | ||
| 11 | + android:toAlpha="0.0" | ||
| 12 | + /> | ||
| 13 | +</set> |
2.3 KB
2.0 KB
1.7 KB
1.0 KB
529 字节
2.1 KB
3.6 KB
2.4 KB
2.0 KB
1.9 KB
3.6 KB
906 字节
1.8 KB
1.9 KB
2.0 KB
2.1 KB
28.1 KB
29.9 KB
1.1 KB
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <item | ||
| 4 | + android:drawable="@drawable/brsdk_dropdown_white" | ||
| 5 | + android:state_selected="false" | ||
| 6 | + /> | ||
| 7 | + <item | ||
| 8 | + android:drawable="@drawable/brsdk_pullup_white" | ||
| 9 | + android:state_selected="true" | ||
| 10 | + /> | ||
| 11 | +</selector> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + <item> | ||
| 4 | + <shape> | ||
| 5 | + <solid | ||
| 6 | + android:color="@color/brsdk_black50" | ||
| 7 | + /> | ||
| 8 | + <corners android:radius="100dp" /> | ||
| 9 | + </shape> | ||
| 10 | + </item> | ||
| 11 | + <item | ||
| 12 | + android:top="@dimen/brsdk_space_8dp" | ||
| 13 | + android:bottom="@dimen/brsdk_space_8dp" | ||
| 14 | + android:left="@dimen/brsdk_space_8dp" | ||
| 15 | + android:right="@dimen/brsdk_space_8dp" | ||
| 16 | + > | ||
| 17 | + <bitmap | ||
| 18 | + android:src="@drawable/brsdk_close_white" | ||
| 19 | + /> | ||
| 20 | + </item> | ||
| 21 | +</layer-list> |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + | ||
| 4 | + <item android:state_checked="true"> | ||
| 5 | + <inset android:insetTop="2.5dp"> | ||
| 6 | + <bitmap | ||
| 7 | + android:src="@drawable/brsdk_checked_white" | ||
| 8 | + android:tint="@color/brsdk_theme" | ||
| 9 | + /> | ||
| 10 | + </inset> | ||
| 11 | + </item> | ||
| 12 | + | ||
| 13 | + <item android:state_checked="false"> | ||
| 14 | + <inset android:insetTop="2.5dp"> | ||
| 15 | + <bitmap | ||
| 16 | + android:src="@drawable/brsdk_check_white" | ||
| 17 | + android:tint="@color/brsdk_white" | ||
| 18 | + /> | ||
| 19 | + </inset> | ||
| 20 | + </item> | ||
| 21 | + | ||
| 22 | +</selector> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<layer-list xmlns:android="http://schemas.android.com/apk/res/android" > | ||
| 3 | + | ||
| 4 | + <item | ||
| 5 | + android:id="@android:id/background" | ||
| 6 | + android:drawable="@android:color/transparent" | ||
| 7 | + /> | ||
| 8 | + <item | ||
| 9 | + android:id="@android:id/secondaryProgress" | ||
| 10 | + > | ||
| 11 | + <scale | ||
| 12 | + android:drawable="@android:color/transparent" | ||
| 13 | + android:scaleWidth="100%" | ||
| 14 | + /> | ||
| 15 | + </item> | ||
| 16 | + <item | ||
| 17 | + android:id="@android:id/progress" | ||
| 18 | + > | ||
| 19 | + <scale | ||
| 20 | + android:drawable="@color/brsdk_theme50" | ||
| 21 | + android:scaleWidth="100%" | ||
| 22 | + /> | ||
| 23 | + </item> | ||
| 24 | + | ||
| 25 | +</layer-list> |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + | ||
| 4 | + <item | ||
| 5 | + android:state_selected="false" | ||
| 6 | + android:drawable="@drawable/brsdk_unlook_white" | ||
| 7 | + /> | ||
| 8 | + <item | ||
| 9 | + android:state_selected="true" | ||
| 10 | + android:drawable="@drawable/brsdk_look_white" | ||
| 11 | + /> | ||
| 12 | + | ||
| 13 | +</selector> |
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
| 2 | +<selector xmlns:android="http://schemas.android.com/apk/res/android"> | ||
| 3 | + | ||
| 4 | + <item android:state_checked="true"> | ||
| 5 | + <bitmap | ||
| 6 | + android:src="@drawable/brsdk_checked_white" | ||
| 7 | + android:tint="@color/brsdk_theme" | ||
| 8 | + /> | ||
| 9 | + </item> | ||
| 10 | + | ||
| 11 | + <item | ||
| 12 | + android:drawable="@drawable/brsdk_check_white" | ||
| 13 | + android:state_checked="false" | ||
| 14 | + /> | ||
| 15 | + | ||
| 16 | +</selector> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + style="@style/brsdk_layout_root" | ||
| 6 | + android:orientation="horizontal" | ||
| 7 | + android:padding="@dimen/brsdk_space_4dp" | ||
| 8 | + tools:layout_marginStart="32dp" | ||
| 9 | + tools:layout_marginEnd="32dp" | ||
| 10 | + tools:layout_marginTop="32dp" | ||
| 11 | + tools:layout_gravity="top|center_horizontal" | ||
| 12 | + > | ||
| 13 | + | ||
| 14 | + <com.brsdk.android.widget.BRLoading | ||
| 15 | + android:layout_width="24dp" | ||
| 16 | + android:layout_height="24dp" | ||
| 17 | + android:layout_marginStart="6dp" | ||
| 18 | + /> | ||
| 19 | + <TextView | ||
| 20 | + android:layout_width="wrap_content" | ||
| 21 | + android:layout_height="match_parent" | ||
| 22 | + android:textColor="@color/brsdk_white" | ||
| 23 | + android:includeFontPadding="false" | ||
| 24 | + android:gravity="center_vertical" | ||
| 25 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 26 | + android:text="@string/brsdk_auto_welcome" | ||
| 27 | + android:layout_marginStart="6dp" | ||
| 28 | + /> | ||
| 29 | + <TextView | ||
| 30 | + android:id="@+id/brAccount" | ||
| 31 | + android:layout_width="0dp" | ||
| 32 | + android:layout_height="match_parent" | ||
| 33 | + android:layout_weight="1" | ||
| 34 | + android:textColor="@color/brsdk_theme" | ||
| 35 | + android:includeFontPadding="false" | ||
| 36 | + android:gravity="center_vertical" | ||
| 37 | + android:layout_marginStart="@dimen/brsdk_space_4dp" | ||
| 38 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 39 | + android:ellipsize="end" | ||
| 40 | + android:maxLines="1" | ||
| 41 | + tools:text="17726342778" | ||
| 42 | + /> | ||
| 43 | + <TextView | ||
| 44 | + android:id="@+id/brSwitch" | ||
| 45 | + android:layout_width="wrap_content" | ||
| 46 | + android:layout_height="wrap_content" | ||
| 47 | + android:textColor="@color/brsdk_theme" | ||
| 48 | + android:includeFontPadding="false" | ||
| 49 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 50 | + android:text="@string/brsdk_switch_account" | ||
| 51 | + android:padding="@dimen/brsdk_space_8dp" | ||
| 52 | + /> | ||
| 53 | + | ||
| 54 | +</LinearLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + style="@style/brsdk_layout_root" | ||
| 6 | + tools:layout_marginStart="32dp" | ||
| 7 | + tools:layout_marginEnd="32dp" | ||
| 8 | + tools:layout_gravity="center" | ||
| 9 | + > | ||
| 10 | + | ||
| 11 | + <include | ||
| 12 | + android:layout_width="match_parent" | ||
| 13 | + android:layout_height="wrap_content" | ||
| 14 | + layout="@layout/brsdk_navigation" | ||
| 15 | + android:layout_marginTop="-4dp" | ||
| 16 | + /> | ||
| 17 | + | ||
| 18 | + | ||
| 19 | + <LinearLayout | ||
| 20 | + android:layout_width="match_parent" | ||
| 21 | + android:layout_height="wrap_content" | ||
| 22 | + android:orientation="vertical" | ||
| 23 | + android:background="@drawable/brsdk_r4_white" | ||
| 24 | + android:gravity="center_vertical" | ||
| 25 | + > | ||
| 26 | + <include layout="@layout/brsdk_phone_verify" /> | ||
| 27 | + </LinearLayout> | ||
| 28 | + | ||
| 29 | + <TextView | ||
| 30 | + android:id="@+id/brSubmit" | ||
| 31 | + android:layout_width="match_parent" | ||
| 32 | + android:layout_height="40dp" | ||
| 33 | + android:textColor="@color/brsdk_white" | ||
| 34 | + android:textSize="@dimen/brsdk_font_18sp" | ||
| 35 | + android:text="@string/brsdk_button_bind" | ||
| 36 | + android:background="@drawable/brsdk_r4_theme" | ||
| 37 | + android:includeFontPadding="false" | ||
| 38 | + android:layout_marginTop="@dimen/brsdk_space_8dp" | ||
| 39 | + android:gravity="center" | ||
| 40 | + /> | ||
| 41 | + | ||
| 42 | + <TextView | ||
| 43 | + android:id="@+id/brMessage" | ||
| 44 | + android:layout_width="match_parent" | ||
| 45 | + android:layout_height="wrap_content" | ||
| 46 | + android:textSize="@dimen/brsdk_font_12sp" | ||
| 47 | + android:textColor="@color/brsdk_white" | ||
| 48 | + android:text="@string/brsdk_phone_desc" | ||
| 49 | + android:lineSpacingExtra="2dp" | ||
| 50 | + android:includeFontPadding="false" | ||
| 51 | + android:layout_marginTop="10dp" | ||
| 52 | + android:gravity="center" | ||
| 53 | + /> | ||
| 54 | + | ||
| 55 | +</LinearLayout> |
config/sdk/668/res/layout/brsdk_bulletin.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + style="@style/brsdk_layout_root" | ||
| 6 | + android:background="@color/brsdk_black75" | ||
| 7 | + android:orientation="vertical" | ||
| 8 | + android:layout_margin="0dp" | ||
| 9 | + android:gravity="top" | ||
| 10 | + tools:layout_height="480dp" | ||
| 11 | + tools:layout_gravity="bottom" | ||
| 12 | + > | ||
| 13 | + | ||
| 14 | + <include | ||
| 15 | + android:layout_width="match_parent" | ||
| 16 | + android:layout_height="wrap_content" | ||
| 17 | + layout="@layout/brsdk_navigation" | ||
| 18 | + android:layout_marginTop="-6dp" | ||
| 19 | + /> | ||
| 20 | + | ||
| 21 | + <com.brsdk.android.widget.pager.ViewPager | ||
| 22 | + android:id="@+id/brViewPage" | ||
| 23 | + android:layout_width="match_parent" | ||
| 24 | + android:layout_height="0dp" | ||
| 25 | + android:layout_weight="1" | ||
| 26 | + /> | ||
| 27 | + | ||
| 28 | + <com.brsdk.android.widget.BRIndicator | ||
| 29 | + android:id="@+id/brIndicator" | ||
| 30 | + android:layout_width="wrap_content" | ||
| 31 | + android:layout_height="wrap_content" | ||
| 32 | + android:layout_marginTop="@dimen/brsdk_space_8dp" | ||
| 33 | + android:layout_gravity="center_horizontal" | ||
| 34 | + /> | ||
| 35 | + | ||
| 36 | +</LinearLayout> |
config/sdk/668/res/layout/brsdk_confirm.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + style="@style/brsdk_layout_root" | ||
| 6 | + android:padding="0dp" | ||
| 7 | + tools:layout_marginStart="32dp" | ||
| 8 | + tools:layout_marginEnd="32dp" | ||
| 9 | + tools:layout_gravity="center" | ||
| 10 | + > | ||
| 11 | + | ||
| 12 | + <TextView | ||
| 13 | + android:id="@+id/brTitle" | ||
| 14 | + android:layout_width="match_parent" | ||
| 15 | + android:layout_height="wrap_content" | ||
| 16 | + android:paddingTop="@dimen/brsdk_space_16dp" | ||
| 17 | + android:paddingStart="@dimen/brsdk_space_16dp" | ||
| 18 | + android:paddingEnd="@dimen/brsdk_space_16dp" | ||
| 19 | + android:textColor="@color/brsdk_white" | ||
| 20 | + android:includeFontPadding="false" | ||
| 21 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 22 | + android:gravity="center" | ||
| 23 | + tools:text="警告" | ||
| 24 | + /> | ||
| 25 | + | ||
| 26 | + <TextView | ||
| 27 | + android:id="@+id/brMessage" | ||
| 28 | + android:layout_width="match_parent" | ||
| 29 | + android:layout_height="wrap_content" | ||
| 30 | + android:textColor="@color/brsdk_white" | ||
| 31 | + android:includeFontPadding="false" | ||
| 32 | + android:padding="@dimen/brsdk_space_16dp" | ||
| 33 | + android:lineSpacingExtra="@dimen/brsdk_space_8dp" | ||
| 34 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 35 | + android:minHeight="80dp" | ||
| 36 | + android:gravity="center" | ||
| 37 | + tools:text="这是通知消息\n这是第二行" | ||
| 38 | + /> | ||
| 39 | + <View | ||
| 40 | + android:layout_width="match_parent" | ||
| 41 | + android:layout_height="@dimen/brsdk_space_1dp" | ||
| 42 | + android:background="@drawable/brsdk_divider_h" | ||
| 43 | + /> | ||
| 44 | + <LinearLayout | ||
| 45 | + android:layout_width="match_parent" | ||
| 46 | + android:layout_height="wrap_content" | ||
| 47 | + android:orientation="horizontal" | ||
| 48 | + android:divider="@drawable/brsdk_divider_v" | ||
| 49 | + android:showDividers="middle" | ||
| 50 | + > | ||
| 51 | + <TextView | ||
| 52 | + android:id="@+id/brNegative" | ||
| 53 | + android:layout_width="0dp" | ||
| 54 | + android:layout_weight="1" | ||
| 55 | + android:layout_height="wrap_content" | ||
| 56 | + android:textColor="@color/brsdk_white" | ||
| 57 | + android:includeFontPadding="false" | ||
| 58 | + android:padding="@dimen/brsdk_space_12dp" | ||
| 59 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 60 | + android:visibility="gone" | ||
| 61 | + android:gravity="center" | ||
| 62 | + tools:text="取消" | ||
| 63 | + tools:visibility="visible" | ||
| 64 | + /> | ||
| 65 | + <TextView | ||
| 66 | + android:id="@+id/brPositive" | ||
| 67 | + android:layout_width="0dp" | ||
| 68 | + android:layout_weight="1" | ||
| 69 | + android:layout_height="wrap_content" | ||
| 70 | + android:textColor="@color/brsdk_theme" | ||
| 71 | + android:includeFontPadding="false" | ||
| 72 | + android:padding="@dimen/brsdk_space_12dp" | ||
| 73 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 74 | + android:visibility="gone" | ||
| 75 | + android:gravity="center" | ||
| 76 | + tools:text="确定" | ||
| 77 | + tools:visibility="visible" | ||
| 78 | + /> | ||
| 79 | + </LinearLayout> | ||
| 80 | + | ||
| 81 | +</LinearLayout> |
config/sdk/668/res/layout/brsdk_control.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + style="@style/brsdk_layout_root" | ||
| 6 | + android:background="@color/brsdk_white" | ||
| 7 | + android:padding="0dp" | ||
| 8 | + android:layout_margin="0dp" | ||
| 9 | + android:gravity="top" | ||
| 10 | + tools:layout_width="match_parent" | ||
| 11 | + tools:layout_height="480dp" | ||
| 12 | + tools:layout_gravity="bottom" | ||
| 13 | + > | ||
| 14 | + | ||
| 15 | + <com.brsdk.android.widget.BRWebView | ||
| 16 | + android:id="@+id/brWebView" | ||
| 17 | + android:layout_width="match_parent" | ||
| 18 | + android:layout_height="match_parent" | ||
| 19 | + android:layout_weight="1" | ||
| 20 | + /> | ||
| 21 | + | ||
| 22 | +</LinearLayout> |
config/sdk/668/res/layout/brsdk_cover.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<FrameLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + android:orientation="vertical" | ||
| 6 | + android:layout_width="wrap_content" | ||
| 7 | + android:layout_height="wrap_content" | ||
| 8 | + android:background="@android:color/transparent" | ||
| 9 | + > | ||
| 10 | + | ||
| 11 | + <FrameLayout | ||
| 12 | + android:layout_width="wrap_content" | ||
| 13 | + android:layout_height="wrap_content" | ||
| 14 | + android:layout_gravity="center" | ||
| 15 | + > | ||
| 16 | + | ||
| 17 | + <ImageView | ||
| 18 | + android:id="@+id/brCover" | ||
| 19 | + android:layout_width="wrap_content" | ||
| 20 | + android:layout_height="wrap_content" | ||
| 21 | + android:background="@android:color/transparent" | ||
| 22 | + android:layout_gravity="center" | ||
| 23 | + android:adjustViewBounds="true" | ||
| 24 | + tools:src="@drawable/brsdk_splash_land" | ||
| 25 | + /> | ||
| 26 | + | ||
| 27 | + <ImageView | ||
| 28 | + android:id="@+id/brClose" | ||
| 29 | + android:layout_width="32dp" | ||
| 30 | + android:layout_height="32dp" | ||
| 31 | + android:layout_gravity="end" | ||
| 32 | + android:padding="@dimen/brsdk_space_4dp" | ||
| 33 | + android:src="@drawable/brsdk_close_black50" | ||
| 34 | + /> | ||
| 35 | + | ||
| 36 | + </FrameLayout> | ||
| 37 | + | ||
| 38 | +</FrameLayout> |
config/sdk/668/res/layout/brsdk_identify.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + style="@style/brsdk_layout_root" | ||
| 6 | + tools:layout_marginStart="32dp" | ||
| 7 | + tools:layout_marginEnd="32dp" | ||
| 8 | + tools:layout_gravity="center" | ||
| 9 | + > | ||
| 10 | + | ||
| 11 | + <include | ||
| 12 | + android:layout_width="match_parent" | ||
| 13 | + android:layout_height="wrap_content" | ||
| 14 | + layout="@layout/brsdk_navigation" | ||
| 15 | + android:layout_marginTop="-4dp" | ||
| 16 | + /> | ||
| 17 | + | ||
| 18 | + <TextView | ||
| 19 | + android:id="@+id/brMessage" | ||
| 20 | + android:layout_width="match_parent" | ||
| 21 | + android:layout_height="wrap_content" | ||
| 22 | + android:textSize="@dimen/brsdk_font_10sp" | ||
| 23 | + android:textColor="@color/brsdk_white" | ||
| 24 | + android:text="@string/brsdk_identify_desc" | ||
| 25 | + android:includeFontPadding="false" | ||
| 26 | + android:layout_marginTop="-4dp" | ||
| 27 | + /> | ||
| 28 | + | ||
| 29 | + <LinearLayout | ||
| 30 | + android:layout_width="match_parent" | ||
| 31 | + android:layout_height="wrap_content" | ||
| 32 | + android:orientation="vertical" | ||
| 33 | + android:layout_marginTop="@dimen/brsdk_space_8dp" | ||
| 34 | + android:background="@drawable/brsdk_r4_white" | ||
| 35 | + android:gravity="center_vertical" | ||
| 36 | + > | ||
| 37 | + <LinearLayout | ||
| 38 | + android:layout_width="match_parent" | ||
| 39 | + android:layout_height="40dp" | ||
| 40 | + android:orientation="horizontal" | ||
| 41 | + android:gravity="center_vertical" | ||
| 42 | + > | ||
| 43 | + <ImageView | ||
| 44 | + android:layout_width="40dp" | ||
| 45 | + android:layout_height="40dp" | ||
| 46 | + android:src="@drawable/brsdk_account_white" | ||
| 47 | + android:tint="@color/brsdk_gray" | ||
| 48 | + android:padding="12dp" | ||
| 49 | + /> | ||
| 50 | + <EditText | ||
| 51 | + android:id="@+id/brFullName" | ||
| 52 | + android:layout_width="0dp" | ||
| 53 | + android:layout_weight="1" | ||
| 54 | + android:layout_height="match_parent" | ||
| 55 | + android:hint="@string/brsdk_identify_name" | ||
| 56 | + android:textColorHint="@color/brsdk_gray" | ||
| 57 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 58 | + android:background="@android:color/transparent" | ||
| 59 | + android:textColor="@color/brsdk_444444" | ||
| 60 | + android:includeFontPadding="false" | ||
| 61 | + android:maxLines="1" | ||
| 62 | + /> | ||
| 63 | + </LinearLayout> | ||
| 64 | + <View | ||
| 65 | + android:layout_width="match_parent" | ||
| 66 | + android:layout_height="0.5dp" | ||
| 67 | + android:background="@color/brsdk_gray50" | ||
| 68 | + /> | ||
| 69 | + <LinearLayout | ||
| 70 | + android:layout_width="match_parent" | ||
| 71 | + android:layout_height="40dp" | ||
| 72 | + android:orientation="horizontal" | ||
| 73 | + android:gravity="center_vertical" | ||
| 74 | + > | ||
| 75 | + <ImageView | ||
| 76 | + android:layout_width="40dp" | ||
| 77 | + android:layout_height="40dp" | ||
| 78 | + android:src="@drawable/brsdk_identify_white" | ||
| 79 | + android:tint="@color/brsdk_gray" | ||
| 80 | + android:padding="12dp" | ||
| 81 | + /> | ||
| 82 | + <EditText | ||
| 83 | + android:id="@+id/brIDCode" | ||
| 84 | + android:layout_width="0dp" | ||
| 85 | + android:layout_weight="1" | ||
| 86 | + android:layout_height="match_parent" | ||
| 87 | + android:hint="@string/brsdk_identify_code" | ||
| 88 | + android:textColorHint="@color/brsdk_gray" | ||
| 89 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 90 | + android:background="@android:color/transparent" | ||
| 91 | + android:textColor="@color/brsdk_444444" | ||
| 92 | + android:includeFontPadding="false" | ||
| 93 | + android:maxLines="1" | ||
| 94 | + /> | ||
| 95 | +<!-- android:inputType="number"--> | ||
| 96 | +<!-- android:digits="0123456789Xx"--> | ||
| 97 | + </LinearLayout> | ||
| 98 | + </LinearLayout> | ||
| 99 | + | ||
| 100 | + <TextView | ||
| 101 | + android:id="@+id/brSubmit" | ||
| 102 | + android:layout_width="match_parent" | ||
| 103 | + android:layout_height="40dp" | ||
| 104 | + android:textColor="@color/brsdk_white" | ||
| 105 | + android:textSize="@dimen/brsdk_font_18sp" | ||
| 106 | + android:text="@string/brsdk_button_submit" | ||
| 107 | + android:background="@drawable/brsdk_r4_theme" | ||
| 108 | + android:includeFontPadding="false" | ||
| 109 | + android:layout_marginTop="@dimen/brsdk_space_8dp" | ||
| 110 | + android:gravity="center" | ||
| 111 | + /> | ||
| 112 | + | ||
| 113 | +</LinearLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + android:orientation="horizontal" | ||
| 6 | + android:layout_width="match_parent" | ||
| 7 | + android:layout_height="36dp" | ||
| 8 | + android:gravity="center_vertical" | ||
| 9 | + > | ||
| 10 | + | ||
| 11 | + <ImageView | ||
| 12 | + android:layout_width="40dp" | ||
| 13 | + android:layout_height="match_parent" | ||
| 14 | + android:src="@drawable/brsdk_history_white" | ||
| 15 | + android:tint="@color/brsdk_gray" | ||
| 16 | + android:padding="10dp" | ||
| 17 | + /> | ||
| 18 | + <TextView | ||
| 19 | + android:id="@+id/brAccount" | ||
| 20 | + android:layout_width="0dp" | ||
| 21 | + android:layout_weight="1" | ||
| 22 | + android:layout_height="match_parent" | ||
| 23 | + android:textColor="@color/brsdk_666666" | ||
| 24 | + android:gravity="center_vertical" | ||
| 25 | + android:includeFontPadding="false" | ||
| 26 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 27 | + android:maxLines="1" | ||
| 28 | + tools:text="12345678900" | ||
| 29 | + /> | ||
| 30 | + <ImageView | ||
| 31 | + android:id="@+id/brDelete" | ||
| 32 | + android:layout_width="40dp" | ||
| 33 | + android:layout_height="match_parent" | ||
| 34 | + android:src="@drawable/brsdk_close_white" | ||
| 35 | + android:tint="@color/brsdk_gray" | ||
| 36 | + android:padding="12dp" | ||
| 37 | + /> | ||
| 38 | + | ||
| 39 | +</LinearLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<FrameLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + android:layout_width="match_parent" | ||
| 6 | + android:layout_height="wrap_content" | ||
| 7 | + tools:background="#80000000" | ||
| 8 | + > | ||
| 9 | + <LinearLayout | ||
| 10 | + android:id="@+id/brTptView" | ||
| 11 | + android:orientation="horizontal" | ||
| 12 | + android:layout_width="match_parent" | ||
| 13 | + android:layout_height="wrap_content" | ||
| 14 | + android:gravity="center_vertical" | ||
| 15 | + tools:visibility="visible" | ||
| 16 | + > | ||
| 17 | + | ||
| 18 | + <TextView | ||
| 19 | + android:id="@+id/brTptName" | ||
| 20 | + android:layout_width="wrap_content" | ||
| 21 | + android:layout_height="wrap_content" | ||
| 22 | + android:maxWidth="160dp" | ||
| 23 | + android:textSize="@dimen/brsdk_font_14sp" | ||
| 24 | + android:paddingTop="@dimen/brsdk_space_8dp" | ||
| 25 | + android:paddingBottom="@dimen/brsdk_space_8dp" | ||
| 26 | + android:textColor="@color/brsdk_white" | ||
| 27 | + android:maxLines="1" | ||
| 28 | + android:ellipsize="end" | ||
| 29 | + tools:text="小号1" | ||
| 30 | + /> | ||
| 31 | + <ImageView | ||
| 32 | + android:id="@+id/brTptWrite" | ||
| 33 | + android:layout_width="32dp" | ||
| 34 | + android:layout_height="32dp" | ||
| 35 | + android:src="@drawable/brsdk_edit_gray" | ||
| 36 | + android:padding="10dp" | ||
| 37 | + /> | ||
| 38 | + <View | ||
| 39 | + android:layout_width="0dp" | ||
| 40 | + android:layout_weight="1" | ||
| 41 | + android:layout_height="0dp" | ||
| 42 | + /> | ||
| 43 | + <TextView | ||
| 44 | + android:id="@+id/brTptEnter" | ||
| 45 | + android:layout_width="wrap_content" | ||
| 46 | + android:layout_height="wrap_content" | ||
| 47 | + android:textColor="@color/brsdk_theme" | ||
| 48 | + android:textSize="@dimen/brsdk_font_14sp" | ||
| 49 | + android:layout_marginStart="@dimen/brsdk_space_8dp" | ||
| 50 | + android:paddingTop="@dimen/brsdk_space_8dp" | ||
| 51 | + android:paddingBottom="@dimen/brsdk_space_8dp" | ||
| 52 | + android:text="@string/brsdk_enter_game" | ||
| 53 | + /> | ||
| 54 | + | ||
| 55 | + </LinearLayout> | ||
| 56 | + <LinearLayout | ||
| 57 | + android:id="@+id/brTptEditor" | ||
| 58 | + android:orientation="horizontal" | ||
| 59 | + android:layout_width="match_parent" | ||
| 60 | + android:layout_height="wrap_content" | ||
| 61 | + android:visibility="gone" | ||
| 62 | + tools:visibility="gone" | ||
| 63 | + > | ||
| 64 | + | ||
| 65 | + <EditText | ||
| 66 | + android:id="@+id/brTptInput" | ||
| 67 | + android:layout_width="0dp" | ||
| 68 | + android:layout_weight="1" | ||
| 69 | + android:layout_height="wrap_content" | ||
| 70 | + android:textSize="@dimen/brsdk_font_14sp" | ||
| 71 | + android:paddingTop="@dimen/brsdk_space_8dp" | ||
| 72 | + android:paddingBottom="@dimen/brsdk_space_8dp" | ||
| 73 | + android:textColor="@color/brsdk_white" | ||
| 74 | + android:maxLines="1" | ||
| 75 | + android:background="@null" | ||
| 76 | + tools:text="方法是大家" | ||
| 77 | + /> | ||
| 78 | + <TextView | ||
| 79 | + android:id="@+id/brTptCancel" | ||
| 80 | + android:layout_width="wrap_content" | ||
| 81 | + android:layout_height="wrap_content" | ||
| 82 | + android:textColor="@color/brsdk_white50" | ||
| 83 | + android:textSize="@dimen/brsdk_font_14sp" | ||
| 84 | + android:layout_marginStart="@dimen/brsdk_space_8dp" | ||
| 85 | + android:paddingTop="@dimen/brsdk_space_8dp" | ||
| 86 | + android:paddingBottom="@dimen/brsdk_space_8dp" | ||
| 87 | + android:text="@string/brsdk_cancel_text" | ||
| 88 | + /> | ||
| 89 | + <TextView | ||
| 90 | + android:id="@+id/brTptSubmit" | ||
| 91 | + android:layout_width="wrap_content" | ||
| 92 | + android:layout_height="wrap_content" | ||
| 93 | + android:textColor="@color/brsdk_theme" | ||
| 94 | + android:textSize="@dimen/brsdk_font_14sp" | ||
| 95 | + android:layout_marginStart="@dimen/brsdk_space_16dp" | ||
| 96 | + android:paddingTop="@dimen/brsdk_space_8dp" | ||
| 97 | + android:paddingBottom="@dimen/brsdk_space_8dp" | ||
| 98 | + android:text="@string/brsdk_button_submit" | ||
| 99 | + /> | ||
| 100 | + | ||
| 101 | + </LinearLayout> | ||
| 102 | + | ||
| 103 | + <ProgressBar | ||
| 104 | + android:id="@+id/brTptDelay" | ||
| 105 | + android:layout_width="match_parent" | ||
| 106 | + android:layout_height="2dp" | ||
| 107 | + style="@android:style/Widget.ProgressBar.Horizontal" | ||
| 108 | + android:progressDrawable="@drawable/brsdk_progress_theme50" | ||
| 109 | + android:layout_gravity="bottom" | ||
| 110 | + android:visibility="gone" | ||
| 111 | + tools:visibility="visible" | ||
| 112 | + android:progress="2" | ||
| 113 | + android:max="5" | ||
| 114 | + /> | ||
| 115 | +</FrameLayout> |
config/sdk/668/res/layout/brsdk_loading.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + android:background="@drawable/brsdk_r4_black50" | ||
| 6 | + android:layout_width="wrap_content" | ||
| 7 | + android:layout_height="wrap_content" | ||
| 8 | + android:paddingTop="@dimen/brsdk_space_16dp" | ||
| 9 | + android:paddingBottom="@dimen/brsdk_space_16dp" | ||
| 10 | + android:orientation="vertical" | ||
| 11 | + android:paddingStart="32dp" | ||
| 12 | + android:paddingEnd="32dp" | ||
| 13 | + android:gravity="center" | ||
| 14 | + android:layout_gravity="center" | ||
| 15 | + > | ||
| 16 | + | ||
| 17 | + <com.brsdk.android.widget.BRLoading | ||
| 18 | + android:id="@+id/brLoading" | ||
| 19 | + android:layout_width="32dp" | ||
| 20 | + android:layout_height="32dp" | ||
| 21 | + /> | ||
| 22 | + <TextView | ||
| 23 | + android:id="@+id/brMessage" | ||
| 24 | + android:layout_width="wrap_content" | ||
| 25 | + android:layout_height="wrap_content" | ||
| 26 | + android:textColor="@color/brsdk_theme" | ||
| 27 | + android:includeFontPadding="false" | ||
| 28 | + android:textSize="@dimen/brsdk_font_14sp" | ||
| 29 | + android:layout_marginTop="@dimen/brsdk_space_4dp" | ||
| 30 | + tools:text="初始化" | ||
| 31 | + /> | ||
| 32 | + | ||
| 33 | +</LinearLayout> |
config/sdk/668/res/layout/brsdk_login.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + style="@style/brsdk_layout_root" | ||
| 6 | + tools:layout_width="match_parent" | ||
| 7 | + tools:layout_marginStart="32dp" | ||
| 8 | + tools:layout_marginEnd="32dp" | ||
| 9 | + tools:layout_gravity="center" | ||
| 10 | + > | ||
| 11 | + | ||
| 12 | + <LinearLayout | ||
| 13 | + android:layout_width="match_parent" | ||
| 14 | + android:layout_height="wrap_content" | ||
| 15 | + android:orientation="horizontal" | ||
| 16 | + android:gravity="center_vertical" | ||
| 17 | + > | ||
| 18 | + <ImageView | ||
| 19 | + android:id="@+id/brLogo" | ||
| 20 | + android:layout_width="32dp" | ||
| 21 | + android:layout_height="32dp" | ||
| 22 | + android:src="@drawable/brsdk_logo_" | ||
| 23 | + /> | ||
| 24 | + <TextView | ||
| 25 | + android:id="@+id/brTitle" | ||
| 26 | + android:layout_width="wrap_content" | ||
| 27 | + android:layout_height="wrap_content" | ||
| 28 | + android:textColor="@color/brsdk_white" | ||
| 29 | + android:includeFontPadding="false" | ||
| 30 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 31 | + android:text="@string/brsdk_login_text" | ||
| 32 | + android:layout_marginStart="@dimen/brsdk_space_8dp" | ||
| 33 | + /> | ||
| 34 | + <View | ||
| 35 | + android:layout_width="0dp" | ||
| 36 | + android:layout_weight="1" | ||
| 37 | + android:layout_height="0dp" | ||
| 38 | + /> | ||
| 39 | + <TextView | ||
| 40 | + android:id="@+id/brLibrary" | ||
| 41 | + android:layout_width="wrap_content" | ||
| 42 | + android:layout_height="wrap_content" | ||
| 43 | + android:includeFontPadding="false" | ||
| 44 | + android:text="@string/brsdk_sdk_name" | ||
| 45 | + android:textColor="@color/brsdk_white" | ||
| 46 | + android:textSize="@dimen/brsdk_font_18sp" | ||
| 47 | + /> | ||
| 48 | + </LinearLayout> | ||
| 49 | + | ||
| 50 | + <LinearLayout | ||
| 51 | + android:layout_width="match_parent" | ||
| 52 | + android:layout_height="wrap_content" | ||
| 53 | + android:orientation="vertical" | ||
| 54 | + android:layout_marginTop="@dimen/brsdk_space_8dp" | ||
| 55 | + android:background="@drawable/brsdk_r4_white" | ||
| 56 | + android:gravity="center_vertical" | ||
| 57 | + > | ||
| 58 | + <LinearLayout | ||
| 59 | + android:layout_width="match_parent" | ||
| 60 | + android:layout_height="40dp" | ||
| 61 | + android:orientation="horizontal" | ||
| 62 | + android:gravity="center_vertical" | ||
| 63 | + > | ||
| 64 | + <ImageView | ||
| 65 | + android:layout_width="40dp" | ||
| 66 | + android:layout_height="40dp" | ||
| 67 | + android:src="@drawable/brsdk_account_white" | ||
| 68 | + android:tint="@color/brsdk_gray" | ||
| 69 | + android:padding="12dp" | ||
| 70 | + /> | ||
| 71 | + <EditText | ||
| 72 | + android:id="@+id/brAccount" | ||
| 73 | + android:layout_width="0dp" | ||
| 74 | + android:layout_weight="1" | ||
| 75 | + android:layout_height="match_parent" | ||
| 76 | + android:hint="@string/brsdk_account_hint" | ||
| 77 | + android:textColorHint="@color/brsdk_gray" | ||
| 78 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 79 | + android:background="@android:color/transparent" | ||
| 80 | + android:textColor="@color/brsdk_444444" | ||
| 81 | + android:includeFontPadding="false" | ||
| 82 | + android:importantForAutofill="no" | ||
| 83 | + android:maxLines="1" | ||
| 84 | + /> | ||
| 85 | + <ImageView | ||
| 86 | + android:id="@+id/brRecord" | ||
| 87 | + android:layout_width="40dp" | ||
| 88 | + android:layout_height="40dp" | ||
| 89 | + android:src="@drawable/brsdk_arrow_white" | ||
| 90 | + android:tint="@color/brsdk_gray" | ||
| 91 | + android:padding="14dp" | ||
| 92 | + /> | ||
| 93 | + </LinearLayout> | ||
| 94 | + <View | ||
| 95 | + android:layout_width="match_parent" | ||
| 96 | + android:layout_height="0.5dp" | ||
| 97 | + android:background="@color/brsdk_gray50" | ||
| 98 | + /> | ||
| 99 | + <LinearLayout | ||
| 100 | + android:layout_width="match_parent" | ||
| 101 | + android:layout_height="40dp" | ||
| 102 | + android:orientation="horizontal" | ||
| 103 | + android:gravity="center_vertical" | ||
| 104 | + > | ||
| 105 | + <ImageView | ||
| 106 | + android:layout_width="40dp" | ||
| 107 | + android:layout_height="40dp" | ||
| 108 | + android:src="@drawable/brsdk_locked_white" | ||
| 109 | + android:tint="@color/brsdk_gray" | ||
| 110 | + android:padding="12dp" | ||
| 111 | + /> | ||
| 112 | + <EditText | ||
| 113 | + android:id="@+id/brPassword" | ||
| 114 | + android:layout_width="0dp" | ||
| 115 | + android:layout_weight="1" | ||
| 116 | + android:layout_height="match_parent" | ||
| 117 | + android:hint="@string/brsdk_password_hint" | ||
| 118 | + android:textColorHint="@color/brsdk_gray" | ||
| 119 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 120 | + android:background="@android:color/transparent" | ||
| 121 | + android:textColor="@color/brsdk_444444" | ||
| 122 | + android:includeFontPadding="false" | ||
| 123 | + android:importantForAutofill="no" | ||
| 124 | + android:inputType="textPassword" | ||
| 125 | + android:maxLines="1" | ||
| 126 | + /> | ||
| 127 | + <!-- | ||
| 128 | + importantForAutofill: | ||
| 129 | + 禁止自动填充,防止自动保存提示带来的UI异常 | ||
| 130 | + --> | ||
| 131 | + <TextView | ||
| 132 | + android:id="@+id/brForgot" | ||
| 133 | + android:layout_width="wrap_content" | ||
| 134 | + android:layout_height="40dp" | ||
| 135 | + android:gravity="center" | ||
| 136 | + android:textColor="@color/brsdk_theme" | ||
| 137 | + android:includeFontPadding="false" | ||
| 138 | + android:text="@string/brsdk_password_forgot" | ||
| 139 | + android:textSize="@dimen/brsdk_font_12sp" | ||
| 140 | + android:paddingStart="@dimen/brsdk_space_8dp" | ||
| 141 | + android:paddingEnd="@dimen/brsdk_space_8dp" | ||
| 142 | + /> | ||
| 143 | + </LinearLayout> | ||
| 144 | + </LinearLayout> | ||
| 145 | + | ||
| 146 | + <TextView | ||
| 147 | + android:id="@+id/brSubmit" | ||
| 148 | + android:layout_width="match_parent" | ||
| 149 | + android:layout_height="40dp" | ||
| 150 | + android:textColor="@color/brsdk_white" | ||
| 151 | + android:textSize="@dimen/brsdk_font_18sp" | ||
| 152 | + android:text="@string/brsdk_login_submit" | ||
| 153 | + android:background="@drawable/brsdk_r4_theme" | ||
| 154 | + android:includeFontPadding="false" | ||
| 155 | + android:layout_marginTop="@dimen/brsdk_space_8dp" | ||
| 156 | + android:gravity="center" | ||
| 157 | + /> | ||
| 158 | + | ||
| 159 | + <LinearLayout | ||
| 160 | + android:layout_width="match_parent" | ||
| 161 | + android:layout_height="wrap_content" | ||
| 162 | + android:orientation="horizontal" | ||
| 163 | + android:layout_marginTop="@dimen/brsdk_space_12dp" | ||
| 164 | + > | ||
| 165 | + <View | ||
| 166 | + android:layout_width="0dp" | ||
| 167 | + android:layout_weight="1" | ||
| 168 | + android:layout_height="0dp" | ||
| 169 | + /> | ||
| 170 | + <TextView | ||
| 171 | + android:id="@+id/brRegPhone" | ||
| 172 | + android:layout_width="wrap_content" | ||
| 173 | + android:layout_height="wrap_content" | ||
| 174 | + android:textColor="@color/brsdk_theme" | ||
| 175 | + android:includeFontPadding="false" | ||
| 176 | + android:textSize="@dimen/brsdk_font_12sp" | ||
| 177 | + android:text="@string/brsdk_reg_phone" | ||
| 178 | + android:drawableTop="@drawable/brsdk_phone_white" | ||
| 179 | + android:drawablePadding="@dimen/brsdk_space_4dp" | ||
| 180 | + /> | ||
| 181 | + <View | ||
| 182 | + android:layout_width="0dp" | ||
| 183 | + android:layout_weight="2" | ||
| 184 | + android:layout_height="0dp" | ||
| 185 | + /> | ||
| 186 | + <TextView | ||
| 187 | + android:id="@+id/brRegAccount" | ||
| 188 | + android:layout_width="wrap_content" | ||
| 189 | + android:layout_height="wrap_content" | ||
| 190 | + android:textColor="@color/brsdk_theme" | ||
| 191 | + android:includeFontPadding="false" | ||
| 192 | + android:textSize="@dimen/brsdk_font_12sp" | ||
| 193 | + android:text="@string/brsdk_reg_account" | ||
| 194 | + android:drawableTop="@drawable/brsdk_account_white" | ||
| 195 | + android:drawablePadding="@dimen/brsdk_space_4dp" | ||
| 196 | + /> | ||
| 197 | + <View | ||
| 198 | + android:layout_width="0dp" | ||
| 199 | + android:layout_weight="2" | ||
| 200 | + android:layout_height="0dp" | ||
| 201 | + /> | ||
| 202 | + <TextView | ||
| 203 | + android:id="@+id/brRegQuick" | ||
| 204 | + android:layout_width="wrap_content" | ||
| 205 | + android:layout_height="wrap_content" | ||
| 206 | + android:textColor="@color/brsdk_theme" | ||
| 207 | + android:includeFontPadding="false" | ||
| 208 | + android:textSize="@dimen/brsdk_font_12sp" | ||
| 209 | + android:text="@string/brsdk_reg_quick" | ||
| 210 | + android:drawableTop="@drawable/brsdk_quick_white" | ||
| 211 | + android:drawablePadding="@dimen/brsdk_space_4dp" | ||
| 212 | + /> | ||
| 213 | + <View | ||
| 214 | + android:layout_width="0dp" | ||
| 215 | + android:layout_weight="1" | ||
| 216 | + android:layout_height="0dp" | ||
| 217 | + /> | ||
| 218 | + </LinearLayout> | ||
| 219 | + | ||
| 220 | + <TextView | ||
| 221 | + android:id="@+id/brProAdult" | ||
| 222 | + android:layout_width="wrap_content" | ||
| 223 | + android:layout_height="wrap_content" | ||
| 224 | + android:textColor="@color/brsdk_white" | ||
| 225 | + android:includeFontPadding="false" | ||
| 226 | + android:layout_marginTop="@dimen/brsdk_space_8dp" | ||
| 227 | + android:textSize="@dimen/brsdk_font_10sp" | ||
| 228 | + android:text="@string/brsdk_login_protocol" | ||
| 229 | + android:gravity="center" | ||
| 230 | + android:button="@null" | ||
| 231 | + /> | ||
| 232 | + <CheckBox | ||
| 233 | + android:id="@+id/brProtocol" | ||
| 234 | + android:layout_width="wrap_content" | ||
| 235 | + android:layout_height="wrap_content" | ||
| 236 | + android:textColor="@color/brsdk_white" | ||
| 237 | + android:includeFontPadding="false" | ||
| 238 | + android:textSize="@dimen/brsdk_font_10sp" | ||
| 239 | + android:drawableStart="@drawable/brsdk_white_cb_theme" | ||
| 240 | + android:layout_marginBottom="-4dp" | ||
| 241 | + android:drawablePadding="@dimen/brsdk_space_4dp" | ||
| 242 | + android:padding="@dimen/brsdk_space_4dp" | ||
| 243 | + android:text="@string/brsdk_reg_protocol" | ||
| 244 | + android:gravity="center" | ||
| 245 | + android:button="@null" | ||
| 246 | + /> | ||
| 247 | + | ||
| 248 | +</LinearLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + android:id="@+id/brDialogNavigation" | ||
| 6 | + android:layout_width="match_parent" | ||
| 7 | + android:layout_height="wrap_content" | ||
| 8 | + android:orientation="horizontal" | ||
| 9 | + android:gravity="center_vertical" | ||
| 10 | + android:paddingBottom="@dimen/brsdk_space_4dp" | ||
| 11 | + > | ||
| 12 | + <TextView | ||
| 13 | + android:id="@+id/brTitle" | ||
| 14 | + android:layout_width="wrap_content" | ||
| 15 | + android:layout_height="32dp" | ||
| 16 | + android:textColor="@color/brsdk_white" | ||
| 17 | + android:gravity="center_vertical" | ||
| 18 | + android:includeFontPadding="false" | ||
| 19 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 20 | + tools:text="这是标题" | ||
| 21 | + /> | ||
| 22 | + <View | ||
| 23 | + android:layout_width="0dp" | ||
| 24 | + android:layout_weight="1" | ||
| 25 | + android:layout_height="0dp" | ||
| 26 | + /> | ||
| 27 | + <ImageView | ||
| 28 | + android:id="@+id/brClose" | ||
| 29 | + android:layout_width="32dp" | ||
| 30 | + android:layout_height="32dp" | ||
| 31 | + android:src="@drawable/brsdk_close_white" | ||
| 32 | + android:layout_marginEnd="-6dp" | ||
| 33 | + android:padding="@dimen/brsdk_space_8dp" | ||
| 34 | + /> | ||
| 35 | +</LinearLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<CheckBox | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + android:orientation="horizontal" | ||
| 6 | + android:layout_width="match_parent" | ||
| 7 | + android:layout_height="wrap_content" | ||
| 8 | + android:paddingStart="@dimen/brsdk_space_8dp" | ||
| 9 | + android:paddingBottom="@dimen/brsdk_space_8dp" | ||
| 10 | + android:paddingEnd="@dimen/brsdk_space_8dp" | ||
| 11 | + android:textColor="@color/brsdk_white_theme" | ||
| 12 | + android:button="@drawable/brsdk_permission" | ||
| 13 | + android:includeFontPadding="false" | ||
| 14 | + android:gravity="top" | ||
| 15 | + tools:text="111111111\n22222222222222\n333333333" | ||
| 16 | + /> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<FrameLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + android:background="@android:color/transparent" | ||
| 6 | + android:layout_width="match_parent" | ||
| 7 | + android:layout_height="match_parent" | ||
| 8 | + tools:padding="32dp" | ||
| 9 | + > | ||
| 10 | + | ||
| 11 | + <FrameLayout | ||
| 12 | + android:layout_width="wrap_content" | ||
| 13 | + android:layout_height="wrap_content" | ||
| 14 | + android:layout_gravity="center" | ||
| 15 | + android:id="@+id/brLayout" | ||
| 16 | + > | ||
| 17 | + <LinearLayout | ||
| 18 | + android:layout_width="match_parent" | ||
| 19 | + android:layout_height="wrap_content" | ||
| 20 | + android:orientation="vertical" | ||
| 21 | + android:background="@drawable/brsdk_r8_black75" | ||
| 22 | + android:layout_gravity="center" | ||
| 23 | + > | ||
| 24 | + | ||
| 25 | + <TextView | ||
| 26 | + android:layout_width="match_parent" | ||
| 27 | + android:layout_height="wrap_content" | ||
| 28 | + android:paddingTop="@dimen/brsdk_space_16dp" | ||
| 29 | + android:paddingStart="@dimen/brsdk_space_16dp" | ||
| 30 | + android:paddingEnd="@dimen/brsdk_space_16dp" | ||
| 31 | + android:paddingBottom="@dimen/brsdk_space_8dp" | ||
| 32 | + android:textColor="@color/brsdk_white" | ||
| 33 | + android:includeFontPadding="false" | ||
| 34 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 35 | + android:text="@string/brsdk_permission" | ||
| 36 | + android:gravity="center" | ||
| 37 | + /> | ||
| 38 | + | ||
| 39 | + <ListView | ||
| 40 | + android:id="@+id/brPermission" | ||
| 41 | + android:layout_width="match_parent" | ||
| 42 | + android:layout_height="0dp" | ||
| 43 | + android:layout_weight="1" | ||
| 44 | + android:paddingStart="@dimen/brsdk_space_16dp" | ||
| 45 | + android:paddingEnd="@dimen/brsdk_space_16dp" | ||
| 46 | + android:overScrollMode="never" | ||
| 47 | + android:scrollbars="none" | ||
| 48 | + android:divider="@null" | ||
| 49 | + tools:listitem="@layout/brsdk_permission" | ||
| 50 | + /> | ||
| 51 | + | ||
| 52 | + <View | ||
| 53 | + android:layout_width="match_parent" | ||
| 54 | + android:layout_height="@dimen/brsdk_space_1dp" | ||
| 55 | + android:background="@drawable/brsdk_divider_h" | ||
| 56 | + /> | ||
| 57 | + <LinearLayout | ||
| 58 | + android:layout_width="match_parent" | ||
| 59 | + android:layout_height="wrap_content" | ||
| 60 | + android:orientation="horizontal" | ||
| 61 | + android:divider="@drawable/brsdk_divider_v" | ||
| 62 | + android:showDividers="middle" | ||
| 63 | + > | ||
| 64 | + <TextView | ||
| 65 | + android:id="@+id/brNegative" | ||
| 66 | + android:layout_width="0dp" | ||
| 67 | + android:layout_weight="1" | ||
| 68 | + android:layout_height="wrap_content" | ||
| 69 | + android:textColor="@color/brsdk_white" | ||
| 70 | + android:includeFontPadding="false" | ||
| 71 | + android:text="@string/brsdk_cancel_text" | ||
| 72 | + android:padding="@dimen/brsdk_space_12dp" | ||
| 73 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 74 | + android:gravity="center" | ||
| 75 | + /> | ||
| 76 | + <TextView | ||
| 77 | + android:id="@+id/brPositive" | ||
| 78 | + android:layout_width="0dp" | ||
| 79 | + android:layout_weight="1" | ||
| 80 | + android:layout_height="wrap_content" | ||
| 81 | + android:textColor="@color/brsdk_theme" | ||
| 82 | + android:includeFontPadding="false" | ||
| 83 | + android:text="@string/brsdk_exit_cancel" | ||
| 84 | + android:padding="@dimen/brsdk_space_12dp" | ||
| 85 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 86 | + android:gravity="center" | ||
| 87 | + /> | ||
| 88 | + </LinearLayout> | ||
| 89 | + </LinearLayout> | ||
| 90 | + </FrameLayout> | ||
| 91 | + | ||
| 92 | +</FrameLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<merge | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + android:orientation="vertical" | ||
| 5 | + > | ||
| 6 | + | ||
| 7 | + <LinearLayout | ||
| 8 | + android:layout_width="match_parent" | ||
| 9 | + android:layout_height="40dp" | ||
| 10 | + android:orientation="horizontal" | ||
| 11 | + android:gravity="center_vertical" | ||
| 12 | + > | ||
| 13 | + <ImageView | ||
| 14 | + android:id="@+id/brCountry" | ||
| 15 | + android:layout_width="40dp" | ||
| 16 | + android:layout_height="40dp" | ||
| 17 | + android:src="@drawable/brsdk_phone_white" | ||
| 18 | + android:tint="@color/brsdk_gray" | ||
| 19 | + android:padding="12dp" | ||
| 20 | + /> | ||
| 21 | + <EditText | ||
| 22 | + android:id="@+id/brAccount" | ||
| 23 | + android:layout_width="0dp" | ||
| 24 | + android:layout_weight="1" | ||
| 25 | + android:layout_height="match_parent" | ||
| 26 | + android:hint="@string/brsdk_input_phone" | ||
| 27 | + android:textColorHint="@color/brsdk_gray" | ||
| 28 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 29 | + android:background="@android:color/transparent" | ||
| 30 | + android:textColor="@color/brsdk_444444" | ||
| 31 | + android:includeFontPadding="false" | ||
| 32 | + android:importantForAutofill="no" | ||
| 33 | + android:inputType="phone" | ||
| 34 | + android:maxLines="1" | ||
| 35 | + /> | ||
| 36 | + </LinearLayout> | ||
| 37 | + <View | ||
| 38 | + android:layout_width="match_parent" | ||
| 39 | + android:layout_height="0.5dp" | ||
| 40 | + android:background="@color/brsdk_gray50" | ||
| 41 | + /> | ||
| 42 | + <LinearLayout | ||
| 43 | + android:layout_width="match_parent" | ||
| 44 | + android:layout_height="40dp" | ||
| 45 | + android:orientation="horizontal" | ||
| 46 | + android:gravity="center_vertical" | ||
| 47 | + > | ||
| 48 | + <ImageView | ||
| 49 | + android:layout_width="40dp" | ||
| 50 | + android:layout_height="40dp" | ||
| 51 | + android:src="@drawable/brsdk_safety_white" | ||
| 52 | + android:tint="@color/brsdk_gray" | ||
| 53 | + android:padding="12dp" | ||
| 54 | + /> | ||
| 55 | + <LinearLayout | ||
| 56 | + android:layout_width="match_parent" | ||
| 57 | + android:layout_height="match_parent" | ||
| 58 | + android:orientation="horizontal" | ||
| 59 | + > | ||
| 60 | + <EditText | ||
| 61 | + android:id="@+id/brSafety" | ||
| 62 | + android:layout_width="0dp" | ||
| 63 | + android:layout_weight="1" | ||
| 64 | + android:layout_height="match_parent" | ||
| 65 | + android:hint="@string/brsdk_safety_code" | ||
| 66 | + android:textColorHint="@color/brsdk_gray" | ||
| 67 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 68 | + android:background="@android:color/transparent" | ||
| 69 | + android:textColor="@color/brsdk_444444" | ||
| 70 | + android:includeFontPadding="false" | ||
| 71 | + android:inputType="number" | ||
| 72 | + android:maxLines="1" | ||
| 73 | + /> | ||
| 74 | + <View | ||
| 75 | + android:layout_width="0.5dp" | ||
| 76 | + android:layout_height="match_parent" | ||
| 77 | + android:background="@color/brsdk_gray50" | ||
| 78 | + /> | ||
| 79 | + <TextView | ||
| 80 | + android:id="@+id/brRequest" | ||
| 81 | + android:layout_width="wrap_content" | ||
| 82 | + android:layout_height="match_parent" | ||
| 83 | + android:textColor="@color/brsdk_theme" | ||
| 84 | + android:textSize="@dimen/brsdk_font_12sp" | ||
| 85 | + android:text="@string/brsdk_send_code" | ||
| 86 | + android:includeFontPadding="false" | ||
| 87 | + android:paddingStart="@dimen/brsdk_space_8dp" | ||
| 88 | + android:paddingEnd="@dimen/brsdk_space_8dp" | ||
| 89 | + android:gravity="center" | ||
| 90 | + /> | ||
| 91 | + </LinearLayout> | ||
| 92 | + </LinearLayout> | ||
| 93 | + | ||
| 94 | +</merge> |
config/sdk/668/res/layout/brsdk_protocol.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + android:orientation="vertical" | ||
| 6 | + android:layout_width="wrap_content" | ||
| 7 | + android:layout_height="wrap_content" | ||
| 8 | + android:background="@drawable/brsdk_r8_white" | ||
| 9 | + android:paddingTop="@dimen/brsdk_space_8dp" | ||
| 10 | + android:paddingBottom="@dimen/brsdk_space_12dp" | ||
| 11 | + android:paddingStart="@dimen/brsdk_space_16dp" | ||
| 12 | + android:paddingEnd="@dimen/brsdk_space_16dp" | ||
| 13 | + android:elevation="@dimen/brsdk_space_4dp" | ||
| 14 | + tools:layout_gravity="center" | ||
| 15 | + tools:layout_width="230dp" | ||
| 16 | + > | ||
| 17 | + | ||
| 18 | + <TextView | ||
| 19 | + android:id="@+id/brTitle" | ||
| 20 | + android:layout_width="match_parent" | ||
| 21 | + android:layout_height="wrap_content" | ||
| 22 | + android:textColor="#333333" | ||
| 23 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 24 | + android:gravity="center" | ||
| 25 | + android:paddingTop="8dp" | ||
| 26 | + android:paddingBottom="8dp" | ||
| 27 | + android:textStyle="bold" | ||
| 28 | + android:text="@string/brsdk_protocol_title" | ||
| 29 | + /> | ||
| 30 | + | ||
| 31 | + <ScrollView | ||
| 32 | + android:layout_width="match_parent" | ||
| 33 | + android:layout_height="0dp" | ||
| 34 | + android:layout_weight="1" | ||
| 35 | + android:minHeight="128dp" | ||
| 36 | + android:layout_marginBottom="@dimen/brsdk_space_8dp" | ||
| 37 | + android:overScrollMode="never" | ||
| 38 | + android:scrollbars="none" | ||
| 39 | + > | ||
| 40 | + <TextView | ||
| 41 | + android:id="@+id/brMessage" | ||
| 42 | + android:layout_width="match_parent" | ||
| 43 | + android:layout_height="wrap_content" | ||
| 44 | + android:paddingTop="@dimen/brsdk_space_4dp" | ||
| 45 | + android:paddingBottom="@dimen/brsdk_space_4dp" | ||
| 46 | + android:textColor="#444444" | ||
| 47 | + android:textSize="13dp" | ||
| 48 | + android:lineSpacingExtra="2dp" | ||
| 49 | + tools:text="在此特别提醒您在注册成为用户之前,请认真阅读本《隐私政策与用户协议》,确保您充分理解本协议中各条款。请您审慎阅读并选择接受或不接受本协议。您的注册、登录、使用等行为将视为对本协议的接受,并同意接受本协议各项条款的约束。" | ||
| 50 | + /> | ||
| 51 | + </ScrollView> | ||
| 52 | + | ||
| 53 | + <TextView | ||
| 54 | + android:id="@+id/brPositive" | ||
| 55 | + android:layout_width="match_parent" | ||
| 56 | + android:layout_height="wrap_content" | ||
| 57 | + android:textColor="@android:color/white" | ||
| 58 | + android:background="@drawable/brsdk_r4_theme" | ||
| 59 | + android:gravity="center" | ||
| 60 | + android:paddingTop="6dp" | ||
| 61 | + android:paddingBottom="6dp" | ||
| 62 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 63 | + tools:text="同意" | ||
| 64 | + /> | ||
| 65 | + | ||
| 66 | + <TextView | ||
| 67 | + android:id="@+id/brNegative" | ||
| 68 | + android:layout_width="match_parent" | ||
| 69 | + android:layout_height="wrap_content" | ||
| 70 | + android:textColor="@android:color/darker_gray" | ||
| 71 | + android:gravity="center" | ||
| 72 | + android:paddingTop="@dimen/brsdk_space_4dp" | ||
| 73 | + android:paddingBottom="@dimen/brsdk_space_4dp" | ||
| 74 | + android:layout_marginTop="@dimen/brsdk_space_8dp" | ||
| 75 | + android:textSize="@dimen/brsdk_font_12sp" | ||
| 76 | + tools:text="不同意" | ||
| 77 | + /> | ||
| 78 | + | ||
| 79 | +</LinearLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + style="@style/brsdk_layout_root" | ||
| 6 | + tools:layout_width="match_parent" | ||
| 7 | + tools:layout_marginStart="32dp" | ||
| 8 | + tools:layout_marginEnd="32dp" | ||
| 9 | + tools:layout_gravity="center" | ||
| 10 | + > | ||
| 11 | + | ||
| 12 | + <include | ||
| 13 | + android:layout_width="match_parent" | ||
| 14 | + android:layout_height="wrap_content" | ||
| 15 | + layout="@layout/brsdk_navigation" | ||
| 16 | + android:layout_marginTop="-6dp" | ||
| 17 | + /> | ||
| 18 | + | ||
| 19 | + <LinearLayout | ||
| 20 | + android:layout_width="match_parent" | ||
| 21 | + android:layout_height="wrap_content" | ||
| 22 | + android:orientation="vertical" | ||
| 23 | + android:background="@drawable/brsdk_r4_white" | ||
| 24 | + android:gravity="center_vertical" | ||
| 25 | + > | ||
| 26 | + <LinearLayout | ||
| 27 | + android:layout_width="match_parent" | ||
| 28 | + android:layout_height="40dp" | ||
| 29 | + android:orientation="horizontal" | ||
| 30 | + android:gravity="center_vertical" | ||
| 31 | + > | ||
| 32 | + <ImageView | ||
| 33 | + android:layout_width="40dp" | ||
| 34 | + android:layout_height="40dp" | ||
| 35 | + android:src="@drawable/brsdk_account_white" | ||
| 36 | + android:tint="@color/brsdk_gray" | ||
| 37 | + android:padding="12dp" | ||
| 38 | + /> | ||
| 39 | + <EditText | ||
| 40 | + android:id="@+id/brAccount" | ||
| 41 | + android:layout_width="0dp" | ||
| 42 | + android:layout_weight="1" | ||
| 43 | + android:layout_height="match_parent" | ||
| 44 | + android:hint="@string/brsdk_input_account" | ||
| 45 | + android:textColorHint="@color/brsdk_gray" | ||
| 46 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 47 | + android:background="@android:color/transparent" | ||
| 48 | + android:textColor="@color/brsdk_444444" | ||
| 49 | + android:includeFontPadding="false" | ||
| 50 | + android:importantForAutofill="no" | ||
| 51 | + android:maxLines="1" | ||
| 52 | + /> | ||
| 53 | + </LinearLayout> | ||
| 54 | + <View | ||
| 55 | + android:layout_width="match_parent" | ||
| 56 | + android:layout_height="0.5dp" | ||
| 57 | + android:background="@color/brsdk_gray50" | ||
| 58 | + /> | ||
| 59 | + <LinearLayout | ||
| 60 | + android:layout_width="match_parent" | ||
| 61 | + android:layout_height="40dp" | ||
| 62 | + android:orientation="horizontal" | ||
| 63 | + android:gravity="center_vertical" | ||
| 64 | + > | ||
| 65 | + <ImageView | ||
| 66 | + android:layout_width="40dp" | ||
| 67 | + android:layout_height="40dp" | ||
| 68 | + android:src="@drawable/brsdk_locked_white" | ||
| 69 | + android:tint="@color/brsdk_gray" | ||
| 70 | + android:padding="12dp" | ||
| 71 | + /> | ||
| 72 | + <EditText | ||
| 73 | + android:id="@+id/brPassword" | ||
| 74 | + android:layout_width="0dp" | ||
| 75 | + android:layout_weight="1" | ||
| 76 | + android:layout_height="match_parent" | ||
| 77 | + android:hint="@string/brsdk_password_hint" | ||
| 78 | + android:textColorHint="@color/brsdk_gray" | ||
| 79 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 80 | + android:background="@android:color/transparent" | ||
| 81 | + android:textColor="@color/brsdk_444444" | ||
| 82 | + android:includeFontPadding="false" | ||
| 83 | + android:inputType="textPassword" | ||
| 84 | + android:importantForAutofill="no" | ||
| 85 | + android:maxLines="1" | ||
| 86 | + /> | ||
| 87 | + <ImageView | ||
| 88 | + android:id="@+id/brSwitch" | ||
| 89 | + android:layout_width="40dp" | ||
| 90 | + android:layout_height="40dp" | ||
| 91 | + android:src="@drawable/brsdk_unlook_st_look" | ||
| 92 | + android:tint="@color/brsdk_gray" | ||
| 93 | + android:padding="8dp" | ||
| 94 | + /> | ||
| 95 | + </LinearLayout> | ||
| 96 | + <View | ||
| 97 | + android:layout_width="match_parent" | ||
| 98 | + android:layout_height="0.5dp" | ||
| 99 | + android:background="@color/brsdk_gray50" | ||
| 100 | + /> | ||
| 101 | + <LinearLayout | ||
| 102 | + android:layout_width="match_parent" | ||
| 103 | + android:layout_height="40dp" | ||
| 104 | + android:orientation="horizontal" | ||
| 105 | + android:gravity="center_vertical" | ||
| 106 | + > | ||
| 107 | + <ImageView | ||
| 108 | + android:layout_width="40dp" | ||
| 109 | + android:layout_height="40dp" | ||
| 110 | + android:src="@drawable/brsdk_locked_white" | ||
| 111 | + android:tint="@color/brsdk_gray" | ||
| 112 | + android:padding="12dp" | ||
| 113 | + /> | ||
| 114 | + <EditText | ||
| 115 | + android:id="@+id/brPassword2" | ||
| 116 | + android:layout_width="0dp" | ||
| 117 | + android:layout_weight="1" | ||
| 118 | + android:layout_height="match_parent" | ||
| 119 | + android:hint="@string/brsdk_password_affirm" | ||
| 120 | + android:textColorHint="@color/brsdk_gray" | ||
| 121 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 122 | + android:background="@android:color/transparent" | ||
| 123 | + android:textColor="@color/brsdk_444444" | ||
| 124 | + android:includeFontPadding="false" | ||
| 125 | + android:inputType="textPassword" | ||
| 126 | + android:importantForAutofill="no" | ||
| 127 | + android:maxLines="1" | ||
| 128 | + /> | ||
| 129 | + </LinearLayout> | ||
| 130 | + </LinearLayout> | ||
| 131 | + | ||
| 132 | + <include layout="@layout/brsdk_register" /> | ||
| 133 | + | ||
| 134 | +</LinearLayout> |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + style="@style/brsdk_layout_root" | ||
| 6 | + tools:layout_width="match_parent" | ||
| 7 | + tools:layout_marginStart="32dp" | ||
| 8 | + tools:layout_marginEnd="32dp" | ||
| 9 | + tools:layout_gravity="center" | ||
| 10 | + > | ||
| 11 | + | ||
| 12 | + <include | ||
| 13 | + android:layout_width="match_parent" | ||
| 14 | + android:layout_height="wrap_content" | ||
| 15 | + layout="@layout/brsdk_navigation" | ||
| 16 | + android:layout_marginTop="-6dp" | ||
| 17 | + /> | ||
| 18 | + | ||
| 19 | + <LinearLayout | ||
| 20 | + android:layout_width="match_parent" | ||
| 21 | + android:layout_height="wrap_content" | ||
| 22 | + android:orientation="vertical" | ||
| 23 | + android:background="@drawable/brsdk_r4_white" | ||
| 24 | + android:gravity="center_vertical" | ||
| 25 | + > | ||
| 26 | + <include layout="@layout/brsdk_phone_verify" /> | ||
| 27 | + <View | ||
| 28 | + android:layout_width="match_parent" | ||
| 29 | + android:layout_height="0.5dp" | ||
| 30 | + android:background="@color/brsdk_gray50" | ||
| 31 | + /> | ||
| 32 | + <LinearLayout | ||
| 33 | + android:layout_width="match_parent" | ||
| 34 | + android:layout_height="40dp" | ||
| 35 | + android:orientation="horizontal" | ||
| 36 | + android:gravity="center_vertical" | ||
| 37 | + > | ||
| 38 | + <ImageView | ||
| 39 | + android:layout_width="40dp" | ||
| 40 | + android:layout_height="40dp" | ||
| 41 | + android:src="@drawable/brsdk_locked_white" | ||
| 42 | + android:tint="@color/brsdk_gray" | ||
| 43 | + android:padding="12dp" | ||
| 44 | + /> | ||
| 45 | + <EditText | ||
| 46 | + android:id="@+id/brPassword" | ||
| 47 | + android:layout_width="0dp" | ||
| 48 | + android:layout_weight="1" | ||
| 49 | + android:layout_height="match_parent" | ||
| 50 | + android:hint="@string/brsdk_password_hint" | ||
| 51 | + android:textColorHint="@color/brsdk_gray" | ||
| 52 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 53 | + android:background="@android:color/transparent" | ||
| 54 | + android:textColor="@color/brsdk_444444" | ||
| 55 | + android:includeFontPadding="false" | ||
| 56 | + android:importantForAutofill="no" | ||
| 57 | + android:inputType="textPassword" | ||
| 58 | + android:maxLines="1" | ||
| 59 | + /> | ||
| 60 | + <ImageView | ||
| 61 | + android:id="@+id/brSwitch" | ||
| 62 | + android:layout_width="40dp" | ||
| 63 | + android:layout_height="40dp" | ||
| 64 | + android:src="@drawable/brsdk_unlook_st_look" | ||
| 65 | + android:tint="@color/brsdk_gray" | ||
| 66 | + android:padding="8dp" | ||
| 67 | + /> | ||
| 68 | + </LinearLayout> | ||
| 69 | + </LinearLayout> | ||
| 70 | + | ||
| 71 | + <include layout="@layout/brsdk_register" /> | ||
| 72 | + | ||
| 73 | +</LinearLayout> |
config/sdk/668/res/layout/brsdk_register.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<merge | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + android:orientation="vertical" | ||
| 5 | + > | ||
| 6 | + | ||
| 7 | + <TextView | ||
| 8 | + android:id="@+id/brRegister" | ||
| 9 | + android:layout_width="match_parent" | ||
| 10 | + android:layout_height="40dp" | ||
| 11 | + android:textColor="@color/brsdk_white" | ||
| 12 | + android:textSize="@dimen/brsdk_font_18sp" | ||
| 13 | + android:text="@string/brsdk_register_text" | ||
| 14 | + android:background="@drawable/brsdk_r4_theme" | ||
| 15 | + android:includeFontPadding="false" | ||
| 16 | + android:layout_marginTop="@dimen/brsdk_space_8dp" | ||
| 17 | + android:gravity="center" | ||
| 18 | + /> | ||
| 19 | + | ||
| 20 | + <CheckBox | ||
| 21 | + android:id="@+id/brProtocol" | ||
| 22 | + android:layout_width="wrap_content" | ||
| 23 | + android:layout_height="wrap_content" | ||
| 24 | + android:textColor="@color/brsdk_white" | ||
| 25 | + android:includeFontPadding="false" | ||
| 26 | + android:textSize="@dimen/brsdk_font_10sp" | ||
| 27 | + android:layout_marginTop="@dimen/brsdk_space_8dp" | ||
| 28 | + android:drawableStart="@drawable/brsdk_white_cb_theme" | ||
| 29 | + android:drawablePadding="@dimen/brsdk_space_4dp" | ||
| 30 | + android:padding="@dimen/brsdk_space_4dp" | ||
| 31 | + android:text="@string/brsdk_reg_protocol" | ||
| 32 | + android:layout_marginBottom="-4dp" | ||
| 33 | + android:gravity="center" | ||
| 34 | + android:button="@null" | ||
| 35 | + /> | ||
| 36 | + | ||
| 37 | +</merge> |
config/sdk/668/res/layout/brsdk_trumpets.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + style="@style/brsdk_layout_root" | ||
| 6 | + android:gravity="top" | ||
| 7 | + tools:layout_width="match_parent" | ||
| 8 | + tools:layout_marginStart="32dp" | ||
| 9 | + tools:layout_marginEnd="32dp" | ||
| 10 | + tools:layout_gravity="center" | ||
| 11 | + > | ||
| 12 | + | ||
| 13 | + <LinearLayout | ||
| 14 | + android:layout_width="match_parent" | ||
| 15 | + android:layout_height="wrap_content" | ||
| 16 | + android:orientation="horizontal" | ||
| 17 | + android:gravity="center_vertical" | ||
| 18 | + android:layout_marginTop="-8dp" | ||
| 19 | + > | ||
| 20 | + <TextView | ||
| 21 | + android:layout_width="wrap_content" | ||
| 22 | + android:layout_height="match_parent" | ||
| 23 | + android:textColor="@color/brsdk_white" | ||
| 24 | + android:includeFontPadding="false" | ||
| 25 | + android:gravity="center_vertical" | ||
| 26 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 27 | + android:text="@string/brsdk_auto_welcome" | ||
| 28 | + /> | ||
| 29 | + <TextView | ||
| 30 | + android:id="@+id/brAccount" | ||
| 31 | + android:layout_width="0dp" | ||
| 32 | + android:layout_height="match_parent" | ||
| 33 | + android:layout_weight="1" | ||
| 34 | + android:textColor="@color/brsdk_theme" | ||
| 35 | + android:includeFontPadding="false" | ||
| 36 | + android:gravity="center_vertical" | ||
| 37 | + android:layout_marginStart="@dimen/brsdk_space_4dp" | ||
| 38 | + android:textSize="@dimen/brsdk_font_16sp" | ||
| 39 | + android:ellipsize="end" | ||
| 40 | + android:maxLines="1" | ||
| 41 | + tools:text="17726342778" | ||
| 42 | + /> | ||
| 43 | + <TextView | ||
| 44 | + android:id="@+id/brSwitch" | ||
| 45 | + android:layout_width="wrap_content" | ||
| 46 | + android:layout_height="wrap_content" | ||
| 47 | + android:textColor="@color/brsdk_theme" | ||
| 48 | + android:includeFontPadding="false" | ||
| 49 | + android:textSize="@dimen/brsdk_font_14sp" | ||
| 50 | + android:text="@string/brsdk_switch_account" | ||
| 51 | + android:paddingTop="@dimen/brsdk_space_8dp" | ||
| 52 | + android:paddingBottom="@dimen/brsdk_space_8dp" | ||
| 53 | + /> | ||
| 54 | + </LinearLayout> | ||
| 55 | + | ||
| 56 | + <TextView | ||
| 57 | + android:id="@+id/brLoading" | ||
| 58 | + android:layout_width="wrap_content" | ||
| 59 | + android:layout_height="wrap_content" | ||
| 60 | + android:layout_gravity="center_horizontal" | ||
| 61 | + android:layout_marginTop="48dp" | ||
| 62 | + android:layout_marginBottom="48dp" | ||
| 63 | + android:text="@string/brsdk_loading_text" | ||
| 64 | + android:textColor="@color/brsdk_white50" | ||
| 65 | + android:textSize="@dimen/brsdk_font_12sp" | ||
| 66 | + /> | ||
| 67 | + | ||
| 68 | + <LinearLayout | ||
| 69 | + android:id="@+id/brDescribe" | ||
| 70 | + android:layout_width="match_parent" | ||
| 71 | + android:layout_height="wrap_content" | ||
| 72 | + android:orientation="horizontal" | ||
| 73 | + android:gravity="center_vertical" | ||
| 74 | + android:layout_marginBottom="@dimen/brsdk_space_4dp" | ||
| 75 | + android:layout_marginTop="2dp" | ||
| 76 | + android:visibility="gone" | ||
| 77 | + tools:visibility="visible" | ||
| 78 | + > | ||
| 79 | + <TextView | ||
| 80 | + android:layout_width="0dp" | ||
| 81 | + android:layout_weight="1" | ||
| 82 | + android:layout_height="wrap_content" | ||
| 83 | + android:text="@string/brsdk_trumpet_desc" | ||
| 84 | + android:textSize="@dimen/brsdk_font_12sp" | ||
| 85 | + android:maxLines="2" | ||
| 86 | + android:textColor="@color/brsdk_white50" | ||
| 87 | + /> | ||
| 88 | + <TextView | ||
| 89 | + android:id="@+id/brSubjoin" | ||
| 90 | + android:text="@string/brsdk_trumpet_add" | ||
| 91 | + android:layout_width="wrap_content" | ||
| 92 | + android:layout_height="wrap_content" | ||
| 93 | + android:layout_marginStart="@dimen/brsdk_space_8dp" | ||
| 94 | + android:layout_marginTop="@dimen/brsdk_space_4dp" | ||
| 95 | + android:layout_marginBottom="@dimen/brsdk_space_4dp" | ||
| 96 | + android:paddingTop="@dimen/brsdk_space_4dp" | ||
| 97 | + android:paddingBottom="@dimen/brsdk_space_4dp" | ||
| 98 | + android:paddingStart="@dimen/brsdk_space_8dp" | ||
| 99 | + android:paddingEnd="@dimen/brsdk_space_8dp" | ||
| 100 | + android:background="@drawable/brsdk_r4_theme" | ||
| 101 | + android:textColor="@color/brsdk_white" | ||
| 102 | + android:textSize="@dimen/brsdk_font_14sp" | ||
| 103 | + /> | ||
| 104 | + </LinearLayout> | ||
| 105 | + | ||
| 106 | + <LinearLayout | ||
| 107 | + android:id="@+id/brEditor" | ||
| 108 | + android:layout_width="match_parent" | ||
| 109 | + android:layout_height="wrap_content" | ||
| 110 | + android:orientation="horizontal" | ||
| 111 | + android:gravity="center_vertical" | ||
| 112 | + android:layout_marginBottom="@dimen/brsdk_space_4dp" | ||
| 113 | + android:layout_marginTop="2dp" | ||
| 114 | + android:visibility="gone" | ||
| 115 | + tools:visibility="visible" | ||
| 116 | + > | ||
| 117 | + <EditText | ||
| 118 | + android:id="@+id/brTrumpet" | ||
| 119 | + android:layout_width="0dp" | ||
| 120 | + android:layout_weight="1" | ||
| 121 | + android:layout_height="wrap_content" | ||
| 122 | + android:padding="@dimen/brsdk_space_4dp" | ||
| 123 | + android:hint="@string/brsdk_trumpet_hint" | ||
| 124 | + android:textColor="@color/brsdk_white" | ||
| 125 | + android:textColorHint="@color/brsdk_white50" | ||
| 126 | + android:textSize="@dimen/brsdk_font_14sp" | ||
| 127 | + android:background="@drawable/brsdk_br4_theme" | ||
| 128 | + tools:text="大师傅大势" | ||
| 129 | + /> | ||
| 130 | + <TextView | ||
| 131 | + android:id="@+id/brSubmit" | ||
| 132 | + android:text="@string/brsdk_trumpet_submit" | ||
| 133 | + android:layout_width="wrap_content" | ||
| 134 | + android:layout_height="wrap_content" | ||
| 135 | + android:layout_marginStart="@dimen/brsdk_space_16dp" | ||
| 136 | + android:layout_marginTop="@dimen/brsdk_space_4dp" | ||
| 137 | + android:layout_marginBottom="@dimen/brsdk_space_4dp" | ||
| 138 | + android:paddingTop="@dimen/brsdk_space_4dp" | ||
| 139 | + android:paddingBottom="@dimen/brsdk_space_4dp" | ||
| 140 | + android:paddingStart="@dimen/brsdk_space_8dp" | ||
| 141 | + android:paddingEnd="@dimen/brsdk_space_8dp" | ||
| 142 | + android:background="@drawable/brsdk_r4_theme" | ||
| 143 | + android:textColor="@color/brsdk_white" | ||
| 144 | + android:textSize="@dimen/brsdk_font_14sp" | ||
| 145 | + /> | ||
| 146 | + </LinearLayout> | ||
| 147 | + | ||
| 148 | + <ListView | ||
| 149 | + android:id="@+id/brTrumpets" | ||
| 150 | + android:layout_width="match_parent" | ||
| 151 | + android:layout_height="wrap_content" | ||
| 152 | + android:overScrollMode="never" | ||
| 153 | + android:scrollbars="none" | ||
| 154 | + android:visibility="gone" | ||
| 155 | + android:divider="@null" | ||
| 156 | + tools:visibility="visible" | ||
| 157 | + tools:listitem="@layout/brsdk_item_trumpet" | ||
| 158 | + /> | ||
| 159 | + | ||
| 160 | +</LinearLayout> |
config/sdk/668/res/layout/brsdk_webview.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<LinearLayout | ||
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" | ||
| 4 | + xmlns:tools="http://schemas.android.com/tools" | ||
| 5 | + style="@style/brsdk_layout_root" | ||
| 6 | + android:background="@color/brsdk_black75" | ||
| 7 | + android:layout_margin="0dp" | ||
| 8 | + android:gravity="top" | ||
| 9 | + tools:layout_height="480dp" | ||
| 10 | + tools:layout_width="match_parent" | ||
| 11 | + tools:layout_gravity="bottom" | ||
| 12 | + > | ||
| 13 | + | ||
| 14 | + <include | ||
| 15 | + android:layout_width="match_parent" | ||
| 16 | + android:layout_height="wrap_content" | ||
| 17 | + layout="@layout/brsdk_navigation" | ||
| 18 | + android:layout_marginTop="-6dp" | ||
| 19 | + /> | ||
| 20 | + | ||
| 21 | + <com.brsdk.android.widget.BRWebView | ||
| 22 | + android:id="@+id/brWebView" | ||
| 23 | + android:layout_width="match_parent" | ||
| 24 | + android:layout_height="match_parent" | ||
| 25 | + /> | ||
| 26 | + | ||
| 27 | +</LinearLayout> |
config/sdk/668/res/values/brsdk_values.xml
0 → 100644
| 1 | +<?xml version="1.0" encoding="utf-8"?> | ||
| 2 | +<resources> | ||
| 3 | + | ||
| 4 | + <string name="brsdk_notice_text">通知</string> | ||
| 5 | + <string name="brsdk_warning_text">警告</string> | ||
| 6 | + <string name="brsdk_error_text">错误</string> | ||
| 7 | + <string name="brsdk_params_empty">未设置关键参数</string> | ||
| 8 | + <string name="brsdk_close_text">关闭</string> | ||
| 9 | + <string name="brsdk_game_crashed">游戏已崩溃</string> | ||
| 10 | + <string name="brsdk_not_login">未登录</string> | ||
| 11 | + <string name="brsdk_mi_disconnect">无网络连接\\n小米设备请检测\\n是否允许该应用连接网络</string> | ||
| 12 | + <string name="brsdk_disconnect_error">无网络连接,请连接网络后重试</string> | ||
| 13 | + <string name="brsdk_retry_text">重试</string> | ||
| 14 | + <string name="brsdk_response_error">网络响应错误,请稍后重试</string> | ||
| 15 | + <string name="brsdk_analyze_failed">网络响应失败,请稍后重试</string> | ||
| 16 | + <string name="brsdk_protocol_title">用户隐私协议</string> | ||
| 17 | + <string name="brsdk_protocol_agree">同意</string> | ||
| 18 | + <string name="brsdk_protocol_deny">不同意</string> | ||
| 19 | + <string name="brsdk_error_unknown">未知错误,请稍后重试</string> | ||
| 20 | + <string name="brsdk_socket_timeout">网络连接超时,请稍后重试</string> | ||
| 21 | + <string name="brsdk_socket_error">网络连接错误,请稍后重试</string> | ||
| 22 | + <string name="brsdk_auto_welcome">欢迎回来,</string> | ||
| 23 | + <string name="brsdk_switch_account">切换账号</string> | ||
| 24 | + <string name="brsdk_login_hint">登录中</string> | ||
| 25 | + <string name="brsdk_login_text">用户登录</string> | ||
| 26 | + <string name="brsdk_sdk_name">泊然游戏</string> | ||
| 27 | + <string name="brsdk_account_hint">请输入账号/手机号</string> | ||
| 28 | + <string name="brsdk_password_hint">请输入登录密码</string> | ||
| 29 | + <string name="brsdk_password_forgot">忘记密码</string> | ||
| 30 | + <string name="brsdk_login_submit">登录</string> | ||
| 31 | + <string name="brsdk_login_protocol">本公司积极履行《防沉迷自律公约》</string> | ||
| 32 | + <string name="brsdk_reg_phone">手机注册</string> | ||
| 33 | + <string name="brsdk_reg_account">账号注册</string> | ||
| 34 | + <string name="brsdk_reg_quick">快速注册</string> | ||
| 35 | + <string name="brsdk_webview_error">浏览器发生错误</string> | ||
| 36 | + <string name="brsdk_find_password">找回密码</string> | ||
| 37 | + <string name="brsdk_input_phone">请输入手机号码</string> | ||
| 38 | + <string name="brsdk_safety_code">请输入验证码</string> | ||
| 39 | + <string name="brsdk_send_code">发送验证码</string> | ||
| 40 | + <string name="brsdk_resend_code">重新发送(%d)</string> | ||
| 41 | + <string name="brsdk_register_text">注册</string> | ||
| 42 | + <string name="brsdk_reg_protocol">我已阅读并同意《用户协议》和《隐私政策》</string> | ||
| 43 | + <string name="brsdk_update_title">游戏更新</string> | ||
| 44 | + <string name="brsdk_update_message">当前游戏有可用更新</string> | ||
| 45 | + <string name="brsdk_update_text">更新</string> | ||
| 46 | + <string name="brsdk_protocol_notify">请仔细阅读并勾选协议</string> | ||
| 47 | + <string name="brsdk_input_account">请输入账号</string> | ||
| 48 | + <string name="brsdk_password_affirm">请确认登录密码</string> | ||
| 49 | + <string name="brsdk_password_diff">确认密码不一致</string> | ||
| 50 | + <string name="brsdk_account_saved">账号信息已截图保存,请勿泄露</string> | ||
| 51 | + <string name="brsdk_bulletin_text">系统公告</string> | ||
| 52 | + <string name="brsdk_exit_message">确定退出当前游戏?</string> | ||
| 53 | + <string name="brsdk_exit_game">退出游戏</string> | ||
| 54 | + <string name="brsdk_exit_define">退出</string> | ||
| 55 | + <string name="brsdk_exit_cancel">继续</string> | ||
| 56 | + <string name="brsdk_identify_desc">根据国家新闻出版署《关于防止未成年人沉迷网络游戏的通知》及《关于进一步严格管理切实防止未成年人沉迷网络游戏的通知》的要求,请完成实名认证</string> | ||
| 57 | + <string name="brsdk_identify_name">请输入身份证姓名</string> | ||
| 58 | + <string name="brsdk_identify_code">请输入身份证号码</string> | ||
| 59 | + <string name="brsdk_button_submit">提交</string> | ||
| 60 | + <string name="brsdk_bind_identify">实名认证</string> | ||
| 61 | + <string name="brsdk_phone_desc">提示:用于手机登录和找回密码</string> | ||
| 62 | + <string name="brsdk_button_bind">绑定</string> | ||
| 63 | + <string name="brsdk_bind_phone">绑定手机</string> | ||
| 64 | + <string name="brsdk_loading_text">加载中</string> | ||
| 65 | + <string name="brsdk_trumpet_desc">每个账号可创建10个小号\n小号可修改不可删除</string> | ||
| 66 | + <string name="brsdk_trumpet_add">添加小号</string> | ||
| 67 | + <string name="brsdk_trumpet_hint">请输入小号名称</string> | ||
| 68 | + <string name="brsdk_trumpet_submit">确认添加</string> | ||
| 69 | + <string name="brsdk_enter_game">进入游戏</string> | ||
| 70 | + <string name="brsdk_cancel_text">取消</string> | ||
| 71 | + <string name="brsdk_trumpet_max">小号数量已达10个,无法继续创建</string> | ||
| 72 | + <string name="brsdk_trumpet_valid">小号只能由字母、数字、汉字组成</string> | ||
| 73 | + <string name="brsdk_submitting">正在提交</string> | ||
| 74 | + <string name="brsdk_error_retry">获取失败,点击重试</string> | ||
| 75 | + <string name="brsdk_request_success">请求成功</string> | ||
| 76 | + <string name="brsdk_trumpets_empty">没有小号</string> | ||
| 77 | + <string name="brsdk_order_create">创建订单</string> | ||
| 78 | + <string name="brsdk_user_logout">注销登录</string> | ||
| 79 | + <string name="brsdk_copy_success">复制成功</string> | ||
| 80 | + <string name="brsdk_checknet_title">网络诊断</string> | ||
| 81 | + <string name="brsdk_payment_title">游戏充值</string> | ||
| 82 | + <string name="brsdk_unknown_host">域名解析失败</string> | ||
| 83 | + <string name="brsdk_connect_timeout">网络连接超时</string> | ||
| 84 | + <string name="brsdk_noroute_tohost">无法连接远程地址</string> | ||
| 85 | + <string name="brsdk_ssl_error">连接被重置</string> | ||
| 86 | + <string name="brsdk_ssl_handshake">连接被拒绝</string> | ||
| 87 | + <string name="brsdk_ssl_protocol">连接协议异常</string> | ||
| 88 | + <string name="brsdk_interrupted_io">连接被关闭</string> | ||
| 89 | + <string name="brsdk_connect_error">连接失败</string> | ||
| 90 | + <string name="brsdk_detect_text">检测</string> | ||
| 91 | + <string name="brsdk_auto_failure">登录授权失败</string> | ||
| 92 | + <string name="brsdk_role_invalid">无效的角色信息</string> | ||
| 93 | + <string name="brsdk_auth_invalid">登录授权失败</string> | ||
| 94 | + <string name="brsdk_hide_floating">隐藏悬浮球</string> | ||
| 95 | + <string name="brsdk_floating_removed">悬浮球已隐藏,摇一摇手机重新显示</string> | ||
| 96 | + <string name="brsdk_floating_showing">悬浮球已显示</string> | ||
| 97 | + <string name="brsdk_permission">权限申请</string> | ||
| 98 | + <string name="brsdk_empty_permission">未选择允许申请的权限</string> | ||
| 99 | + | ||
| 100 | + <color name="brsdk_theme">#FF9800</color> | ||
| 101 | + <color name="brsdk_theme10">#1AFF9800</color> | ||
| 102 | + <color name="brsdk_theme50">#80FF9800</color> | ||
| 103 | + <color name="brsdk_black75">#BF000000</color> | ||
| 104 | + <color name="brsdk_black60">#99000000</color> | ||
| 105 | + <color name="brsdk_black50">@color/brsdk_black60</color> | ||
| 106 | + <color name="brsdk_gray">#CCCCCC</color> | ||
| 107 | + <color name="brsdk_gray50">#80CCCCCC</color> | ||
| 108 | + <color name="brsdk_white">#FFFFFF</color> | ||
| 109 | + <color name="brsdk_666666">#666666</color> | ||
| 110 | + <color name="brsdk_white90">#E6FFFFFF</color> | ||
| 111 | + <color name="brsdk_white50">#80FFFFFF</color> | ||
| 112 | + <color name="brsdk_444444">#444444</color> | ||
| 113 | + | ||
| 114 | + <dimen name="brsdk_space_16dp">16dp</dimen> | ||
| 115 | + <dimen name="brsdk_space_12dp">12dp</dimen> | ||
| 116 | + <dimen name="brsdk_space_8dp">8dp</dimen> | ||
| 117 | + <dimen name="brsdk_space_4dp">4dp</dimen> | ||
| 118 | + <dimen name="brsdk_space_1dp">1dp</dimen> | ||
| 119 | + | ||
| 120 | + <dimen name="brsdk_font_20sp">20sp</dimen> | ||
| 121 | + <dimen name="brsdk_font_18sp">18sp</dimen> | ||
| 122 | + <dimen name="brsdk_font_16sp">16sp</dimen> | ||
| 123 | + <dimen name="brsdk_font_14sp">14sp</dimen> | ||
| 124 | + <dimen name="brsdk_font_12sp">12sp</dimen> | ||
| 125 | + <dimen name="brsdk_font_10sp">10sp</dimen> | ||
| 126 | + | ||
| 127 | + <declare-styleable name="brsdkBRLoading"> | ||
| 128 | + <attr name="brsdkLdMinWidth" format="dimension|reference" /> | ||
| 129 | + <attr name="brsdkLdMaxWidth" format="dimension|reference" /> | ||
| 130 | + <attr name="brsdkLdMinHeight" format="dimension|reference" /> | ||
| 131 | + <attr name="brsdkLdMaxHeight" format="dimension|reference" /> | ||
| 132 | + <attr name="brsdkLdTintColor" format="color|reference" /> | ||
| 133 | + </declare-styleable> | ||
| 134 | + | ||
| 135 | + <style name="brsdk_dialog_base" parent="@android:style/Theme.Dialog"> | ||
| 136 | + <item name="android:windowFrame">@null</item><!-- 无WindowFrame框 --> | ||
| 137 | + <item name="android:windowNoTitle">true</item><!-- 显示Title --> | ||
| 138 | + <item name="android:windowFullscreen">true</item><!-- 布局会被全屏 --> | ||
| 139 | + <!-- false可渲染虚拟导航栏颜色,但是无法顶起布局 --> | ||
| 140 | + <item name="android:windowIsFloating">true</item><!-- 浮现在Activity上 --> | ||
| 141 | + <item name="android:backgroundDimAmount">0.5</item><!-- dialog区域外的背景透明度 --> | ||
| 142 | + <item name="android:windowIsTranslucent">true</item><!-- 半透明 --> | ||
| 143 | + <item name="android:backgroundDimEnabled">true</item><!-- dialog区域外开启半透明 --> | ||
| 144 | + <item name="android:background">@android:color/transparent</item><!-- dialog背景 --> | ||
| 145 | + <item name="android:windowSoftInputMode">stateHidden|adjustPan</item> | ||
| 146 | + <item name="android:windowBackground">@android:color/transparent</item><!-- 显示区域背景 --> | ||
| 147 | + <item name="android:windowContentOverlay">@null</item> | ||
| 148 | + <!-- 这里确定输入法是否顶起布局 --> | ||
| 149 | + <!--<item name="android:windowTranslucentStatus">true</item>--> | ||
| 150 | + <item name="android:windowDrawsSystemBarBackgrounds">true</item> | ||
| 151 | + <item name="android:statusBarColor">@color/brsdk_black50</item> | ||
| 152 | + </style> | ||
| 153 | + | ||
| 154 | + <style name="brsdk_layout_root"> | ||
| 155 | + <item name="android:orientation">vertical</item> | ||
| 156 | + <item name="android:layout_width">wrap_content</item> | ||
| 157 | + <item name="android:layout_height">wrap_content</item> | ||
| 158 | + <item name="android:padding">@dimen/brsdk_space_16dp</item> | ||
| 159 | + <item name="android:background">@drawable/brsdk_r8_black75</item> | ||
| 160 | + <item name="android:gravity">center</item> | ||
| 161 | + </style> | ||
| 162 | + | ||
| 163 | + <style name="brsdk_loading_view"> | ||
| 164 | + <item name="brsdkLdMinWidth">24dp</item> | ||
| 165 | + <item name="brsdkLdMaxWidth">24dp</item> | ||
| 166 | + <item name="brsdkLdMinHeight">24dp</item> | ||
| 167 | + <item name="brsdkLdMaxHeight">24dp</item> | ||
| 168 | + <item name="brsdkLdTintColor">@color/brsdk_theme</item> | ||
| 169 | + </style> | ||
| 170 | + | ||
| 171 | + <style name="brsdk_transparent" parent="@android:style/Theme.NoTitleBar.Fullscreen"> | ||
| 172 | + <item name="android:windowNoTitle">true</item> | ||
| 173 | + <item name="android:windowBackground">@android:color/transparent</item> | ||
| 174 | + <item name="android:windowIsTranslucent">true</item> | ||
| 175 | + <item name="android:background">@android:color/transparent</item> | ||
| 176 | + <item name="android:windowFrame">@null</item> | ||
| 177 | + <item name="android:title">null</item> | ||
| 178 | + <item name="android:windowIsFloating">true</item> | ||
| 179 | + <item name="android:windowContentOverlay">@null</item> | ||
| 180 | + <item name="android:fullBright">@android:color/transparent</item> | ||
| 181 | + <item name="android:fullDark">@android:color/transparent</item> | ||
| 182 | + <item name="android:topBright">@android:color/transparent</item> | ||
| 183 | + <item name="android:topDark">@android:color/transparent</item> | ||
| 184 | + <item name="android:borderlessButtonStyle">@android:color/transparent</item> | ||
| 185 | + <item name="android:backgroundDimEnabled">false</item> | ||
| 186 | + </style> | ||
| 187 | + | ||
| 188 | + <style name="brsdk_top_in_out"> | ||
| 189 | + <item name="android:windowEnterAnimation">@anim/brsdk_top_translate_alpha_in</item> | ||
| 190 | + <item name="android:windowExitAnimation">@anim/brsdk_top_translate_alpha_out</item> | ||
| 191 | + </style> | ||
| 192 | + | ||
| 193 | + <style name="brsdk_bottom_in_out"> | ||
| 194 | + <item name="android:windowEnterAnimation">@anim/brsdk_bottom_translate_alpha_in</item> | ||
| 195 | + <item name="android:windowExitAnimation">@anim/brsdk_bottom_translate_alpha_out</item> | ||
| 196 | + </style> | ||
| 197 | + | ||
| 198 | + <style name="brsdk_left_in_out"> | ||
| 199 | + <item name="android:windowEnterAnimation">@anim/brsdk_left_translate_alpha_in</item> | ||
| 200 | + <item name="android:windowExitAnimation">@anim/brsdk_left_translate_alpha_out</item> | ||
| 201 | + </style> | ||
| 202 | + | ||
| 203 | + <style name="brsdk_right_in_out"> | ||
| 204 | + <item name="android:windowEnterAnimation">@anim/brsdk_right_translate_alpha_in</item> | ||
| 205 | + <item name="android:windowExitAnimation">@anim/brsdk_right_translate_alpha_out</item> | ||
| 206 | + </style> | ||
| 207 | + | ||
| 208 | +</resources> |
config/sdk/668/sdk_script.py
0 → 100644
| 1 | +#!/usr/bin/env python | ||
| 2 | +# -*- coding: utf-8 -*- | ||
| 3 | + | ||
| 4 | +import argparse | ||
| 5 | +import os | ||
| 6 | +import os.path | ||
| 7 | +import json | ||
| 8 | +import os | ||
| 9 | +import os.path | ||
| 10 | +import codecs | ||
| 11 | +import sys | ||
| 12 | + | ||
| 13 | +import channel_action | ||
| 14 | + | ||
| 15 | + | ||
| 16 | +if __name__ == "__main__": | ||
| 17 | + | ||
| 18 | + parser = argparse.ArgumentParser(u"渠道专用操作") | ||
| 19 | + parser.add_argument('-c', '--channel', help=u"渠道参数", action="store", dest="channel") | ||
| 20 | + parser.add_argument('-d', '--decompileDir', help=u"反编译路径", action='store', dest="decompileDir") | ||
| 21 | + parser.add_argument('-p', '--packageName', help=u"应用包名", action='store', dest="packageName") | ||
| 22 | + | ||
| 23 | + args = parser.parse_args() | ||
| 24 | + | ||
| 25 | + # print(args) | ||
| 26 | + | ||
| 27 | + channel = json.loads(args.channel) | ||
| 28 | + | ||
| 29 | + channel_action.execute(channel, args.decompileDir, args.packageName) |
config/sdk/668/smali/XI/CA/XI/K0$XI.smali
0 → 100644
| 1 | +.class public final LXI/CA/XI/K0$XI; | ||
| 2 | +.super Landroid/os/Handler; | ||
| 3 | +.source "SourceFile" | ||
| 4 | + | ||
| 5 | + | ||
| 6 | +# annotations | ||
| 7 | +.annotation system Ldalvik/annotation/EnclosingMethod; | ||
| 8 | + value = LXI/CA/XI/K0;->XI()V | ||
| 9 | +.end annotation | ||
| 10 | + | ||
| 11 | +.annotation system Ldalvik/annotation/InnerClass; | ||
| 12 | + accessFlags = 0x9 | ||
| 13 | + name = null | ||
| 14 | +.end annotation | ||
| 15 | + | ||
| 16 | + | ||
| 17 | +# direct methods | ||
| 18 | +.method public constructor <init>(Landroid/os/Looper;)V | ||
| 19 | + .locals 0 | ||
| 20 | + | ||
| 21 | + invoke-direct {p0, p1}, Landroid/os/Handler;-><init>(Landroid/os/Looper;)V | ||
| 22 | + | ||
| 23 | + return-void | ||
| 24 | +.end method | ||
| 25 | + | ||
| 26 | + | ||
| 27 | +# virtual methods | ||
| 28 | +.method public handleMessage(Landroid/os/Message;)V | ||
| 29 | + .locals 2 | ||
| 30 | + | ||
| 31 | + iget v0, p1, Landroid/os/Message;->what:I | ||
| 32 | + | ||
| 33 | + const/16 v1, 0xb | ||
| 34 | + | ||
| 35 | + if-ne v0, v1, :cond_4 | ||
| 36 | + | ||
| 37 | + invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle; | ||
| 38 | + | ||
| 39 | + move-result-object v0 | ||
| 40 | + | ||
| 41 | + const-string v1, "type" | ||
| 42 | + | ||
| 43 | + invoke-virtual {v0, v1}, Landroid/os/Bundle;->getInt(Ljava/lang/String;)I | ||
| 44 | + | ||
| 45 | + move-result v0 | ||
| 46 | + | ||
| 47 | + invoke-virtual {p1}, Landroid/os/Message;->getData()Landroid/os/Bundle; | ||
| 48 | + | ||
| 49 | + move-result-object p1 | ||
| 50 | + | ||
| 51 | + const-string v1, "appid" | ||
| 52 | + | ||
| 53 | + invoke-virtual {p1, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String; | ||
| 54 | + | ||
| 55 | + move-result-object p1 | ||
| 56 | + | ||
| 57 | + .line 1 | ||
| 58 | + :try_start_0 | ||
| 59 | + sget-object v1, LXI/CA/XI/K0;->CV:LXI/CA/XI/XI; | ||
| 60 | + | ||
| 61 | + .line 2 | ||
| 62 | + invoke-virtual {v1, v0, p1}, LXI/CA/XI/XI;->XI(ILjava/lang/String;)Ljava/lang/String; | ||
| 63 | + | ||
| 64 | + move-result-object p1 | ||
| 65 | + | ||
| 66 | + if-eqz v0, :cond_2 | ||
| 67 | + | ||
| 68 | + const/4 v1, 0x1 | ||
| 69 | + | ||
| 70 | + if-eq v0, v1, :cond_1 | ||
| 71 | + | ||
| 72 | + const/4 v1, 0x2 | ||
| 73 | + | ||
| 74 | + if-eq v0, v1, :cond_0 | ||
| 75 | + | ||
| 76 | + goto :goto_0 | ||
| 77 | + | ||
| 78 | + :cond_0 | ||
| 79 | + if-eqz p1, :cond_3 | ||
| 80 | + | ||
| 81 | + .line 3 | ||
| 82 | + sput-object p1, LXI/CA/XI/K0;->cs:Ljava/lang/String; | ||
| 83 | + | ||
| 84 | + goto :goto_0 | ||
| 85 | + | ||
| 86 | + :cond_1 | ||
| 87 | + if-eqz p1, :cond_3 | ||
| 88 | + | ||
| 89 | + .line 4 | ||
| 90 | + sput-object p1, LXI/CA/XI/K0;->bs:Ljava/lang/String; | ||
| 91 | + | ||
| 92 | + goto :goto_0 | ||
| 93 | + | ||
| 94 | + .line 5 | ||
| 95 | + :cond_2 | ||
| 96 | + sput-object p1, LXI/CA/XI/K0;->WI:Ljava/lang/String; | ||
| 97 | + :try_end_0 | ||
| 98 | + .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 | ||
| 99 | + | ||
| 100 | + goto :goto_0 | ||
| 101 | + | ||
| 102 | + :catch_0 | ||
| 103 | + move-exception p1 | ||
| 104 | + | ||
| 105 | + .line 6 | ||
| 106 | + new-instance v0, Ljava/lang/StringBuilder; | ||
| 107 | + | ||
| 108 | + invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V | ||
| 109 | + | ||
| 110 | + const-string v1, "readException:" | ||
| 111 | + | ||
| 112 | + invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 113 | + | ||
| 114 | + invoke-virtual {p1}, Ljava/lang/Exception;->toString()Ljava/lang/String; | ||
| 115 | + | ||
| 116 | + move-result-object p1 | ||
| 117 | + | ||
| 118 | + invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 119 | + | ||
| 120 | + invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | ||
| 121 | + | ||
| 122 | + :cond_3 | ||
| 123 | + :goto_0 | ||
| 124 | + sget-object p1, LXI/CA/XI/K0;->XI:Landroid/content/Context; | ||
| 125 | + | ||
| 126 | + sget-object p1, LXI/CA/XI/K0;->vs:Ljava/lang/Object; | ||
| 127 | + | ||
| 128 | + monitor-enter p1 | ||
| 129 | + | ||
| 130 | + sget-object v0, LXI/CA/XI/K0;->vs:Ljava/lang/Object; | ||
| 131 | + | ||
| 132 | + :try_start_1 | ||
| 133 | + invoke-virtual {v0}, Ljava/lang/Object;->notify()V | ||
| 134 | + | ||
| 135 | + monitor-exit p1 | ||
| 136 | + | ||
| 137 | + goto :goto_1 | ||
| 138 | + | ||
| 139 | + :catchall_0 | ||
| 140 | + move-exception v0 | ||
| 141 | + | ||
| 142 | + monitor-exit p1 | ||
| 143 | + :try_end_1 | ||
| 144 | + .catchall {:try_start_1 .. :try_end_1} :catchall_0 | ||
| 145 | + | ||
| 146 | + throw v0 | ||
| 147 | + | ||
| 148 | + :cond_4 | ||
| 149 | + :goto_1 | ||
| 150 | + return-void | ||
| 151 | +.end method |
config/sdk/668/smali/XI/CA/XI/K0.smali
0 → 100644
| 1 | +.class public LXI/CA/XI/K0; | ||
| 2 | +.super Ljava/lang/Object; | ||
| 3 | +.source "SourceFile" | ||
| 4 | + | ||
| 5 | + | ||
| 6 | +# static fields | ||
| 7 | +.field public static CA:LXI/CA/XI/kM; = null | ||
| 8 | + | ||
| 9 | +.field public static volatile CV:LXI/CA/XI/XI; = null | ||
| 10 | + | ||
| 11 | +.field public static FL:Landroid/os/Handler; = null | ||
| 12 | + | ||
| 13 | +.field public static J9:Landroid/os/HandlerThread; = null | ||
| 14 | + | ||
| 15 | +.field public static K0:Z = false | ||
| 16 | + | ||
| 17 | +.field public static WI:Ljava/lang/String; | ||
| 18 | + | ||
| 19 | +.field public static XI:Landroid/content/Context; | ||
| 20 | + | ||
| 21 | +.field public static bs:Ljava/lang/String; | ||
| 22 | + | ||
| 23 | +.field public static cs:Ljava/lang/String; | ||
| 24 | + | ||
| 25 | +.field public static kM:LXI/CA/XI/kM; | ||
| 26 | + | ||
| 27 | +.field public static volatile q6:LXI/CA/XI/K0; | ||
| 28 | + | ||
| 29 | +.field public static vs:Ljava/lang/Object; | ||
| 30 | + | ||
| 31 | +.field public static xo:LXI/CA/XI/kM; | ||
| 32 | + | ||
| 33 | + | ||
| 34 | +# direct methods | ||
| 35 | +.method public static constructor <clinit>()V | ||
| 36 | + .locals 1 | ||
| 37 | + | ||
| 38 | + new-instance v0, Ljava/lang/Object; | ||
| 39 | + | ||
| 40 | + invoke-direct {v0}, Ljava/lang/Object;-><init>()V | ||
| 41 | + | ||
| 42 | + sput-object v0, LXI/CA/XI/K0;->vs:Ljava/lang/Object; | ||
| 43 | + | ||
| 44 | + return-void | ||
| 45 | +.end method | ||
| 46 | + | ||
| 47 | +.method public constructor <init>()V | ||
| 48 | + .locals 2 | ||
| 49 | + | ||
| 50 | + invoke-direct {p0}, Ljava/lang/Object;-><init>()V | ||
| 51 | + | ||
| 52 | + invoke-static {}, LXI/CA/XI/K0;->XI()V | ||
| 53 | + | ||
| 54 | + new-instance v0, LXI/CA/XI/XI; | ||
| 55 | + | ||
| 56 | + sget-object v1, LXI/CA/XI/K0;->XI:Landroid/content/Context; | ||
| 57 | + | ||
| 58 | + invoke-direct {v0, v1}, LXI/CA/XI/XI;-><init>(Landroid/content/Context;)V | ||
| 59 | + | ||
| 60 | + sput-object v0, LXI/CA/XI/K0;->CV:LXI/CA/XI/XI; | ||
| 61 | + | ||
| 62 | + return-void | ||
| 63 | +.end method | ||
| 64 | + | ||
| 65 | +.method public static K0()Z | ||
| 66 | + .locals 9 | ||
| 67 | + | ||
| 68 | + const-string v0, "0" | ||
| 69 | + | ||
| 70 | + sget-boolean v1, LXI/CA/XI/K0;->K0:Z | ||
| 71 | + | ||
| 72 | + if-nez v1, :cond_0 | ||
| 73 | + | ||
| 74 | + .line 1 | ||
| 75 | + sget v1, Landroid/os/Build$VERSION;->SDK_INT:I | ||
| 76 | + | ||
| 77 | + const/16 v2, 0x1c | ||
| 78 | + | ||
| 79 | + if-lt v1, v2, :cond_0 | ||
| 80 | + | ||
| 81 | + const-string v1, "persist.sys.identifierid.supported" | ||
| 82 | + | ||
| 83 | + :try_start_0 | ||
| 84 | + const-string v2, "android.os.SystemProperties" | ||
| 85 | + | ||
| 86 | + .line 2 | ||
| 87 | + invoke-static {v2}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class; | ||
| 88 | + | ||
| 89 | + move-result-object v2 | ||
| 90 | + :try_end_0 | ||
| 91 | + .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 | ||
| 92 | + .catchall {:try_start_0 .. :try_end_0} :catchall_0 | ||
| 93 | + | ||
| 94 | + const-string v3, "get" | ||
| 95 | + | ||
| 96 | + const/4 v4, 0x2 | ||
| 97 | + | ||
| 98 | + :try_start_1 | ||
| 99 | + new-array v5, v4, [Ljava/lang/Class; | ||
| 100 | + | ||
| 101 | + const-class v6, Ljava/lang/String; | ||
| 102 | + | ||
| 103 | + const/4 v7, 0x0 | ||
| 104 | + | ||
| 105 | + aput-object v6, v5, v7 | ||
| 106 | + | ||
| 107 | + const-class v6, Ljava/lang/String; | ||
| 108 | + | ||
| 109 | + const/4 v8, 0x1 | ||
| 110 | + | ||
| 111 | + aput-object v6, v5, v8 | ||
| 112 | + | ||
| 113 | + invoke-virtual {v2, v3, v5}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; | ||
| 114 | + | ||
| 115 | + move-result-object v3 | ||
| 116 | + | ||
| 117 | + new-array v4, v4, [Ljava/lang/Object; | ||
| 118 | + | ||
| 119 | + aput-object v1, v4, v7 | ||
| 120 | + | ||
| 121 | + aput-object v0, v4, v8 | ||
| 122 | + | ||
| 123 | + invoke-virtual {v3, v2, v4}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; | ||
| 124 | + | ||
| 125 | + move-result-object v1 | ||
| 126 | + | ||
| 127 | + check-cast v1, Ljava/lang/String; | ||
| 128 | + :try_end_1 | ||
| 129 | + .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0 | ||
| 130 | + .catchall {:try_start_1 .. :try_end_1} :catchall_0 | ||
| 131 | + | ||
| 132 | + move-object v0, v1 | ||
| 133 | + | ||
| 134 | + :catch_0 | ||
| 135 | + :catchall_0 | ||
| 136 | + const-string v1, "1" | ||
| 137 | + | ||
| 138 | + .line 3 | ||
| 139 | + invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z | ||
| 140 | + | ||
| 141 | + move-result v0 | ||
| 142 | + | ||
| 143 | + sput-boolean v0, LXI/CA/XI/K0;->K0:Z | ||
| 144 | + | ||
| 145 | + .line 4 | ||
| 146 | + :cond_0 | ||
| 147 | + sget-boolean v0, LXI/CA/XI/K0;->K0:Z | ||
| 148 | + | ||
| 149 | + return v0 | ||
| 150 | +.end method | ||
| 151 | + | ||
| 152 | +.method public static XI(Landroid/content/Context;)LXI/CA/XI/K0; | ||
| 153 | + .locals 2 | ||
| 154 | + | ||
| 155 | + invoke-static {}, LXI/CA/XI/K0;->K0()Z | ||
| 156 | + | ||
| 157 | + move-result v0 | ||
| 158 | + | ||
| 159 | + const/4 v1, 0x0 | ||
| 160 | + | ||
| 161 | + if-nez v0, :cond_0 | ||
| 162 | + | ||
| 163 | + return-object v1 | ||
| 164 | + | ||
| 165 | + :cond_0 | ||
| 166 | + sget-object v0, LXI/CA/XI/K0;->XI:Landroid/content/Context; | ||
| 167 | + | ||
| 168 | + if-nez v0, :cond_3 | ||
| 169 | + | ||
| 170 | + if-nez p0, :cond_1 | ||
| 171 | + | ||
| 172 | + return-object v1 | ||
| 173 | + | ||
| 174 | + :cond_1 | ||
| 175 | + invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context; | ||
| 176 | + | ||
| 177 | + move-result-object v0 | ||
| 178 | + | ||
| 179 | + if-nez v0, :cond_2 | ||
| 180 | + | ||
| 181 | + goto :goto_0 | ||
| 182 | + | ||
| 183 | + :cond_2 | ||
| 184 | + move-object p0, v0 | ||
| 185 | + | ||
| 186 | + :goto_0 | ||
| 187 | + sput-object p0, LXI/CA/XI/K0;->XI:Landroid/content/Context; | ||
| 188 | + | ||
| 189 | + :cond_3 | ||
| 190 | + sget-object p0, LXI/CA/XI/K0;->q6:LXI/CA/XI/K0; | ||
| 191 | + | ||
| 192 | + if-nez p0, :cond_5 | ||
| 193 | + | ||
| 194 | + const-class p0, LXI/CA/XI/K0; | ||
| 195 | + | ||
| 196 | + monitor-enter p0 | ||
| 197 | + | ||
| 198 | + :try_start_0 | ||
| 199 | + sget-object v0, LXI/CA/XI/K0;->q6:LXI/CA/XI/K0; | ||
| 200 | + | ||
| 201 | + if-nez v0, :cond_4 | ||
| 202 | + | ||
| 203 | + new-instance v0, LXI/CA/XI/K0; | ||
| 204 | + | ||
| 205 | + invoke-direct {v0}, LXI/CA/XI/K0;-><init>()V | ||
| 206 | + | ||
| 207 | + sput-object v0, LXI/CA/XI/K0;->q6:LXI/CA/XI/K0; | ||
| 208 | + | ||
| 209 | + :cond_4 | ||
| 210 | + monitor-exit p0 | ||
| 211 | + | ||
| 212 | + goto :goto_1 | ||
| 213 | + | ||
| 214 | + :catchall_0 | ||
| 215 | + move-exception v0 | ||
| 216 | + | ||
| 217 | + monitor-exit p0 | ||
| 218 | + :try_end_0 | ||
| 219 | + .catchall {:try_start_0 .. :try_end_0} :catchall_0 | ||
| 220 | + | ||
| 221 | + throw v0 | ||
| 222 | + | ||
| 223 | + :cond_5 | ||
| 224 | + :goto_1 | ||
| 225 | + sget-object p0, LXI/CA/XI/K0;->q6:LXI/CA/XI/K0; | ||
| 226 | + | ||
| 227 | + return-object p0 | ||
| 228 | +.end method | ||
| 229 | + | ||
| 230 | +.method public static XI()V | ||
| 231 | + .locals 2 | ||
| 232 | + | ||
| 233 | + new-instance v0, Landroid/os/HandlerThread; | ||
| 234 | + | ||
| 235 | + const-string v1, "SqlWorkThread" | ||
| 236 | + | ||
| 237 | + invoke-direct {v0, v1}, Landroid/os/HandlerThread;-><init>(Ljava/lang/String;)V | ||
| 238 | + | ||
| 239 | + sput-object v0, LXI/CA/XI/K0;->J9:Landroid/os/HandlerThread; | ||
| 240 | + | ||
| 241 | + invoke-virtual {v0}, Landroid/os/HandlerThread;->start()V | ||
| 242 | + | ||
| 243 | + new-instance v0, LXI/CA/XI/K0$XI; | ||
| 244 | + | ||
| 245 | + sget-object v1, LXI/CA/XI/K0;->J9:Landroid/os/HandlerThread; | ||
| 246 | + | ||
| 247 | + invoke-virtual {v1}, Landroid/os/HandlerThread;->getLooper()Landroid/os/Looper; | ||
| 248 | + | ||
| 249 | + move-result-object v1 | ||
| 250 | + | ||
| 251 | + invoke-direct {v0, v1}, LXI/CA/XI/K0$XI;-><init>(Landroid/os/Looper;)V | ||
| 252 | + | ||
| 253 | + sput-object v0, LXI/CA/XI/K0;->FL:Landroid/os/Handler; | ||
| 254 | + | ||
| 255 | + return-void | ||
| 256 | +.end method | ||
| 257 | + | ||
| 258 | +.method public static declared-synchronized XI(Landroid/content/Context;ILjava/lang/String;)V | ||
| 259 | + .locals 6 | ||
| 260 | + | ||
| 261 | + const-class v0, LXI/CA/XI/K0; | ||
| 262 | + | ||
| 263 | + monitor-enter v0 | ||
| 264 | + | ||
| 265 | + :try_start_0 | ||
| 266 | + invoke-virtual {p0}, Landroid/content/Context;->getPackageName()Ljava/lang/String; | ||
| 267 | + | ||
| 268 | + move-result-object v1 | ||
| 269 | + | ||
| 270 | + const/4 v2, 0x1 | ||
| 271 | + | ||
| 272 | + const/4 v3, 0x0 | ||
| 273 | + | ||
| 274 | + if-eqz p1, :cond_4 | ||
| 275 | + | ||
| 276 | + const/16 v4, 0x1c | ||
| 277 | + | ||
| 278 | + const/16 v5, 0x1d | ||
| 279 | + | ||
| 280 | + if-eq p1, v2, :cond_2 | ||
| 281 | + | ||
| 282 | + const/4 v2, 0x2 | ||
| 283 | + | ||
| 284 | + if-eq p1, v2, :cond_0 | ||
| 285 | + | ||
| 286 | + goto/16 :goto_1 | ||
| 287 | + | ||
| 288 | + :cond_0 | ||
| 289 | + sget-object p1, LXI/CA/XI/K0;->CA:LXI/CA/XI/kM; | ||
| 290 | + | ||
| 291 | + if-nez p1, :cond_5 | ||
| 292 | + | ||
| 293 | + sget p1, Landroid/os/Build$VERSION;->SDK_INT:I | ||
| 294 | + | ||
| 295 | + if-lt p1, v5, :cond_1 | ||
| 296 | + | ||
| 297 | + new-instance p1, LXI/CA/XI/kM; | ||
| 298 | + | ||
| 299 | + sget-object p2, LXI/CA/XI/K0;->q6:LXI/CA/XI/K0; | ||
| 300 | + | ||
| 301 | + invoke-direct {p1, p2, v2, v1}, LXI/CA/XI/kM;-><init>(LXI/CA/XI/K0;ILjava/lang/String;)V | ||
| 302 | + | ||
| 303 | + sput-object p1, LXI/CA/XI/K0;->CA:LXI/CA/XI/kM; | ||
| 304 | + | ||
| 305 | + invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver; | ||
| 306 | + | ||
| 307 | + move-result-object p0 | ||
| 308 | + | ||
| 309 | + new-instance p1, Ljava/lang/StringBuilder; | ||
| 310 | + | ||
| 311 | + invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V | ||
| 312 | + | ||
| 313 | + const-string p2, "content://com.vivo.vms.IdProvider/IdentifierId/" | ||
| 314 | + | ||
| 315 | + invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 316 | + | ||
| 317 | + invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 318 | + | ||
| 319 | + invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | ||
| 320 | + | ||
| 321 | + move-result-object p1 | ||
| 322 | + | ||
| 323 | + invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri; | ||
| 324 | + | ||
| 325 | + move-result-object p1 | ||
| 326 | + | ||
| 327 | + sget-object p2, LXI/CA/XI/K0;->CA:LXI/CA/XI/kM; | ||
| 328 | + | ||
| 329 | + :goto_0 | ||
| 330 | + invoke-virtual {p0, p1, v3, p2}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;)V | ||
| 331 | + | ||
| 332 | + goto/16 :goto_1 | ||
| 333 | + | ||
| 334 | + :cond_1 | ||
| 335 | + if-ne p1, v4, :cond_5 | ||
| 336 | + | ||
| 337 | + new-instance p1, LXI/CA/XI/kM; | ||
| 338 | + | ||
| 339 | + sget-object v1, LXI/CA/XI/K0;->q6:LXI/CA/XI/K0; | ||
| 340 | + | ||
| 341 | + invoke-direct {p1, v1, v2, p2}, LXI/CA/XI/kM;-><init>(LXI/CA/XI/K0;ILjava/lang/String;)V | ||
| 342 | + | ||
| 343 | + sput-object p1, LXI/CA/XI/K0;->CA:LXI/CA/XI/kM; | ||
| 344 | + | ||
| 345 | + invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver; | ||
| 346 | + | ||
| 347 | + move-result-object p0 | ||
| 348 | + | ||
| 349 | + new-instance p1, Ljava/lang/StringBuilder; | ||
| 350 | + | ||
| 351 | + invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V | ||
| 352 | + | ||
| 353 | + const-string v1, "content://com.vivo.vms.IdProvider/IdentifierId/AAID_" | ||
| 354 | + | ||
| 355 | + invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 356 | + | ||
| 357 | + invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 358 | + | ||
| 359 | + invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | ||
| 360 | + | ||
| 361 | + move-result-object p1 | ||
| 362 | + | ||
| 363 | + invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri; | ||
| 364 | + | ||
| 365 | + move-result-object p1 | ||
| 366 | + | ||
| 367 | + sget-object p2, LXI/CA/XI/K0;->CA:LXI/CA/XI/kM; | ||
| 368 | + | ||
| 369 | + goto :goto_0 | ||
| 370 | + | ||
| 371 | + :cond_2 | ||
| 372 | + sget-object p1, LXI/CA/XI/K0;->xo:LXI/CA/XI/kM; | ||
| 373 | + | ||
| 374 | + if-nez p1, :cond_5 | ||
| 375 | + | ||
| 376 | + sget p1, Landroid/os/Build$VERSION;->SDK_INT:I | ||
| 377 | + | ||
| 378 | + if-lt p1, v5, :cond_3 | ||
| 379 | + | ||
| 380 | + new-instance p1, LXI/CA/XI/kM; | ||
| 381 | + | ||
| 382 | + sget-object p2, LXI/CA/XI/K0;->q6:LXI/CA/XI/K0; | ||
| 383 | + | ||
| 384 | + invoke-direct {p1, p2, v2, v1}, LXI/CA/XI/kM;-><init>(LXI/CA/XI/K0;ILjava/lang/String;)V | ||
| 385 | + | ||
| 386 | + sput-object p1, LXI/CA/XI/K0;->xo:LXI/CA/XI/kM; | ||
| 387 | + | ||
| 388 | + invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver; | ||
| 389 | + | ||
| 390 | + move-result-object p0 | ||
| 391 | + | ||
| 392 | + new-instance p1, Ljava/lang/StringBuilder; | ||
| 393 | + | ||
| 394 | + invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V | ||
| 395 | + | ||
| 396 | + const-string p2, "content://com.vivo.vms.IdProvider/IdentifierId/VAID_" | ||
| 397 | + | ||
| 398 | + invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 399 | + | ||
| 400 | + invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 401 | + | ||
| 402 | + invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | ||
| 403 | + | ||
| 404 | + move-result-object p1 | ||
| 405 | + | ||
| 406 | + invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri; | ||
| 407 | + | ||
| 408 | + move-result-object p1 | ||
| 409 | + | ||
| 410 | + sget-object p2, LXI/CA/XI/K0;->xo:LXI/CA/XI/kM; | ||
| 411 | + | ||
| 412 | + goto :goto_0 | ||
| 413 | + | ||
| 414 | + :cond_3 | ||
| 415 | + if-ne p1, v4, :cond_5 | ||
| 416 | + | ||
| 417 | + new-instance p1, LXI/CA/XI/kM; | ||
| 418 | + | ||
| 419 | + sget-object v1, LXI/CA/XI/K0;->q6:LXI/CA/XI/K0; | ||
| 420 | + | ||
| 421 | + invoke-direct {p1, v1, v2, p2}, LXI/CA/XI/kM;-><init>(LXI/CA/XI/K0;ILjava/lang/String;)V | ||
| 422 | + | ||
| 423 | + sput-object p1, LXI/CA/XI/K0;->xo:LXI/CA/XI/kM; | ||
| 424 | + | ||
| 425 | + invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver; | ||
| 426 | + | ||
| 427 | + move-result-object p0 | ||
| 428 | + | ||
| 429 | + new-instance p1, Ljava/lang/StringBuilder; | ||
| 430 | + | ||
| 431 | + invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V | ||
| 432 | + | ||
| 433 | + const-string v1, "content://com.vivo.vms.IdProvider/IdentifierId/VAID_" | ||
| 434 | + | ||
| 435 | + invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 436 | + | ||
| 437 | + invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 438 | + | ||
| 439 | + invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | ||
| 440 | + | ||
| 441 | + move-result-object p1 | ||
| 442 | + | ||
| 443 | + invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri; | ||
| 444 | + | ||
| 445 | + move-result-object p1 | ||
| 446 | + | ||
| 447 | + sget-object p2, LXI/CA/XI/K0;->xo:LXI/CA/XI/kM; | ||
| 448 | + | ||
| 449 | + goto :goto_0 | ||
| 450 | + | ||
| 451 | + :cond_4 | ||
| 452 | + sget-object p1, LXI/CA/XI/K0;->kM:LXI/CA/XI/kM; | ||
| 453 | + | ||
| 454 | + if-nez p1, :cond_5 | ||
| 455 | + | ||
| 456 | + new-instance p1, LXI/CA/XI/kM; | ||
| 457 | + | ||
| 458 | + sget-object p2, LXI/CA/XI/K0;->q6:LXI/CA/XI/K0; | ||
| 459 | + | ||
| 460 | + const/4 v1, 0x0 | ||
| 461 | + | ||
| 462 | + invoke-direct {p1, p2, v3, v1}, LXI/CA/XI/kM;-><init>(LXI/CA/XI/K0;ILjava/lang/String;)V | ||
| 463 | + | ||
| 464 | + sput-object p1, LXI/CA/XI/K0;->kM:LXI/CA/XI/kM; | ||
| 465 | + | ||
| 466 | + invoke-virtual {p0}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver; | ||
| 467 | + | ||
| 468 | + move-result-object p0 | ||
| 469 | + | ||
| 470 | + const-string p1, "content://com.vivo.vms.IdProvider/IdentifierId/OAID" | ||
| 471 | + | ||
| 472 | + invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri; | ||
| 473 | + | ||
| 474 | + move-result-object p1 | ||
| 475 | + | ||
| 476 | + sget-object p2, LXI/CA/XI/K0;->kM:LXI/CA/XI/kM; | ||
| 477 | + | ||
| 478 | + invoke-virtual {p0, p1, v2, p2}, Landroid/content/ContentResolver;->registerContentObserver(Landroid/net/Uri;ZLandroid/database/ContentObserver;)V | ||
| 479 | + :try_end_0 | ||
| 480 | + .catchall {:try_start_0 .. :try_end_0} :catchall_0 | ||
| 481 | + | ||
| 482 | + :cond_5 | ||
| 483 | + :goto_1 | ||
| 484 | + monitor-exit v0 | ||
| 485 | + | ||
| 486 | + return-void | ||
| 487 | + | ||
| 488 | + :catchall_0 | ||
| 489 | + move-exception p0 | ||
| 490 | + | ||
| 491 | + monitor-exit v0 | ||
| 492 | + | ||
| 493 | + throw p0 | ||
| 494 | +.end method | ||
| 495 | + | ||
| 496 | + | ||
| 497 | +# virtual methods | ||
| 498 | +.method public K0(ILjava/lang/String;)V | ||
| 499 | + .locals 3 | ||
| 500 | + | ||
| 501 | + sget-object v0, LXI/CA/XI/K0;->FL:Landroid/os/Handler; | ||
| 502 | + | ||
| 503 | + invoke-virtual {v0}, Landroid/os/Handler;->obtainMessage()Landroid/os/Message; | ||
| 504 | + | ||
| 505 | + move-result-object v0 | ||
| 506 | + | ||
| 507 | + const/16 v1, 0xb | ||
| 508 | + | ||
| 509 | + iput v1, v0, Landroid/os/Message;->what:I | ||
| 510 | + | ||
| 511 | + new-instance v1, Landroid/os/Bundle; | ||
| 512 | + | ||
| 513 | + invoke-direct {v1}, Landroid/os/Bundle;-><init>()V | ||
| 514 | + | ||
| 515 | + const-string v2, "type" | ||
| 516 | + | ||
| 517 | + invoke-virtual {v1, v2, p1}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V | ||
| 518 | + | ||
| 519 | + const/4 v2, 0x1 | ||
| 520 | + | ||
| 521 | + if-eq p1, v2, :cond_0 | ||
| 522 | + | ||
| 523 | + const/4 v2, 0x2 | ||
| 524 | + | ||
| 525 | + if-ne p1, v2, :cond_1 | ||
| 526 | + | ||
| 527 | + :cond_0 | ||
| 528 | + const-string p1, "appid" | ||
| 529 | + | ||
| 530 | + invoke-virtual {v1, p1, p2}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V | ||
| 531 | + | ||
| 532 | + :cond_1 | ||
| 533 | + invoke-virtual {v0, v1}, Landroid/os/Message;->setData(Landroid/os/Bundle;)V | ||
| 534 | + | ||
| 535 | + sget-object p1, LXI/CA/XI/K0;->FL:Landroid/os/Handler; | ||
| 536 | + | ||
| 537 | + invoke-virtual {p1, v0}, Landroid/os/Handler;->sendMessage(Landroid/os/Message;)Z | ||
| 538 | + | ||
| 539 | + return-void | ||
| 540 | +.end method | ||
| 541 | + | ||
| 542 | +.method public final XI(ILjava/lang/String;)V | ||
| 543 | + .locals 3 | ||
| 544 | + | ||
| 545 | + sget-object v0, LXI/CA/XI/K0;->vs:Ljava/lang/Object; | ||
| 546 | + | ||
| 547 | + monitor-enter v0 | ||
| 548 | + | ||
| 549 | + :try_start_0 | ||
| 550 | + invoke-virtual {p0, p1, p2}, LXI/CA/XI/K0;->K0(ILjava/lang/String;)V | ||
| 551 | + | ||
| 552 | + invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J | ||
| 553 | + :try_end_0 | ||
| 554 | + .catchall {:try_start_0 .. :try_end_0} :catchall_0 | ||
| 555 | + | ||
| 556 | + :try_start_1 | ||
| 557 | + sget-object p1, LXI/CA/XI/K0;->vs:Ljava/lang/Object; | ||
| 558 | + | ||
| 559 | + const-wide/16 v1, 0x7d0 | ||
| 560 | + | ||
| 561 | + invoke-virtual {p1, v1, v2}, Ljava/lang/Object;->wait(J)V | ||
| 562 | + :try_end_1 | ||
| 563 | + .catch Ljava/lang/InterruptedException; {:try_start_1 .. :try_end_1} :catch_0 | ||
| 564 | + .catchall {:try_start_1 .. :try_end_1} :catchall_0 | ||
| 565 | + | ||
| 566 | + :catch_0 | ||
| 567 | + :try_start_2 | ||
| 568 | + invoke-static {}, Landroid/os/SystemClock;->uptimeMillis()J | ||
| 569 | + | ||
| 570 | + monitor-exit v0 | ||
| 571 | + | ||
| 572 | + return-void | ||
| 573 | + | ||
| 574 | + :catchall_0 | ||
| 575 | + move-exception p1 | ||
| 576 | + | ||
| 577 | + monitor-exit v0 | ||
| 578 | + :try_end_2 | ||
| 579 | + .catchall {:try_start_2 .. :try_end_2} :catchall_0 | ||
| 580 | + | ||
| 581 | + throw p1 | ||
| 582 | +.end method |
config/sdk/668/smali/XI/CA/XI/XI.smali
0 → 100644
| 1 | +.class public LXI/CA/XI/XI; | ||
| 2 | +.super Ljava/lang/Object; | ||
| 3 | +.source "SourceFile" | ||
| 4 | + | ||
| 5 | + | ||
| 6 | +# instance fields | ||
| 7 | +.field public XI:Landroid/content/Context; | ||
| 8 | + | ||
| 9 | + | ||
| 10 | +# direct methods | ||
| 11 | +.method public constructor <init>(Landroid/content/Context;)V | ||
| 12 | + .locals 0 | ||
| 13 | + | ||
| 14 | + invoke-direct {p0}, Ljava/lang/Object;-><init>()V | ||
| 15 | + | ||
| 16 | + iput-object p1, p0, LXI/CA/XI/XI;->XI:Landroid/content/Context; | ||
| 17 | + | ||
| 18 | + return-void | ||
| 19 | +.end method | ||
| 20 | + | ||
| 21 | + | ||
| 22 | +# virtual methods | ||
| 23 | +.method public XI(ILjava/lang/String;)Ljava/lang/String; | ||
| 24 | + .locals 7 | ||
| 25 | + | ||
| 26 | + const/4 v0, 0x0 | ||
| 27 | + | ||
| 28 | + if-eqz p1, :cond_3 | ||
| 29 | + | ||
| 30 | + const/4 v1, 0x1 | ||
| 31 | + | ||
| 32 | + if-eq p1, v1, :cond_2 | ||
| 33 | + | ||
| 34 | + const/4 v1, 0x2 | ||
| 35 | + | ||
| 36 | + if-eq p1, v1, :cond_1 | ||
| 37 | + | ||
| 38 | + const/4 p2, 0x4 | ||
| 39 | + | ||
| 40 | + if-eq p1, p2, :cond_0 | ||
| 41 | + | ||
| 42 | + move-object v2, v0 | ||
| 43 | + | ||
| 44 | + goto :goto_2 | ||
| 45 | + | ||
| 46 | + :cond_0 | ||
| 47 | + const-string p1, "content://com.vivo.vms.IdProvider/IdentifierId/OAIDSTATUS" | ||
| 48 | + | ||
| 49 | + goto :goto_1 | ||
| 50 | + | ||
| 51 | + :cond_1 | ||
| 52 | + new-instance p1, Ljava/lang/StringBuilder; | ||
| 53 | + | ||
| 54 | + invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V | ||
| 55 | + | ||
| 56 | + const-string v1, "content://com.vivo.vms.IdProvider/IdentifierId/AAID_" | ||
| 57 | + | ||
| 58 | + goto :goto_0 | ||
| 59 | + | ||
| 60 | + :cond_2 | ||
| 61 | + new-instance p1, Ljava/lang/StringBuilder; | ||
| 62 | + | ||
| 63 | + invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V | ||
| 64 | + | ||
| 65 | + const-string v1, "content://com.vivo.vms.IdProvider/IdentifierId/VAID_" | ||
| 66 | + | ||
| 67 | + :goto_0 | ||
| 68 | + invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 69 | + | ||
| 70 | + invoke-virtual {p1, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 71 | + | ||
| 72 | + invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | ||
| 73 | + | ||
| 74 | + move-result-object p1 | ||
| 75 | + | ||
| 76 | + goto :goto_1 | ||
| 77 | + | ||
| 78 | + :cond_3 | ||
| 79 | + const-string p1, "content://com.vivo.vms.IdProvider/IdentifierId/OAID" | ||
| 80 | + | ||
| 81 | + :goto_1 | ||
| 82 | + invoke-static {p1}, Landroid/net/Uri;->parse(Ljava/lang/String;)Landroid/net/Uri; | ||
| 83 | + | ||
| 84 | + move-result-object p1 | ||
| 85 | + | ||
| 86 | + move-object v2, p1 | ||
| 87 | + | ||
| 88 | + :goto_2 | ||
| 89 | + :try_start_0 | ||
| 90 | + iget-object p1, p0, LXI/CA/XI/XI;->XI:Landroid/content/Context; | ||
| 91 | + | ||
| 92 | + invoke-virtual {p1}, Landroid/content/Context;->getContentResolver()Landroid/content/ContentResolver; | ||
| 93 | + | ||
| 94 | + move-result-object v1 | ||
| 95 | + | ||
| 96 | + const/4 v3, 0x0 | ||
| 97 | + | ||
| 98 | + const/4 v4, 0x0 | ||
| 99 | + | ||
| 100 | + const/4 v5, 0x0 | ||
| 101 | + | ||
| 102 | + const/4 v6, 0x0 | ||
| 103 | + | ||
| 104 | + invoke-virtual/range {v1 .. v6}, Landroid/content/ContentResolver;->query(Landroid/net/Uri;[Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor; | ||
| 105 | + | ||
| 106 | + move-result-object p1 | ||
| 107 | + :try_end_0 | ||
| 108 | + .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 | ||
| 109 | + .catchall {:try_start_0 .. :try_end_0} :catchall_1 | ||
| 110 | + | ||
| 111 | + if-eqz p1, :cond_5 | ||
| 112 | + | ||
| 113 | + :try_start_1 | ||
| 114 | + invoke-interface {p1}, Landroid/database/Cursor;->moveToNext()Z | ||
| 115 | + | ||
| 116 | + move-result p2 | ||
| 117 | + | ||
| 118 | + if-eqz p2, :cond_4 | ||
| 119 | + | ||
| 120 | + const-string p2, "value" | ||
| 121 | + | ||
| 122 | + invoke-interface {p1, p2}, Landroid/database/Cursor;->getColumnIndex(Ljava/lang/String;)I | ||
| 123 | + | ||
| 124 | + move-result p2 | ||
| 125 | + | ||
| 126 | + invoke-interface {p1, p2}, Landroid/database/Cursor;->getString(I)Ljava/lang/String; | ||
| 127 | + | ||
| 128 | + move-result-object p2 | ||
| 129 | + | ||
| 130 | + move-object v0, p2 | ||
| 131 | + | ||
| 132 | + :cond_4 | ||
| 133 | + invoke-interface {p1}, Landroid/database/Cursor;->close()V | ||
| 134 | + :try_end_1 | ||
| 135 | + .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_1 | ||
| 136 | + .catchall {:try_start_1 .. :try_end_1} :catchall_0 | ||
| 137 | + | ||
| 138 | + goto :goto_3 | ||
| 139 | + | ||
| 140 | + :catchall_0 | ||
| 141 | + move-exception p2 | ||
| 142 | + | ||
| 143 | + goto :goto_4 | ||
| 144 | + | ||
| 145 | + :cond_5 | ||
| 146 | + :goto_3 | ||
| 147 | + if-eqz p1, :cond_7 | ||
| 148 | + | ||
| 149 | + goto :goto_5 | ||
| 150 | + | ||
| 151 | + :catchall_1 | ||
| 152 | + move-exception p2 | ||
| 153 | + | ||
| 154 | + move-object p1, v0 | ||
| 155 | + | ||
| 156 | + :goto_4 | ||
| 157 | + if-eqz p1, :cond_6 | ||
| 158 | + | ||
| 159 | + invoke-interface {p1}, Landroid/database/Cursor;->close()V | ||
| 160 | + | ||
| 161 | + :cond_6 | ||
| 162 | + throw p2 | ||
| 163 | + | ||
| 164 | + :catch_0 | ||
| 165 | + move-object p1, v0 | ||
| 166 | + | ||
| 167 | + :catch_1 | ||
| 168 | + if-eqz p1, :cond_7 | ||
| 169 | + | ||
| 170 | + :goto_5 | ||
| 171 | + invoke-interface {p1}, Landroid/database/Cursor;->close()V | ||
| 172 | + | ||
| 173 | + :cond_7 | ||
| 174 | + return-object v0 | ||
| 175 | +.end method |
config/sdk/668/smali/XI/CA/XI/kM.smali
0 → 100644
| 1 | +.class public LXI/CA/XI/kM; | ||
| 2 | +.super Landroid/database/ContentObserver; | ||
| 3 | +.source "SourceFile" | ||
| 4 | + | ||
| 5 | + | ||
| 6 | +# instance fields | ||
| 7 | +.field public K0:I | ||
| 8 | + | ||
| 9 | +.field public XI:Ljava/lang/String; | ||
| 10 | + | ||
| 11 | +.field public kM:LXI/CA/XI/K0; | ||
| 12 | + | ||
| 13 | + | ||
| 14 | +# direct methods | ||
| 15 | +.method public constructor <init>(LXI/CA/XI/K0;ILjava/lang/String;)V | ||
| 16 | + .locals 1 | ||
| 17 | + | ||
| 18 | + const/4 v0, 0x0 | ||
| 19 | + | ||
| 20 | + invoke-direct {p0, v0}, Landroid/database/ContentObserver;-><init>(Landroid/os/Handler;)V | ||
| 21 | + | ||
| 22 | + iput-object p1, p0, LXI/CA/XI/kM;->kM:LXI/CA/XI/K0; | ||
| 23 | + | ||
| 24 | + iput p2, p0, LXI/CA/XI/kM;->K0:I | ||
| 25 | + | ||
| 26 | + iput-object p3, p0, LXI/CA/XI/kM;->XI:Ljava/lang/String; | ||
| 27 | + | ||
| 28 | + return-void | ||
| 29 | +.end method | ||
| 30 | + | ||
| 31 | + | ||
| 32 | +# virtual methods | ||
| 33 | +.method public onChange(Z)V | ||
| 34 | + .locals 2 | ||
| 35 | + | ||
| 36 | + iget-object p1, p0, LXI/CA/XI/kM;->kM:LXI/CA/XI/K0; | ||
| 37 | + | ||
| 38 | + if-eqz p1, :cond_0 | ||
| 39 | + | ||
| 40 | + iget v0, p0, LXI/CA/XI/kM;->K0:I | ||
| 41 | + | ||
| 42 | + iget-object v1, p0, LXI/CA/XI/kM;->XI:Ljava/lang/String; | ||
| 43 | + | ||
| 44 | + invoke-virtual {p1, v0, v1}, LXI/CA/XI/K0;->K0(ILjava/lang/String;)V | ||
| 45 | + | ||
| 46 | + :cond_0 | ||
| 47 | + return-void | ||
| 48 | +.end method |
config/sdk/668/smali/XI/K0/XI/XI$K0$K0.smali
0 → 100644
| 1 | +.class public LXI/K0/XI/XI$K0$K0; | ||
| 2 | +.super Ljava/lang/Object; | ||
| 3 | +.source "SourceFile" | ||
| 4 | + | ||
| 5 | + | ||
| 6 | +# annotations | ||
| 7 | +.annotation system Ldalvik/annotation/EnclosingClass; | ||
| 8 | + value = LXI/K0/XI/XI$K0; | ||
| 9 | +.end annotation | ||
| 10 | + | ||
| 11 | +.annotation system Ldalvik/annotation/InnerClass; | ||
| 12 | + accessFlags = 0x9 | ||
| 13 | + name = "K0" | ||
| 14 | +.end annotation | ||
| 15 | + | ||
| 16 | + | ||
| 17 | +# static fields | ||
| 18 | +.field public static final XI:LXI/K0/XI/XI$K0; | ||
| 19 | + | ||
| 20 | + | ||
| 21 | +# direct methods | ||
| 22 | +.method public static constructor <clinit>()V | ||
| 23 | + .locals 1 | ||
| 24 | + | ||
| 25 | + new-instance v0, LXI/K0/XI/XI$K0; | ||
| 26 | + | ||
| 27 | + invoke-direct {v0}, LXI/K0/XI/XI$K0;-><init>()V | ||
| 28 | + | ||
| 29 | + sput-object v0, LXI/K0/XI/XI$K0$K0;->XI:LXI/K0/XI/XI$K0; | ||
| 30 | + | ||
| 31 | + return-void | ||
| 32 | +.end method |
config/sdk/668/smali/XI/K0/XI/XI$K0$XI.smali
0 → 100644
| 1 | +.class public LXI/K0/XI/XI$K0$XI; | ||
| 2 | +.super Ljava/lang/Object; | ||
| 3 | +.source "SourceFile" | ||
| 4 | + | ||
| 5 | +# interfaces | ||
| 6 | +.implements Landroid/content/ServiceConnection; | ||
| 7 | + | ||
| 8 | + | ||
| 9 | +# annotations | ||
| 10 | +.annotation system Ldalvik/annotation/EnclosingClass; | ||
| 11 | + value = LXI/K0/XI/XI$K0; | ||
| 12 | +.end annotation | ||
| 13 | + | ||
| 14 | +.annotation system Ldalvik/annotation/InnerClass; | ||
| 15 | + accessFlags = 0x1 | ||
| 16 | + name = null | ||
| 17 | +.end annotation | ||
| 18 | + | ||
| 19 | + | ||
| 20 | +# instance fields | ||
| 21 | +.field public final synthetic XI:LXI/K0/XI/XI$K0; | ||
| 22 | + | ||
| 23 | + | ||
| 24 | +# direct methods | ||
| 25 | +.method public constructor <init>(LXI/K0/XI/XI$K0;)V | ||
| 26 | + .locals 0 | ||
| 27 | + | ||
| 28 | + iput-object p1, p0, LXI/K0/XI/XI$K0$XI;->XI:LXI/K0/XI/XI$K0; | ||
| 29 | + | ||
| 30 | + invoke-direct {p0}, Ljava/lang/Object;-><init>()V | ||
| 31 | + | ||
| 32 | + return-void | ||
| 33 | +.end method | ||
| 34 | + | ||
| 35 | + | ||
| 36 | +# virtual methods | ||
| 37 | +.method public onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V | ||
| 38 | + .locals 2 | ||
| 39 | + | ||
| 40 | + iget-object p1, p0, LXI/K0/XI/XI$K0$XI;->XI:LXI/K0/XI/XI$K0; | ||
| 41 | + | ||
| 42 | + .line 1 | ||
| 43 | + sget v0, LXI/K0/XI/XI$XI;->XI:I | ||
| 44 | + | ||
| 45 | + if-nez p2, :cond_0 | ||
| 46 | + | ||
| 47 | + const/4 p2, 0x0 | ||
| 48 | + | ||
| 49 | + goto :goto_0 | ||
| 50 | + | ||
| 51 | + :cond_0 | ||
| 52 | + const-string v0, "com.heytap.openid.IOpenID" | ||
| 53 | + | ||
| 54 | + invoke-interface {p2, v0}, Landroid/os/IBinder;->queryLocalInterface(Ljava/lang/String;)Landroid/os/IInterface; | ||
| 55 | + | ||
| 56 | + move-result-object v0 | ||
| 57 | + | ||
| 58 | + if-eqz v0, :cond_1 | ||
| 59 | + | ||
| 60 | + instance-of v1, v0, LXI/K0/XI/XI; | ||
| 61 | + | ||
| 62 | + if-eqz v1, :cond_1 | ||
| 63 | + | ||
| 64 | + move-object p2, v0 | ||
| 65 | + | ||
| 66 | + check-cast p2, LXI/K0/XI/XI; | ||
| 67 | + | ||
| 68 | + goto :goto_0 | ||
| 69 | + | ||
| 70 | + :cond_1 | ||
| 71 | + new-instance v0, LXI/K0/XI/XI$XI$XI; | ||
| 72 | + | ||
| 73 | + invoke-direct {v0, p2}, LXI/K0/XI/XI$XI$XI;-><init>(Landroid/os/IBinder;)V | ||
| 74 | + | ||
| 75 | + move-object p2, v0 | ||
| 76 | + | ||
| 77 | + .line 2 | ||
| 78 | + :goto_0 | ||
| 79 | + iput-object p2, p1, LXI/K0/XI/XI$K0;->XI:LXI/K0/XI/XI; | ||
| 80 | + | ||
| 81 | + iget-object p1, p0, LXI/K0/XI/XI$K0$XI;->XI:LXI/K0/XI/XI$K0; | ||
| 82 | + | ||
| 83 | + iget-object p1, p1, LXI/K0/XI/XI$K0;->xo:Ljava/lang/Object; | ||
| 84 | + | ||
| 85 | + monitor-enter p1 | ||
| 86 | + | ||
| 87 | + :try_start_0 | ||
| 88 | + iget-object p2, p0, LXI/K0/XI/XI$K0$XI;->XI:LXI/K0/XI/XI$K0; | ||
| 89 | + | ||
| 90 | + iget-object p2, p2, LXI/K0/XI/XI$K0;->xo:Ljava/lang/Object; | ||
| 91 | + | ||
| 92 | + invoke-virtual {p2}, Ljava/lang/Object;->notify()V | ||
| 93 | + | ||
| 94 | + monitor-exit p1 | ||
| 95 | + | ||
| 96 | + return-void | ||
| 97 | + | ||
| 98 | + :catchall_0 | ||
| 99 | + move-exception p2 | ||
| 100 | + | ||
| 101 | + monitor-exit p1 | ||
| 102 | + :try_end_0 | ||
| 103 | + .catchall {:try_start_0 .. :try_end_0} :catchall_0 | ||
| 104 | + | ||
| 105 | + throw p2 | ||
| 106 | +.end method | ||
| 107 | + | ||
| 108 | +.method public onServiceDisconnected(Landroid/content/ComponentName;)V | ||
| 109 | + .locals 1 | ||
| 110 | + | ||
| 111 | + iget-object p1, p0, LXI/K0/XI/XI$K0$XI;->XI:LXI/K0/XI/XI$K0; | ||
| 112 | + | ||
| 113 | + const/4 v0, 0x0 | ||
| 114 | + | ||
| 115 | + iput-object v0, p1, LXI/K0/XI/XI$K0;->XI:LXI/K0/XI/XI; | ||
| 116 | + | ||
| 117 | + return-void | ||
| 118 | +.end method |
config/sdk/668/smali/XI/K0/XI/XI$K0.smali
0 → 100644
| 1 | +.class public LXI/K0/XI/XI$K0; | ||
| 2 | +.super Ljava/lang/Object; | ||
| 3 | +.source "SourceFile" | ||
| 4 | + | ||
| 5 | + | ||
| 6 | +# annotations | ||
| 7 | +.annotation system Ldalvik/annotation/MemberClasses; | ||
| 8 | + value = { | ||
| 9 | + LXI/K0/XI/XI$K0$K0; | ||
| 10 | + } | ||
| 11 | +.end annotation | ||
| 12 | + | ||
| 13 | + | ||
| 14 | +# instance fields | ||
| 15 | +.field public CA:Landroid/content/ServiceConnection; | ||
| 16 | + | ||
| 17 | +.field public K0:Ljava/lang/String; | ||
| 18 | + | ||
| 19 | +.field public XI:LXI/K0/XI/XI; | ||
| 20 | + | ||
| 21 | +.field public kM:Ljava/lang/String; | ||
| 22 | + | ||
| 23 | +.field public final xo:Ljava/lang/Object; | ||
| 24 | + | ||
| 25 | + | ||
| 26 | +# direct methods | ||
| 27 | +.method public synthetic constructor <init>()V | ||
| 28 | + .locals 1 | ||
| 29 | + | ||
| 30 | + invoke-direct {p0}, Ljava/lang/Object;-><init>()V | ||
| 31 | + | ||
| 32 | + const/4 v0, 0x0 | ||
| 33 | + | ||
| 34 | + iput-object v0, p0, LXI/K0/XI/XI$K0;->XI:LXI/K0/XI/XI; | ||
| 35 | + | ||
| 36 | + iput-object v0, p0, LXI/K0/XI/XI$K0;->K0:Ljava/lang/String; | ||
| 37 | + | ||
| 38 | + iput-object v0, p0, LXI/K0/XI/XI$K0;->kM:Ljava/lang/String; | ||
| 39 | + | ||
| 40 | + new-instance v0, Ljava/lang/Object; | ||
| 41 | + | ||
| 42 | + invoke-direct {v0}, Ljava/lang/Object;-><init>()V | ||
| 43 | + | ||
| 44 | + iput-object v0, p0, LXI/K0/XI/XI$K0;->xo:Ljava/lang/Object; | ||
| 45 | + | ||
| 46 | + new-instance v0, LXI/K0/XI/XI$K0$XI; | ||
| 47 | + | ||
| 48 | + invoke-direct {v0, p0}, LXI/K0/XI/XI$K0$XI;-><init>(LXI/K0/XI/XI$K0;)V | ||
| 49 | + | ||
| 50 | + iput-object v0, p0, LXI/K0/XI/XI$K0;->CA:Landroid/content/ServiceConnection; | ||
| 51 | + | ||
| 52 | + return-void | ||
| 53 | +.end method | ||
| 54 | + | ||
| 55 | + | ||
| 56 | +# virtual methods | ||
| 57 | +.method public final K0(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String; | ||
| 58 | + .locals 9 | ||
| 59 | + | ||
| 60 | + iget-object v0, p0, LXI/K0/XI/XI$K0;->K0:Ljava/lang/String; | ||
| 61 | + | ||
| 62 | + invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z | ||
| 63 | + | ||
| 64 | + move-result v0 | ||
| 65 | + | ||
| 66 | + if-eqz v0, :cond_0 | ||
| 67 | + | ||
| 68 | + invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String; | ||
| 69 | + | ||
| 70 | + move-result-object v0 | ||
| 71 | + | ||
| 72 | + iput-object v0, p0, LXI/K0/XI/XI$K0;->K0:Ljava/lang/String; | ||
| 73 | + | ||
| 74 | + :cond_0 | ||
| 75 | + iget-object v0, p0, LXI/K0/XI/XI$K0;->kM:Ljava/lang/String; | ||
| 76 | + | ||
| 77 | + invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z | ||
| 78 | + | ||
| 79 | + move-result v0 | ||
| 80 | + | ||
| 81 | + const/4 v1, 0x1 | ||
| 82 | + | ||
| 83 | + const/4 v2, 0x0 | ||
| 84 | + | ||
| 85 | + if-eqz v0, :cond_3 | ||
| 86 | + | ||
| 87 | + iget-object v0, p0, LXI/K0/XI/XI$K0;->K0:Ljava/lang/String; | ||
| 88 | + | ||
| 89 | + const/4 v3, 0x0 | ||
| 90 | + | ||
| 91 | + :try_start_0 | ||
| 92 | + invoke-virtual {p1}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; | ||
| 93 | + | ||
| 94 | + move-result-object v4 | ||
| 95 | + | ||
| 96 | + const/16 v5, 0x40 | ||
| 97 | + | ||
| 98 | + invoke-virtual {v4, v0, v5}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo; | ||
| 99 | + | ||
| 100 | + move-result-object v0 | ||
| 101 | + | ||
| 102 | + iget-object v0, v0, Landroid/content/pm/PackageInfo;->signatures:[Landroid/content/pm/Signature; | ||
| 103 | + :try_end_0 | ||
| 104 | + .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 | ||
| 105 | + | ||
| 106 | + goto :goto_0 | ||
| 107 | + | ||
| 108 | + :catch_0 | ||
| 109 | + move-exception v0 | ||
| 110 | + | ||
| 111 | + invoke-virtual {v0}, Landroid/content/pm/PackageManager$NameNotFoundException;->printStackTrace()V | ||
| 112 | + | ||
| 113 | + move-object v0, v3 | ||
| 114 | + | ||
| 115 | + :goto_0 | ||
| 116 | + if-eqz v0, :cond_2 | ||
| 117 | + | ||
| 118 | + array-length v4, v0 | ||
| 119 | + | ||
| 120 | + if-lez v4, :cond_2 | ||
| 121 | + | ||
| 122 | + aget-object v0, v0, v2 | ||
| 123 | + | ||
| 124 | + const-string v4, "SHA1" | ||
| 125 | + | ||
| 126 | + invoke-virtual {v0}, Landroid/content/pm/Signature;->toByteArray()[B | ||
| 127 | + | ||
| 128 | + move-result-object v0 | ||
| 129 | + | ||
| 130 | + :try_start_1 | ||
| 131 | + invoke-static {v4}, Ljava/security/MessageDigest;->getInstance(Ljava/lang/String;)Ljava/security/MessageDigest; | ||
| 132 | + | ||
| 133 | + move-result-object v4 | ||
| 134 | + | ||
| 135 | + if-eqz v4, :cond_2 | ||
| 136 | + | ||
| 137 | + invoke-virtual {v4, v0}, Ljava/security/MessageDigest;->digest([B)[B | ||
| 138 | + | ||
| 139 | + move-result-object v0 | ||
| 140 | + | ||
| 141 | + new-instance v4, Ljava/lang/StringBuilder; | ||
| 142 | + | ||
| 143 | + invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V | ||
| 144 | + | ||
| 145 | + array-length v5, v0 | ||
| 146 | + | ||
| 147 | + move v6, v2 | ||
| 148 | + | ||
| 149 | + :goto_1 | ||
| 150 | + if-ge v6, v5, :cond_1 | ||
| 151 | + | ||
| 152 | + aget-byte v7, v0, v6 | ||
| 153 | + | ||
| 154 | + and-int/lit16 v7, v7, 0xff | ||
| 155 | + | ||
| 156 | + or-int/lit16 v7, v7, 0x100 | ||
| 157 | + | ||
| 158 | + invoke-static {v7}, Ljava/lang/Integer;->toHexString(I)Ljava/lang/String; | ||
| 159 | + | ||
| 160 | + move-result-object v7 | ||
| 161 | + | ||
| 162 | + const/4 v8, 0x3 | ||
| 163 | + | ||
| 164 | + invoke-virtual {v7, v1, v8}, Ljava/lang/String;->substring(II)Ljava/lang/String; | ||
| 165 | + | ||
| 166 | + move-result-object v7 | ||
| 167 | + | ||
| 168 | + invoke-virtual {v4, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 169 | + | ||
| 170 | + add-int/lit8 v6, v6, 0x1 | ||
| 171 | + | ||
| 172 | + goto :goto_1 | ||
| 173 | + | ||
| 174 | + :cond_1 | ||
| 175 | + invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | ||
| 176 | + | ||
| 177 | + move-result-object v3 | ||
| 178 | + :try_end_1 | ||
| 179 | + .catch Ljava/security/NoSuchAlgorithmException; {:try_start_1 .. :try_end_1} :catch_1 | ||
| 180 | + | ||
| 181 | + goto :goto_2 | ||
| 182 | + | ||
| 183 | + :catch_1 | ||
| 184 | + move-exception v0 | ||
| 185 | + | ||
| 186 | + invoke-virtual {v0}, Ljava/security/NoSuchAlgorithmException;->printStackTrace()V | ||
| 187 | + | ||
| 188 | + :cond_2 | ||
| 189 | + :goto_2 | ||
| 190 | + iput-object v3, p0, LXI/K0/XI/XI$K0;->kM:Ljava/lang/String; | ||
| 191 | + | ||
| 192 | + :cond_3 | ||
| 193 | + iget-object v0, p0, LXI/K0/XI/XI$K0;->XI:LXI/K0/XI/XI; | ||
| 194 | + | ||
| 195 | + const-string v3, "" | ||
| 196 | + | ||
| 197 | + if-nez v0, :cond_4 | ||
| 198 | + | ||
| 199 | + new-instance p2, Ljava/lang/StringBuilder; | ||
| 200 | + | ||
| 201 | + invoke-direct {p2}, Ljava/lang/StringBuilder;-><init>()V | ||
| 202 | + | ||
| 203 | + invoke-virtual {p1}, Landroid/content/Context;->getPackageName()Ljava/lang/String; | ||
| 204 | + | ||
| 205 | + move-result-object p1 | ||
| 206 | + | ||
| 207 | + invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 208 | + | ||
| 209 | + const-string p1, ":OpenIDHelper" | ||
| 210 | + | ||
| 211 | + invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 212 | + | ||
| 213 | + invoke-virtual {p2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | ||
| 214 | + | ||
| 215 | + return-object v3 | ||
| 216 | + | ||
| 217 | + :cond_4 | ||
| 218 | + iget-object p1, p0, LXI/K0/XI/XI$K0;->K0:Ljava/lang/String; | ||
| 219 | + | ||
| 220 | + iget-object v4, p0, LXI/K0/XI/XI$K0;->kM:Ljava/lang/String; | ||
| 221 | + | ||
| 222 | + check-cast v0, LXI/K0/XI/XI$XI$XI; | ||
| 223 | + | ||
| 224 | + .line 1 | ||
| 225 | + invoke-static {}, Landroid/os/Parcel;->obtain()Landroid/os/Parcel; | ||
| 226 | + | ||
| 227 | + move-result-object v5 | ||
| 228 | + | ||
| 229 | + invoke-static {}, Landroid/os/Parcel;->obtain()Landroid/os/Parcel; | ||
| 230 | + | ||
| 231 | + move-result-object v6 | ||
| 232 | + | ||
| 233 | + const-string v7, "com.heytap.openid.IOpenID" | ||
| 234 | + | ||
| 235 | + :try_start_2 | ||
| 236 | + invoke-virtual {v5, v7}, Landroid/os/Parcel;->writeInterfaceToken(Ljava/lang/String;)V | ||
| 237 | + | ||
| 238 | + invoke-virtual {v5, p1}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V | ||
| 239 | + | ||
| 240 | + invoke-virtual {v5, v4}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V | ||
| 241 | + | ||
| 242 | + invoke-virtual {v5, p2}, Landroid/os/Parcel;->writeString(Ljava/lang/String;)V | ||
| 243 | + | ||
| 244 | + iget-object p1, v0, LXI/K0/XI/XI$XI$XI;->XI:Landroid/os/IBinder; | ||
| 245 | + | ||
| 246 | + invoke-interface {p1, v1, v5, v6, v2}, Landroid/os/IBinder;->transact(ILandroid/os/Parcel;Landroid/os/Parcel;I)Z | ||
| 247 | + | ||
| 248 | + invoke-virtual {v6}, Landroid/os/Parcel;->readException()V | ||
| 249 | + | ||
| 250 | + invoke-virtual {v6}, Landroid/os/Parcel;->readString()Ljava/lang/String; | ||
| 251 | + | ||
| 252 | + move-result-object p1 | ||
| 253 | + :try_end_2 | ||
| 254 | + .catchall {:try_start_2 .. :try_end_2} :catchall_0 | ||
| 255 | + | ||
| 256 | + invoke-virtual {v6}, Landroid/os/Parcel;->recycle()V | ||
| 257 | + | ||
| 258 | + invoke-virtual {v5}, Landroid/os/Parcel;->recycle()V | ||
| 259 | + | ||
| 260 | + .line 2 | ||
| 261 | + invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z | ||
| 262 | + | ||
| 263 | + move-result p2 | ||
| 264 | + | ||
| 265 | + if-eqz p2, :cond_5 | ||
| 266 | + | ||
| 267 | + move-object p1, v3 | ||
| 268 | + | ||
| 269 | + :cond_5 | ||
| 270 | + return-object p1 | ||
| 271 | + | ||
| 272 | + :catchall_0 | ||
| 273 | + move-exception p1 | ||
| 274 | + | ||
| 275 | + .line 3 | ||
| 276 | + invoke-virtual {v6}, Landroid/os/Parcel;->recycle()V | ||
| 277 | + | ||
| 278 | + invoke-virtual {v5}, Landroid/os/Parcel;->recycle()V | ||
| 279 | + | ||
| 280 | + throw p1 | ||
| 281 | +.end method | ||
| 282 | + | ||
| 283 | +.method public declared-synchronized XI(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String; | ||
| 284 | + .locals 4 | ||
| 285 | + | ||
| 286 | + monitor-enter p0 | ||
| 287 | + | ||
| 288 | + :try_start_0 | ||
| 289 | + new-instance v0, Ljava/lang/StringBuilder; | ||
| 290 | + | ||
| 291 | + invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V | ||
| 292 | + | ||
| 293 | + const-string v1, "getOpenID:" | ||
| 294 | + | ||
| 295 | + invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 296 | + | ||
| 297 | + invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 298 | + | ||
| 299 | + invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | ||
| 300 | + | ||
| 301 | + invoke-static {}, Landroid/os/Looper;->myLooper()Landroid/os/Looper; | ||
| 302 | + | ||
| 303 | + move-result-object v0 | ||
| 304 | + | ||
| 305 | + invoke-static {}, Landroid/os/Looper;->getMainLooper()Landroid/os/Looper; | ||
| 306 | + | ||
| 307 | + move-result-object v1 | ||
| 308 | + | ||
| 309 | + if-ne v0, v1, :cond_0 | ||
| 310 | + | ||
| 311 | + const-string p1, "" | ||
| 312 | + :try_end_0 | ||
| 313 | + .catchall {:try_start_0 .. :try_end_0} :catchall_1 | ||
| 314 | + | ||
| 315 | + monitor-exit p0 | ||
| 316 | + | ||
| 317 | + return-object p1 | ||
| 318 | + | ||
| 319 | + :cond_0 | ||
| 320 | + :try_start_1 | ||
| 321 | + iget-object v0, p0, LXI/K0/XI/XI$K0;->XI:LXI/K0/XI/XI; | ||
| 322 | + | ||
| 323 | + if-nez v0, :cond_3 | ||
| 324 | + | ||
| 325 | + .line 1 | ||
| 326 | + new-instance v0, Landroid/content/Intent; | ||
| 327 | + | ||
| 328 | + invoke-direct {v0}, Landroid/content/Intent;-><init>()V | ||
| 329 | + | ||
| 330 | + new-instance v1, Landroid/content/ComponentName; | ||
| 331 | + | ||
| 332 | + const-string v2, "com.heytap.openid" | ||
| 333 | + | ||
| 334 | + const-string v3, "com.heytap.openid.IdentifyService" | ||
| 335 | + | ||
| 336 | + invoke-direct {v1, v2, v3}, Landroid/content/ComponentName;-><init>(Ljava/lang/String;Ljava/lang/String;)V | ||
| 337 | + | ||
| 338 | + invoke-virtual {v0, v1}, Landroid/content/Intent;->setComponent(Landroid/content/ComponentName;)Landroid/content/Intent; | ||
| 339 | + | ||
| 340 | + const-string v1, "action.com.heytap.openid.OPEN_ID_SERVICE" | ||
| 341 | + | ||
| 342 | + invoke-virtual {v0, v1}, Landroid/content/Intent;->setAction(Ljava/lang/String;)Landroid/content/Intent; | ||
| 343 | + | ||
| 344 | + iget-object v1, p0, LXI/K0/XI/XI$K0;->CA:Landroid/content/ServiceConnection; | ||
| 345 | + | ||
| 346 | + const/4 v2, 0x1 | ||
| 347 | + | ||
| 348 | + invoke-virtual {p1, v0, v1, v2}, Landroid/content/Context;->bindService(Landroid/content/Intent;Landroid/content/ServiceConnection;I)Z | ||
| 349 | + | ||
| 350 | + move-result v0 | ||
| 351 | + | ||
| 352 | + if-eqz v0, :cond_1 | ||
| 353 | + | ||
| 354 | + iget-object v0, p0, LXI/K0/XI/XI$K0;->xo:Ljava/lang/Object; | ||
| 355 | + | ||
| 356 | + monitor-enter v0 | ||
| 357 | + :try_end_1 | ||
| 358 | + .catchall {:try_start_1 .. :try_end_1} :catchall_1 | ||
| 359 | + | ||
| 360 | + :try_start_2 | ||
| 361 | + iget-object v1, p0, LXI/K0/XI/XI$K0;->xo:Ljava/lang/Object; | ||
| 362 | + | ||
| 363 | + const-wide/16 v2, 0xbb8 | ||
| 364 | + | ||
| 365 | + invoke-virtual {v1, v2, v3}, Ljava/lang/Object;->wait(J)V | ||
| 366 | + :try_end_2 | ||
| 367 | + .catch Ljava/lang/InterruptedException; {:try_start_2 .. :try_end_2} :catch_0 | ||
| 368 | + .catchall {:try_start_2 .. :try_end_2} :catchall_0 | ||
| 369 | + | ||
| 370 | + goto :goto_0 | ||
| 371 | + | ||
| 372 | + :catchall_0 | ||
| 373 | + move-exception p1 | ||
| 374 | + | ||
| 375 | + goto :goto_1 | ||
| 376 | + | ||
| 377 | + :catch_0 | ||
| 378 | + :goto_0 | ||
| 379 | + :try_start_3 | ||
| 380 | + monitor-exit v0 | ||
| 381 | + | ||
| 382 | + goto :goto_2 | ||
| 383 | + | ||
| 384 | + :goto_1 | ||
| 385 | + monitor-exit v0 | ||
| 386 | + :try_end_3 | ||
| 387 | + .catchall {:try_start_3 .. :try_end_3} :catchall_0 | ||
| 388 | + | ||
| 389 | + :try_start_4 | ||
| 390 | + throw p1 | ||
| 391 | + | ||
| 392 | + .line 2 | ||
| 393 | + :cond_1 | ||
| 394 | + :goto_2 | ||
| 395 | + iget-object v0, p0, LXI/K0/XI/XI$K0;->XI:LXI/K0/XI/XI; | ||
| 396 | + | ||
| 397 | + if-nez v0, :cond_2 | ||
| 398 | + | ||
| 399 | + const-string p1, "" | ||
| 400 | + :try_end_4 | ||
| 401 | + .catchall {:try_start_4 .. :try_end_4} :catchall_1 | ||
| 402 | + | ||
| 403 | + monitor-exit p0 | ||
| 404 | + | ||
| 405 | + return-object p1 | ||
| 406 | + | ||
| 407 | + :cond_2 | ||
| 408 | + :try_start_5 | ||
| 409 | + invoke-virtual {p0, p1, p2}, LXI/K0/XI/XI$K0;->K0(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String; | ||
| 410 | + | ||
| 411 | + move-result-object p1 | ||
| 412 | + :try_end_5 | ||
| 413 | + .catch Landroid/os/RemoteException; {:try_start_5 .. :try_end_5} :catch_1 | ||
| 414 | + .catchall {:try_start_5 .. :try_end_5} :catchall_1 | ||
| 415 | + | ||
| 416 | + monitor-exit p0 | ||
| 417 | + | ||
| 418 | + return-object p1 | ||
| 419 | + | ||
| 420 | + :catch_1 | ||
| 421 | + :try_start_6 | ||
| 422 | + const-string p1, "" | ||
| 423 | + :try_end_6 | ||
| 424 | + .catchall {:try_start_6 .. :try_end_6} :catchall_1 | ||
| 425 | + | ||
| 426 | + monitor-exit p0 | ||
| 427 | + | ||
| 428 | + return-object p1 | ||
| 429 | + | ||
| 430 | + :cond_3 | ||
| 431 | + :try_start_7 | ||
| 432 | + invoke-virtual {p0, p1, p2}, LXI/K0/XI/XI$K0;->K0(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String; | ||
| 433 | + | ||
| 434 | + move-result-object p1 | ||
| 435 | + :try_end_7 | ||
| 436 | + .catch Landroid/os/RemoteException; {:try_start_7 .. :try_end_7} :catch_2 | ||
| 437 | + .catchall {:try_start_7 .. :try_end_7} :catchall_1 | ||
| 438 | + | ||
| 439 | + monitor-exit p0 | ||
| 440 | + | ||
| 441 | + return-object p1 | ||
| 442 | + | ||
| 443 | + :catch_2 | ||
| 444 | + :try_start_8 | ||
| 445 | + const-string p1, "" | ||
| 446 | + :try_end_8 | ||
| 447 | + .catchall {:try_start_8 .. :try_end_8} :catchall_1 | ||
| 448 | + | ||
| 449 | + monitor-exit p0 | ||
| 450 | + | ||
| 451 | + return-object p1 | ||
| 452 | + | ||
| 453 | + :catchall_1 | ||
| 454 | + move-exception p1 | ||
| 455 | + | ||
| 456 | + monitor-exit p0 | ||
| 457 | + | ||
| 458 | + throw p1 | ||
| 459 | +.end method |
config/sdk/668/smali/XI/K0/XI/XI$XI$XI.smali
0 → 100644
| 1 | +.class public LXI/K0/XI/XI$XI$XI; | ||
| 2 | +.super Ljava/lang/Object; | ||
| 3 | +.source "SourceFile" | ||
| 4 | + | ||
| 5 | +# interfaces | ||
| 6 | +.implements LXI/K0/XI/XI; | ||
| 7 | + | ||
| 8 | + | ||
| 9 | +# annotations | ||
| 10 | +.annotation system Ldalvik/annotation/EnclosingClass; | ||
| 11 | + value = LXI/K0/XI/XI$XI; | ||
| 12 | +.end annotation | ||
| 13 | + | ||
| 14 | +.annotation system Ldalvik/annotation/InnerClass; | ||
| 15 | + accessFlags = 0x9 | ||
| 16 | + name = "XI" | ||
| 17 | +.end annotation | ||
| 18 | + | ||
| 19 | + | ||
| 20 | +# instance fields | ||
| 21 | +.field public XI:Landroid/os/IBinder; | ||
| 22 | + | ||
| 23 | + | ||
| 24 | +# direct methods | ||
| 25 | +.method public constructor <init>(Landroid/os/IBinder;)V | ||
| 26 | + .locals 0 | ||
| 27 | + | ||
| 28 | + invoke-direct {p0}, Ljava/lang/Object;-><init>()V | ||
| 29 | + | ||
| 30 | + iput-object p1, p0, LXI/K0/XI/XI$XI$XI;->XI:Landroid/os/IBinder; | ||
| 31 | + | ||
| 32 | + return-void | ||
| 33 | +.end method | ||
| 34 | + | ||
| 35 | + | ||
| 36 | +# virtual methods | ||
| 37 | +.method public asBinder()Landroid/os/IBinder; | ||
| 38 | + .locals 1 | ||
| 39 | + | ||
| 40 | + iget-object v0, p0, LXI/K0/XI/XI$XI$XI;->XI:Landroid/os/IBinder; | ||
| 41 | + | ||
| 42 | + return-object v0 | ||
| 43 | +.end method |
config/sdk/668/smali/XI/K0/XI/XI$XI.smali
0 → 100644
| 1 | +.class public abstract LXI/K0/XI/XI$XI; | ||
| 2 | +.super Landroid/os/Binder; | ||
| 3 | +.source "SourceFile" | ||
| 4 | + | ||
| 5 | +# interfaces | ||
| 6 | +.implements LXI/K0/XI/XI; | ||
| 7 | + | ||
| 8 | + | ||
| 9 | +# annotations | ||
| 10 | +.annotation system Ldalvik/annotation/EnclosingClass; | ||
| 11 | + value = LXI/K0/XI/XI; | ||
| 12 | +.end annotation | ||
| 13 | + | ||
| 14 | +.annotation system Ldalvik/annotation/InnerClass; | ||
| 15 | + accessFlags = 0x409 | ||
| 16 | + name = "XI" | ||
| 17 | +.end annotation | ||
| 18 | + | ||
| 19 | +.annotation system Ldalvik/annotation/MemberClasses; | ||
| 20 | + value = { | ||
| 21 | + LXI/K0/XI/XI$XI$XI; | ||
| 22 | + } | ||
| 23 | +.end annotation | ||
| 24 | + | ||
| 25 | + | ||
| 26 | +# static fields | ||
| 27 | +.field public static final synthetic XI:I |
config/sdk/668/smali/XI/K0/XI/XI.smali
0 → 100644
| 1 | +.class public interface abstract LXI/K0/XI/XI; | ||
| 2 | +.super Ljava/lang/Object; | ||
| 3 | +.source "SourceFile" | ||
| 4 | + | ||
| 5 | +# interfaces | ||
| 6 | +.implements Landroid/os/IInterface; | ||
| 7 | + | ||
| 8 | + | ||
| 9 | +# annotations | ||
| 10 | +.annotation system Ldalvik/annotation/MemberClasses; | ||
| 11 | + value = { | ||
| 12 | + LXI/K0/XI/XI$XI; | ||
| 13 | + } | ||
| 14 | +.end annotation |
config/sdk/668/smali/XI/XI/K0/K0$XI.smali
0 → 100644
| 1 | +.class public LXI/XI/K0/K0$XI; | ||
| 2 | +.super Ljava/lang/Object; | ||
| 3 | +.source "SourceFile" | ||
| 4 | + | ||
| 5 | +# interfaces | ||
| 6 | +.implements Landroid/content/ServiceConnection; | ||
| 7 | + | ||
| 8 | + | ||
| 9 | +# annotations | ||
| 10 | +.annotation system Ldalvik/annotation/EnclosingClass; | ||
| 11 | + value = LXI/XI/K0/K0; | ||
| 12 | +.end annotation | ||
| 13 | + | ||
| 14 | +.annotation system Ldalvik/annotation/InnerClass; | ||
| 15 | + accessFlags = 0x1 | ||
| 16 | + name = null | ||
| 17 | +.end annotation | ||
| 18 | + | ||
| 19 | + | ||
| 20 | +# instance fields | ||
| 21 | +.field public final synthetic XI:LXI/XI/K0/K0; | ||
| 22 | + | ||
| 23 | + | ||
| 24 | +# direct methods | ||
| 25 | +.method public constructor <init>(LXI/XI/K0/K0;)V | ||
| 26 | + .locals 0 | ||
| 27 | + | ||
| 28 | + iput-object p1, p0, LXI/XI/K0/K0$XI;->XI:LXI/XI/K0/K0; | ||
| 29 | + | ||
| 30 | + invoke-direct {p0}, Ljava/lang/Object;-><init>()V | ||
| 31 | + | ||
| 32 | + return-void | ||
| 33 | +.end method | ||
| 34 | + | ||
| 35 | + | ||
| 36 | +# virtual methods | ||
| 37 | +.method public onServiceConnected(Landroid/content/ComponentName;Landroid/os/IBinder;)V | ||
| 38 | + .locals 2 | ||
| 39 | + | ||
| 40 | + iget-object p1, p0, LXI/XI/K0/K0$XI;->XI:LXI/XI/K0/K0; | ||
| 41 | + | ||
| 42 | + .line 1 | ||
| 43 | + sget v0, LXI/XI/XI/XI$XI;->XI:I | ||
| 44 | + | ||
| 45 | + if-nez p2, :cond_0 | ||
| 46 | + | ||
| 47 | + const/4 p2, 0x0 | ||
| 48 | + | ||
| 49 | + goto :goto_0 | ||
| 50 | + | ||
| 51 | + :cond_0 | ||
| 52 | + const-string v0, "com.android.creator.IdsSupplier" | ||
| 53 | + | ||
| 54 | + invoke-interface {p2, v0}, Landroid/os/IBinder;->queryLocalInterface(Ljava/lang/String;)Landroid/os/IInterface; | ||
| 55 | + | ||
| 56 | + move-result-object v0 | ||
| 57 | + | ||
| 58 | + if-eqz v0, :cond_1 | ||
| 59 | + | ||
| 60 | + instance-of v1, v0, LXI/XI/XI/XI; | ||
| 61 | + | ||
| 62 | + if-eqz v1, :cond_1 | ||
| 63 | + | ||
| 64 | + move-object p2, v0 | ||
| 65 | + | ||
| 66 | + check-cast p2, LXI/XI/XI/XI; | ||
| 67 | + | ||
| 68 | + goto :goto_0 | ||
| 69 | + | ||
| 70 | + :cond_1 | ||
| 71 | + new-instance v0, LXI/XI/XI/XI$XI$XI; | ||
| 72 | + | ||
| 73 | + invoke-direct {v0, p2}, LXI/XI/XI/XI$XI$XI;-><init>(Landroid/os/IBinder;)V | ||
| 74 | + | ||
| 75 | + move-object p2, v0 | ||
| 76 | + | ||
| 77 | + .line 2 | ||
| 78 | + :goto_0 | ||
| 79 | + iput-object p2, p1, LXI/XI/K0/K0;->K0:LXI/XI/XI/XI; | ||
| 80 | + | ||
| 81 | + .line 3 | ||
| 82 | + iget-object p1, p0, LXI/XI/K0/K0$XI;->XI:LXI/XI/K0/K0; | ||
| 83 | + | ||
| 84 | + .line 4 | ||
| 85 | + iget-object p1, p1, LXI/XI/K0/K0;->kM:LXI/XI/K0/xo; | ||
| 86 | + | ||
| 87 | + const/4 p2, 0x1 | ||
| 88 | + | ||
| 89 | + .line 5 | ||
| 90 | + invoke-interface {p1, p2}, LXI/XI/K0/xo;->connectSuccess(Z)V | ||
| 91 | + | ||
| 92 | + return-void | ||
| 93 | +.end method | ||
| 94 | + | ||
| 95 | +.method public onServiceDisconnected(Landroid/content/ComponentName;)V | ||
| 96 | + .locals 1 | ||
| 97 | + | ||
| 98 | + iget-object p1, p0, LXI/XI/K0/K0$XI;->XI:LXI/XI/K0/K0; | ||
| 99 | + | ||
| 100 | + const/4 v0, 0x0 | ||
| 101 | + | ||
| 102 | + .line 1 | ||
| 103 | + iput-object v0, p1, LXI/XI/K0/K0;->K0:LXI/XI/XI/XI; | ||
| 104 | + | ||
| 105 | + return-void | ||
| 106 | +.end method |
config/sdk/668/smali/XI/XI/K0/K0.smali
0 → 100644
| 1 | +.class public LXI/XI/K0/K0; | ||
| 2 | +.super Ljava/lang/Object; | ||
| 3 | +.source "SourceFile" | ||
| 4 | + | ||
| 5 | +# interfaces | ||
| 6 | +.implements LXI/XI/K0/kM; | ||
| 7 | + | ||
| 8 | + | ||
| 9 | +# instance fields | ||
| 10 | +.field public K0:LXI/XI/XI/XI; | ||
| 11 | + | ||
| 12 | +.field public XI:Landroid/content/Context; | ||
| 13 | + | ||
| 14 | +.field public kM:LXI/XI/K0/xo; | ||
| 15 | + | ||
| 16 | +.field public xo:Landroid/content/ServiceConnection; | ||
| 17 | + | ||
| 18 | + | ||
| 19 | +# direct methods | ||
| 20 | +.method public constructor <init>(Landroid/content/Context;)V | ||
| 21 | + .locals 1 | ||
| 22 | + | ||
| 23 | + invoke-direct {p0}, Ljava/lang/Object;-><init>()V | ||
| 24 | + | ||
| 25 | + new-instance v0, LXI/XI/K0/K0$XI; | ||
| 26 | + | ||
| 27 | + invoke-direct {v0, p0}, LXI/XI/K0/K0$XI;-><init>(LXI/XI/K0/K0;)V | ||
| 28 | + | ||
| 29 | + iput-object v0, p0, LXI/XI/K0/K0;->xo:Landroid/content/ServiceConnection; | ||
| 30 | + | ||
| 31 | + iput-object p1, p0, LXI/XI/K0/K0;->XI:Landroid/content/Context; | ||
| 32 | + | ||
| 33 | + return-void | ||
| 34 | +.end method | ||
| 35 | + | ||
| 36 | + | ||
| 37 | +# virtual methods | ||
| 38 | +.method public XI()Z | ||
| 39 | + .locals 3 | ||
| 40 | + | ||
| 41 | + iget-object v0, p0, LXI/XI/K0/K0;->K0:LXI/XI/XI/XI; | ||
| 42 | + | ||
| 43 | + if-eqz v0, :cond_0 | ||
| 44 | + | ||
| 45 | + :try_start_0 | ||
| 46 | + invoke-interface {v0}, LXI/XI/XI/XI;->isSupported()Z | ||
| 47 | + | ||
| 48 | + move-result v0 | ||
| 49 | + :try_end_0 | ||
| 50 | + .catch Landroid/os/RemoteException; {:try_start_0 .. :try_end_0} :catch_0 | ||
| 51 | + | ||
| 52 | + goto :goto_0 | ||
| 53 | + | ||
| 54 | + :catch_0 | ||
| 55 | + move-exception v0 | ||
| 56 | + | ||
| 57 | + new-instance v1, Ljava/lang/StringBuilder; | ||
| 58 | + | ||
| 59 | + invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V | ||
| 60 | + | ||
| 61 | + const-string v2, "isSupported exception:" | ||
| 62 | + | ||
| 63 | + invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 64 | + | ||
| 65 | + invoke-virtual {v0}, Landroid/os/RemoteException;->getMessage()Ljava/lang/String; | ||
| 66 | + | ||
| 67 | + move-result-object v2 | ||
| 68 | + | ||
| 69 | + invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 70 | + | ||
| 71 | + invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | ||
| 72 | + | ||
| 73 | + invoke-virtual {v0}, Landroid/os/RemoteException;->printStackTrace()V | ||
| 74 | + | ||
| 75 | + :cond_0 | ||
| 76 | + const/4 v0, 0x0 | ||
| 77 | + | ||
| 78 | + :goto_0 | ||
| 79 | + new-instance v1, Ljava/lang/StringBuilder; | ||
| 80 | + | ||
| 81 | + invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V | ||
| 82 | + | ||
| 83 | + const-string v2, "isSupported:" | ||
| 84 | + | ||
| 85 | + invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 86 | + | ||
| 87 | + iget-object v2, p0, LXI/XI/K0/K0;->K0:LXI/XI/XI/XI; | ||
| 88 | + | ||
| 89 | + invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder; | ||
| 90 | + | ||
| 91 | + invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | ||
| 92 | + | ||
| 93 | + new-instance v1, Ljava/lang/StringBuilder; | ||
| 94 | + | ||
| 95 | + invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V | ||
| 96 | + | ||
| 97 | + const-string v2, "isSupported ret:" | ||
| 98 | + | ||
| 99 | + invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 100 | + | ||
| 101 | + invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder; | ||
| 102 | + | ||
| 103 | + invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | ||
| 104 | + | ||
| 105 | + return v0 | ||
| 106 | +.end method |
config/sdk/668/smali/XI/XI/K0/XI.smali
0 → 100644
| 1 | +.class public LXI/XI/K0/XI; | ||
| 2 | +.super Ljava/lang/Object; | ||
| 3 | +.source "SourceFile" | ||
| 4 | + | ||
| 5 | + | ||
| 6 | +# static fields | ||
| 7 | +.field public static K0:Z = false | ||
| 8 | + | ||
| 9 | +.field public static XI:Z = false | ||
| 10 | + | ||
| 11 | + | ||
| 12 | +# direct methods | ||
| 13 | +.method public static CA(Landroid/content/Context;)Landroid/content/Context; | ||
| 14 | + .locals 1 | ||
| 15 | + | ||
| 16 | + if-eqz p0, :cond_0 | ||
| 17 | + | ||
| 18 | + invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context; | ||
| 19 | + | ||
| 20 | + move-result-object v0 | ||
| 21 | + | ||
| 22 | + if-eqz v0, :cond_0 | ||
| 23 | + | ||
| 24 | + invoke-virtual {p0}, Landroid/content/Context;->getApplicationContext()Landroid/content/Context; | ||
| 25 | + | ||
| 26 | + move-result-object p0 | ||
| 27 | + | ||
| 28 | + :cond_0 | ||
| 29 | + return-object p0 | ||
| 30 | +.end method | ||
| 31 | + | ||
| 32 | +.method public static K0(Landroid/content/Context;)Ljava/lang/String; | ||
| 33 | + .locals 2 | ||
| 34 | + | ||
| 35 | + invoke-static {p0}, LXI/CA/XI/K0;->XI(Landroid/content/Context;)LXI/CA/XI/K0; | ||
| 36 | + | ||
| 37 | + move-result-object p0 | ||
| 38 | + | ||
| 39 | + const/4 v0, 0x0 | ||
| 40 | + | ||
| 41 | + if-nez p0, :cond_0 | ||
| 42 | + | ||
| 43 | + goto :goto_0 | ||
| 44 | + | ||
| 45 | + .line 1 | ||
| 46 | + :cond_0 | ||
| 47 | + sget-object v1, LXI/CA/XI/K0;->WI:Ljava/lang/String; | ||
| 48 | + | ||
| 49 | + if-eqz v1, :cond_1 | ||
| 50 | + | ||
| 51 | + move-object v0, v1 | ||
| 52 | + | ||
| 53 | + goto :goto_0 | ||
| 54 | + | ||
| 55 | + :cond_1 | ||
| 56 | + const/4 v1, 0x0 | ||
| 57 | + | ||
| 58 | + invoke-virtual {p0, v1, v0}, LXI/CA/XI/K0;->XI(ILjava/lang/String;)V | ||
| 59 | + | ||
| 60 | + sget-object p0, LXI/CA/XI/K0;->kM:LXI/CA/XI/kM; | ||
| 61 | + | ||
| 62 | + if-nez p0, :cond_2 | ||
| 63 | + | ||
| 64 | + sget-object p0, LXI/CA/XI/K0;->XI:Landroid/content/Context; | ||
| 65 | + | ||
| 66 | + invoke-static {p0, v1, v0}, LXI/CA/XI/K0;->XI(Landroid/content/Context;ILjava/lang/String;)V | ||
| 67 | + | ||
| 68 | + :cond_2 | ||
| 69 | + sget-object v0, LXI/CA/XI/K0;->WI:Ljava/lang/String; | ||
| 70 | + | ||
| 71 | + :goto_0 | ||
| 72 | + return-object v0 | ||
| 73 | +.end method | ||
| 74 | + | ||
| 75 | +.method public static K0(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String; | ||
| 76 | + .locals 1 | ||
| 77 | + | ||
| 78 | + invoke-static {p0}, LXI/CA/XI/K0;->XI(Landroid/content/Context;)LXI/CA/XI/K0; | ||
| 79 | + | ||
| 80 | + move-result-object p0 | ||
| 81 | + | ||
| 82 | + if-nez p0, :cond_0 | ||
| 83 | + | ||
| 84 | + const/4 p0, 0x0 | ||
| 85 | + | ||
| 86 | + goto :goto_0 | ||
| 87 | + | ||
| 88 | + .line 2 | ||
| 89 | + :cond_0 | ||
| 90 | + sget-object v0, LXI/CA/XI/K0;->bs:Ljava/lang/String; | ||
| 91 | + | ||
| 92 | + if-eqz v0, :cond_1 | ||
| 93 | + | ||
| 94 | + move-object p0, v0 | ||
| 95 | + | ||
| 96 | + goto :goto_0 | ||
| 97 | + | ||
| 98 | + :cond_1 | ||
| 99 | + const/4 v0, 0x1 | ||
| 100 | + | ||
| 101 | + invoke-virtual {p0, v0, p1}, LXI/CA/XI/K0;->XI(ILjava/lang/String;)V | ||
| 102 | + | ||
| 103 | + sget-object p0, LXI/CA/XI/K0;->xo:LXI/CA/XI/kM; | ||
| 104 | + | ||
| 105 | + if-nez p0, :cond_2 | ||
| 106 | + | ||
| 107 | + sget-object p0, LXI/CA/XI/K0;->bs:Ljava/lang/String; | ||
| 108 | + | ||
| 109 | + if-eqz p0, :cond_2 | ||
| 110 | + | ||
| 111 | + sget-object p0, LXI/CA/XI/K0;->XI:Landroid/content/Context; | ||
| 112 | + | ||
| 113 | + invoke-static {p0, v0, p1}, LXI/CA/XI/K0;->XI(Landroid/content/Context;ILjava/lang/String;)V | ||
| 114 | + | ||
| 115 | + :cond_2 | ||
| 116 | + sget-object p0, LXI/CA/XI/K0;->bs:Ljava/lang/String; | ||
| 117 | + | ||
| 118 | + :goto_0 | ||
| 119 | + return-object p0 | ||
| 120 | +.end method | ||
| 121 | + | ||
| 122 | +.method public static XI(Landroid/content/Context;)Ljava/lang/String; | ||
| 123 | + .locals 2 | ||
| 124 | + | ||
| 125 | + invoke-static {p0}, LXI/CA/XI/K0;->XI(Landroid/content/Context;)LXI/CA/XI/K0; | ||
| 126 | + | ||
| 127 | + move-result-object p0 | ||
| 128 | + | ||
| 129 | + if-nez p0, :cond_0 | ||
| 130 | + | ||
| 131 | + goto :goto_0 | ||
| 132 | + | ||
| 133 | + .line 2 | ||
| 134 | + :cond_0 | ||
| 135 | + sget v0, Landroid/os/Build$VERSION;->SDK_INT:I | ||
| 136 | + | ||
| 137 | + const/16 v1, 0x1c | ||
| 138 | + | ||
| 139 | + if-ne v0, v1, :cond_1 | ||
| 140 | + | ||
| 141 | + :goto_0 | ||
| 142 | + const/4 p0, 0x0 | ||
| 143 | + | ||
| 144 | + goto :goto_1 | ||
| 145 | + | ||
| 146 | + :cond_1 | ||
| 147 | + sget-object v0, LXI/CA/XI/K0;->cs:Ljava/lang/String; | ||
| 148 | + | ||
| 149 | + if-eqz v0, :cond_2 | ||
| 150 | + | ||
| 151 | + move-object p0, v0 | ||
| 152 | + | ||
| 153 | + goto :goto_1 | ||
| 154 | + | ||
| 155 | + :cond_2 | ||
| 156 | + sget-object v0, LXI/CA/XI/K0;->XI:Landroid/content/Context; | ||
| 157 | + | ||
| 158 | + invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String; | ||
| 159 | + | ||
| 160 | + move-result-object v0 | ||
| 161 | + | ||
| 162 | + const/4 v1, 0x2 | ||
| 163 | + | ||
| 164 | + invoke-virtual {p0, v1, v0}, LXI/CA/XI/K0;->XI(ILjava/lang/String;)V | ||
| 165 | + | ||
| 166 | + sget-object p0, LXI/CA/XI/K0;->CA:LXI/CA/XI/kM; | ||
| 167 | + | ||
| 168 | + if-nez p0, :cond_3 | ||
| 169 | + | ||
| 170 | + sget-object p0, LXI/CA/XI/K0;->cs:Ljava/lang/String; | ||
| 171 | + | ||
| 172 | + if-eqz p0, :cond_3 | ||
| 173 | + | ||
| 174 | + sget-object p0, LXI/CA/XI/K0;->XI:Landroid/content/Context; | ||
| 175 | + | ||
| 176 | + invoke-static {p0, v1, v0}, LXI/CA/XI/K0;->XI(Landroid/content/Context;ILjava/lang/String;)V | ||
| 177 | + | ||
| 178 | + :cond_3 | ||
| 179 | + sget-object p0, LXI/CA/XI/K0;->cs:Ljava/lang/String; | ||
| 180 | + | ||
| 181 | + :goto_1 | ||
| 182 | + return-object p0 | ||
| 183 | +.end method | ||
| 184 | + | ||
| 185 | +.method public static XI(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String; | ||
| 186 | + .locals 1 | ||
| 187 | + | ||
| 188 | + invoke-static {p0}, LXI/CA/XI/K0;->XI(Landroid/content/Context;)LXI/CA/XI/K0; | ||
| 189 | + | ||
| 190 | + move-result-object p0 | ||
| 191 | + | ||
| 192 | + if-nez p0, :cond_0 | ||
| 193 | + | ||
| 194 | + const/4 p0, 0x0 | ||
| 195 | + | ||
| 196 | + goto :goto_0 | ||
| 197 | + | ||
| 198 | + .line 1 | ||
| 199 | + :cond_0 | ||
| 200 | + sget-object v0, LXI/CA/XI/K0;->cs:Ljava/lang/String; | ||
| 201 | + | ||
| 202 | + if-eqz v0, :cond_1 | ||
| 203 | + | ||
| 204 | + move-object p0, v0 | ||
| 205 | + | ||
| 206 | + goto :goto_0 | ||
| 207 | + | ||
| 208 | + :cond_1 | ||
| 209 | + const/4 v0, 0x2 | ||
| 210 | + | ||
| 211 | + invoke-virtual {p0, v0, p1}, LXI/CA/XI/K0;->XI(ILjava/lang/String;)V | ||
| 212 | + | ||
| 213 | + sget-object p0, LXI/CA/XI/K0;->CA:LXI/CA/XI/kM; | ||
| 214 | + | ||
| 215 | + if-nez p0, :cond_2 | ||
| 216 | + | ||
| 217 | + sget-object p0, LXI/CA/XI/K0;->cs:Ljava/lang/String; | ||
| 218 | + | ||
| 219 | + if-eqz p0, :cond_2 | ||
| 220 | + | ||
| 221 | + sget-object p0, LXI/CA/XI/K0;->XI:Landroid/content/Context; | ||
| 222 | + | ||
| 223 | + invoke-static {p0, v0, p1}, LXI/CA/XI/K0;->XI(Landroid/content/Context;ILjava/lang/String;)V | ||
| 224 | + | ||
| 225 | + :cond_2 | ||
| 226 | + sget-object p0, LXI/CA/XI/K0;->cs:Ljava/lang/String; | ||
| 227 | + | ||
| 228 | + :goto_0 | ||
| 229 | + return-object p0 | ||
| 230 | +.end method | ||
| 231 | + | ||
| 232 | +.method public static final XI()Z | ||
| 233 | + .locals 5 | ||
| 234 | + | ||
| 235 | + const-string v0, "android.app.ActivityThread" | ||
| 236 | + | ||
| 237 | + const/4 v1, 0x0 | ||
| 238 | + | ||
| 239 | + const/4 v2, 0x0 | ||
| 240 | + | ||
| 241 | + :try_start_0 | ||
| 242 | + invoke-static {v0}, Ljava/lang/Class;->forName(Ljava/lang/String;)Ljava/lang/Class; | ||
| 243 | + | ||
| 244 | + move-result-object v0 | ||
| 245 | + :try_end_0 | ||
| 246 | + .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0 | ||
| 247 | + | ||
| 248 | + const-string v3, "currentApplication" | ||
| 249 | + | ||
| 250 | + :try_start_1 | ||
| 251 | + new-array v4, v2, [Ljava/lang/Class; | ||
| 252 | + | ||
| 253 | + invoke-virtual {v0, v3, v4}, Ljava/lang/Class;->getMethod(Ljava/lang/String;[Ljava/lang/Class;)Ljava/lang/reflect/Method; | ||
| 254 | + | ||
| 255 | + move-result-object v0 | ||
| 256 | + | ||
| 257 | + const/4 v3, 0x1 | ||
| 258 | + | ||
| 259 | + invoke-virtual {v0, v3}, Ljava/lang/reflect/Method;->setAccessible(Z)V | ||
| 260 | + | ||
| 261 | + new-array v3, v2, [Ljava/lang/Object; | ||
| 262 | + | ||
| 263 | + invoke-virtual {v0, v1, v3}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object; | ||
| 264 | + | ||
| 265 | + move-result-object v0 | ||
| 266 | + | ||
| 267 | + check-cast v0, Landroid/content/Context; | ||
| 268 | + :try_end_1 | ||
| 269 | + .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0 | ||
| 270 | + | ||
| 271 | + goto :goto_0 | ||
| 272 | + | ||
| 273 | + :catch_0 | ||
| 274 | + move-exception v0 | ||
| 275 | + | ||
| 276 | + new-instance v3, Ljava/lang/StringBuilder; | ||
| 277 | + | ||
| 278 | + invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V | ||
| 279 | + | ||
| 280 | + const-string v4, "ActivityThread:currentApplication --> " | ||
| 281 | + | ||
| 282 | + invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 283 | + | ||
| 284 | + invoke-virtual {v0}, Ljava/lang/Exception;->toString()Ljava/lang/String; | ||
| 285 | + | ||
| 286 | + move-result-object v0 | ||
| 287 | + | ||
| 288 | + invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; | ||
| 289 | + | ||
| 290 | + invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; | ||
| 291 | + | ||
| 292 | + move-object v0, v1 | ||
| 293 | + | ||
| 294 | + :goto_0 | ||
| 295 | + if-nez v0, :cond_0 | ||
| 296 | + | ||
| 297 | + return v2 | ||
| 298 | + | ||
| 299 | + :cond_0 | ||
| 300 | + invoke-static {}, LXI/xo/XI/XI/CA;->XI()LXI/xo/XI/XI/CA; | ||
| 301 | + | ||
| 302 | + move-result-object v1 | ||
| 303 | + | ||
| 304 | + invoke-virtual {v1, v0, v2}, LXI/xo/XI/XI/CA;->XI(Landroid/content/Context;Z)Z | ||
| 305 | + | ||
| 306 | + move-result v0 | ||
| 307 | + | ||
| 308 | + return v0 | ||
| 309 | +.end method | ||
| 310 | + | ||
| 311 | +.method public static kM(Landroid/content/Context;)Ljava/lang/String; | ||
| 312 | + .locals 2 | ||
| 313 | + | ||
| 314 | + invoke-static {p0}, LXI/CA/XI/K0;->XI(Landroid/content/Context;)LXI/CA/XI/K0; | ||
| 315 | + | ||
| 316 | + move-result-object p0 | ||
| 317 | + | ||
| 318 | + if-nez p0, :cond_0 | ||
| 319 | + | ||
| 320 | + goto :goto_0 | ||
| 321 | + | ||
| 322 | + .line 1 | ||
| 323 | + :cond_0 | ||
| 324 | + sget v0, Landroid/os/Build$VERSION;->SDK_INT:I | ||
| 325 | + | ||
| 326 | + const/16 v1, 0x1c | ||
| 327 | + | ||
| 328 | + if-ne v0, v1, :cond_1 | ||
| 329 | + | ||
| 330 | + :goto_0 | ||
| 331 | + const/4 p0, 0x0 | ||
| 332 | + | ||
| 333 | + goto :goto_1 | ||
| 334 | + | ||
| 335 | + :cond_1 | ||
| 336 | + sget-object v0, LXI/CA/XI/K0;->bs:Ljava/lang/String; | ||
| 337 | + | ||
| 338 | + if-eqz v0, :cond_2 | ||
| 339 | + | ||
| 340 | + move-object p0, v0 | ||
| 341 | + | ||
| 342 | + goto :goto_1 | ||
| 343 | + | ||
| 344 | + :cond_2 | ||
| 345 | + sget-object v0, LXI/CA/XI/K0;->XI:Landroid/content/Context; | ||
| 346 | + | ||
| 347 | + invoke-virtual {v0}, Landroid/content/Context;->getPackageName()Ljava/lang/String; | ||
| 348 | + | ||
| 349 | + move-result-object v0 | ||
| 350 | + | ||
| 351 | + const/4 v1, 0x1 | ||
| 352 | + | ||
| 353 | + invoke-virtual {p0, v1, v0}, LXI/CA/XI/K0;->XI(ILjava/lang/String;)V | ||
| 354 | + | ||
| 355 | + sget-object p0, LXI/CA/XI/K0;->xo:LXI/CA/XI/kM; | ||
| 356 | + | ||
| 357 | + if-nez p0, :cond_3 | ||
| 358 | + | ||
| 359 | + sget-object p0, LXI/CA/XI/K0;->bs:Ljava/lang/String; | ||
| 360 | + | ||
| 361 | + if-eqz p0, :cond_3 | ||
| 362 | + | ||
| 363 | + sget-object p0, LXI/CA/XI/K0;->XI:Landroid/content/Context; | ||
| 364 | + | ||
| 365 | + invoke-static {p0, v1, v0}, LXI/CA/XI/K0;->XI(Landroid/content/Context;ILjava/lang/String;)V | ||
| 366 | + | ||
| 367 | + :cond_3 | ||
| 368 | + sget-object p0, LXI/CA/XI/K0;->bs:Ljava/lang/String; | ||
| 369 | + | ||
| 370 | + :goto_1 | ||
| 371 | + return-object p0 | ||
| 372 | +.end method | ||
| 373 | + | ||
| 374 | +.method public static xo(Landroid/content/Context;)V | ||
| 375 | + .locals 3 | ||
| 376 | + | ||
| 377 | + sget-boolean v0, LXI/XI/K0/XI;->XI:Z | ||
| 378 | + | ||
| 379 | + if-nez v0, :cond_1 | ||
| 380 | + | ||
| 381 | + sget-object v0, LXI/K0/XI/XI$K0$K0;->XI:LXI/K0/XI/XI$K0; | ||
| 382 | + | ||
| 383 | + invoke-static {p0}, LXI/XI/K0/XI;->CA(Landroid/content/Context;)Landroid/content/Context; | ||
| 384 | + | ||
| 385 | + move-result-object p0 | ||
| 386 | + | ||
| 387 | + .line 1 | ||
| 388 | + invoke-virtual {v0}, Ljava/lang/Object;->getClass()Ljava/lang/Class; | ||
| 389 | + | ||
| 390 | + const/4 v0, 0x0 | ||
| 391 | + | ||
| 392 | + const/4 v1, 0x1 | ||
| 393 | + | ||
| 394 | + :try_start_0 | ||
| 395 | + invoke-virtual {p0}, Landroid/content/Context;->getPackageManager()Landroid/content/pm/PackageManager; | ||
| 396 | + | ||
| 397 | + move-result-object p0 | ||
| 398 | + :try_end_0 | ||
| 399 | + .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0 | ||
| 400 | + | ||
| 401 | + const-string v2, "com.heytap.openid" | ||
| 402 | + | ||
| 403 | + :try_start_1 | ||
| 404 | + invoke-virtual {p0, v2, v0}, Landroid/content/pm/PackageManager;->getPackageInfo(Ljava/lang/String;I)Landroid/content/pm/PackageInfo; | ||
| 405 | + | ||
| 406 | + move-result-object p0 | ||
| 407 | + | ||
| 408 | + if-eqz p0, :cond_0 | ||
| 409 | + | ||
| 410 | + iget p0, p0, Landroid/content/pm/PackageInfo;->versionCode:I | ||
| 411 | + :try_end_1 | ||
| 412 | + .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_1 .. :try_end_1} :catch_0 | ||
| 413 | + | ||
| 414 | + if-lt p0, v1, :cond_0 | ||
| 415 | + | ||
| 416 | + move v0, v1 | ||
| 417 | + | ||
| 418 | + .line 2 | ||
| 419 | + :catch_0 | ||
| 420 | + :cond_0 | ||
| 421 | + sput-boolean v0, LXI/XI/K0/XI;->K0:Z | ||
| 422 | + | ||
| 423 | + sput-boolean v1, LXI/XI/K0/XI;->XI:Z | ||
| 424 | + | ||
| 425 | + :cond_1 | ||
| 426 | + return-void | ||
| 427 | +.end method |
config/sdk/668/smali/XI/XI/K0/kM.smali
0 → 100644
-
请 注册 或 登录 后发表评论