Privacy Policy for Refract (折光)
Plain-language privacy and permission disclosure aligned directly with the application source code.
1. Overview & Scope
This Privacy Policy explains how Refract (折光) (Android package moe.xleine.refract, developed by 雁渡寒潭) handles information when you use the app on your Android device.
All local video probing, trimming, transcoding, audio extraction, and HLS segment merging happen strictly on your device.
1. 概述与适用范围
本隐私政策说明 折光(Refract)(Android 应用包名 moe.xleine.refract,开发者:雁渡寒潭)在您使用本应用时如何处理信息与设备权限。
所有本地视频信息探测、片段裁剪、转码、音频提取与 M3U8 分片合并操作均在您的设备本地完成。
2. Data We Do Not Collect
Consistent with our Google Play Data Safety declaration, Refract does not collect, transmit to developer-controlled servers, or share with third parties any of the following:
- Personal information: No name, email address, phone number, user ID, or account credentials.
- Media & files: Your videos, audio tracks, thumbnails, and exported files are never uploaded to the developer or any cloud processing service.
- Device & advertising identifiers: No Android Advertising ID, IMEI, hardware serials, or cross-app tracking identifiers.
- Analytics, telemetry & diagnostics: No usage events, screen views, or automatic crash logs are transmitted off your device. (If you manually tap "Copy Diagnostic Report" after an FFmpeg error, the text is only placed in your device clipboard under your direct control.)
- Location, contacts, camera, microphone, or financial data: None of these data types are requested or accessed.
2. 我们不收集的数据
与我们在 Google Play Console 中提交的 Data Safety(数据安全)表单一致,折光不会收集、不会向开发者服务器传输、也不会向任何第三方分享以下信息:
- 个人身份信息:不收集姓名、邮箱、手机号、账号凭证或用户标识符。
- 媒体与文件内容:您的视频、音频、缩略图与导出成品绝不会被上传至开发者或任何云端转码服务器。
- 设备与广告标识符:不读取或上报广告 ID(AAID)、IMEI、设备序列号或跨应用追踪标识。
- 行为统计与自动崩溃日志:不进行埋点统计,不自动上传崩溃堆栈或错误日志。(当转码出错且您主动点击「复制排查报告」时,诊断文本仅写入您设备的系统剪贴板,完全由您自行决定是否粘贴或分享。)
- 位置、通讯录、相机、麦克风与支付信息:应用均不请求也不访问这些敏感数据。
3. Local Media Processing & On-Device Storage
To perform conversions and preserve your workspace between sessions, Refract stores data exclusively on your device in standard Android app directories:
- Temporary import cache: When you pick a file via Android Photo Picker, Storage Access Framework (SAF), or "Open with / Share", the app copies the selected file into its own temporary cache so it can be processed reliably.
- App-private working area: Processed outputs, thumbnails, and in-progress M3U8 downloads are kept inside the app's private storage, invisible to other apps.
- Copy to your Downloads folder (Android 10+): Completed conversions and merged M3U8 videos are also saved to a dedicated folder under your device's public Downloads directory, or to a folder you explicitly choose via "Save As".
- History, presets & download tasks: Conversion history, user-saved presets, and M3U8 download task state are stored locally so tasks can pause, resume, and retry. The saved task state includes the stream URLs and any optional custom
Referer,User-Agent, orCookieheaders you entered. - App settings: Your light/dark theme choice, most recently used format settings, and preferred M3U8 thread count and output format.
- On-device clipboard detection (M3U8 Downloader only): When you open the M3U8 Downloader screen or tap the Paste button, Refract reads your system clipboard locally solely to detect whether an
http://orhttps://URL is present for quick autofill. Non-URL text is ignored, never saved, and never transmitted off-device.
3. 本地媒体处理与设备端存储
为了顺利完成转码并在下次打开时保留您的工作状态,折光仅在您的设备本地的 Android 标准应用目录中保存以下数据:
- 临时导入缓存:当您通过系统相册选择器、文件管理器或「打开方式 / 分享」导入文件时,应用会将所选文件暂存到自己的临时缓存中,以便稳定处理。
- 应用私有工作区:转码成品、缩略图与进行中的 M3U8 下载都保存在应用私有空间内,其他应用不可见。
- 同步到「下载」目录(Android 10 及以上):转码或 M3U8 合并完成后,成品会另存一份到系统公共「下载」目录下的专属文件夹;您也可使用「另存为」导出到任意自选位置。
- 历史、预设与下载任务:转换历史、您自行创建的格式预设以及 M3U8 下载任务状态仅在本地保存,以便任务暂停、断点续传与失败重试。保存的任务状态包含您填写的流地址及可选的
Referer、User-Agent、Cookie请求头。 - 应用设置:深浅色主题偏好、最近一次使用的格式方案以及 M3U8 默认并发线程数与输出封装格式。
- 本地剪贴板链接检测(仅限 M3U8 下载页):仅当您进入「M3U8 视频下载」页面或主动点击粘贴快捷按钮时,应用会在设备本地读取系统剪贴板文本以检测是否包含
http://或https://链接供一键填充;非链接文本会被直接忽略,不会被保存或上传至任何服务器。
4. User-Initiated Network Requests
Local video conversion, trimming, preset management, and history browsing require no network connection and make zero background network requests.
Network requests occur only when you explicitly take one of these two user-initiated actions:
- M3U8 / HLS Stream Downloader & Page Sniffing: When you enter a stream or webpage URL and start probing or downloading, your device connects directly to the remote server(s) you specified (including inspecting that webpage's HTML if you pasted a regular webpage link to discover
.m3u8streams, as well as fetching variant playlists, AES decryption keys, and media segments referenced inside). Any optionalReferer,User-Agent, orCookieheaders you entered—along with in-memory session cookies returned during redirects—are sent strictly to those remote endpoints. No developer relay or proxy server is involved. - External Links (About Screen): Tapping an open-source acknowledgment item, the Privacy Policy link, or the Official Website link on the About screen asks your device's web browser to open that public webpage.
Encryption in transit (HTTP vs. HTTPS): Requests to https:// URLs use standard TLS encryption. To remain compatible with legacy or local-network HLS streams, the app allows plain http:// links; if you manually enter an http:// URL, traffic to that host is unencrypted by nature of the HTTP protocol.
4. 用户主动触发的网络请求
本地视频转码、裁剪、预设管理与历史记录查看均完全离线运行,不会在后台发起任何静默联网请求。
应用仅在您明确主动触发以下两类操作时才会发生网络连接:
- M3U8 / HLS 视频下载与网页嗅探:当您主动输入流地址或网页链接并点击解析或下载时,您的设备会直接连接您指定的目标服务器(若您输入的是普通网页地址,应用会请求该页面 HTML 以尝试提取其中的
.m3u8播放地址,并继续拉取清单中引用的清晰度子清单、AES 解密密钥与媒体分片)。您自行填写的可选Referer、User-Agent或Cookie请求头(以及重定向过程中产生的内存会话 Cookie)仅发送至目标服务器,绝不经过任何开发者中转服务器。 - 「关于折光」中的外部网页链接:仅当您主动点击开源致谢条目、隐私权政策或官方网站链接时,才会调用系统浏览器打开对应公开网页。
传输加密说明(HTTPS 与 HTTP):访问 https:// 链接时使用标准 TLS 加密传输。为兼容部分老旧或局域网内的 http:// M3U8 流,应用允许访问明文 http:// 链接;如果您主动输入了 http:// 链接,与该目标服务器的通信将遵循明文 HTTP 协议。
5. Android Permissions Explained
Below is the complete list of every permission declared in Refract's AndroidManifest.xml, why it is needed, and what happens if optional permissions are not granted.
| Permission | Purpose | If Denied / Not Used |
|---|---|---|
| android.permission.INTERNET | Used solely by the M3U8 / HLS downloader to connect directly from your device to stream or webpage URLs you enter. | Install-time permission; local video conversion and trimming work fully offline without using it. |
| android.permission.ACCESS_NETWORK_STATE | Declared to check basic network connectivity state during user-initiated M3U8 downloads. | Install-time permission; never used for tracking or background data collection. |
| android.permission.FOREGROUND_SERVICE | Allows long-running local FFmpeg transcodes and M3U8 downloads to continue reliably when you switch to another app. | System-managed normal permission; active only while a conversion or download task is running. |
| android.permission.FOREGROUND_SERVICE_DATA_SYNC | Required on Android 10–16 for the M3U8 download Foreground Service (and Android 10–14 fallback for transcoding). | Active only during user-started background tasks; stops automatically once finished or cancelled. |
| android.permission.FOREGROUND_SERVICE_MEDIA_PROCESSING | Required on Android 15+ (API 35+) to run local FFmpeg video transcoding in a Media Processing Foreground Service. | Active only while a local FFmpeg job is running; includes a Cancel button in the notification. |
| android.permission.POST_NOTIFICATIONS | Optional runtime permission (Android 13+). Displays background progress bars and completion/error alerts for transcoding and M3U8 downloads. | You can deny this permission safely. Local transcoding and M3U8 downloading continue to work normally inside the app, without system status-bar notifications. |
READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE, READ_MEDIA_VIDEO, MANAGE_EXTERNAL_STORAGE, CAMERA, RECORD_AUDIO, or location permissions. File selection relies exclusively on Android's system Photo Picker and Storage Access Framework (SAF); sharing an output file only ever grants temporary access to that single file.
5. Android 权限逐项说明
下表完整列出了折光在 AndroidManifest.xml 中声明的每一项权限、真实用途及未授权时的影响:
| 权限名称 | 用途说明 | 不授权 / 不使用的表现 |
|---|---|---|
| android.permission.INTERNET | 仅用于 M3U8 / HLS 视频下载模块,在您输入链接后由设备直连目标服务器拉取清单、网页嗅探地址、AES 密钥与分片。 | 安装时基础权限;本地视频转码与裁剪完全离线运行,不消耗网络。 |
| android.permission.ACCESS_NETWORK_STATE | 用于在您主动执行 M3U8 下载时检查基础网络连通状态。 | 安装时基础权限;不会用于任何追踪或后台上报。 |
| android.permission.FOREGROUND_SERVICE | 用于在切出应用或息屏时,通过前台服务保持耗时较长的 FFmpeg 转码与 M3U8 下载不被系统中断。 | 系统管理的普通权限;仅在任务运行期间启用,结束或取消后自动停止。 |
| android.permission.FOREGROUND_SERVICE_DATA_SYNC | Android 10–16 系统对 M3U8 下载前台服务(以及 Android 10–14 转码保活)要求声明的前台服务类型。 | 仅在您主动启动下载或转码任务期间运行。 |
| android.permission.FOREGROUND_SERVICE_MEDIA_PROCESSING | Android 15+(API 35+)系统对本地 FFmpeg 视频转码前台服务要求声明的媒体处理服务类型。 | 仅在本地转码执行期间运行,通知栏提供随时取消任务的操作入口。 |
| android.permission.POST_NOTIFICATIONS | 可选运行时权限(Android 13+)。用于展示后台转码/下载进度条以及任务完成或报错提醒。 | 拒绝该权限完全不影响核心功能,您仍可在应用内正常完成全部转码与下载,只是不会收到系统通知栏提示。 |
READ_EXTERNAL_STORAGE、WRITE_EXTERNAL_STORAGE、READ_MEDIA_VIDEO、MANAGE_EXTERNAL_STORAGE、相机、麦克风或定位权限。选片与另存完全依赖 Android 系统文件选择器与存储访问框架,分享成品时也仅对该单个文件做临时授权。
6. Third-Party Services & Open-Source Components
No third-party data-collection SDKs: Refract does not bundle Google AdMob, Firebase Analytics, Firebase Crashlytics, Firebase Auth/Firestore, Google Play Billing, or any third-party marketing/attribution SDK.
Refract is built using the following open-source libraries, all of which execute locally on your device without sending telemetry to the developer or library maintainers (full 10-item open-source credits are listed in the in-app About screen):
| Component | License | Role in Refract |
|---|---|---|
FFmpeg & FFmpegKit (8.1.9 Full-GPL) |
GPL v3.0 / LGPL | On-device media probing (FFprobe), decoding, encoding, filtering, and container muxing. |
AndroidX Media3 / ExoPlayer (1.5.1) |
Apache 2.0 | Local low-latency video playback inside the Trim timeline screen. |
OkHttp (4.10.0) |
Apache 2.0 | HTTP/HTTPS client used solely for user-initiated M3U8 playlist, key, and segment downloads. |
| Jetpack Compose & Material 3 | Apache 2.0 | Native Android UI rendering, theming, and animations. |
AndroidX Room (2.7.0) & DataStore (1.1.7) |
Apache 2.0 | Local on-device database (history, presets, M3U8 tasks) and app settings storage. |
| Kotlin Coroutines & AndroidX Core/Lifecycle | Apache 2.0 | Structured local concurrency, Photo Picker / SAF integration, and lifecycle safety. |
| Plus Jakarta Sans & JetBrains Mono | SIL OFL 1.1 | Bundled local UI and monospace command-preview typography. |
6. 第三方服务与开源组件说明
无第三方数据采集 SDK:折光未集成 Google AdMob 广告、Firebase Analytics、Firebase Crashlytics、Firebase 账号/数据库、内购支付(Play Billing)或任何第三方统计与归因 SDK。
折光仅包含以下开源软件组件,均在您的设备本地运行,不会向开发者或组件维护者上报任何遥测数据(应用内「关于折光」页面列有完整的 10 项开源致谢与项目链接):
| 开源组件 | 开源协议 | 在折光中的作用 |
|---|---|---|
FFmpeg 与 FFmpegKit(8.1.9 Full-GPL) |
GPL v3.0 / LGPL | 本地音视频探测(FFprobe)、编解码、滤镜裁剪与容器封装。 |
AndroidX Media3 / ExoPlayer(1.5.1) |
Apache 2.0 | 为视频片段截取界面提供低延迟本地播放与时间轴预览。 |
OkHttp(4.10.0) |
Apache 2.0 | 仅在您主动下载 M3U8 时用于拉取索引、AES 密钥与视频分片。 |
| Jetpack Compose 与 Material 3 | Apache 2.0 | 构建原生声明式界面、色彩主题与交互动效。 |
AndroidX Room(2.7.0)与 DataStore(1.1.7) |
Apache 2.0 | 本地数据库存储(历史记录、自定义预设、M3U8 任务状态)与主题偏好保存。 |
| Kotlin Coroutines 与 AndroidX Core/Lifecycle | Apache 2.0 | 后台并发调度、系统 Photo Picker / SAF 文件接入与生命周期管理。 |
| Plus Jakarta Sans 与 JetBrains Mono | SIL OFL 1.1 | 内置于应用本地的界面字体与 FFmpeg 命令等宽字体。 |
7. Data Retention & Deletion
All data created by Refract resides exclusively on your device, so you have full and immediate control over it—no support ticket is required. Temporary cache, conversion history, and M3U8 download tasks can be cleared at any time inside the app, and clearing app storage or uninstalling Refract in Android Settings permanently deletes the local database, preferences, and cache.
Media files you previously exported to your device's shared storage remain yours until you delete them with your file manager.
7. 数据留存与删除
折光产生的所有数据仅保存在您的设备本地,您无需联系任何人即可随时自主清理或彻底删除:临时缓存、转换历史与 M3U8 下载任务均可在应用内直接清除;在系统设置中清除应用存储空间或卸载应用,即可永久删除本地数据库、偏好设置与全部缓存。
此前导出到设备共享存储的音视频成品归您所有,卸载后仍会保留,直至您自行删除。
8. Changes to This Policy & Contact
Refract is a general-audience tool and is not directed at children; since the app collects no personal information from anyone, no children's data is involved.
If future versions of Refract introduce new permissions, dependencies, or data practices, we will update this Privacy Policy at https://xleine.moe/refract/privacy and revise the "Effective & Last Updated" date at the top of this page.
If you have any questions about this Privacy Policy, app permissions, or open-source compliance, please contact the developer:
- Developer: 雁渡寒潭
- Email: xleiney@gmail.com
8. 政策变更与联系方式
折光为面向普通用户的通用工具,并非面向儿童设计;由于应用不收集任何用户的个人信息,因此不涉及儿童数据。
如果未来版本新增权限、依赖或调整本地数据处理方式,我们将在本页面 https://xleine.moe/refract/privacy 更新隐私政策并同步修订顶部的「生效与更新日期」。
如您对本隐私政策、应用权限或开源合规有任何疑问,欢迎通过以下方式联系开发者:
- 开发者:雁渡寒潭
- 联系邮箱:xleiney@gmail.com