|
@@ -850,6 +850,11 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>(),Download
|
850
|
850
|
data.sn = it
|
851
|
851
|
}
|
852
|
852
|
data.appPackage = message
|
|
853
|
+ val packageInfo =
|
|
854
|
+ packageManager.getPackageInfo(message, PackageManager.GET_META_DATA)
|
|
855
|
+ val label =
|
|
856
|
+ packageManager.getApplicationLabel(packageInfo.applicationInfo)
|
|
857
|
+ data.comm =label.toString()
|
853
|
858
|
data.doEvent = EventLog.STARTAPPEVENT
|
854
|
859
|
viewModel.eventLog(data)
|
855
|
860
|
}
|
|
@@ -867,7 +872,7 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>(),Download
|
867
|
872
|
packageManager.getPackageInfo(message, PackageManager.GET_META_DATA)
|
868
|
873
|
val label =
|
869
|
874
|
packageManager.getApplicationLabel(packageInfo.applicationInfo)
|
870
|
|
- data.comm = "App安装,应用名:${label}"
|
|
875
|
+ data.comm =label.toString()
|
871
|
876
|
data.appPackage = message
|
872
|
877
|
data.doEvent = EventLog.APPINSTALLEVENT
|
873
|
878
|
viewModel.eventLog(data)
|
|
@@ -885,7 +890,11 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>(),Download
|
885
|
890
|
ManageApplication.getDeviceInfo()?.let {
|
886
|
891
|
data.sn = it
|
887
|
892
|
}
|
888
|
|
- data.comm = "App卸载"
|
|
893
|
+ val packageInfo =
|
|
894
|
+ packageManager.getPackageInfo(message, PackageManager.GET_META_DATA)
|
|
895
|
+ val label =
|
|
896
|
+ packageManager.getApplicationLabel(packageInfo.applicationInfo)
|
|
897
|
+ data.comm =label.toString()
|
889
|
898
|
data.appPackage = message
|
890
|
899
|
data.doEvent = EventLog.APPUNINSTALLEVENT
|
891
|
900
|
viewModel.eventLog(data)
|
|
@@ -896,7 +905,7 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>(),Download
|
896
|
905
|
ManageApplication.getDeviceInfo()?.let {
|
897
|
906
|
data.sn = it
|
898
|
907
|
}
|
899
|
|
- data.comm = "SD卡插入"
|
|
908
|
+ data.comm = EventLog.SDEMOUNTEDVENTSTRING
|
900
|
909
|
data.doEvent = EventLog.SDEMOUNTEDVENT
|
901
|
910
|
viewModel.eventLog(data)
|
902
|
911
|
}
|
|
@@ -906,7 +915,7 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>(),Download
|
906
|
915
|
ManageApplication.getDeviceInfo()?.let {
|
907
|
916
|
data.sn = it
|
908
|
917
|
}
|
909
|
|
- data.comm = "SD卡拔出"
|
|
918
|
+ data.comm = EventLog.SDEJECTEVENTSTRING
|
910
|
919
|
data.doEvent = EventLog.SDEJECTEVENT
|
911
|
920
|
viewModel.eventLog(data)
|
912
|
921
|
}
|
|
@@ -916,7 +925,7 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>(),Download
|
916
|
925
|
ManageApplication.getDeviceInfo()?.let {
|
917
|
926
|
data.sn = it
|
918
|
927
|
}
|
919
|
|
- data.comm = "SIM卡安装"
|
|
928
|
+ data.comm = EventLog.SIMEVENTSTRING
|
920
|
929
|
data.doEvent = EventLog.SIMEVENT
|
921
|
930
|
viewModel.eventLog(data)
|
922
|
931
|
}
|
|
@@ -926,7 +935,7 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>(),Download
|
926
|
935
|
ManageApplication.getDeviceInfo()?.let {
|
927
|
936
|
data.sn = it
|
928
|
937
|
}
|
929
|
|
- data.comm = "蓝牙打开"
|
|
938
|
+ data.comm = EventLog.BLUETOOHEVENTSTRING
|
930
|
939
|
data.doEvent = EventLog.BLUETOOHEVENT
|
931
|
940
|
viewModel.eventLog(data)
|
932
|
941
|
}
|
|
@@ -936,7 +945,7 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>(),Download
|
936
|
945
|
ManageApplication.getDeviceInfo()?.let {
|
937
|
946
|
data.sn = it
|
938
|
947
|
}
|
939
|
|
- data.comm = "usb连接"
|
|
948
|
+ data.comm = EventLog.USBCONNECTEVENTSTRING
|
940
|
949
|
data.doEvent = EventLog.USBCONNECTEVENT
|
941
|
950
|
viewModel.eventLog(data)
|
942
|
951
|
}
|
|
@@ -946,7 +955,7 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>(),Download
|
946
|
955
|
ManageApplication.getDeviceInfo()?.let {
|
947
|
956
|
data.sn = it
|
948
|
957
|
}
|
949
|
|
- data.comm = "usb断开"
|
|
958
|
+ data.comm = EventLog.USBDISCONNECTEVENTSTRING
|
950
|
959
|
data.doEvent = EventLog.USBDISCONNECTEVENT
|
951
|
960
|
viewModel.eventLog(data)
|
952
|
961
|
}
|
|
@@ -1171,7 +1180,7 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>(),Download
|
1171
|
1180
|
ManageApplication.getDeviceInfo()?.let {
|
1172
|
1181
|
data.sn = it
|
1173
|
1182
|
}
|
1174
|
|
- data.comm = "退出登录"
|
|
1183
|
+ data.comm = EventLog.ACCOUNTQUITEVENTSTRING
|
1175
|
1184
|
data.doEvent = EventLog.ACCOUNTQUITEVENT
|
1176
|
1185
|
viewModel.eventLog(data)
|
1177
|
1186
|
} else {
|