|
@@ -132,10 +132,11 @@ class MainActivity : BaseActivity<MainViewModel, ActivityMainBinding>() {
|
132
|
132
|
appList.forEach { app ->
|
133
|
133
|
val filter = modelList.filter { it.appPackage.equals(app.packageName) }
|
134
|
134
|
val appInfos = firstAppList.filter { app.packageName.equals(it) }
|
135
|
|
- //接口列表以及初始化列表中不存在则将应用冻结或者卸载,目前是冻结
|
|
135
|
+ //接口列表以及初始化列表中不存在则将应用冻结或者卸载,目前是卸载
|
136
|
136
|
LogShow("${app.name},被冻结" + (filter.isEmpty() && appInfos.isEmpty()))
|
137
|
137
|
if (filter.isEmpty() && appInfos.isEmpty()) {
|
138
|
|
- ManageApplication.setPackageEnabled(app.packageName, (filter.isNotEmpty()))
|
|
138
|
+ //ManageApplication.setPackageEnabled(app.packageName, (filter.isNotEmpty()))
|
|
139
|
+ ManageApplication.uninstallPackage(app.packageName)
|
139
|
140
|
}
|
140
|
141
|
}
|
141
|
142
|
}
|