\ v1.0.2 - Play Protect \uc720\ud574\uc571 \ucc28\ub2e8 \uc624\uc9c4 \uc6d0\uc778 \uc644\ubcbd \uc81c\uac70 \ubc0f \uc804\uccb4\ud654\uba74 \uc54c\ub9bc \uc124\uc815 \ud6c4 \uc571 \ubcf5\uadc0 uac1cuc120\
This commit is contained in:
@@ -20,8 +20,8 @@ android {
|
|||||||
applicationId = "com.example.shiftalarm"
|
applicationId = "com.example.shiftalarm"
|
||||||
minSdk = 26
|
minSdk = 26
|
||||||
targetSdk = 35
|
targetSdk = 35
|
||||||
versionCode = 101
|
versionCode = 102
|
||||||
versionName = "1.0.1"
|
versionName = "1.0.2"
|
||||||
|
|
||||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,8 +12,6 @@
|
|||||||
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
|
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
|
||||||
<uses-permission android:name="android.permission.USE_EXACT_ALARM" />
|
<uses-permission android:name="android.permission.USE_EXACT_ALARM" />
|
||||||
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
|
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
|
||||||
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
|
|
||||||
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" />
|
|
||||||
|
|
||||||
<!-- Service & Notification -->
|
<!-- Service & Notification -->
|
||||||
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
<uses-permission android:name="android.permission.POST_NOTIFICATIONS" />
|
||||||
|
|||||||
@@ -175,7 +175,9 @@ object AlarmPermissionUtil {
|
|||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||||
val intent = Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION).apply {
|
val intent = Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION).apply {
|
||||||
data = Uri.parse("package:${context.packageName}")
|
data = Uri.parse("package:${context.packageName}")
|
||||||
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
}
|
||||||
|
if (context !is Activity) {
|
||||||
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||||
}
|
}
|
||||||
context.startActivity(intent)
|
context.startActivity(intent)
|
||||||
}
|
}
|
||||||
@@ -186,13 +188,17 @@ object AlarmPermissionUtil {
|
|||||||
try {
|
try {
|
||||||
val intent = Intent("android.settings.MANAGE_APP_USE_FULL_SCREEN_INTENT").apply {
|
val intent = Intent("android.settings.MANAGE_APP_USE_FULL_SCREEN_INTENT").apply {
|
||||||
data = Uri.parse("package:${context.packageName}")
|
data = Uri.parse("package:${context.packageName}")
|
||||||
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
}
|
||||||
|
if (context !is Activity) {
|
||||||
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||||
}
|
}
|
||||||
context.startActivity(intent)
|
context.startActivity(intent)
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
val intent = Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS).apply {
|
val intent = Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS).apply {
|
||||||
data = Uri.parse("package:${context.packageName}")
|
data = Uri.parse("package:${context.packageName}")
|
||||||
addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
}
|
||||||
|
if (context !is Activity) {
|
||||||
|
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK)
|
||||||
}
|
}
|
||||||
context.startActivity(intent)
|
context.startActivity(intent)
|
||||||
}
|
}
|
||||||
@@ -211,7 +217,6 @@ object AlarmPermissionUtil {
|
|||||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||||
val pm = context.getSystemService(Context.POWER_SERVICE) as PowerManager
|
val pm = context.getSystemService(Context.POWER_SERVICE) as PowerManager
|
||||||
allGranted = allGranted && pm.isIgnoringBatteryOptimizations(context.packageName)
|
allGranted = allGranted && pm.isIgnoringBatteryOptimizations(context.packageName)
|
||||||
allGranted = allGranted && Settings.canDrawOverlays(context)
|
|
||||||
}
|
}
|
||||||
if (Build.VERSION.SDK_INT >= 34) {
|
if (Build.VERSION.SDK_INT >= 34) {
|
||||||
val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
val nm = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager
|
||||||
|
|||||||
@@ -214,10 +214,8 @@ class FragmentSettingsBasic : Fragment() {
|
|||||||
binding.dividerExact.visibility = View.GONE
|
binding.dividerExact.visibility = View.GONE
|
||||||
}
|
}
|
||||||
|
|
||||||
// 3. 다른 앱 위에 표시 (Overlay)
|
// 3. 다른 앱 위에 표시 (Overlay - 레거시)
|
||||||
val isOverlayGranted = AlarmPermissionUtil.getOverlayStatus(context)
|
binding.btnOverlayPermission.visibility = View.GONE
|
||||||
binding.tvOverlayStatus.text = if (isOverlayGranted) "[설정 완료: 화면 우위]" else "필수: 알람창 노출을 위해 허용하세요"
|
|
||||||
binding.tvOverlayStatus.setTextColor(ContextCompat.getColor(context, if (isOverlayGranted) R.color.primary else R.color.shift_red))
|
|
||||||
|
|
||||||
// 4. 전체화면 알림 (Full Screen Intent) - Android 14+
|
// 4. 전체화면 알림 (Full Screen Intent) - Android 14+
|
||||||
if (Build.VERSION.SDK_INT >= 34) {
|
if (Build.VERSION.SDK_INT >= 34) {
|
||||||
|
|||||||
@@ -68,7 +68,6 @@ class MainActivity : AppCompatActivity() {
|
|||||||
setupWorker()
|
setupWorker()
|
||||||
setupSwipeGesture()
|
setupSwipeGesture()
|
||||||
AppUpdateManager.checkUpdate(this, silent = true)
|
AppUpdateManager.checkUpdate(this, silent = true)
|
||||||
checkRoot()
|
|
||||||
|
|
||||||
val prefs = getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE)
|
val prefs = getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE)
|
||||||
currentViewTeam = prefs.getString(KEY_TEAM, "A") ?: "A"
|
currentViewTeam = prefs.getString(KEY_TEAM, "A") ?: "A"
|
||||||
@@ -717,11 +716,6 @@ class MainActivity : AppCompatActivity() {
|
|||||||
return java.time.Duration.between(now, midnight).toMillis()
|
return java.time.Duration.between(now, midnight).toMillis()
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun checkRoot() {
|
|
||||||
if (RootUtil.isDeviceRooted()) {
|
|
||||||
Toast.makeText(this, "⚠️ 루팅된 기기에서 시각적 오류나 알람 불안정이 발생할 수 있습니다.", Toast.LENGTH_LONG).show()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
private fun animateMonthTransition(direction: Int) {
|
private fun animateMonthTransition(direction: Int) {
|
||||||
val card = binding.calendarCard
|
val card = binding.calendarCard
|
||||||
val width = card.width.toFloat()
|
val width = card.width.toFloat()
|
||||||
|
|||||||
@@ -1,46 +1,5 @@
|
|||||||
package com.example.shiftalarm
|
package com.example.shiftalarm
|
||||||
|
|
||||||
import java.io.File
|
|
||||||
|
|
||||||
object RootUtil {
|
object RootUtil {
|
||||||
fun isDeviceRooted(): Boolean {
|
fun isDeviceRooted(): Boolean = false
|
||||||
return checkRootMethod1() || checkRootMethod2() || checkRootMethod3()
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun checkRootMethod1(): Boolean {
|
|
||||||
val buildTags = android.os.Build.TAGS
|
|
||||||
return buildTags != null && buildTags.contains("test-keys")
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun checkRootMethod2(): Boolean {
|
|
||||||
val paths = arrayOf(
|
|
||||||
"/system/app/Superuser.apk",
|
|
||||||
"/sbin/su",
|
|
||||||
"/system/bin/su",
|
|
||||||
"/system/xbin/su",
|
|
||||||
"/data/local/xbin/su",
|
|
||||||
"/data/local/bin/su",
|
|
||||||
"/system/sd/xbin/su",
|
|
||||||
"/system/bin/failsafe/su",
|
|
||||||
"/data/local/su",
|
|
||||||
"/su/bin/su"
|
|
||||||
)
|
|
||||||
for (path in paths) {
|
|
||||||
if (File(path).exists()) return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
private fun checkRootMethod3(): Boolean {
|
|
||||||
var process: Process? = null
|
|
||||||
return try {
|
|
||||||
process = Runtime.getRuntime().exec(arrayOf("/system/xbin/which", "su"))
|
|
||||||
val reader = process.inputStream.bufferedReader()
|
|
||||||
reader.readLine() != null
|
|
||||||
} catch (t: Throwable) {
|
|
||||||
false
|
|
||||||
} finally {
|
|
||||||
process?.destroy()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
+14
-15
@@ -6,19 +6,18 @@ import shutil
|
|||||||
|
|
||||||
token = "e3b515eaa0a6683c921ca3bf718e281ed30a6075"
|
token = "e3b515eaa0a6683c921ca3bf718e281ed30a6075"
|
||||||
owner_repo = "sanjeok77/ShiftRing"
|
owner_repo = "sanjeok77/ShiftRing"
|
||||||
tag = "v1.0.1"
|
tag = "v1.0.2"
|
||||||
title = "v1.0.1 - 알람 반복 횟수 선택 버그 수정, 달력 상단 연장근무 인디고 컬러 개편, 알람 그룹 아코디언 & +/x 부드러운 회전 애니메이션 적용"
|
title = "v1.0.2 - Play Protect 유해앱 차단 오진 원인 완벽 제거 및 전체화면 알림 설정 후 원활한 복귀 지원"
|
||||||
body = """## 🚀 ShiftRing v1.0.1 릴리즈
|
body = """## 🚀 ShiftRing v1.0.2 릴리즈
|
||||||
|
|
||||||
### 🌟 주요 변경 및 버그 수정 사항
|
### 🌟 주요 변경 및 보안/권한 개선 사항
|
||||||
1. **알람 수정 다이얼로그 반복 횟수 선택 버그 수정**:
|
1. **Google Play Protect '유해한 앱 차단됨' 경고 원인 완벽 제거**:
|
||||||
- 알람 수정 및 추가 화면에서 반복 횟수(3회 / 5회 / 계속) 선택이 즉시 반영되고 저장되도록 클릭 리스너 및 UI 갱신 로직 완벽 복구
|
- 구글 플레이 프로텍트 정적 분석에서 트로이목마/취약점 오진을 유발하는 쉘 명령어/루팅 감지 루틴(`RootUtil`, `Runtime.exec`) 완전 제거
|
||||||
2. **달력 메인 상단 연장근무 표시 컬러 인디고(#5856D6) 개편**:
|
- 불필요한 고위험 권한(`SYSTEM_ALERT_WINDOW`, `DISABLE_KEYGUARD`) 정리로 안전한 정식 앱 프로필 확보
|
||||||
- 휴무/휴가 붉은색(`shift_red`)과 혼동되지 않도록 또렷하고 세련된 One UI 인디고(`bg_chip_soft_overtime.xml`) 칩 스타일로 변경
|
2. **전체화면 알림 권한 설정 후 원활한 앱 복귀 처리**:
|
||||||
3. **알람 그룹 접기/펼치기 아코디언 & 회전 애니메이션 적용**:
|
- 시스템 설정 인텐트 호출 시 태스크 스택 플래그를 정돈하여 설정 완료 후 뒤로가기 시 자연스럽게 ShiftRing으로 즉시 복귀되도록 개선
|
||||||
- 알람 그룹 헤더 터치 시 `AutoTransition` 기반 부드러운 아코디언 높이/투명도 애니메이션 적용
|
- 불필요한 오버레이 권한 종속성을 제거하고 최신 안드로이드 14/15 표준 `USE_FULL_SCREEN_INTENT` 체계로 일원화
|
||||||
- 접힘/열림 상태에 따라 `+` (0도) ↔ `x` (45도) 아이콘이 유체 감속 곡선(`PathInterpolator(0.22, 1, 0.36, 1)`)으로 매끄럽게 회전 전환되도록 구현
|
3. **Android 14/15 호환 및 정식 서명키(release.jks) 적용**"""
|
||||||
4. **Android 14/15 호환 및 정식 서명키(release.jks) 적용**"""
|
|
||||||
|
|
||||||
apk_path = "app/build/outputs/apk/release/app-release.apk"
|
apk_path = "app/build/outputs/apk/release/app-release.apk"
|
||||||
if not os.path.exists(apk_path):
|
if not os.path.exists(apk_path):
|
||||||
@@ -56,10 +55,10 @@ print("Updated app.apk at project root.")
|
|||||||
|
|
||||||
# Update version.json
|
# Update version.json
|
||||||
v_info = {
|
v_info = {
|
||||||
"versionCode": 101,
|
"versionCode": 102,
|
||||||
"versionName": "1.0.1",
|
"versionName": "1.0.2",
|
||||||
"apkUrl": direct_url,
|
"apkUrl": direct_url,
|
||||||
"changelog": "v1.0.1: 알람 반복 횟수 선택 버그 수정, 달력 상단 연장근무 인디고 컬러 개편, 알람 그룹 아코디언 및 +/x 회전 애니메이션 적용",
|
"changelog": "v1.0.2: Play Protect 유해앱 차단 오진 원인 완벽 제거, 전체화면 알림 설정 후 앱 복귀 개선",
|
||||||
"forceUpdate": False
|
"forceUpdate": False
|
||||||
}
|
}
|
||||||
with open("version.json", "w", encoding="utf-8") as f:
|
with open("version.json", "w", encoding="utf-8") as f:
|
||||||
|
|||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"versionCode": 101,
|
"versionCode": 102,
|
||||||
"versionName": "1.0.1",
|
"versionName": "1.0.2",
|
||||||
"apkUrl": "https://git.webpluss.net/attachments/36f93969-59ff-490d-b701-6d7f35382c28",
|
"apkUrl": "https://git.webpluss.net/attachments/16044f88-ebaf-4623-9e5f-af9cc98f4e36",
|
||||||
"changelog": "v1.0.1: 알람 반복 횟수 선택 버그 수정, 달력 상단 연장근무 인디고 컬러 개편, 알람 그룹 아코디언 및 +/x 회전 애니메이션 적용",
|
"changelog": "v1.0.2: Play Protect 유해앱 차단 오진 원인 완벽 제거, 전체화면 알림 설정 후 앱 복귀 개선",
|
||||||
"forceUpdate": false
|
"forceUpdate": false
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user