-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feature] add APP analysis feature to analyse ATX devices (#42)
* [feature] add APP analysis feature to analyse ATX-Angent devices * [opt] opt tendid token get from env params * [opt] delete opt log
- Loading branch information
1 parent
f5c0b93
commit ea26d02
Showing
4 changed files
with
29 additions
and
3 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 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
22 changes: 22 additions & 0 deletions
22
app/src/main/java/com/github/uiautomator/MainApplication.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,22 @@ | ||
package com.github.uiautomator; | ||
|
||
import android.app.Application; | ||
import android.util.Log; | ||
|
||
import com.tendcloud.tenddata.TCAgent; | ||
|
||
public class MainApplication extends Application { | ||
private static final String TAG = ">>>>>MainApplication"; | ||
@Override | ||
public void onCreate() { | ||
super.onCreate(); | ||
// JLibrary.InitEntry(this); //移动安全联盟统一SDK初始化 | ||
TCAgent.LOG_ON = true; | ||
// App ID: 在TalkingData创建应用后,进入数据报表页中,在“系统设置”-“编辑应用”页面里查看App ID。 | ||
// 渠道 ID: 是渠道标识符,可通过不同渠道单独追踪数据。 | ||
TCAgent.init(this, BuildConfig.buildTendId, BuildConfig.buildChannel); | ||
// 如果已经在AndroidManifest.xml配置了App ID和渠道ID,调用TCAgent.init(this)即可;或与AndroidManifest.xml中的对应参数保持一致。 | ||
TCAgent.setReportUncaughtExceptions(true); | ||
Log.e(TAG, "TCAgent init over>>>>>"); | ||
} | ||
} |