|
@@ -56,6 +56,19 @@ class ManageActivity : BaseActivity<BaseViewModel, ActivityManageBinding>() {
|
56
|
56
|
|
57
|
57
|
|
58
|
58
|
override fun initView() {
|
|
59
|
+ mBinding.addwifilistBtn.setOnClickListener {
|
|
60
|
+ //ManageApplication.addWifiWhiteList(arrayListOf("xhkjedun7"))
|
|
61
|
+ /* LogShow(ManageApplication.GetAppWhiteRules().toString())
|
|
62
|
+ ManageApplication.addAppWhiteRule(arrayListOf(packageName))*/
|
|
63
|
+ type=getType(type)
|
|
64
|
+ /*ManageApplication.disallowSetAutoRotation(type==0)*/
|
|
65
|
+ val getAppWhiteRules = ManageApplication.GetAppWhiteRules()
|
|
66
|
+ LogShow("白名单例外"+getAppWhiteRules.size.toString()+"|||"+getAppWhiteRules.toString())
|
|
67
|
+ ManageApplication.addAppWhiteRule(arrayListOf("com.baidu.searchbox"))
|
|
68
|
+ }
|
|
69
|
+ mBinding.removewifiBtn.setOnClickListener {
|
|
70
|
+ ManageApplication.clearAppWhiteRule()
|
|
71
|
+ }
|
59
|
72
|
mBinding.adbopenBtn.setOnClickListener {
|
60
|
73
|
Toast("设置" + ManageApplication.enableUsbDebugging(true))
|
61
|
74
|
}
|
|
@@ -179,7 +192,7 @@ class ManageActivity : BaseActivity<BaseViewModel, ActivityManageBinding>() {
|
179
|
192
|
//ManageApplication.addInstallPackageWhiteList(arrayListOf("com.coolapk.market"))
|
180
|
193
|
|
181
|
194
|
// ManageApplication.removeInstallPackageWhiteList(arrayListOf("com.coolapk.market"))
|
182
|
|
- ManageApplication.installPackage(File(name, "英语词典.apk").toString())
|
|
195
|
+ ManageApplication.installPackage(File(file , "test.apk").toString())
|
183
|
196
|
//ZJAPPUtils.installApk(this, File(name, "test.apk"))
|
184
|
197
|
}
|
185
|
198
|
var type10 = 0
|
|
@@ -254,6 +267,12 @@ class ManageActivity : BaseActivity<BaseViewModel, ActivityManageBinding>() {
|
254
|
267
|
ManageApplication.hideMenuSoftKey(b)
|
255
|
268
|
ManageApplication.hideHomeSoftKey(b)
|
256
|
269
|
}
|
|
270
|
+ mBinding.clearBtn.setOnClickListener {
|
|
271
|
+ ManageApplication.clearAppData(arrayListOf("com.coolapk.market"))
|
|
272
|
+ }
|
|
273
|
+ mBinding.speedBtn.setOnClickListener {
|
|
274
|
+ ManageApplication.killApplicationProcess("com.coolapk.market")
|
|
275
|
+ }
|
257
|
276
|
}
|
258
|
277
|
|
259
|
278
|
|