An unofficial native Android client for cosplaytele.com — bilingual / 双语
English · 简体中文
⚠️ For personal learning & research only. This app does not host, mirror or redistribute any content; all galleries are served by the third-party site cosplaytele.com. Comply with local laws and the site's terms of service. The author assumes no liability for any use.
⚠️ 仅限个人学习与研究使用。 本项目不托管、不转载、不分发任何内容,所有图集均由第三方站点 cosplaytele.com 提供。请遵守当地法律法规及站点服务条款,作者不承担任何使用后果。
A clean, fast, feature-rich third-party Android client for
cosplaytele.com. It talks directly to the site's public WordPress REST
API (/wp-json/wp/v2) — no WebView wrapper — and bundles browsing, search, categories, tags,
favorites, history and a real resumable download manager into one native interface.
- Latest release: Releases
- Direct APK: CosplayTele-1.4.2.apk (~6.5 MB)
- Requires Android 7.0 (API 24) or newer. Enable "Install unknown apps" on first install. The APK is signed with a local debug certificate for sideloading/testing purposes.
- v1.4.2 (recommended): refreshed launcher icon with the supplied artwork. It builds on
v1.4.1 — a genuinely random home banner (pagination headers now read via GET) and a fix for
custom download folders on Android 11+ (writes go through SAF
ContentResolver). The package id stayscom.cosplaytele.app, so this is a direct in-place update; favorites, history and downloads are preserved.
| Module | Details |
|---|---|
| 🏠 Home | Latest galleries, 240dp parallax cover banner (a random gallery on every refresh), infinite scroll, rounded cards |
| 🧭 Explore | Popular categories and tags, tap to filter the gallery list |
| 🔍 Search | Full-text search by gallery title |
| 📖 Detail | Gallery metadata (Cosplayer / Character / photos / file size / password), photo grid, fullscreen swipe viewer, external drive links |
| ❤️ Favorites | Save galleries you like locally |
| 🕘 History | Automatically record opened galleries, clear at any time |
| ⬇️ Downloads | Foreground service with real downloads: resumable, notification progress, cancel / open / retry / delete, Wi-Fi only, whole-gallery batch download |
| ⚙️ Settings | Custom DNS IP (work around DNS poisoning), connection test, download folder (system picker / custom path), check for updates, Chinese/English/Japanese switch, restore defaults |
The 「Download all images」 button on a detail page saves the entire gallery into a folder named after its title.
Home · Navigation drawer · Explore · Favorites
History · Download manager (done / running / failed) · Settings
The interface uses a drawer-navigation + immersive-banner information architecture instead of the usual bottom tab bar:
- Navigation drawer: slide-out
NavigationViewgrouped into Home / Explore / Search, Favorites, History / Downloads and Settings, with an app header avatar. - Collapsing banner: a 240dp parallax cover on Home with a dark gradient scrim and an accent bar; each pull-to-refresh recommends a different gallery as the cover.
- Cards:
MaterialCardViewwith 12dp corners, 1dp elevation, top-rounded cover, gradient info strip and a single-line title. - Theme: Material 3 dark theme with a red accent (
#FFFF4359) for drawer selection, the banner bar and progress indicators.
The app uses the system DNS by default, matching browser behaviour, so it also works under VPN / special networks. Only fill a working Cloudflare IP in Settings → Pinned IP if your network has DNS poisoning, and verify it with Test connection.
- Requests retry up to 3 times with a desktop Chrome user-agent.
- The REST API is public and needs no login; there is no HTML scraping.
- Connection failures show a readable reason, so you can tell DNS / TLS / timeout issues apart.
Requirements: JDK 21, Android SDK 36, AGP 8.11.2, Kotlin 2.0.21.
gradle assembleRelease # build the release APK
gradle testDebugUnitTest # Robolectric smoke tests (3 items)The sdk.dir in local.properties must point to your local Android SDK; this file is not
committed.
app/src/main/java/com/cosplaytele/app/
App.kt application entry, initializes stores and network client
data/
net/Api.kt REST client (system DNS / optional pinned IP, retries, connection pool)
Repository.kt repository aggregating posts / categories / tags / media
Settings.kt preferences
model/ data models
store/ favorites and history (SharedPreferences + JSON)
download/ foreground download service, resumable transfer, task store
ui/
MainActivity.kt drawer navigation + fragment container
home/ home page (parallax banner + paged list)
explore/ categories and tags
search/ search
detail/ gallery detail + fullscreen viewer
saved/ history/ favorites and history
download/ download manager UI
settings/ settings and network test
common/ adapter/ paged controller and RecyclerView adapters
app/src/main/res/ layouts, icons, colors, themes, FileProvider paths
app/src/test/ Robolectric smoke tests + screenshot generator
- Bridge: the WordPress REST API is completely public — no cookie / login state, avoiding the instability of a WebView dealing with Cloudflare.
- Images: Coil + OkHttp, sharing the app's network configuration (consistent DNS policy).
- Downloads: a self-built
ForegroundServicewithDownloadManagersemantics, HTTP Range resume, live notification progress and JSON-persisted task state. - File access:
FileProvidergrants temporary URI permission to safely open downloaded files. - Testing: Robolectric covers drawer navigation, entry existence and fragment switching.
cosplaytele.com 的第三方原生 Android 客户端,直接读取站点公开的
WordPress REST API(/wp-json/wp/v2),把图集、搜索、分类标签、收藏、浏览历史与图片浏览整合进一个
原生界面,不是 WebView 套壳。
- 最新版本:Releases
- 直接下载:CosplayTele-1.4.2.apk(约 6.5 MB)
- 需要 Android 7.0(API 24)及以上,首次安装请允许「安装未知应用」。APK 使用本地 debug 证书签名,仅供侧载测试。
- v1.4.2(推荐):采用新提供的美术图更换启动器图标。此前 v1.4.1 修复了随机封面横幅(改用
GET 读取分页头,真正随机翻页)和自定义下载文件夹在 Android 11+ 下写入失败的问题(改走 SAF
ContentResolver)。包名保持com.cosplaytele.app,可直接覆盖安装,收藏、历史与下载记录都会保留。
| 模块 | 说明 |
|---|---|
| 🏠 首页 | 最新图集,240dp 视差封面横幅(每次刷新随机推荐),无限滚动,圆角卡片 |
| 🧭 发现 | 分类与热门标签,点击即筛选图集列表 |
| 🔍 搜索 | 按图集标题全文检索 |
| 📖 详情 | 图集元信息(Coser / 角色 / 图片数 / 文件大小 / 密码)、图片网格、全屏滑动看图、站外网盘链接 |
| ❤️ 收藏 | 本地保存喜欢的图集 |
| 🕘 历史记录 | 打开过的图集自动记录,可随时清空 |
| ⬇️ 下载管理 | 前台服务真实下载:断点续传、通知栏进度、取消 / 打开 / 重试 / 删除、仅 Wi-Fi 下载、整相册批量下载 |
| ⚙️ 设置 | 自定义 DNS IP(应对 DNS 污染)、连接自测、下载目录(系统文件夹选择器 / 自定义路径)、检查更新、中日英语言切换、恢复默认 |
详情页的 「下载全部图片」 会把整个相册下载到以标题命名的文件夹中。
首页 · 抽屉导航 · 发现 · 收藏
历史记录 · 下载管理(完成 / 进行中 / 失败)· 设置
界面采用抽屉导航与沉浸式头图的信息架构,而不是常见的底部导航栏:
- 抽屉导航:侧滑
NavigationView,分组为「主页 / 发现 / 搜索」「收藏」「历史 / 下载」「设置」,带应用头部头像。 - 折叠横幅:首页顶部 240dp
CollapsingToolbarLayout视差封面,深色渐变蒙层与红色竖条标题,滚动时工具栏固定;每次下拉刷新会随机推荐一个图集作为封面。 - 卡片:
MaterialCardView12dp 圆角、1dp elevation、顶部圆角封面、底部渐变信息条、单行标题。 - 主题:Material 3 深色主题,红色强调色
#FFFF4359用于抽屉选中态、横幅竖条与进度条。
应用默认使用系统 DNS,与浏览器行为一致,因此在 VPN / 特殊网络环境下也能正常连接。只有当你所在网络存在 DNS 污染时,才需要在「设置 → 固定 IP」中填入一个可用的 Cloudflare IP,并用「测试连接」验证。
- 请求自动重试 3 次,请求头为桌面 Chrome UA。
- REST API 公开、无需登录,不依赖 HTML 抓取。
- 连接失败时界面会显示可读的错误原因,方便排查是 DNS、TLS 还是超时问题。
环境要求:JDK 21、Android SDK 36、AGP 8.11.2、Kotlin 2.0.21。
gradle assembleRelease # 打包 Release
gradle testDebugUnitTest # Robolectric UI 冒烟测试(3 项)local.properties 中的 sdk.dir 需指向本机 Android SDK 路径,该文件不会提交到仓库。
- 桥接方式:WordPress REST API 完全公开,无需 Cookie / 登录态,避免了 WebView 与 Cloudflare 交互的不稳定性。
- 图片加载:Coil + OkHttp,共用应用网络配置(DNS 策略一致)。
- 下载实现:
ForegroundService+DownloadManager语义的自主实现,HTTP Range 断点续传,通知栏实时进度,任务状态 JSON 持久化。 - 文件访问:
FileProvider授予临时 URI 权限,安全打开已下载文件。 - 测试:Robolectric 覆盖抽屉导航、入口存在性与 Fragment 切换;截图由本地
ScreenshotTest生成,不含站点真实图片。
| 版本 | 说明 |
|---|---|
| 1.4.2 | 当前版本:更换启动器图标(采用新提供的美术图) |
| 1.4.1 | 修复随机封面横幅(改用 GET 读取分页头,真正随机翻页)+ 修复自定义下载文件夹在 Android 11+ 下写入失败(改走 SAF ContentResolver) |
| 1.4.0 | 随机封面横幅 + 检查更新 + 中日英语言 + 切换下载文件夹(下载文件夹写入有兼容问题) |
| 1.3.0 | 历史记录 + 真实下载管理器 + 整相册批量下载 |
| 1.2.0 | 抽屉导航 + 视差横幅界面 |
| 1.1.0 | 系统 DNS / VPN 网络修复 |
| 1.0.0 | 初版,四个底部标签页 |
本项目为非官方客户端,仅用于技术研究与个人使用。站点内容版权归原作者及 cosplaytele.com 所有。站外网盘链接(Telegram / SoraFolder / Gofile 等)仅在浏览器中打开,应用不托管、不转载、不重新分发任何内容。使用者应遵守当地法律法规。





