mirror of https://github.com/FongMi/TV.git
parent
2c47004d44
commit
24c387fadd
@ -1,33 +1,20 @@ |
||||
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 mGuid; |
||||
public String mAppVersion; |
||||
public int mPermissionLevel; |
||||
public int mQueryConfOnInit; |
||||
public String mLogSavePath; |
||||
public String mStatSavePath; |
||||
public String mStatCfgSavePath; |
||||
public int mPermissionLevel; |
||||
|
||||
public InitParam(String path) { |
||||
this.mAppKey = "xzNjAwMQ^^yb==0^852^083dbcff^cee25055f125a2fde"; |
||||
this.mAppVersion = "21.01.07.800002"; |
||||
this.mPermissionLevel = 1; |
||||
this.mQueryConfOnInit = 0; |
||||
this.mGuid = "000000000000000000"; |
||||
this.mAppVersion = "1.18.2"; |
||||
this.mLogSavePath = path; |
||||
this.mStatSavePath = path; |
||||
this.mStatCfgSavePath = path; |
||||
} |
||||
|
||||
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); |
||||
this.mPermissionLevel = 3; |
||||
} |
||||
} |
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue