mirror of https://github.com/FongMi/TV.git
parent
decc8e9f2b
commit
ba46c33fca
@ -1,6 +1 @@ |
||||
<manifest package="com.ghost.thunder" xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> |
||||
<application> |
||||
<meta-data android:name="com.xunlei.download.APP_KEY" android:value="bpIzNjAxNTsxNTA0MDk0ODg4LjQyODAwMA&&OxNw==21^5e1c1b6a73^c76f3^cd3c0e331d164^ed3c62==2974DD65D2^39222^5954C5914A8267D"/> |
||||
</application> |
||||
</manifest> |
||||
<manifest package="com.ghost.thunder" /> |
||||
|
||||
@ -1,21 +1,33 @@ |
||||
package com.xunlei.downloadlib.parameter; |
||||
|
||||
import android.util.Base64; |
||||
|
||||
import com.xunlei.downloadlib.android.XLUtil; |
||||
|
||||
import java.nio.charset.StandardCharsets; |
||||
|
||||
public class InitParam { |
||||
|
||||
public String mAppKey; |
||||
public String mAppVersion; |
||||
public String mGuid; |
||||
public String mLogSavePath; |
||||
public int mPermissionLevel; |
||||
public String mStatCfgSavePath; |
||||
public int mQueryConfOnInit; |
||||
public String mStatSavePath; |
||||
public String mStatCfgSavePath; |
||||
|
||||
public InitParam(String path) { |
||||
this.mAppVersion = "1.18.2"; |
||||
this.mPermissionLevel = 3; |
||||
this.mAppKey = "xzNjAwMQ^^yb==0^852^083dbcff^cee25055f125a2fde"; |
||||
this.mAppVersion = "21.01.07.800002"; |
||||
this.mPermissionLevel = 1; |
||||
this.mQueryConfOnInit = 0; |
||||
this.mStatSavePath = path; |
||||
this.mStatCfgSavePath = path; |
||||
this.mLogSavePath = path; |
||||
this.mGuid = "000000000000000000"; |
||||
} |
||||
|
||||
public String getSoKey() { |
||||
String[] split = mAppKey.split("=="); |
||||
String replace = split[0].replace('^', '='); |
||||
String str = new String(Base64.decode(replace.substring(2, replace.length() - 2), 0), StandardCharsets.UTF_8); |
||||
return XLUtil.generateAppKey("com.android.providers.downloads", Short.parseShort(str.split(";")[0]), (byte) 1); |
||||
} |
||||
} |
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue