Преглед изворни кода

1.添加x505f新jar包,以及修改方法名

20241218TB223FC(测试jar包)
wangwanlei пре 11 месеци
родитељ
комит
3309339ced

+ 15
- 15
app/src/main/java/com/xhly/manageapp/ManageApplication.kt Прегледај датотеку

113
          */
113
          */
114
         fun setDisplayBlacklist(pkgList: ArrayList<String>) {
114
         fun setDisplayBlacklist(pkgList: ArrayList<String>) {
115
             if (ModelNameUtils.IS_LianxX505f()) {
115
             if (ModelNameUtils.IS_LianxX505f()) {
116
-                csdkManager?.displayBlacklistV3 = pkgList
116
+                csdkManager?.displayBlacklist_v3 = pkgList
117
             }
117
             }
118
         }
118
         }
119
 
119
 
142
          */
142
          */
143
         fun enableBluetooth(enableFlag: Boolean) {
143
         fun enableBluetooth(enableFlag: Boolean) {
144
             if (ModelNameUtils.IS_LianxX505f()) {
144
             if (ModelNameUtils.IS_LianxX505f()) {
145
-                csdkManager?.enableBluetoothV3(enableFlag)
145
+                csdkManager?.enableBluetooth_v3(enableFlag)
146
             }
146
             }
147
         }
147
         }
148
 
148
 
151
          */
151
          */
152
         fun disallowUsbDebugging(enableFlag: Boolean) {
152
         fun disallowUsbDebugging(enableFlag: Boolean) {
153
             if (ModelNameUtils.IS_LianxX505f()) {
153
             if (ModelNameUtils.IS_LianxX505f()) {
154
-                csdkManager?.disallowUsbDebuggingV3(enableFlag)
154
+                csdkManager?.disallowUsbDebugging_v3(enableFlag)
155
             }
155
             }
156
         }
156
         }
157
 
157
 
160
          */
160
          */
161
         fun disallowWifi(enableFlag: Boolean) {
161
         fun disallowWifi(enableFlag: Boolean) {
162
             if (ModelNameUtils.IS_LianxX505f()) {
162
             if (ModelNameUtils.IS_LianxX505f()) {
163
-                csdkManager?.disallowWifiV3(enableFlag)
163
+                csdkManager?.disallowWifi_v3(enableFlag)
164
             }
164
             }
165
         }
165
         }
166
 
166
 
169
          */
169
          */
170
         fun enableWifi(enableFlag: Boolean) {
170
         fun enableWifi(enableFlag: Boolean) {
171
             if (ModelNameUtils.IS_LianxX505f()) {
171
             if (ModelNameUtils.IS_LianxX505f()) {
172
-                csdkManager?.enableWifiV3(enableFlag)
172
+                csdkManager?.enableWifi_v3(enableFlag)
173
             }
173
             }
174
         }
174
         }
175
 
175
 
178
          */
178
          */
179
         fun disallowData(enableFlag: Boolean) {
179
         fun disallowData(enableFlag: Boolean) {
180
             if (ModelNameUtils.IS_LianxX505f()) {
180
             if (ModelNameUtils.IS_LianxX505f()) {
181
-                csdkManager?.disallowDataV3(enableFlag)
181
+                csdkManager?.disallowData_v3(enableFlag)
182
             }
182
             }
183
         }
183
         }
184
 
184
 
187
          */
187
          */
188
         fun enableData(enableFlag: Boolean) {
188
         fun enableData(enableFlag: Boolean) {
189
             if (ModelNameUtils.IS_LianxX505f()) {
189
             if (ModelNameUtils.IS_LianxX505f()) {
190
-                csdkManager?.enableDataV3(enableFlag)
190
+                csdkManager?.enableData_v3(enableFlag)
191
             }
191
             }
192
         }
192
         }
193
 
193
 
196
          */
196
          */
197
         fun disallowLocation(enableFlag: Boolean) {
197
         fun disallowLocation(enableFlag: Boolean) {
198
             if (ModelNameUtils.IS_LianxX505f()) {
198
             if (ModelNameUtils.IS_LianxX505f()) {
199
-                csdkManager?.disallowLocationV3(enableFlag)
199
+                csdkManager?.disallowLocation_v3(enableFlag)
200
             }
200
             }
201
         }
201
         }
202
 
202
 
205
          */
205
          */
206
         fun enableLocation(enableFlag: Boolean) {
206
         fun enableLocation(enableFlag: Boolean) {
207
             if (ModelNameUtils.IS_LianxX505f()) {
207
             if (ModelNameUtils.IS_LianxX505f()) {
208
-                csdkManager?.enableLocationV3(enableFlag)
208
+                csdkManager?.enableLocation_v3(enableFlag)
209
             }
209
             }
210
         }
210
         }
211
 
211
 
214
          */
214
          */
215
         fun disallowWifiAdvanceSettings(enableFlag: Boolean) {
215
         fun disallowWifiAdvanceSettings(enableFlag: Boolean) {
216
             if (ModelNameUtils.IS_LianxX505f()) {
216
             if (ModelNameUtils.IS_LianxX505f()) {
217
-                csdkManager?.disallowWifiAdvanceSettingsV3(enableFlag)
217
+                csdkManager?.disallowWifiadvancesettings_v3(enableFlag)
218
             }
218
             }
219
         }
219
         }
220
 
220
 
232
          */
232
          */
233
         fun setCustomOTG(enableFlag: Boolean) {
233
         fun setCustomOTG(enableFlag: Boolean) {
234
             if (ModelNameUtils.IS_LianxX505f()) {
234
             if (ModelNameUtils.IS_LianxX505f()) {
235
-                csdkManager?.isCustomOtg = enableFlag
235
+                csdkManager?.customOTG= enableFlag
236
             }
236
             }
237
         }
237
         }
238
 
238
 
296
          */
296
          */
297
         fun addWifiWhiteList(list: List<String>) {
297
         fun addWifiWhiteList(list: List<String>) {
298
             if (ModelNameUtils.IS_LianxX505f()) {
298
             if (ModelNameUtils.IS_LianxX505f()) {
299
-                //csdkManager?.addWifiWhiteList(list)
299
+                csdkManager?.addWifiWhiteList(list)
300
             }
300
             }
301
         }
301
         }
302
 
302
 
305
          */
305
          */
306
         fun enableWifiWhiteList(enable: Boolean) {
306
         fun enableWifiWhiteList(enable: Boolean) {
307
             if (ModelNameUtils.IS_LianxX505f()) {
307
             if (ModelNameUtils.IS_LianxX505f()) {
308
-               // csdkManager?.enableWifiWhiteList(enable)
308
+               //csdkManager?.whitelist
309
             }
309
             }
310
         }
310
         }
311
 
311
 
323
          */
323
          */
324
         fun enableCaptureScreen(enable: Boolean) {
324
         fun enableCaptureScreen(enable: Boolean) {
325
             if (ModelNameUtils.IS_LianxX505f()) {
325
             if (ModelNameUtils.IS_LianxX505f()) {
326
-                csdkManager?.enableCaptureScreenV3(enable)
326
+                //csdkManager?.enableCaptureScreen_v3(enable)
327
             }
327
             }
328
         }
328
         }
329
 
329
 
332
          */
332
          */
333
         fun disallowSetAutoRotation(enable: Boolean) {
333
         fun disallowSetAutoRotation(enable: Boolean) {
334
             if (ModelNameUtils.IS_LianxX505f()) {
334
             if (ModelNameUtils.IS_LianxX505f()) {
335
-                csdkManager?.disallowSetAutoRotation(enable)
335
+                //csdkManager?.disallowSetAutoRotation(enable)
336
             }
336
             }
337
         }
337
         }
338
     }
338
     }

+ 16
- 6
app/src/main/java/com/xhly/manageapp/ui/ManageActivity.kt Прегледај датотеку

44
 
44
 
45
 
45
 
46
     override fun initView() {
46
     override fun initView() {
47
+/*
47
         mBinding.adbopenBtn.setOnClickListener {
48
         mBinding.adbopenBtn.setOnClickListener {
48
             Toast("设置" + csdkManager.enableUsbDebugging(true))
49
             Toast("设置" + csdkManager.enableUsbDebugging(true))
49
         }
50
         }
145
         var type9 = 0
146
         var type9 = 0
146
         mBinding.banBtn.setOnClickListener {
147
         mBinding.banBtn.setOnClickListener {
147
             type9 = getType(type9)
148
             type9 = getType(type9)
148
-            /*appList.forEach {
149
+            */
150
+/*appList.forEach {
149
                 csdkManager.setPackageEnabled(it, type9 == 0)
151
                 csdkManager.setPackageEnabled(it, type9 == 0)
150
-            }*/
152
+            }*//*
153
+
151
             csdkManager.setPackageEnabled("com.coolapk.market", type9 == 0)
154
             csdkManager.setPackageEnabled("com.coolapk.market", type9 == 0)
152
         }
155
         }
153
         mBinding.uninstallBtn.setOnClickListener {
156
         mBinding.uninstallBtn.setOnClickListener {
163
             }
166
             }
164
             Toast("路径$name")
167
             Toast("路径$name")
165
             LogShow("白名单" + sb.toString())
168
             LogShow("白名单" + sb.toString())
166
-            /*   csdkManager.addInstallPackageWhiteList(
169
+            */
170
+/*   csdkManager.addInstallPackageWhiteList(
167
                    arrayListOf(
171
                    arrayListOf(
168
                        "com.xhly.manageapp", "com.coolapk.market"
172
                        "com.xhly.manageapp", "com.coolapk.market"
169
                    )
173
                    )
170
-               )*/
174
+               )*//*
175
+
176
+
177
+            */
178
+/* csdkManager.disableInstallation(false)*//*
179
+
180
+          */
181
+/*  ManageApplication.addInstallPackageWhiteList(arrayListOf( "com.coolapk.market"))*//*
171
 
182
 
172
-            /* csdkManager.disableInstallation(false)*/
173
-          /*  ManageApplication.addInstallPackageWhiteList(arrayListOf( "com.coolapk.market"))*/
174
             ManageApplication.removeInstallPackageWhiteList(arrayListOf( "com.coolapk.market"))
183
             ManageApplication.removeInstallPackageWhiteList(arrayListOf( "com.coolapk.market"))
175
             csdkManager.installPackage(File(name,"test.apk").toString())
184
             csdkManager.installPackage(File(name,"test.apk").toString())
176
             //ZJAPPUtils.installApk(this, File(name, "test.apk"))
185
             //ZJAPPUtils.installApk(this, File(name, "test.apk"))
243
             csdkManager.hideMenuSoftKey(type15 == 0)
252
             csdkManager.hideMenuSoftKey(type15 == 0)
244
             csdkManager.hideHomeSoftKey(type15 == 0)
253
             csdkManager.hideHomeSoftKey(type15 == 0)
245
         }
254
         }
255
+*/
246
     }
256
     }
247
 
257
 
248
     override fun finish() {
258
     override fun finish() {

+ 1
- 1
corelib/build.gradle.kts Прегледај датотеку

43
     implementation(libs.core.ktx)
43
     implementation(libs.core.ktx)
44
     implementation(libs.appcompat)
44
     implementation(libs.appcompat)
45
     implementation(libs.material)
45
     implementation(libs.material)
46
-    api(files("libs\\csdk_5.0.jar"))
46
+    api(files("libs\\CSDK_XHLY_240412.jar"))
47
     testImplementation(libs.junit)
47
     testImplementation(libs.junit)
48
     androidTestImplementation(libs.androidx.test.ext.junit)
48
     androidTestImplementation(libs.androidx.test.ext.junit)
49
     androidTestImplementation(libs.espresso.core)
49
     androidTestImplementation(libs.espresso.core)

BIN
corelib/libs/CSDK_XHLY_240412.jar Прегледај датотеку


Loading…
Откажи
Сачувај