ソースを参照

1.添加测试页面。

20241218TB223FC(测试jar包)
wangwanlei 2ヶ月前
コミット
86020a7bca

+ 4
- 1
app/src/main/AndroidManifest.xml ファイルの表示

@@ -73,7 +73,7 @@
73 73
             android:process=":remote"></service>
74 74
 
75 75
         <activity
76
-            android:name="com.xhly.manageapp.ui.main.activity.MainActivity"
76
+            android:name="com.xhly.manageapp.ui.ManageTestActivity"
77 77
             android:exported="true"
78 78
             android:launchMode="singleTask"
79 79
             android:screenOrientation="landscape">
@@ -93,6 +93,9 @@
93 93
             android:launchMode="singleTask"
94 94
             android:screenOrientation="landscape"
95 95
             android:windowSoftInputMode="adjustResize" />
96
+      <!--  <activity android:name="com.xhly.manageapp.ui.ManageTestActivity"
97
+            android:screenOrientation="landscape"
98
+            />-->
96 99
 
97 100
         <receiver
98 101
             android:name="com.xhly.manageapp.broadcastreceiver.USBReceiver"

+ 362
- 0
app/src/main/java/com/xhly/manageapp/ui/ManageTestActivity.kt ファイルの表示

@@ -0,0 +1,362 @@
1
+package com.xhly.manageapp.ui
2
+
3
+import BaseActivity
4
+import android.app.csdk.CSDKManager
5
+import android.content.ComponentName
6
+import android.content.Intent
7
+import android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_DISABLED
8
+import android.content.pm.PackageManager.COMPONENT_ENABLED_STATE_ENABLED
9
+import android.content.pm.PackageManager.DONT_KILL_APP
10
+import android.graphics.Color
11
+import android.os.Environment
12
+import android.os.Environment.DIRECTORY_DOWNLOADS
13
+import android.os.storage.StorageManager
14
+import android.provider.Settings
15
+import android.view.View
16
+import android.widget.EditText
17
+import android.widget.TextView
18
+import com.hjq.toast.Toaster
19
+import com.kongzue.dialogx.dialogs.CustomDialog
20
+import com.kongzue.dialogx.interfaces.OnBindView
21
+import com.xhkjedu.manageapp.R
22
+import com.xhkjedu.manageapp.databinding.ActivityManageBinding
23
+import com.xhkjedu.manageapp.databinding.ActivityManagetestBinding
24
+import com.xhly.corelib.Const
25
+import com.xhly.corelib.base.viewmodel.CommonBaseViewModel
26
+import com.xhly.corelib.eventbus.UIEvent
27
+import com.xhly.corelib.utils.LogShow
28
+import com.xhly.corelib.utils.ModelNameUtils
29
+import com.xhly.manageapp.ManageApplication
30
+import com.xhly.manageapp.bean.user.UserBean
31
+import com.xhly.manageapp.utils.CurrentAppSharedPreferencesUtils
32
+import com.xhly.manageapp.utils.StrategyUtils
33
+import com.xhly.manageapp.viewmodel.BaseViewModel
34
+import java.io.Console
35
+import java.io.File
36
+import kotlin.system.exitProcess
37
+
38
+
39
+//安装白名单为添加机制,不在白名单时需要去移除
40
+class ManageTestActivity : BaseActivity<BaseViewModel, ActivityManagetestBinding>() {
41
+    //存储退出管控
42
+    private val currentSpUtils by lazy { CurrentAppSharedPreferencesUtils.getInstance(this) }
43
+    private var type = 1
44
+    private var type1 = 0
45
+    private var type2 = 0
46
+    private var type3 = 0
47
+    private var type4 = 0
48
+    private var type5 = 0
49
+    private var type6 = 0
50
+    private var appList =
51
+        arrayListOf("com.android.calendar", "com.android.soundrecorder", "com.android.deskclock")
52
+
53
+    override fun getBinding() = ActivityManagetestBinding.inflate(layoutInflater)
54
+
55
+    override fun initData() {
56
+        //同意运行时权限
57
+        ManageApplication.setRuntimePermissions(true)
58
+        //ManageApplication.enableAllUnkownsourcesV3(true)
59
+    }
60
+
61
+
62
+    override fun initView() {
63
+        mBinding.addwifilistBtn.setOnClickListener {
64
+            //ManageApplication.addWifiWhiteList(arrayListOf("xhkjedun7"))
65
+           /* LogShow(ManageApplication.GetAppWhiteRules().toString())
66
+            ManageApplication.addAppWhiteRule(arrayListOf(packageName))*/
67
+            ManageApplication.addWifiWhiteList(arrayListOf("YXKJ"))
68
+        }
69
+        mBinding.removewifiBtn.setOnClickListener {
70
+            LogShow("getWifiWhiteList()=="+ManageApplication.getWifiWhiteList())
71
+            ManageApplication.enableWifiWhiteList(false)
72
+            val wifiWhiteList = ManageApplication.getWifiWhiteList()
73
+            if (wifiWhiteList.isNotEmpty()){
74
+                ManageApplication.removeWifiWhiteList(wifiWhiteList)
75
+            }
76
+        }
77
+        mBinding.adbopenBtn.setOnClickListener {
78
+            Toast("设置" + ManageApplication.enableUsbDebugging(true))
79
+        }
80
+        mBinding.adbcloseBtn.setOnClickListener {
81
+            Toast("设置" + ManageApplication.enableUsbDebugging(false))
82
+        }
83
+        mBinding.cameraBtn.setOnClickListener {
84
+            if (type == 0) {
85
+                type = 1
86
+            } else {
87
+                type = 0
88
+            }
89
+            val b = type == 0
90
+            Toast("设置 $b")
91
+            ManageApplication.disableCamera(b)
92
+        }
93
+        mBinding.bluBtn.setOnClickListener {
94
+            type1 = if (type1 == 0) {
95
+                1
96
+            } else {
97
+                0
98
+            }
99
+            var b = type1 == 0
100
+            Toast("设置" + b)
101
+            ManageApplication.enableBluetooth(b)
102
+        }
103
+        mBinding.netBtn.setOnClickListener {
104
+            type5 = if (type5 == 0) {
105
+                1
106
+            } else {
107
+                0
108
+            }
109
+            var b = type5 == 0
110
+            Toast("设置" + b)
111
+            ManageApplication.enableData(b)
112
+            startActivity(Intent(Settings.ACTION_NETWORK_OPERATOR_SETTINGS))
113
+        }
114
+
115
+        mBinding.locationBtn.setOnClickListener {
116
+            type3 = if (type3 == 0) {
117
+                1
118
+            } else {
119
+                0
120
+            }
121
+            Toast("设置" + (type3 == 0))
122
+            ManageApplication.enableLocation((type3 == 0))
123
+        }
124
+        mBinding.wifiBtn.setOnClickListener {
125
+            type2 = if (type2 == 0) {
126
+                1
127
+            } else {
128
+                0
129
+            }
130
+            Toast("设置" +(type2 == 0))
131
+            ManageApplication.enableWifi(type2==0)
132
+        }
133
+
134
+        mBinding.wifiHighBtn.setOnClickListener {
135
+            type6 = getType(type6)
136
+            //csdkManager.disallowWifi_v3(false)
137
+            ManageApplication.disallowWifiAdvanceSettings(type6==0)
138
+            Toast("设置" +(type6 == 0))
139
+            startActivity(Intent(Settings.ACTION_WIFI_SETTINGS))
140
+        }
141
+
142
+        mBinding.wifiHighBtn2.setOnClickListener {
143
+            type6 = getType(type6)
144
+            //csdkManager.disallowWifi_v3(false)
145
+            ManageApplication.disallowWifiAdvanceSettings(type6==0)
146
+            Toast("设置" +(type6 == 0))
147
+            startActivity(Intent(Settings.ACTION_WIFI_SETTINGS))
148
+        }
149
+
150
+        mBinding.usbBtn.setOnClickListener {
151
+            type4 = getType(type4 )
152
+            Toast("设置" + (type4 == 0))
153
+            ManageApplication.requestKeyControl_V3(26,type4 == 0)
154
+        }
155
+        var type7 = 0
156
+        mBinding.sdBtn.setOnClickListener {
157
+            type7 = getType(type7 )
158
+            Toast("设置" +(type7 == 0))
159
+            ManageApplication.enableMassStorage(type7 == 0)
160
+        }
161
+        var type8 = 0
162
+        mBinding.otgBtn.setOnClickListener {
163
+            type8 = getType(type8)
164
+            ManageApplication.setCustomOTG((type8 == 0))
165
+            Toast("设置"+(type8 == 0))
166
+        }
167
+        var type9 = 0
168
+        mBinding.banBtn.setOnClickListener {
169
+            type9 = getType(type9)
170
+            ManageApplication.setPackageEnabled("com.coolapk.market", type9 == 0)
171
+        }
172
+        mBinding.settimeBtn.setOnClickListener {
173
+           // ManageApplication.setSysTime(0)
174
+        }
175
+        mBinding.uninstallBtn.setOnClickListener {
176
+            //csdkManager.removeInstallPackageWhiteList(arrayListOf("com.baidu.searchbox"))
177
+            ManageApplication.uninstallPackage("com.coolapk.market")
178
+        }
179
+        mBinding.installBtn.setOnClickListener {
180
+            var file = Environment.getExternalStoragePublicDirectory(DIRECTORY_DOWNLOADS)
181
+            var name =  getExternalFilesDir(null).toString()
182
+            var sb = StringBuffer()
183
+            ManageApplication.getInstallPackageWhiteList().forEach {
184
+                sb.append("$it,")
185
+            }
186
+            Toast("路径$name")
187
+            LogShow("白名单" + sb.toString())
188
+            ManageApplication.addInstallPackageWhiteList(
189
+                arrayListOf(
190
+                    "com.xhly.manageapp", "com.coolapk.market"
191
+                )
192
+            )
193
+
194
+
195
+            ManageApplication.disableInstallation(false)
196
+
197
+            //ManageApplication.addInstallPackageWhiteList(arrayListOf("com.coolapk.market"))
198
+
199
+           // ManageApplication.removeInstallPackageWhiteList(arrayListOf("com.coolapk.market"))
200
+            ManageApplication.installPackage(File(file , "酷安.apk").toString())
201
+            //ZJAPPUtils.installApk(this, File(name, "test.apk"))
202
+        }
203
+        var type10 = 0
204
+        mBinding.banmodleBtn.setOnClickListener {
205
+            var componentName = ComponentName(
206
+                "com.coolapk.market",
207
+                "com.coolapk.market.view.appmanager.AppManagerActivity"
208
+            )
209
+            type10 = getType(type10)
210
+            var state = if (type10 == 0) {
211
+                Toast("启用功能")
212
+                COMPONENT_ENABLED_STATE_ENABLED
213
+            } else {
214
+                Toast("关闭功能")
215
+                COMPONENT_ENABLED_STATE_DISABLED
216
+            }
217
+            ManageApplication.setComponentEnabled(
218
+                componentName,
219
+                state,
220
+                DONT_KILL_APP
221
+            )
222
+        }
223
+        var type11 = 0
224
+        mBinding.getsnBtn.setOnClickListener {
225
+            var array =
226
+                arrayListOf("设备Mac地址", "设备SN号", "获取设备型号信息", "获取设备IMEI信息")
227
+            array.forEach {
228
+                var indexOf = array.indexOf(it)
229
+                var deviceInfo = ManageApplication.getDeviceInfo(indexOf + 1)
230
+                LogShow("$it==$deviceInfo")
231
+            }
232
+        }
233
+        var num = 0
234
+        mBinding.resetBtn.setOnClickListener {
235
+            num++
236
+            Toast("还有${5 - num}次,恢复出厂")
237
+            if (num == 5) {
238
+                var launchFactoryReset = ManageApplication.launchFactoryReset()
239
+                Toast("恢复出厂成功=" + launchFactoryReset)
240
+            }
241
+        }
242
+        mBinding.launcherBtn.setOnClickListener {
243
+            //Toast("设置成功"+csdkManager.setLauncher("com.xhly.manageapp"))
244
+           ManageApplication.setCustomLauncher(
245
+                "com.xhly.manageapp",
246
+                "com.xhly.manageapp.ui.ManageActivity"
247
+            )
248
+        }
249
+        var type12 = 0
250
+        mBinding.airbtnBtn.setOnClickListener {
251
+            type12 = getType(type12)
252
+            Toast("禁止操作" +(type12 == 0))
253
+            ManageApplication.disallowAirplaneMode_v3(type12 == 0)
254
+        }
255
+        var type13 = 0
256
+        mBinding.statusBtn.setOnClickListener {
257
+            type13 = getType(type13)
258
+            Toast("禁止操作"+(type13 == 0))
259
+            ManageApplication.hideStatusBar(type13 == 0)
260
+        }
261
+        var type14 = 0
262
+        mBinding.statuspanelBtn.setOnClickListener {
263
+            type14 = getType(type14)
264
+            Toast("禁止操作" +(type14 == 0))
265
+            ManageApplication.disableStatusBarPanel(type14 == 0)
266
+        }
267
+        var type15 = 0
268
+        mBinding.hidekeyBtn.setOnClickListener {
269
+            type15 = getType(type15)
270
+            var b = (type15 == 0)
271
+            ManageApplication.hideBackSoftKey(b)
272
+            ManageApplication.hideMenuSoftKey(b)
273
+            ManageApplication.hideHomeSoftKey(b)
274
+        }
275
+        mBinding.clearBtn.setOnClickListener {
276
+            ManageApplication.clearAppData(arrayListOf("com.coolapk.market"))
277
+        }
278
+        mBinding.speedBtn.setOnClickListener {
279
+            ManageApplication.killApplicationProcess("com.coolapk.market")
280
+        }
281
+        mBinding.inputBtn.setOnClickListener {
282
+            ManageApplication.setDefaultInputMethod("com.xhkjedu.pinyin/.PinyinIME")
283
+        }
284
+        mBinding.resetControl.setOnClickListener {
285
+            StrategyUtils.releaseControl(this)
286
+        }
287
+        var installFlag=false
288
+        mBinding.noinstallBtn.setOnClickListener {
289
+            installFlag=!installFlag
290
+            ManageApplication.disableInstallation(installFlag)
291
+        }
292
+        mBinding.startLauncher.setOnClickListener {
293
+            if (ModelNameUtils.IS_LianxX505f()|| ModelNameUtils.IS_LianxX6e6f()|| ModelNameUtils.IS_LianxTB223FC()){
294
+                ManageApplication.setPackageEnabled("com.tblenovo.launcher",true)
295
+                //505f的桌面名称
296
+                if (ModelNameUtils.IS_LianxTB223FC()){
297
+                    ManageApplication.setCustomLauncher("com.tblenovo.launcher","com.android.searchlauncher.SearchLauncher")
298
+                }else{
299
+                    ManageApplication.setCustomLauncher("com.tblenovo.launcher","com.android.iotlauncher.IotLauncher")
300
+                }
301
+                try {
302
+                    //解除管控后,禁止切换启动器
303
+                    ManageApplication.disallowSwitchLauncher_v3(true)
304
+                    val launchIntent = Intent()
305
+                    if (ModelNameUtils.IS_LianxTB223FC()){
306
+                        launchIntent.setComponent(
307
+                            ComponentName(
308
+                                "com.tblenovo.launcher",
309
+                                "com.android.searchlauncher.SearchLauncher"
310
+                            )
311
+                        )
312
+                    }else{
313
+                        launchIntent.setComponent(
314
+                            ComponentName(
315
+                                "com.tblenovo.launcher",
316
+                                "com.android.iotlauncher.IotLauncher"
317
+                            )
318
+                        )
319
+                    }
320
+                    launchIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
321
+                    startActivity(launchIntent)
322
+                    exitProcess(0)
323
+                }catch (e:Exception){
324
+                    Toaster.showLong("失败原因"+e.toString())
325
+                }
326
+            }
327
+
328
+        }
329
+        var qiehuanflag=false
330
+        mBinding.qiehuanBtn.setOnClickListener {
331
+            ManageApplication.disallowSwitchLauncher_v3(qiehuanflag)
332
+            qiehuanflag=!qiehuanflag
333
+        }
334
+        var weizhi=false
335
+        mBinding.weizhilaiyuanBtn.setOnClickListener {
336
+            ManageApplication.enableAllUnkownsourcesV3(weizhi)
337
+            weizhi=!weizhi
338
+        }
339
+        mBinding.xipingBtn.setOnClickListener {
340
+            ManageApplication.setSleepTimeoutV3()
341
+        }
342
+    }
343
+
344
+
345
+
346
+    override fun finish() {
347
+        super.finish()
348
+        UIEvent("update").post()
349
+    }
350
+
351
+    private fun getType(num: Int): Int {
352
+        var type = num
353
+        type = if (num == 0) {
354
+            Toast("关闭功能false")
355
+            1
356
+        } else {
357
+            Toast("启用功能true")
358
+            0
359
+        }
360
+        return type
361
+    }
362
+}

+ 307
- 0
app/src/main/res/layout/activity_managetest.xml ファイルの表示

@@ -0,0 +1,307 @@
1
+<?xml version="1.0" encoding="utf-8"?>
2
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
3
+    android:layout_width="match_parent"
4
+    android:layout_height="match_parent"
5
+    android:orientation="vertical">
6
+
7
+    <androidx.core.widget.NestedScrollView
8
+        android:layout_width="match_parent"
9
+        android:layout_height="match_parent">
10
+
11
+        <androidx.appcompat.widget.LinearLayoutCompat
12
+            android:layout_width="match_parent"
13
+            android:layout_height="wrap_content"
14
+            android:orientation="vertical">
15
+
16
+            <androidx.appcompat.widget.LinearLayoutCompat
17
+                android:layout_width="match_parent"
18
+                android:layout_height="wrap_content"
19
+                android:gravity="center_vertical">
20
+
21
+                <androidx.appcompat.widget.AppCompatButton
22
+                    android:id="@+id/addwifilist_btn"
23
+                    android:layout_width="0dp"
24
+                    android:layout_height="80dp"
25
+                    android:layout_weight="1"
26
+                    android:visibility="visible"
27
+                    android:text="添加wifi白名单" />
28
+
29
+                <androidx.appcompat.widget.AppCompatButton
30
+                    android:id="@+id/removewifi_btn"
31
+                    android:layout_width="0dp"
32
+                    android:layout_height="80dp"
33
+                    android:layout_weight="1"
34
+                    android:visibility="visible"
35
+                    android:text="移除wifi白名单" />
36
+
37
+                <androidx.appcompat.widget.AppCompatButton
38
+                    android:id="@+id/adbopenBtn"
39
+                    android:layout_width="0dp"
40
+                    android:layout_height="80dp"
41
+                    android:layout_weight="1"
42
+                    android:text="打开usb调试" />
43
+
44
+
45
+                <androidx.appcompat.widget.AppCompatButton
46
+                    android:id="@+id/adbclose_btn"
47
+                    android:layout_width="0dp"
48
+                    android:layout_height="80dp"
49
+                    android:layout_weight="1"
50
+                    android:text="关闭usb调试" />
51
+
52
+                <androidx.appcompat.widget.AppCompatButton
53
+                    android:id="@+id/camera_btn"
54
+                    android:layout_width="0dp"
55
+                    android:layout_height="80dp"
56
+                    android:layout_weight="1"
57
+                    android:visibility="visible"
58
+                    android:text="摄像头权限" />
59
+
60
+
61
+                <androidx.appcompat.widget.AppCompatButton
62
+                    android:id="@+id/blu_btn"
63
+                    android:layout_width="0dp"
64
+                    android:layout_height="80dp"
65
+                    android:layout_weight="1"
66
+                    android:text="蓝牙开关" />
67
+
68
+                <androidx.appcompat.widget.AppCompatButton
69
+                    android:id="@+id/net_btn"
70
+                    android:layout_width="0dp"
71
+                    android:layout_height="80dp"
72
+                    android:layout_weight="1"
73
+                    android:visibility="visible"
74
+                    android:text="数据开关" />
75
+
76
+                <androidx.appcompat.widget.AppCompatButton
77
+                    android:id="@+id/location_btn"
78
+                    android:layout_width="0dp"
79
+                    android:layout_height="80dp"
80
+                    android:layout_weight="1"
81
+                    android:visibility="visible"
82
+                    android:text="定位开关" />
83
+
84
+                <androidx.appcompat.widget.AppCompatButton
85
+                    android:id="@+id/wifi_btn"
86
+                    android:layout_width="0dp"
87
+                    android:layout_height="80dp"
88
+                    android:layout_weight="1"
89
+                    android:text="wifi开关" />
90
+            </androidx.appcompat.widget.LinearLayoutCompat>
91
+
92
+            <androidx.appcompat.widget.LinearLayoutCompat
93
+                android:layout_width="match_parent"
94
+                android:layout_height="wrap_content"
95
+                android:gravity="center_vertical">
96
+
97
+                <androidx.appcompat.widget.AppCompatButton
98
+                    android:id="@+id/wifi_high_btn"
99
+                    android:layout_width="0dp"
100
+                    android:layout_height="80dp"
101
+                    android:layout_weight="1"
102
+                    android:visibility="visible"
103
+                    android:text="wifi高级设置开关" />
104
+
105
+                <androidx.appcompat.widget.AppCompatButton
106
+                    android:id="@+id/wifi_high_btn2"
107
+                    android:layout_width="0dp"
108
+                    android:layout_height="80dp"
109
+                    android:layout_weight="1"
110
+                    android:visibility="visible"
111
+                    android:text="wifi高级设置开关2" />
112
+
113
+                <androidx.appcompat.widget.AppCompatButton
114
+                    android:id="@+id/usb_btn"
115
+                    android:layout_width="0dp"
116
+                    android:layout_height="80dp"
117
+                    android:layout_weight="1"
118
+                    android:visibility="visible"
119
+                    android:text="按键开关" />
120
+
121
+                <androidx.appcompat.widget.AppCompatButton
122
+                    android:id="@+id/sd_btn"
123
+                    android:layout_width="0dp"
124
+                    android:layout_height="80dp"
125
+                    android:layout_weight="1"
126
+                    android:visibility="visible"
127
+                    android:text="SD卡是否启用" />
128
+
129
+                <androidx.appcompat.widget.AppCompatButton
130
+                    android:id="@+id/otg_btn"
131
+                    android:layout_width="0dp"
132
+                    android:layout_height="80dp"
133
+                    android:layout_weight="1"
134
+                    android:visibility="visible"
135
+                    android:text="OTG是否启用" />
136
+
137
+                <androidx.appcompat.widget.AppCompatButton
138
+                    android:id="@+id/ban_btn"
139
+                    android:layout_width="0dp"
140
+                    android:layout_height="80dp"
141
+                    android:layout_weight="1"
142
+                    android:visibility="visible"
143
+                    android:text="冻结星火云鸽" />
144
+
145
+                <androidx.appcompat.widget.AppCompatButton
146
+                    android:id="@+id/uninstall_btn"
147
+                    android:layout_width="0dp"
148
+                    android:layout_height="80dp"
149
+                    android:layout_weight="1"
150
+                    android:visibility="visible"
151
+                    android:text="卸载酷安" />
152
+
153
+                <androidx.appcompat.widget.AppCompatButton
154
+                    android:id="@+id/install_btn"
155
+                    android:layout_width="0dp"
156
+                    android:layout_height="80dp"
157
+                    android:layout_weight="1"
158
+                    android:visibility="visible"
159
+                    android:text="安装酷安" />
160
+
161
+                <androidx.appcompat.widget.AppCompatButton
162
+                    android:id="@+id/banmodle_btn"
163
+                    android:layout_width="0dp"
164
+                    android:layout_height="80dp"
165
+                    android:layout_weight="1"
166
+                    android:visibility="visible"
167
+                    android:text="禁止酷安应用管理页面" />
168
+
169
+                <androidx.appcompat.widget.AppCompatButton
170
+                    android:id="@+id/getsn_btn"
171
+                    android:layout_width="0dp"
172
+                    android:layout_height="80dp"
173
+                    android:layout_weight="1"
174
+                    android:text="获取设备信息" />
175
+
176
+                <androidx.appcompat.widget.AppCompatButton
177
+                    android:id="@+id/reset_btn"
178
+                    android:layout_width="0dp"
179
+                    android:layout_height="80dp"
180
+                    android:layout_weight="1"
181
+                    android:text="恢复出厂" />
182
+
183
+                <androidx.appcompat.widget.AppCompatButton
184
+                    android:id="@+id/launcher_btn"
185
+                    android:layout_width="0dp"
186
+                    android:layout_height="80dp"
187
+                    android:layout_weight="1"
188
+                    android:visibility="visible"
189
+                    android:text="设置桌面" />
190
+
191
+                <androidx.appcompat.widget.AppCompatButton
192
+                    android:id="@+id/settime_btn"
193
+                    android:layout_width="0dp"
194
+                    android:layout_height="80dp"
195
+                    android:layout_weight="1"
196
+                    android:visibility="visible"
197
+                    android:text="设置时间" />
198
+            </androidx.appcompat.widget.LinearLayoutCompat>
199
+
200
+            <LinearLayout
201
+                android:layout_width="match_parent"
202
+                android:layout_height="wrap_content">
203
+
204
+                <androidx.appcompat.widget.AppCompatButton
205
+                    android:id="@+id/airbtn_btn"
206
+                    android:layout_width="0dp"
207
+                    android:layout_height="80dp"
208
+                    android:layout_weight="1"
209
+                    android:visibility="visible"
210
+                    android:text="限制飞行模式" />
211
+
212
+                <androidx.appcompat.widget.AppCompatButton
213
+                    android:id="@+id/status_btn"
214
+                    android:layout_width="0dp"
215
+                    android:layout_height="80dp"
216
+                    android:layout_weight="1"
217
+                    android:visibility="visible"
218
+                    android:text="打开关闭状态栏" />
219
+
220
+                <androidx.appcompat.widget.AppCompatButton
221
+                    android:id="@+id/statuspanel_btn"
222
+                    android:layout_width="0dp"
223
+                    android:layout_height="80dp"
224
+                    android:layout_weight="1"
225
+                    android:text="打开关闭下拉" />
226
+
227
+                <androidx.appcompat.widget.AppCompatButton
228
+                    android:id="@+id/hidekey_btn"
229
+                    android:layout_width="0dp"
230
+                    android:layout_height="80dp"
231
+                    android:layout_weight="1"
232
+                    android:visibility="visible"
233
+                    android:text="隐藏底部按键" />
234
+                <androidx.appcompat.widget.AppCompatButton
235
+                    android:id="@+id/clear_btn"
236
+                    android:layout_width="0dp"
237
+                    android:layout_height="80dp"
238
+                    android:layout_weight="1"
239
+                    android:visibility="visible"
240
+                    android:text="清理缓存" />
241
+                <androidx.appcompat.widget.AppCompatButton
242
+                    android:id="@+id/speed_btn"
243
+                    android:layout_width="0dp"
244
+                    android:layout_height="80dp"
245
+                    android:layout_weight="1"
246
+                    android:visibility="visible"
247
+                    android:text="清理内存" />
248
+                <EditText
249
+                    android:layout_width="0dp"
250
+                    android:layout_height="80dp"
251
+                    android:layout_weight="1"
252
+                    android:hint="输入"
253
+                    android:visibility="visible"
254
+                    android:inputType="text" />
255
+                <androidx.appcompat.widget.AppCompatButton
256
+                    android:id="@+id/input_btn"
257
+                    android:layout_width="0dp"
258
+                    android:layout_height="80dp"
259
+                    android:layout_weight="1"
260
+                    android:visibility="visible"
261
+                    android:text="设置输入法" />
262
+                <androidx.appcompat.widget.AppCompatButton
263
+                    android:id="@+id/reset_control"
264
+                    android:layout_width="0dp"
265
+                    android:layout_height="80dp"
266
+                    android:layout_weight="1"
267
+                    android:visibility="visible"
268
+                    android:text="解除管控" />
269
+                <androidx.appcompat.widget.AppCompatButton
270
+                    android:id="@+id/start_launcher"
271
+                    android:layout_width="0dp"
272
+                    android:layout_height="80dp"
273
+                    android:layout_weight="1"
274
+                    android:visibility="visible"
275
+                    android:text="打开桌面" />
276
+                <androidx.appcompat.widget.AppCompatButton
277
+                    android:id="@+id/noinstall_btn"
278
+                    android:layout_width="0dp"
279
+                    android:layout_height="80dp"
280
+                    android:layout_weight="1"
281
+                    android:visibility="visible"
282
+                    android:text="禁止/允许安装应用" />
283
+                <androidx.appcompat.widget.AppCompatButton
284
+                    android:id="@+id/qiehuan_btn"
285
+                    android:layout_width="0dp"
286
+                    android:layout_height="80dp"
287
+                    android:layout_weight="1"
288
+                    android:visibility="visible"
289
+                    android:text="禁止/允许切换桌面" />
290
+                <androidx.appcompat.widget.AppCompatButton
291
+                    android:id="@+id/weizhilaiyuan_btn"
292
+                    android:layout_width="0dp"
293
+                    android:layout_height="80dp"
294
+                    android:layout_weight="1"
295
+                    android:visibility="visible"
296
+                    android:text="打开/关闭未知来源" />
297
+                <androidx.appcompat.widget.AppCompatButton
298
+                    android:id="@+id/xiping_btn"
299
+                    android:layout_width="0dp"
300
+                    android:layout_height="80dp"
301
+                    android:layout_weight="1"
302
+                    android:visibility="visible"
303
+                    android:text="设置熄屏时间" />
304
+            </LinearLayout>
305
+        </androidx.appcompat.widget.LinearLayoutCompat>
306
+    </androidx.core.widget.NestedScrollView>
307
+</LinearLayout>

読み込み中…
キャンセル
保存