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).
3 lines
76 B
Properties
3 lines
76 B
Properties
org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8
|
|
android.useAndroidX=true
|