Debloat any Android or Google TV over Wi-Fi and get an Apple TV-style home.
Lịch Vạn Niên (Vietnamese almanac)
An optional, standalone module card for the Vietnamese lunar almanac. The Home tile says whether today is a hoàng đạo (auspicious) or hắc đạo (inauspicious) day and lists today's six good double-hours, so a glance at Home is enough. OK opens a full screen with the lunar date, the can chi (sexagenary names) of day, month and year, the day's star, a 12-hour ring with the zodiac animals (the TV's own emoji font) that marks the good hours and the current one, and the day's trực with what it suits and what to avoid. Left/Right page through days, OK returns to today. Everything is computed on the TV for Vietnam (UTC+7); no data is downloaded. Design notes in DESIGN.md. The screen is in Vietnamese.
How the tile changes every day
A card can only carry fixed text and a fixed picture, so the app ships 12 launcher aliases (.Day0 … .Day11),
each with its own banner: 6 sets of good hours × good/bad day. DayUpdater keeps the one for today enabled
and the others disabled: after boot, after a clock or time-zone change, on an inexact alarm within 15 minutes
after midnight (Vietnam time) and whenever the screen is opened. The launcher rebuilds its tiles on
PACKAGE_CHANGED. Because the tile's component changes with the day, a position chosen with the tile menu's
Move does not stick; put the package in dock_apps (matched by package name) to pin it.
Setup
Build from this folder with JDK 17 and Android SDK 34:
./gradlew --no-daemon testReleaseUnitTest assembleRelease
Sideload app/build/outputs/apk/release/app-release.apk with the repository's normal ADB tools, then enable
today's tile once (the app has no launcher entry until it has run):
TV_HOST=<tv ip> tools/venv/bin/python -I tools/tv.py 'am broadcast -n com.tungpv.lichvannien/.DayReceiver'
Press Home and approve Lich Van Nien when the launcher asks about its card. Until the app has run once the tile shows a neutral "Hôm nay / Bấm OK" picture. If the app is ever force-stopped, Android drops its alarm and its boot receiver until it is opened again, so the tile can stay on an old day: open the tile once.
Preview another day's tile from ADB only (PreviewReceiver is protected by DUMP, which apps cannot hold):
am broadcast -n com.tungpv.lichvannien/.PreviewReceiver --ei preview_days 1; --ei preview_days 0, or the
next midnight, puts today's back. The banners are generated by tools/make_banners.py (Pillow, fonts pulled from
the TV's /system/fonts).
Data and validation
The lunar calendar is Hồ Ngọc Đức's algorithm (astronomical new moons and solar terms at UTC+7). The day's star, trực and good hours follow the usual Vietnamese almanac tables (hoàng đạo by the day's branch within the lunar month, trực by the month's branch, good hours by the day's branch). Unit tests compare 9 dates in 2025–2027 with xemlicham.com and ngaydep.com (lunar date, can chi, star, trực, good hours), plus two 2027 solar terms that begin just after midnight. From 23:00 the ring's Tý segment follows the next day, since giờ Tý opens the next day. Left/Right stop at 1900 and 2199.
Permissions
RECEIVE_BOOT_COMPLETED: to put today's tile back after the TV starts.
No network access, no background service, no accessibility service. One inexact daily alarm that does not wake the TV.
Tested on
Expressluck AiPro4K (sepolia), Android TV 14 (UKN7.260716.014).