-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
8 changed files
with
108 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-553 KB
..._thirdapp_v4.3.0.253_44153_sharewithdownloadwithfile_withoutGame_obfs_20220117_105333.jar
Binary file not shown.
Binary file added
BIN
+450 KB
..._thirdapp_v4.3.0.386_44286_sharewithdownloadwithfile_withoutGame_obfs_20230210_114429.jar
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
app/src/main/java/com/eanyatonic/cctvViewer/LoadingActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
package com.eanyatonic.cctvViewer; | ||
|
||
import com.eanyatonic.cctvViewer.FileUtils; | ||
import com.eanyatonic.cctvViewer.MainActivity; | ||
|
||
import androidx.appcompat.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
import android.util.Log; | ||
import android.content.Intent; | ||
|
||
import com.tencent.smtt.sdk.QbSdk; | ||
import com.tencent.smtt.sdk.TbsListener; | ||
|
||
public class LoadingActivity extends AppCompatActivity { | ||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_loading); | ||
// 安装TBS内核 | ||
QbSdk.reset(MainActivity.get()); | ||
QbSdk.installLocalTbsCore(MainActivity.get(), 45738, | ||
FileUtils.getTBSFileDir(MainActivity.get()).getPath() + "/045738_x5.tbs.apk"); | ||
QbSdk.setTbsListener(new TbsListener() { | ||
@Override | ||
public void onDownloadFinish(int i) { | ||
Log.e("TAG", "进行了tbs:onDownloadFinish " + i); | ||
} | ||
|
||
@Override | ||
public void onDownloadProgress(int i) { | ||
Log.e("TAG", "进行了tbs:onDownloadProgress " + i); | ||
} | ||
|
||
@Override | ||
public void onInstallFinish(int i) { | ||
Log.e("TAG", "进行了tbs:onInstallFinish " + i); | ||
Intent intent = new Intent(LoadingActivity.this, MainActivity.class); | ||
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK); | ||
startActivity(intent); | ||
finish(); // 销毁 LoadingActivity | ||
} | ||
}); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:gravity="center" | ||
android:orientation="vertical"> | ||
|
||
<ProgressBar | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:indeterminate="true" /> | ||
|
||
<TextView | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="正在安装X5内核,请您稍等..." | ||
android:layout_marginTop="16dp" /> | ||
</LinearLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters