Browse Source

自启动

aleyds 1 year ago
parent
commit
94452f78eb
1 changed files with 8 additions and 0 deletions
  1. 8 0
      app/src/main/AndroidManifest.xml

+ 8 - 0
app/src/main/AndroidManifest.xml

@@ -135,6 +135,14 @@
             android:screenOrientation="fullSensor"
             tools:replace="screenOrientation"/>
 
+        <receiver android:name="com.hw.nativeapp.ui.receiver.BootBroadcastReceiver"
+            android:enabled="true"
+            android:exported="true">
+            <intent-filter>
+                <action android:name="android.intent.action.BOOT_COMPLETED" />
+            </intent-filter>
+        </receiver>
+
     </application>
 
 </manifest>