Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,14 @@
|---|---|---|
| `app/src/main/res/values/` | 영어 (기본) | **필수** |
| `app/src/main/res/values-ko/` | 한국어 | **필수** |
| `app/src/main/res/values-ja/` 등 그 밖의 `values-xx/` | 다른 지원 언어 | 선택 (없으면 영어로 보임). 분류 탭 문구와 쉬운 설정 문구는 **필수** |
| `app/src/main/res/values-ja/` 등 그 밖의 `values-xx/` | 다른 지원 언어 | 선택 (없으면 영어로 보임). 분류 탭 문구, 쉬운 설정 문구, 색 선택 창의 화면 읽어주기 설명은 **필수** |

- **새 문구는 `values/`(영어)와 `values-ko/`(한국어)에 같은 키로 함께 넣습니다.** 하나라도 빠지면 유닛 테스트 `StringResourcesTest`가 실패해 CI를 통과하지 못합니다. 두 파일은 키 순서와 섹션 주석을 맞춰 둡니다.
- 다른 언어는 나중에 번역해도 됩니다. 빠진 문구는 Lint의 `MissingTranslation` **경고**로만 표시됩니다.
- 다만 **분류 탭 문구**(`classify_*`, `cd_classify_*`, `sound_group_*`, `help_sound_classify_groups`)는 모든 언어에 함께 넣습니다. 한 언어라도 빠지면 그 언어의 분류 탭에 영어 안내가 섞이므로 유닛 테스트 `SoundGroupStringsTest`가 실패합니다(#349). 이 테스트는 도움말의 초인종 예시가 모든 언어에서 '새로 위협음으로 정한 소리는 AI의 투표에만 들어간다'는 단서를 붙였는지도 봅니다. 묶음 이름(`sound_group_*`)이 다른 묶음의 이름이나 다른 묶음에 든 소리의 이름과 같은지도 봅니다(#370). 소리를 다른 묶음으로 옮겼으면, 옮긴 소리의 이름을 낱말로 쓴 묶음 이름이 있는지도 언어마다 살펴 고칩니다. 묶음 이름이 구역 머리(종류 이름)와 같지 않은지, 새로 지은 묶음 이름이 제 묶음에 든 소리의 이름과 같지 않은지, '바꾼 소리' 수(`classify_changed_count`)가 무엇을 세는지(소리) 적었는지도 봅니다(#374).
- **쉬운 설정 문구**(`settings_view_*`, `easy_*`, #408)도 모든 언어에 함께 넣습니다. 글을 덜 읽게 하려고 만든 화면이라 한 언어라도 빠지면 그 언어 사용자만 영어 낱말을 읽게 되므로, 유닛 테스트 `EasySettingsStringsTest`가 실패합니다. 이 테스트는 '자세한 설정'에 있다고 알리는 도움말·튜토리얼 문구가 그 언어의 `settings_view_detailed` 글자를 그대로 인용하는지, 진동 도움말이 쉬운 설정의 세 단계를 단추 글자 그대로 적는지, 두 칸의 이름이 탭 이름과 다른지도 봅니다. 설정 탭의 자세한 설정에만 있는 항목을 가리키는 문구를 새로 쓰면 이 테스트의 목록에 더합니다.
- **색 선택 창의 화면 읽어주기 설명**(`color_picker_square_desc`, `color_picker_hue_desc`)도 모든 언어에 함께 넣습니다. 빠지면 그 언어의 화면 읽어주기 사용자만 영어로 들으므로 유닛 테스트 `TranslationCoverageTest`가 실패합니다(#489).
- **영어 문구에 문장을 더하거나 뜻을 바꾸면 이미 있는 번역도 함께 고칩니다.** 그대로 두면 그 언어에서는 옛 안내가 보입니다. 알림 권한 설명(`help_perm_notification_desc`)과 배터리 답(`help_faq_battery_a`)이 그렇게 16개 언어에서 옛 문장으로 남았던 적이 있어, 이 둘의 번역이 그 언어의 다른 도움말보다 눈에 띄게 짧거나 알림 권한 설명에 그 언어의 알림 중지 버튼·홈 탭 이름이 없으면 `TranslationCoverageTest`가 실패합니다(#489).
- 브랜드 이름처럼 번역하지 않는 문구는 `values/`에만 `translatable="false"`를 붙여 두고, 번역 파일에는 넣지 않습니다.
- `'`와 `"`는 `\'`, `\"`로 쓰거나 `‘ ’`, `“ ”` 같은 인쇄용 따옴표를 씁니다. `%1$s` 같은 서식 지정자는 영어와 똑같이 둡니다. 테스트가 둘 다 검사합니다.
- 도움말처럼 다른 화면의 이름(예: **실행**, **언어**)을 인용하는 문구는, 그 언어에서 해당 버튼·탭에 쓴 번역과 똑같이 맞춥니다.
Expand All @@ -169,7 +171,8 @@
1. `app/src/main/res/values-xx/strings.xml`을 만듭니다. 폴더 이름은 안드로이드 리소스 규칙을 따릅니다. (예: 일본어 `values-ja`, 브라질 포르투갈어 `values-pt-rBR`, 인도네시아어 `values-in`) 분류 탭 문구는 이때 모두 넣고, `SoundGroupStringsTest`의 `VOTE_WORDS`에 그 언어의 도움말에 쓴 '투표' 낱말을, `SOUND_WORDS`에 '바꾼 소리' 수(`classify_changed_count`)에 쓴 '소리' 낱말을 더합니다.
2. `language/AppLanguages.kt`의 목록에 태그, 폴더 이름, 그 언어로 쓴 언어 이름을 한 줄 추가합니다. 설정의 언어 선택 창에 이 순서대로 보입니다.
3. 분류 탭의 소리 이름도 번역한다면 `values-xx/sound_names.xml`에 521개를 모두 넣습니다. (선택. 없으면 소리 이름이 영어로 보입니다.)
4. `./gradlew testDebugUnitTest`로 확인합니다. 폴더와 목록이 어긋나면 테스트가 실패합니다.
4. 오른쪽에서 왼쪽으로 쓰는 언어(히브리어·페르시아어 등)면 `values-xx/bools.xml`에 `<bool name="rtl_layout">true</bool>`을 두고, 도움말의 방향 표현('오른쪽 아래', '왼쪽에서 네 번째')을 뒤집힌 배치에 맞춰 옮깁니다(아랍어처럼). 이 값이 없으면 화면이 왼쪽에서 오른쪽으로 그려지고 `AppLayoutDirectionTest`가 실패합니다(#489).
5. `./gradlew testDebugUnitTest`로 확인합니다. 폴더와 목록이 어긋나면 테스트가 실패합니다.

Android 13 이상의 폰 설정 **앱 언어**에 뜨는 목록은 빌드할 때 `values-xx` 폴더에서 자동으로 만들어지므로 따로 고칠 곳이 없습니다. (기본 폴더의 언어는 `res/resources.properties`에 적혀 있습니다.)

Expand Down
20 changes: 10 additions & 10 deletions PRIVACY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# SoundVisualizer 개인정보처리방침

시행일: 2026년 11월 16일
시행일: 2026년 11월 25일

SoundVisualizer(이하 "앱")는 팀 SOVIS가 만든 Android 앱입니다. 이 방침은 앱이 어떤 정보를 다루는지 설명합니다.

Expand All @@ -22,8 +22,8 @@ SoundVisualizer(이하 "앱")는 팀 SOVIS가 만든 Android 앱입니다. 이

## 3. 기기에 저장되는 정보

- **설정값:** 모드, 색, 크기, 진동 등 앱 설정을 기기 안에 저장합니다. Android 기기 백업을 켜 두었다면 설정값이 사용자의 Google 계정 백업에 포함될 수 있습니다. 이 백업은 Google이 관리하며, 개발자는 볼 수 없습니다.
- **개발자 기록:** 숨겨진 개발자 모드에서 기록을 직접 켠 경우에만, AI가 판별한 결과(소리 종류 이름, 점수, 시각)를 앱 전용 폴더에 CSV 파일로 저장합니다. 소리 자체는 저장하지 않으며, 앱을 지우면 함께 지워집니다.
- **설정값:** 모드, 색, 크기, 진동 등 앱 설정을 기기 안에 저장합니다. 설정과 함께 기기를 구분하는 값과 설치 시각도 저장되며, 이 두 값은 백업에서 옮겨 온 설정인지 가리는 데에만 씁니다. Android 기기 백업을 켜 두었다면 설정값과 이 두 값이 사용자의 Google 계정 백업에 포함될 수 있습니다. 이 백업은 Google이 관리하며, 개발자는 볼 수 없습니다.
- **개발자 기록:** 설정의 개발자 모드에서 기록을 직접 켠 경우에만, AI가 판별한 결과(소리 종류 이름, 점수, 시각)를 앱 전용 폴더에 CSV 파일로 저장합니다. 새 기록을 시작할 때 파일이 모두 합쳐 약 200MB를 넘지 않도록 오래된 파일부터 지웁니다. 소리 자체는 저장하지 않으며, 앱을 지우면 함께 지워집니다.

## 4. 권한과 쓰임

Expand All @@ -33,7 +33,7 @@ SoundVisualizer(이하 "앱")는 팀 SOVIS가 만든 Android 앱입니다. 이
| 화면 녹화 동의 | 다른 앱이 재생하는 소리를 받기 위해 (화면 영상은 받지 않음) |
| 다른 앱 위에 표시 | 소리를 다른 앱 화면 위에 그리기 위해 |
| 알림 | 실행 중임을 알리고, 잠금 화면에서 위협음을 알리기 위해 |
| 진동 | 사용자가 켠 경우 소리를 진동으로 알리기 위해 |
| 진동 | 소리를 진동으로 알리고(처음에는 위협음만 켜져 있음), 시각화가 저절로 꺼졌을 때 알리기 위해 |
| 화면 켜짐 유지 | 잠금 화면 위협음 알림 때 화면을 잠깐 켜기 위해 |
| 포그라운드 서비스 | 다른 앱을 쓰는 동안에도 소리를 계속 받기 위해 |

Expand All @@ -50,15 +50,15 @@ SoundVisualizer(이하 "앱")는 팀 SOVIS가 만든 Android 앱입니다. 이
## 7. 문의

- 팀 SOVIS
- nawwhod@gmail.com
- sovis.kr@gmail.com

웹에서 보기: https://sovis-team.github.io/privacy/

---

# SoundVisualizer Privacy Policy

Effective date: November 16, 2026
Effective date: November 25, 2026

SoundVisualizer (the "app") is an Android app made by team SOVIS. This policy explains what information the app handles.

Expand All @@ -78,8 +78,8 @@ The app **does not collect any personal information.**

## 3. Information stored on the device

- **Settings:** the app stores its settings, such as mode, colors, size and vibration, on the device. If Android device backup is on, these settings may be included in your Google account backup. Google manages this backup, and we cannot see it.
- **Developer log:** only if you turn on logging in the hidden developer mode, the app saves the AI's results (sound type names, scores and times) as CSV files in its own app folder. It does not save the sound itself, and the files are deleted when the app is uninstalled.
- **Settings:** the app stores its settings, such as mode, colors, size and vibration, on the device. Along with the settings, it also stores a value that tells devices apart and the time the app was installed. These two values are used only to tell whether settings were restored from a backup. If Android device backup is on, the settings and these two values may be included in your Google account backup. Google manages this backup, and we cannot see it.
- **Developer log:** only if you turn on logging in developer mode in Settings, the app saves the AI's results (sound type names, scores and times) as CSV files in its own app folder. When a new log starts, the oldest files are deleted first so that all the files together stay under about 200 MB. It does not save the sound itself, and the files are deleted when the app is uninstalled.

## 4. Permissions and why they are used

Expand All @@ -89,7 +89,7 @@ The app **does not collect any personal information.**
| Screen recording consent | Capturing sound played by other apps (the screen image is not captured) |
| Display over other apps | Drawing sound over other apps |
| Notifications | Showing that the app is running, and alerting danger sounds on the lock screen |
| Vibration | Vibrating for sounds, when you turn it on |
| Vibration | Vibrating for sounds (at first, only danger sounds are on), and alerting you when the visualizer stops on its own |
| Wake lock | Briefly turning on the screen for a lock-screen danger alert |
| Foreground service | Continuing to capture sound while you use other apps |

Expand All @@ -106,6 +106,6 @@ If this policy changes, we will update this page and its effective date.
## 7. Contact

- Team SOVIS
- nawwhod@gmail.com
- sovis.kr@gmail.com

On the web: https://sovis-team.github.io/en/privacy/
4 changes: 2 additions & 2 deletions README.ko.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

**안드로이드용 실시간 오디오 시각화 및 AI 기반 사운드 분석 오버레이**

**[웹사이트](https://sovis-team.github.io/) · [소개 영상](https://youtu.be/Rl8BLXjoTv4) · [APK 받기](https://github.com/SOVIS-Team/SoundVisualizer-Android/releases/latest) · [Windows 버전](https://github.com/SOVIS-Team/SoundVisualizer-Windows)**
**[웹사이트](https://sovis-team.github.io/) · [소개 영상](https://youtu.be/Rl8BLXjoTv4) · [APK 받기](https://github.com/SOVIS-Team/SoundVisualizer-Android/releases/latest) · [원스토어](https://m.onestore.co.kr/v2/ko-kr/app/0001013096) · [Windows 버전](https://github.com/SOVIS-Team/SoundVisualizer-Windows) · [인스타그램](https://www.instagram.com/sovis.official/)**

</div>

Expand Down Expand Up @@ -116,7 +116,7 @@

## 🚀 설치 및 실행 방법

SoundVisualizer는 Android 10 이상에서 돌아가는 오픈소스 APK 로 제공됩니다.
SoundVisualizer는 Android 10 이상에서 돌아가는 오픈소스 APK 로 제공됩니다. **[원스토어](https://m.onestore.co.kr/v2/ko-kr/app/0001013096)**에서도 설치할 수 있습니다.

1. **[GitHub Releases](https://github.com/SOVIS-Team/SoundVisualizer-Android/releases)** 페이지에 접속합니다.
2. 최신 버전의 `SoundVisualizer-vX.Y.Z.apk` 파일을 휴대폰으로 다운로드해 엽니다. 알 수 없는 앱 설치를 허용하는지 물으면 허용한 뒤 설치합니다.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

**Real-Time Audio Visualization & AI Sound Analysis Overlay for Android**

**[Website](https://sovis-team.github.io/en/) · [Demo video](https://youtu.be/Rl8BLXjoTv4) · [Download the APK](https://github.com/SOVIS-Team/SoundVisualizer-Android/releases/latest) · [Windows version](https://github.com/SOVIS-Team/SoundVisualizer-Windows)**
**[Website](https://sovis-team.github.io/en/) · [Demo video](https://youtu.be/Rl8BLXjoTv4) · [Download the APK](https://github.com/SOVIS-Team/SoundVisualizer-Android/releases/latest) · [ONE store (Korea only)](https://m.onestore.co.kr/v2/ko-kr/app/0001013096) · [Windows version](https://github.com/SOVIS-Team/SoundVisualizer-Windows) · [Instagram](https://www.instagram.com/sovis.official/)**

</div>

Expand Down Expand Up @@ -116,7 +116,7 @@ The project is rigorously engineered for high-performance, real-time background

## 🚀 Installation & Quick Start

SoundVisualizer is provided as an open-source APK for Android 10 or later.
SoundVisualizer is provided as an open-source APK for Android 10 or later. In Korea, you can also install it from **[ONE store](https://m.onestore.co.kr/v2/ko-kr/app/0001013096)**.

1. Go to the **[GitHub Releases](https://github.com/SOVIS-Team/SoundVisualizer-Android/releases)** page.
2. Download the latest `SoundVisualizer-vX.Y.Z.apk` file to your phone and open it. Allow installing unknown apps if asked, then install.
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
// 37(Android 17)에서 이 앱에 걸리는 변경은 백그라운드 액티비티 시작(BAL) 조이기뿐이었다. 타일·알림 본문·
// "다시 켜기" 로 여는 경로가 모두 BAL_ALLOW_NON_APP_VISIBLE_WINDOW 로 허용되는 것을 Android 17 에서 봤다(#155).
targetSdk = 37
versionCode = 19
versionName = "1.9.0"
versionCode = 21
versionName = "1.9.2"
buildConfigField("boolean", "AI_SILERO_PREVIEW_ENABLED",
providers.gradleProperty("aiSileroPreview").map {
require(it == "true" || it == "false") { "aiSileroPreview must be true or false" }
Expand All @@ -34,7 +34,7 @@
}.getOrElse("true"))

if (buildingBundle) {
ndk { abiFilters += shippedAbis }

Check warning on line 37 in app/build.gradle.kts

View workflow job for this annotation

GitHub Actions / 빌드 · 유닛 테스트 · APK

Lint ChromeOsAbiSupport

Missing x86_64 ABI support for ChromeOS
}

testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
Expand Down Expand Up @@ -137,7 +137,7 @@
// App Bundle 은 스토어가 기기에 맞는 ABI 만 골라 보내므로 분할이 필요 없다(맨 위 buildingBundle).
isEnable = !buildingBundle
reset()
include(*shippedAbis.toTypedArray())

Check warning on line 140 in app/build.gradle.kts

View workflow job for this annotation

GitHub Actions / 빌드 · 유닛 테스트 · APK

Lint ChromeOsAbiSupport

Missing x86_64 ABI support for ChromeOS
isUniversalApk = false
}
}
Expand Down Expand Up @@ -198,10 +198,10 @@
}

dependencies {
implementation("androidx.core:core-ktx:1.19.0")

Check warning on line 201 in app/build.gradle.kts

View workflow job for this annotation

GitHub Actions / 빌드 · 유닛 테스트 · APK

Lint GradleDependency

A newer version of androidx.core:core-ktx than 1.19.0 is available: 1.19.1
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.11.0")

Check warning on line 202 in app/build.gradle.kts

View workflow job for this annotation

GitHub Actions / 빌드 · 유닛 테스트 · APK

Lint GradleDependency

A newer version of androidx.lifecycle:lifecycle-runtime-ktx than 2.11.0 is available: 2.11.1
implementation("androidx.activity:activity-compose:1.13.0")
implementation(platform("androidx.compose:compose-bom:2026.09.00"))

Check warning on line 204 in app/build.gradle.kts

View workflow job for this annotation

GitHub Actions / 빌드 · 유닛 테스트 · APK

Lint GradleDependency

A newer version of androidx.compose:compose-bom than 2026.09.00 is available: 2026.11.01
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.ui:ui-graphics")
implementation("androidx.compose.ui:ui-tooling-preview")
Expand All @@ -220,7 +220,7 @@
testImplementation("org.json:json:20260814")
androidTestImplementation("androidx.test.ext:junit:1.3.0")
androidTestImplementation("androidx.test.espresso:espresso-core:3.7.0")
androidTestImplementation(platform("androidx.compose:compose-bom:2026.09.00"))

Check warning on line 223 in app/build.gradle.kts

View workflow job for this annotation

GitHub Actions / 빌드 · 유닛 테스트 · APK

Lint GradleDependency

A newer version of androidx.compose:compose-bom than 2026.09.00 is available: 2026.11.01
androidTestImplementation("androidx.compose.ui:ui-test-junit4")
androidTestImplementation("androidx.test:runner:1.7.0")
androidTestImplementation("androidx.test:rules:1.7.0")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import androidx.test.platform.app.InstrumentationRegistry
import com.example.soundvisualizer.ai.AiClassificationResult
import com.example.soundvisualizer.ai.YamnetCoarseClassifier
import java.io.File
import java.io.RandomAccessFile
import org.junit.After
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNotNull
Expand Down Expand Up @@ -203,6 +204,23 @@ class AiDebugRecorderInstrumentedTest {
}
}

@Test
fun 새_회차를_열면_폴더_상한을_넘긴_옛_파일부터_지운다() {
// 파일 하나의 상한은 회차 하나에만 걸려서, 켜 둔 기기에서는 시각화를 켤 때마다 파일이 쌓였다(#490).
// 상한을 넘기는 옛 파일은 크기만 잡아 둔다. 빈 곳이라 실제로 그만큼 쓰지 않는다.
logDir.mkdirs()
val oldest = File(logDir, "ai-20260101-000000.csv")
RandomAccessFile(oldest, "rw").use { it.setLength(AiLogRetention.FOLDER_MAX_BYTES) }
val newer = File(logDir, "latency-20260101-000000-1-42.csv").apply { writeText("recording_end") }
val stranger = File(logDir, "notes.txt").apply { writeText("기록 도구가 만들지 않은 파일") }

AiDebugRecorder.start(context)
waitFor("상한을 넘긴 옛 파일이 지워짐") { !oldest.exists() }

assertTrue("상한 아래로 들어온 뒤의 파일까지 지웠다", newer.exists())
assertTrue("기록 도구가 만들지 않은 파일을 지웠다", stranger.exists())
}

@After
fun stopAndClean() {
AiDebugRecorder.stop()
Expand Down
Loading
Loading