提交 b933420f 编写于 作者: 杜庆泉's avatar 杜庆泉

修复AppHookProxy 示例告警

上级 caefc892
...@@ -27,6 +27,8 @@ import LayoutInflater from 'android.view.LayoutInflater'; ...@@ -27,6 +27,8 @@ import LayoutInflater from 'android.view.LayoutInflater';
import LinearLayoutManager from 'androidx.recyclerview.widget.LinearLayoutManager'; import LinearLayoutManager from 'androidx.recyclerview.widget.LinearLayoutManager';
export {DoAppWidget} from "./DoAppWidget.uts" export {DoAppWidget} from "./DoAppWidget.uts"
import Application from 'android.app.Application'; import Application from 'android.app.Application';
import Log from 'android.util.Log';
import File from 'java.io.File'; import File from 'java.io.File';
import Uri from 'android.net.Uri'; import Uri from 'android.net.Uri';
export * from './CustomAccessibilityService.uts' export * from './CustomAccessibilityService.uts'
...@@ -34,10 +36,10 @@ export * from './CustomAccessibilityService.uts' ...@@ -34,10 +36,10 @@ export * from './CustomAccessibilityService.uts'
export class AppHookProxy implements UTSAndroidHookProxy { export class AppHookProxy implements UTSAndroidHookProxy {
override onCreate(application: Application) { override onCreate(application: Application) {
//当前应用是否 取得用户同意隐私协议 //当前应用是否 取得用户同意隐私协议
android.util.Log.d("AppHookProxy", "AppHookProxy--onCreate---") Log.d("AppHookProxy", "AppHookProxy--onCreate---")
if(UTSAndroid.isPrivacyAgree()) { if(UTSAndroid.isPrivacyAgree()) {
//onCreate 初始化三方SDK //onCreate 初始化三方SDK
android.util.Log.d("AppHookProxy", "AppHookProxy--onCreate---isPrivacyAgree") Log.d("AppHookProxy", "AppHookProxy--onCreate---isPrivacyAgree")
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册