Browse Source

1.修改包名路径

2.移除toast
20241218TB223FC(测试jar包)
wangwanlei 9 months ago
parent
commit
8e97ee171c

+ 7
- 7
app/src/main/AndroidManifest.xml View File

@@ -41,7 +41,7 @@
41 41
         tools:ignore="ProtectedPermissions" />
42 42
 
43 43
     <application
44
-        android:name=".ManageApplication"
44
+        android:name="com.xhly.manageapp.ManageApplication"
45 45
         android:allowBackup="true"
46 46
         android:appComponentFactory="androidx.core.app.CoreComponentFactory"
47 47
         android:fullBackupContent="@xml/backup_rules"
@@ -59,7 +59,7 @@
59 59
             android:name="design_height_in_dp"
60 60
             android:value="667" /> <!-- 全局内容提供者 -->
61 61
         <activity
62
-            android:name=".ui.main.activity.MainActivity"
62
+            android:name="com.xhly.manageapp.ui.main.activity.MainActivity"
63 63
             android:exported="true"
64 64
             android:launchMode="singleTask"
65 65
             android:screenOrientation="landscape">
@@ -75,13 +75,13 @@
75 75
             android:name="com.xhly.manageapp.ui.ManageActivity"
76 76
             android:screenOrientation="landscape" />
77 77
         <activity
78
-            android:name=".ui.login.activity.LoginActivity"
78
+            android:name="com.xhly.manageapp.ui.login.activity.LoginActivity"
79 79
             android:launchMode="singleTask"
80 80
             android:screenOrientation="landscape"
81 81
             android:windowSoftInputMode="adjustResize" />
82 82
 
83 83
         <receiver
84
-            android:name=".broadcastreceiver.XhlyBroadCastReceiver"
84
+            android:name="com.xhly.manageapp.broadcastreceiver.XhlyBroadCastReceiver"
85 85
             android:enabled="true"
86 86
             android:exported="true">
87 87
             <intent-filter>
@@ -90,7 +90,7 @@
90 90
             </intent-filter>
91 91
         </receiver>
92 92
         <receiver
93
-            android:name=".broadcastreceiver.USBReceiver"
93
+            android:name="com.xhly.manageapp.broadcastreceiver.USBReceiver"
94 94
             android:enabled="true"
95 95
             android:exported="true">
96 96
             <intent-filter android:priority="1000">
@@ -98,7 +98,7 @@
98 98
             </intent-filter>
99 99
         </receiver>
100 100
         <receiver
101
-            android:name=".broadcastreceiver.BLEStateReceiver"
101
+            android:name="com.xhly.manageapp.broadcastreceiver.BLEStateReceiver"
102 102
             android:enabled="true"
103 103
             android:exported="true">
104 104
             <intent-filter android:priority="1000">
@@ -145,7 +145,7 @@
145 145
              </receiver>-->
146 146
 
147 147
         <service
148
-            android:name=".service.ManageAccessibilityService"
148
+            android:name="com.xhly.manageapp.service.ManageAccessibilityService"
149 149
             android:exported="true"
150 150
             android:permission="android.permission.BIND_ACCESSIBILITY_SERVICE">
151 151
             <intent-filter>

+ 3
- 3
app/src/main/java/com/xhly/manageapp/broadcastreceiver/AppInstallReceiver.kt View File

@@ -18,16 +18,16 @@ class AppInstallReceiver : BroadcastReceiver() {
18 18
         if (TextUtils.equals(intent.action, Intent.ACTION_PACKAGE_ADDED)) {
19 19
             val packageName = intent.data!!.schemeSpecificPart
20 20
             Log.i(TAG, "--------安装成功$packageName")
21
-            Toast.makeText(context, "安装成功$packageName", Toast.LENGTH_LONG).show()
21
+            //Toast.makeText(context, "安装成功$packageName", Toast.LENGTH_LONG).show()
22 22
             UIEvent(Const.APPINSTALL).setMessage(packageName).post()
23 23
         } else if (TextUtils.equals(intent.action, Intent.ACTION_PACKAGE_REPLACED)) {
24 24
             val packageName = intent.data!!.schemeSpecificPart
25 25
             Log.i(TAG, "--------替换成功$packageName")
26
-            Toast.makeText(context, "替换成功$packageName", Toast.LENGTH_LONG).show()
26
+           // Toast.makeText(context, "替换成功$packageName", Toast.LENGTH_LONG).show()
27 27
         } else if (TextUtils.equals(intent.action, Intent.ACTION_PACKAGE_REMOVED)) {
28 28
             val packageName = intent.data!!.schemeSpecificPart
29 29
             Log.i(TAG, "--------卸载成功$packageName")
30
-            Toast.makeText(context, "卸载成功$packageName", Toast.LENGTH_LONG).show()
30
+          //  Toast.makeText(context, "卸载成功$packageName", Toast.LENGTH_LONG).show()
31 31
             UIEvent(Const.APPUNINSTALL).setMessage(packageName).post()
32 32
         }
33 33
     }

+ 2
- 2
app/src/main/java/com/xhly/manageapp/broadcastreceiver/BLEStateReceiver.kt View File

@@ -28,13 +28,13 @@ class BLEStateReceiver : BroadcastReceiver() {
28 28
         when (BLEState) {
29 29
             BluetoothAdapter.STATE_ON ->                 // 蓝牙已经打开
30 30
             {
31
-                Toast.makeText(context, "蓝牙打开", Toast.LENGTH_LONG).show()
31
+              /*  Toast.makeText(context, "蓝牙打开", Toast.LENGTH_LONG).show()*/
32 32
                 UIEvent(Const.BLUETOOTHOPEN).post()
33 33
             }
34 34
 
35 35
             BluetoothAdapter.STATE_TURNING_OFF ->                 // 蓝牙正在关闭
36 36
             {
37
-                Toast.makeText(context, "蓝牙关闭", Toast.LENGTH_LONG).show()
37
+               /* Toast.makeText(context, "蓝牙关闭", Toast.LENGTH_LONG).show()*/
38 38
             }
39 39
         }
40 40
     }

Loading…
Cancel
Save