浏览代码

自启动

aleyds 1 年之前
父节点
当前提交
94452f78eb
共有 1 个文件被更改,包括 8 次插入0 次删除
  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>