v1.0.7 - 구글 플레이 프로텍트 유해앱 경고 원인 완벽 제거, 사용 중 전체화면 알람 즉시 표시 보장 및 설정 복귀 처리 개선

This commit is contained in:
sanjeok77
2026-08-14 10:03:47 +09:00
parent 975413a2d6
commit eb6aad8527
9 changed files with 55 additions and 171 deletions
@@ -71,11 +71,18 @@ class AlarmForegroundService : Service() {
// 4. Foreground 시작
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.UPSIDE_DOWN_CAKE) { // Android 14+
startForeground(NOTIFICATION_ID, notification, android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_SPECIAL_USE)
startForeground(NOTIFICATION_ID, notification, android.content.pm.ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK)
} else {
startForeground(NOTIFICATION_ID, notification)
}
// 5. 사용 중일 때도 즉시 전체화면 AlarmActivity 화면 띄우기
try {
startActivity(fullScreenIntent)
} catch (e: Exception) {
e.printStackTrace()
}
return START_NOT_STICKY
}