소스 검색

1.修改应用包名。

20241218TB223FC(测试jar包)
wangwanlei 9 달 전
부모
커밋
9f992e6357

+ 2
- 2
app/src/main/AndroidManifest.xml 파일 보기

@@ -45,10 +45,10 @@
45 45
         android:allowBackup="true"
46 46
         android:appComponentFactory="androidx.core.app.CoreComponentFactory"
47 47
         android:fullBackupContent="@xml/backup_rules"
48
-        android:icon="@mipmap/ic_launcher"
48
+        android:icon="@mipmap/icon_launcher"
49 49
         android:label="@string/app_name"
50 50
         android:networkSecurityConfig="@xml/network_security_config"
51
-        android:roundIcon="@mipmap/ic_launcher_round"
51
+        android:roundIcon="@mipmap/icon_launcher"
52 52
         android:supportsRtl="true"
53 53
         android:theme="@style/MyStyle"
54 54
         tools:targetApi="30">

+ 2
- 7
app/src/main/java/com/xhly/manageapp/AppAdapter.kt 파일 보기

@@ -1,21 +1,16 @@
1 1
 package com.xhly.manageapp
2 2
 
3
-import android.annotation.SuppressLint
4
-import android.app.ActivityManager
5 3
 import android.content.Context
6
-import android.content.Intent
7
-import android.provider.Settings
8 4
 import android.view.LayoutInflater
9 5
 import android.view.ViewGroup
10
-import android.widget.Toast
11
-import androidx.appcompat.content.res.AppCompatResources
12 6
 import androidx.recyclerview.widget.RecyclerView
13 7
 import com.hjq.toast.Toaster
8
+import com.xhkjedu.manageapp.R
9
+import com.xhkjedu.manageapp.databinding.ItemAppBinding
14 10
 import com.xhly.corelib.Const
15 11
 import com.xhly.corelib.bean.AppInfo
16 12
 import com.xhly.corelib.utils.LogShow
17 13
 import com.xhly.corelib.utils.SystemUtil
18
-import com.xhly.manageapp.databinding.ItemAppBinding
19 14
 import com.xhly.manageapp.utils.StrategyUtils
20 15
 import java.util.Calendar
21 16
 

+ 6
- 6
app/src/main/java/com/xhly/manageapp/ManageApplication.kt 파일 보기

@@ -31,7 +31,7 @@ class ManageApplication : MultiDexApplication() {
31 31
          */
32 32
         fun addInstallPackageWhiteList(pkgList: ArrayList<String>) {
33 33
             if (ModelNameUtils.IS_LianxX505f()) {
34
-                pkgList.add("com.xhly.manageapp")
34
+                pkgList.add(Const.CURRENTAPPPKG)
35 35
                 csdkManager?.addInstallPackageWhiteList(pkgList)
36 36
             }
37 37
         }
@@ -41,7 +41,7 @@ class ManageApplication : MultiDexApplication() {
41 41
          */
42 42
         fun removeInstallPackageWhiteList(pkgList: ArrayList<String>) {
43 43
             if (ModelNameUtils.IS_LianxX505f() && pkgList.size > 0) {
44
-                pkgList.remove("com.xhly.manageapp")
44
+                pkgList.remove(Const.CURRENTAPPPKG)
45 45
                 csdkManager?.removeInstallPackageWhiteList(pkgList)
46 46
             }
47 47
         }
@@ -59,7 +59,7 @@ class ManageApplication : MultiDexApplication() {
59 59
 
60 60
             }
61 61
             return arrayListOf(
62
-                "com.xhly.manageapp",
62
+                Const.CURRENTAPPPKG,
63 63
                 "com.xhkjedu.xh_control_appstore"
64 64
             )
65 65
         }
@@ -529,7 +529,7 @@ class ManageApplication : MultiDexApplication() {
529 529
             csdkManager = CSDKManager(this)
530 530
             addInstallPackageWhiteList(
531 531
                 arrayListOf(
532
-                    "com.xhly.manageapp",
532
+                    Const.CURRENTAPPPKG,
533 533
                     "com.xhkjedu.xh_control_appstore"
534 534
                 )
535 535
             )
@@ -540,8 +540,8 @@ class ManageApplication : MultiDexApplication() {
540 540
             hideMenuSoftKey(true)
541 541
             enableAccessibility()
542 542
             setCustomLauncher(
543
-                "com.xhly.manageapp",
544
-                "com.xhly.manageapp.ui.ManageActivity"
543
+                Const.CURRENTAPPPKG,
544
+                Const.CURRENTAPPPKG+".ui.ManageActivity"
545 545
             )
546 546
             if (Const.isDebug){
547 547
                 csdkManager?.setPackageEnabled("com.xhly.easystud", true)

+ 2
- 1
app/src/main/java/com/xhly/manageapp/customview/CombinationCardView.kt 파일 보기

@@ -11,7 +11,8 @@ import android.widget.FrameLayout
11 11
 import android.widget.ImageView
12 12
 import android.widget.LinearLayout
13 13
 import android.widget.TextView
14
-import com.xhly.manageapp.R
14
+import com.xhkjedu.manageapp.R
15
+
15 16
 
16 17
 class CombinationCardView : FrameLayout {
17 18
     private var cv: LinearLayout

+ 1
- 1
app/src/main/java/com/xhly/manageapp/ui/ManageActivity.kt 파일 보기

@@ -10,11 +10,11 @@ import android.content.pm.PackageManager.DONT_KILL_APP
10 10
 import android.os.Environment
11 11
 import android.os.Environment.DIRECTORY_DOWNLOADS
12 12
 import android.provider.Settings
13
+import com.xhkjedu.manageapp.databinding.ActivityManageBinding
13 14
 import com.xhly.corelib.base.viewmodel.CommonBaseViewModel
14 15
 import com.xhly.corelib.eventbus.UIEvent
15 16
 import com.xhly.corelib.utils.LogShow
16 17
 import com.xhly.manageapp.ManageApplication
17
-import com.xhly.manageapp.databinding.ActivityManageBinding
18 18
 import java.io.File
19 19
 
20 20
 

+ 2
- 2
app/src/main/java/com/xhly/manageapp/ui/login/activity/LoginActivity.kt 파일 보기

@@ -15,6 +15,8 @@ import androidx.work.WorkManager
15 15
 import com.kongzue.dialogx.dialogs.CustomDialog
16 16
 import com.kongzue.dialogx.interfaces.OnBindView
17 17
 import com.tbruyelle.rxpermissions2.RxPermissions
18
+import com.xhkjedu.manageapp.R
19
+import com.xhkjedu.manageapp.databinding.ActivityLoginBinding
18 20
 import com.xhly.corelib.Const
19 21
 import com.xhly.corelib.eventbus.UIEvent
20 22
 import com.xhly.corelib.utils.AppUtils
@@ -22,7 +24,6 @@ import com.xhly.corelib.utils.GsonUtils
22 24
 import com.xhly.corelib.utils.LogShow
23 25
 import com.xhly.corelib.utils.SystemUtil
24 26
 import com.xhly.manageapp.ManageApplication
25
-import com.xhly.manageapp.R
26 27
 import com.xhly.manageapp.bean.EventLog
27 28
 import com.xhly.manageapp.bean.login.LoginBean
28 29
 import com.xhly.manageapp.bean.SocketMsgBean
@@ -30,7 +31,6 @@ import com.xhly.manageapp.bean.log.LogPushBean
30 31
 import com.xhly.manageapp.bean.log.LogdOperateBean
31 32
 import com.xhly.manageapp.bean.user.UserBean
32 33
 import com.xhly.manageapp.contentprovider.ZSpProvider
33
-import com.xhly.manageapp.databinding.ActivityLoginBinding
34 34
 import com.xhly.manageapp.service.websocket.AppSocket
35 35
 import com.xhly.manageapp.ui.login.viewmodel.LoginViewModel
36 36
 import com.xhly.manageapp.ui.main.activity.MainActivity

+ 2
- 2
app/src/main/java/com/xhly/manageapp/ui/main/activity/MainActivity.kt 파일 보기

@@ -28,6 +28,8 @@ import com.bumptech.glide.request.transition.Transition
28 28
 import com.kongzue.dialogx.dialogs.CustomDialog
29 29
 import com.kongzue.dialogx.interfaces.OnBindView
30 30
 import com.tbruyelle.rxpermissions2.RxPermissions
31
+import com.xhkjedu.manageapp.R
32
+import com.xhkjedu.manageapp.databinding.ActivityMainBinding
31 33
 import com.xhly.corelib.Const
32 34
 import com.xhly.corelib.bean.AppInfo
33 35
 import com.xhly.corelib.eventbus.UIEvent
@@ -40,7 +42,6 @@ import com.xhly.corelib.utils.SharedPreferencesUtils
40 42
 import com.xhly.corelib.utils.SystemUtil
41 43
 import com.xhly.manageapp.AppAdapter
42 44
 import com.xhly.manageapp.ManageApplication
43
-import com.xhly.manageapp.R
44 45
 import com.xhly.manageapp.bean.EventLog
45 46
 import com.xhly.manageapp.bean.SocketMsgBean
46 47
 import com.xhly.manageapp.bean.log.UpdateBean
@@ -50,7 +51,6 @@ import com.xhly.manageapp.bean.school.SchoolDeviceSetBean
50 51
 import com.xhly.manageapp.bean.strategy.StrategyBean
51 52
 import com.xhly.manageapp.bean.user.UserBean
52 53
 import com.xhly.manageapp.broadcastreceiver.AppInstallReceiver
53
-import com.xhly.manageapp.databinding.ActivityMainBinding
54 54
 import com.xhly.manageapp.service.ManageAccessibilityService
55 55
 import com.xhly.manageapp.ui.ManageActivity
56 56
 import com.xhly.manageapp.ui.login.activity.LoginActivity

+ 1
- 1
app/src/main/java/com/xhly/manageapp/utils/CustomAppUtils.kt 파일 보기

@@ -3,9 +3,9 @@ package com.xhly.manageapp.utils
3 3
 import android.content.Context
4 4
 import android.graphics.drawable.Drawable
5 5
 import androidx.appcompat.content.res.AppCompatResources
6
+import com.xhkjedu.manageapp.R
6 7
 import com.xhly.corelib.Const
7 8
 import com.xhly.corelib.bean.AppInfo
8
-import com.xhly.manageapp.R
9 9
 
10 10
 //用来创建一键加速,清除缓存,和自动旋转的appbean类
11 11
 class CustomAppUtils {

BIN
app/src/main/res/mipmap-xhdpi/icon_launcher.png 파일 보기


+ 5
- 0
corelib/src/main/java/com/xhly/corelib/Const.kt 파일 보기

@@ -4,6 +4,11 @@ package com.xhly.corelib
4 4
 object Const {
5 5
     const val isDebug = true
6 6
 
7
+    /**
8
+     * 当前应用包名
9
+     */
10
+    const val CURRENTAPPPKG="com.xhkjedu.manageapp"
11
+
7 12
     //用户id
8 13
     var USERID :Long?= 1L
9 14
 

+ 0
- 1
corelib/src/main/java/com/xhly/corelib/utils/StatusBarUtil.java 파일 보기

@@ -7,7 +7,6 @@ import android.view.View;
7 7
 import android.view.Window;
8 8
 import android.view.WindowManager;
9 9
 
10
-import com.xhly.corelib.R;
11 10
 
12 11
 import java.lang.reflect.Field;
13 12
 import java.lang.reflect.Method;

Loading…
취소
저장