增加开机启动

This commit is contained in:
2025-08-22 17:34:56 +08:00
parent ca2041fe76
commit e153f3e3b9
12 changed files with 42 additions and 0 deletions
@@ -1,6 +1,9 @@
package com.shuwei.intelligent.shelves
import android.app.Application
import android.content.Intent
import android.content.IntentFilter
import com.shuwei.intelligent.shelves.utils.BootReceiver
/**
* @author: star
@@ -18,6 +21,8 @@ class App : Application() {
override fun onCreate() {
super.onCreate()
app = this
val filter = IntentFilter(Intent.ACTION_BOOT_COMPLETED)
registerReceiver(BootReceiver(), filter)
}
companion object {