Kotlin/Compose foreground service advertising a connectable legacy advertisement at ~1 Hz with a counter that rotates in ServiceData every 10s: changed payload values make BlueZ emit PropertiesChanged even when the RSSI repeats, keeping the daemon's freshness clock fed for a stationary phone. Running from a foreground service with a battery optimization exemption defeats the advertising pauses that caused the false locks. Replaces third-party beacon apps; the daemon needs no changes. Verified with a real Gradle build (AGP 8.13.2, Kotlin 2.3.21, compileSdk 36).
6 lines
218 B
Kotlin
6 lines
218 B
Kotlin
plugins {
|
|
id("com.android.application") version "8.13.2" apply false
|
|
id("org.jetbrains.kotlin.android") version "2.3.21" apply false
|
|
id("org.jetbrains.kotlin.plugin.compose") version "2.3.21" apply false
|
|
}
|