Quellcode durchsuchen

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

20241218TB223FC(测试jar包)
wangwanlei vor 8 Monaten
Ursprung
Commit
3309339ced

+ 15
- 15
app/src/main/java/com/xhly/manageapp/ManageApplication.kt Datei anzeigen

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

@@ -44,6 +44,7 @@ class ManageActivity : BaseActivity<CommonBaseViewModel, ActivityManageBinding>(
44 44
 
45 45
 
46 46
     override fun initView() {
47
+/*
47 48
         mBinding.adbopenBtn.setOnClickListener {
48 49
             Toast("设置" + csdkManager.enableUsbDebugging(true))
49 50
         }
@@ -145,9 +146,11 @@ class ManageActivity : BaseActivity<CommonBaseViewModel, ActivityManageBinding>(
145 146
         var type9 = 0
146 147
         mBinding.banBtn.setOnClickListener {
147 148
             type9 = getType(type9)
148
-            /*appList.forEach {
149
+            */
150
+/*appList.forEach {
149 151
                 csdkManager.setPackageEnabled(it, type9 == 0)
150
-            }*/
152
+            }*//*
153
+
151 154
             csdkManager.setPackageEnabled("com.coolapk.market", type9 == 0)
152 155
         }
153 156
         mBinding.uninstallBtn.setOnClickListener {
@@ -163,14 +166,20 @@ class ManageActivity : BaseActivity<CommonBaseViewModel, ActivityManageBinding>(
163 166
             }
164 167
             Toast("路径$name")
165 168
             LogShow("白名单" + sb.toString())
166
-            /*   csdkManager.addInstallPackageWhiteList(
169
+            */
170
+/*   csdkManager.addInstallPackageWhiteList(
167 171
                    arrayListOf(
168 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 183
             ManageApplication.removeInstallPackageWhiteList(arrayListOf( "com.coolapk.market"))
175 184
             csdkManager.installPackage(File(name,"test.apk").toString())
176 185
             //ZJAPPUtils.installApk(this, File(name, "test.apk"))
@@ -243,6 +252,7 @@ class ManageActivity : BaseActivity<CommonBaseViewModel, ActivityManageBinding>(
243 252
             csdkManager.hideMenuSoftKey(type15 == 0)
244 253
             csdkManager.hideHomeSoftKey(type15 == 0)
245 254
         }
255
+*/
246 256
     }
247 257
 
248 258
     override fun finish() {

+ 1
- 1
corelib/build.gradle.kts Datei anzeigen

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

BIN
corelib/libs/CSDK_XHLY_240412.jar Datei anzeigen


Laden…
Abbrechen
Speichern