Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Sign in / Register
Toggle navigation
A
appzxhy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wanglei
appzxhy
Commits
ef95a92e
Commit
ef95a92e
authored
Jun 17, 2025
by
wanglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[修改]修改上报事件
parent
a0ed3168
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
MyApplication.kt
app/src/main/java/com/tgv/malware/MyApplication.kt
+9
-3
No files found.
app/src/main/java/com/tgv/malware/MyApplication.kt
View file @
ef95a92e
...
...
@@ -30,6 +30,7 @@ import com.tgv.malware.business.push.fcm.FCMManager
import
com.tgv.malware.business.push.notification.MyNotificationManager
import
com.tgv.malware.ui.splash.SplashActivity
import
com.facebook.appevents.AppEventsLogger
import
com.tgv.malware.business.helper.EventUtils
import
com.tgv.malware.business.push.receiver.AlarmReceiver.Companion.startAlarm
import
com.tgv.malware.business.push.receiver.ScreenStatusReceiver
import
com.tgv.malware.business.push.timer.TimerManager.Companion.changeTimer
...
...
@@ -98,9 +99,14 @@ class MyApplication : Application() {
}
private
fun
initGid
()
=
MainScope
().
launch
(
Dispatchers
.
IO
)
{
try
{
val
info
:
AdvertisingIdClient
.
Info
=
AdvertisingIdClient
.
getAdvertisingIdInfo
(
applicationContext
)
val
advertisingId
=
info
.
id
AppPreferences
.
getInstance
().
put
(
"gid"
,
advertisingId
)
}
catch
(
e
:
Exception
)
{
EventUtils
.
event
(
"gid_exception"
)
}
}
override
fun
attachBaseContext
(
base
:
Context
?)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment