Browse Source

1.修改包名路径

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

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

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

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

18
         if (TextUtils.equals(intent.action, Intent.ACTION_PACKAGE_ADDED)) {
18
         if (TextUtils.equals(intent.action, Intent.ACTION_PACKAGE_ADDED)) {
19
             val packageName = intent.data!!.schemeSpecificPart
19
             val packageName = intent.data!!.schemeSpecificPart
20
             Log.i(TAG, "--------安装成功$packageName")
20
             Log.i(TAG, "--------安装成功$packageName")
21
-            Toast.makeText(context, "安装成功$packageName", Toast.LENGTH_LONG).show()
21
+            //Toast.makeText(context, "安装成功$packageName", Toast.LENGTH_LONG).show()
22
             UIEvent(Const.APPINSTALL).setMessage(packageName).post()
22
             UIEvent(Const.APPINSTALL).setMessage(packageName).post()
23
         } else if (TextUtils.equals(intent.action, Intent.ACTION_PACKAGE_REPLACED)) {
23
         } else if (TextUtils.equals(intent.action, Intent.ACTION_PACKAGE_REPLACED)) {
24
             val packageName = intent.data!!.schemeSpecificPart
24
             val packageName = intent.data!!.schemeSpecificPart
25
             Log.i(TAG, "--------替换成功$packageName")
25
             Log.i(TAG, "--------替换成功$packageName")
26
-            Toast.makeText(context, "替换成功$packageName", Toast.LENGTH_LONG).show()
26
+           // Toast.makeText(context, "替换成功$packageName", Toast.LENGTH_LONG).show()
27
         } else if (TextUtils.equals(intent.action, Intent.ACTION_PACKAGE_REMOVED)) {
27
         } else if (TextUtils.equals(intent.action, Intent.ACTION_PACKAGE_REMOVED)) {
28
             val packageName = intent.data!!.schemeSpecificPart
28
             val packageName = intent.data!!.schemeSpecificPart
29
             Log.i(TAG, "--------卸载成功$packageName")
29
             Log.i(TAG, "--------卸载成功$packageName")
30
-            Toast.makeText(context, "卸载成功$packageName", Toast.LENGTH_LONG).show()
30
+          //  Toast.makeText(context, "卸载成功$packageName", Toast.LENGTH_LONG).show()
31
             UIEvent(Const.APPUNINSTALL).setMessage(packageName).post()
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
         when (BLEState) {
28
         when (BLEState) {
29
             BluetoothAdapter.STATE_ON ->                 // 蓝牙已经打开
29
             BluetoothAdapter.STATE_ON ->                 // 蓝牙已经打开
30
             {
30
             {
31
-                Toast.makeText(context, "蓝牙打开", Toast.LENGTH_LONG).show()
31
+              /*  Toast.makeText(context, "蓝牙打开", Toast.LENGTH_LONG).show()*/
32
                 UIEvent(Const.BLUETOOTHOPEN).post()
32
                 UIEvent(Const.BLUETOOTHOPEN).post()
33
             }
33
             }
34
 
34
 
35
             BluetoothAdapter.STATE_TURNING_OFF ->                 // 蓝牙正在关闭
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