Survival LLM
A free AI assistant and survival library (1.5 million offline articles) that runs on your own computer, with no internet. Shows the source of every answer. Mac and Windows.
翻译准备中
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证A fast, ad-free home screen for Google TV. Open source, built with Claude Code. One button to undo.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗A fast, ad-free home screen for Google TV, LG and Samsung TVs.
Trending picks from your own apps, the weather at a glance, and a look that follows the sunset. Open source. Built with Claude Code. One button to undo.
freemytv.io · Install · LG TVs · Samsung TVs · Any TV · Make it yours
About ten minutes. You need a Google TV or Android TV (Android 8 or newer) and a computer on the same Wi-Fi. The APK goes on the TV, not on your phone (on a phone, the settings say so and nothing switches).
On the TV, turn on developer mode: Settings → System → About → press Android TV OS build 7 times. Then Settings → System → Developer options → turn on USB debugging. Write down the TV's IP address (Settings → Network & Internet).
On your computer, open an AI coding assistant (Claude Code, Codex or Antigravity) and say:
Install Free My TV (github.com/simbasjungles/free-my-tv) on my TV at 192.168.1.50. I live in Lisbon.
It downloads the code, installs the tools it needs, builds the app and puts it on your TV, and asks before anything important. Swap in your TV's IP and your city.
On the TV, open Free My TV → Home Screen → Free My TV. That's when the TV asks Allow USB debugging? for Free My TV: tick Always allow and accept.
No tools to install besides adb. The APK on the latest release has no TMDB key: add yours on the TV for the picks (Home Settings → TMDB key, below). It takes your city from the TV's time zone (change it in Home Settings → City).
If you built Free My TV yourself before, switch back to Original and uninstall it first: your build and the release are signed with different keys.
On the TV, do step 1 above.
On your computer, download FreeMyTV.apk from the release and install it:
adb connect 192.168.1.50:5555
adb install -r FreeMyTV.apk
On Android 14, Google Play Protect may hold the install with Risky app blocked: choose More details → Install anyway.
Install it with adb like this, not by opening the APK on the TV: from a file manager or a browser, Play Protect can refuse it outright with App blocked to protect your device (in some countries it blocks sideloaded apps that have an accessibility service or a notification listener, which Free My TV uses for the remote's buttons and Now Playing; #378).
On TCL TVs, also let it run in the background (TCL blocks it by default, and the switch never starts). An uninstall takes the permission back, so run it again after every new install:
adb shell "appops set io.freemytv AUTO_START allow || appops set io.freemytv APP_AUTO_START allow"
On the TV, do step 3 above.
For the picks, add your TMDB key in Home Settings → TMDB key (below).
Updates come to the TV. Once a week the APK from the release looks for a newer release and downloads it; the home screen then says so once, and Home Settings → Updates (the last row) installs it through Android's installer, which asks first (and, the first time, asks to allow Free My TV to install apps). OK on Updates also checks right away. The download must come from this repository's releases, match the size and SHA-256 GitHub lists, be newer, and be signed with the project's key. A build you made yourself checks only when you press Updates, and only says when a new version is out: build it again to update.
On the TV, do step 1 above.
Tools: a JDK (17+), the Android SDK command-line tools (build-tools 34, platform android-34) and adb. On a Mac:
brew install --cask temurin android-commandlinetools android-platform-tools
sdkmanager "build-tools;34.0.0" "platforms;android-34"
On Linux, get OpenJDK 17, Android's command-line tools and adb from your package manager, then run the same sdkmanager line. On Windows, use Git Bash (which Claude Code uses there) or WSL.
Build:
./build.sh
The first run creates config.properties. Set your city and your TMDB key there, then run it again.
Install:
adb connect 192.168.1.50:5555
adb install -r FreeMyTV.apk
If the install seems stuck, look at the TV: on Android 14, Google Play Protect may hold it with Risky app blocked ("built for an older version of Android"), since Free My TV targets Android 13. Choose More details → Install anyway. Updates don't ask again.
Chromecast with Google TV on Android 14 keeps port 5555 closed even with USB debugging on: turn on Wireless debugging (Developer options), pair with adb pair <address:port> <code>, then run adb tcpip 5555 over that connection. Port 5555 closes again at every restart, so after one, Original, the watchdog and the boot check can't reach ADB until you run adb tcpip 5555 again (the pairing stays).
On TCL TVs, also let it run in the background (TCL blocks it by default, and the switch never starts). An uninstall takes the permission back, so run it again after every new install:
adb shell "appops set io.freemytv AUTO_START allow || appops set io.freemytv APP_AUTO_START allow"
On the TV, open Free My TV → Home Screen → Free My TV. The TV asks Allow USB debugging? once more, now for Free My TV itself: tick Always allow and accept. (Run adb disconnect 192.168.1.50:5555 first: on Android 8 to 10 the TV can hand that answer to a computer that's still connected.)
On some TCL TVs (Android 11, Realtek), a second background killer, TGuard, can stop the switch while it measures the original home screen: the settings screen closes and the TV's own home screen stays. Android runs the switch again by itself within a minute or two; then press Home: Free My TV opening means it went through.
The same home screen as an LG app: the picks, the glass shelf with your apps, the drawer with inputs, weather and prices, day and night, Home Settings and the shelf editor. It installs through LG's own Developer Mode, with nothing rooted or changed on the TV. LG's home screen stays where it is, and Free My TV is one press of a number key away (or in LG's app list, on remotes without them).
You need an LG TV (webOS 3 or newer) and a computer on the same Wi-Fi, with Python 3.
config.properties works as for Google TV (your city, your TMDB key):
git clone https://github.com/simbasjungles/free-my-tv && cd free-my-tv
python3 webos/build.py
python3 webos/install.py 192.168.1.50
With an AI assistant, say "Install Free My TV (github.com/simbasjungles/free-my-tv) on my LG TV at 192.168.1.50. I live in Lisbon." It builds the app and hands you the install command, so you type the passphrase yourself.
With the webOS Homebrew Channel, you can skip the computer: add the repository https://freemytv.io/webos/apps.json in the Channel's settings, and Free My TV shows up in its list. That's the release build: it takes the city from the TV's time zone (change it in Home Settings → City), and for the picks you type your TMDB key in Home Settings → TMDB key. If you installed your own build, don't update it from there, or the release replaces it.
On webOS 6 and newer, LG doesn't let apps installed through Developer Mode see which apps the TV has. Free My TV then shows the well-known ones it finds (Netflix, YouTube, Prime Video, Disney+, Apple TV, Plex and more) and asks the TV, once, for the access LG's phone app uses: a message on the TV asks whether to allow Free My TV. Allow it, and from the next start all your apps show, with their icons.
Older LG TVs (webOS 3) don't let Free My TV see their apps at all, so the shelf stays empty. There your computer asks the TV instead (the TV asks once whether to allow it), and the list and icons are built into the app. Run it again after installing new apps on the TV:
python3 webos/apps.py 192.168.1.50 && python3 webos/build.py && python3 webos/install.py 192.168.1.50
Developer Mode lasts about 40 days: open the Developer Mode app now and then and press EXTEND. To remove Free My TV, run python3 webos/install.py 192.168.1.50 --uninstall.
The same home screen as a Samsung app, with everything the LG one has: the picks, the shelf, the drawer with the inputs, the weather and the prices, day and night, and its own settings. It installs through Samsung's own Developer Mode, with nothing rooted or changed on the TV, and Samsung's home screen stays where it is.
You need a Samsung TV on Tizen, from 2015 or newer, and a computer on the same Wi-Fi (a 2015 UE48JU6100 on Tizen 2.3 was reported working, #317, while a 2016 Full HD UE49K5670 refuses developer installs altogether, with failed[118] even from Samsung's own tizen install, #349: on a 2016 UE49KU6640 the same answer was a copy left by an earlier failed install, which python3 tizen/install.py <IP> --uninstall removed; Orsay models can't run it, but a Google TV streamer on HDMI can). 2015 and 2016 TVs can't run TizenBrew, so on those build it yourself (below); TV Settings isn't in the drawer there, since apps can't open the TV's settings, nor on 2017 and 2018 TVs (Tizen 3 and 4), which freeze trying (#257); the remote's own Settings button works on all of them.
1 2 3 4 5 on the remote. Turn Developer mode on, type your computer's IP address in Host PC IP, and restart the TV.simbasjungles/free-my-tv. On 2023 and newer TVs it asks you to sign in to your Samsung account once, to sign the app for your TV.This build takes your city from the TV's time zone (change it in Home Settings → City), and for the trending picks you type your TMDB key in Home Settings → TMDB key. To build it with your own config.properties instead, open the folder in Claude Code and say "Install Free My TV on my Samsung TV at 192.168.1.50. I live in Lisbon." It sets up Samsung's tools, and on 2023 and newer TVs you sign in to your Samsung account in the browser to make the certificate. Your signed build installs with python3 tizen/install.py 192.168.1.50, which needs only Python: no Tizen Studio, and no Rosetta on Apple Silicon Macs.
The first values come from config.properties, created by the first build (Google TV, LG and Samsung use the same file). Most of them can also be changed on the TV, in Free My TV → Home Settings, and the TV's choice wins:
| Key | What it does | Default |
|---|---|---|
tmdb_key | Your free TMDB key, for the picks | empty |
tmdb_region | Your country (two letters): which titles are on which app | US |
watchmode_key | Optional, free Watchmode key: a pick opens the title's page in its app | empty |
plex_url and plex_token | Optional, your Plex server's plex.direct address and token: its newest titles join the picks and open on their page | empty |
trakt_client_id | Optional: the Client ID of your own free Trakt API app. Home Settings > Picks then gets a Trakt row to sign in with a code, and the picks start with what you're in the middle of, bring in your watchlist and leave out what you've watched. Google TV only | empty |
latitude, longitude | Your city, for the weather and the sunset | New York |
city | The name on the weather card | Weather |
hide_animation | Leave cartoons and anime out of the picks | false |
open_in_stremio | A pick opens on its page in Stremio when the Stremio app is on the TV, instead of in the app it streams on. The picks stay the same: only from the TV's own apps. Google TV only | false |
language | auto (follows the TV), or a language with a translation (en, pt, es, de, ru, fr, ja…) | auto |
Changed something? Run ./build.sh and install again. Keep freemytv.keystore: updates are signed with it.
Free, and it takes two minutes: create an account at themoviedb.org, then open Settings → API and request a developer key. Paste the API Read Access Token (or the API Key) after tmdb_key=. It's your key: config.properties stays out of git.
On Google TV and Android TV you can also add it on the TV, which the APK from the releases needs: Home Settings → TMDB key
shows a QR code. Scan it with your phone (on the same Wi-Fi), paste the key and send it; the TV checks it with TMDB and
keeps it. The code works once, for 5 minutes, and only while it's on screen. The phone's page is plain HTTP on your own
Wi-Fi: on a network you don't trust (a hotel's), type the key instead. No phone at hand? Type it with the remote: the
short API Key (32 characters) is the easier one to type. A key added on the TV wins over the one in config.properties,
and Remove the key goes back to it.
On LG and Samsung you can also type it on the TV, in Home Settings → TMDB key: the short API Key (32 characters) is the easier one to type with the remote. TMDB checks it before it's saved, it stays on the TV, and it wins over the one in config.properties (Remove the key goes back to that one).
With a free Watchmode key (watchmode_key= in config.properties), a pick opens its own page in the streaming app instead of the app's home. The free plan (2,500 credits a month) is enough: each title costs two requests the first time and is remembered after that. It works where the app takes the title's web address (tested: Prime Video, JioHotstar and Netflix); where it doesn't, the pick just opens the app, as without a key.
On Google TV and Android TV, with the TV connected over adb (see Install), send photos or whole folders from your computer:
python3 tools/photos.py <TV IP> beach.jpg hills.jpg Holidays/
They land in the app's own folder on the TV (no permission needed); on Android 11, which keeps adb out of other apps' folders, they go through Free My TV itself. The next time the home screen, the screensaver or Free My TV's settings open, the app imports each one: turned upright, cropped to 16:9, resized for the TV and saved without its GPS and other tags; what was sent is then deleted. The screensaver shows them in the order you sent them, instead of the picks' photos; without a TMDB key, one of them is the home screen's background, a new one every hour. Home Settings → My Photos: the arrows turn them on or off, OK removes them. Up to 100; JPEG, PNG and WebP, and HEIC on Android 9 and newer.
With an Immich server, the TV can fetch them by itself. In config.properties, set immich_server to its address (http://192.168.1.20:2283 on your network, or its https:// address), then build and install again. Then make a key in Immich → Account Settings → API Keys (asset.read, asset.view, asset.download and album.read are enough) and send it to each TV that should show your photos (Android 9 and newer):
python3 tools/send_key.py <TV IP> immich_api_key
It asks for the key without showing it, checks it with your server (a search, a preview and an original, as the TV does), puts it in the app's private storage on the TV over adb, and asks the TV whether it arrived. It never goes into the APK, which any app on the TV can read, nor into config.properties; --remove takes it off the TV. A TV without the key keeps My Photos as above.
Every 6 hours, when the home screen opens, a new random choice of up to 40 photos comes in (at least 1080 pixels on their short side), one at a time, through the same import. Nothing goes before something new has come: at 100 the oldest of Immich's make room, and the photos you sent with tools/photos.py always stay. Home Settings → My Photos then chooses where they come from: Default (none of yours: the picks' photos), Immich: all photos or one of its albums; after a change, the previous ones go as the new ones arrive. TVs with little memory or a 720p screen take Immich's preview of each photo instead of the original.
A server given as http:// must be on your own network (a private address like 192.168.1.20, or a .local, .lan or .home.arpa name; the build stops otherwise), and only its address may be reached without HTTPS; anything else needs https:// (over Tailscale, the server's https://<machine>.<tailnet>.ts.net address, which Tailscale can serve with a certificate). The app never follows a redirect from it, so the key only goes to that address.
Set plex_url and plex_token in config.properties, and one of the newest movies and one of the newest shows of your Plex server (another one each time the list is made, a few times a day, among the latest 8 of each kind) join the picks, with their own poster and backdrop, tagged "Plex". A tab shows at most one. Selecting one opens the title's page in the Plex app. If the server can't be reached when the list is made, its titles are left out.
This is for Google TV and Android TV, and it needs the TMDB key and at least one streaming app on the TV: without those no picks come at all, Plex included.
plex_url is the server's own plex.direct address, which has a valid certificate (the TV checks it as for any site; plain http and any other address are ignored, so a typo never sends your token anywhere). It looks like https://192-168-1-20.0123456789abcdef0123456789abcdef.plex.direct:32400: your server's local IP with dashes, then its id. Open any item in Plex's web app, Get Info → View XML, and the address bar has it, before /library/....plex_token is on the same address, after X-Plex-Token=. It gives access to your Plex account, and any app on the TV can read the APK it is built into, so use the token of a Plex Home managed user with access to your libraries, not your own, and never commit it.The TV talks to your server directly on your network. If the server can't be reached, the other picks load as usual.
On the TV: Free My TV → Home Screen → Original. The factory home screen, screensaver and every app come back exactly as they were. If the new home screen ever crashes three times in five minutes, it switches back by itself.
To remove it for good, switch to Original first, then uninstall Free My TV (Settings → Apps). Uninstalled it while it was on? Install it again and pick Original: the list of what it turned off is kept in the TV's settings, so everything comes back.
screensaver=false, the screensaver.READ_TV_LISTINGS with pm grant through the TV's own ADB; Original takes it back with pm revoke. Pictures come only from the TV (content://, android.resource://), never from the network.screensaver=false);disable_assistant=true.Free My TV runs on Google TV and Android TV: TCL, Sony, Hisense, Philips, Xiaomi, Vestel-made TVs (F&U), KTC-made TVs (NextStar) and more, plus streamers like Chromecast with Google TV, the Google TV Streamer, onn 4K, the Xiaomi Mi TV Stick and NVIDIA Shield, and projectors like the Wanbo T2 Ultra. And on LG and Samsung TVs, as an app.
Huawei TVs (HarmonyOS) and the Kalley 43G200: there Free My TV stays an app you open. After the switch, one of each didn't start again (the Huawei came back only with a factory reset), so the switch refuses on them, and one already switched by an older version goes back to Original by itself. On Fire TV it's an app too: Amazon's home screen keeps the Home button.
Any other TV: plug a Google TV streamer into HDMI and free that one. Same steps, same home screen.
A different brand or model: ask Claude. Free My TV is made to be adapted by AI. Open the folder in Claude Code and say "set it up for my Sony": it reads your TV, finds its home screen and its promo apps, updates the lists below and walks you through a test. CLAUDE.md tells it how.
| What | Where |
|---|---|
| Apps to turn off | DEBLOAT in HomeMode.java |
| Apps never to touch | PROTECTED in the same file |
| Apps on the shelf | SHELF in HomeApps.java |
| Your brand's live TV app | LIVE_TV_APPS in the same file |
It's your code, and Claude Code finds its way around it. Try:
build.sh runs aapt2 → javac → d8 → zipalign → apksigner and makes a 2 MB APK.127.0.0.1:5555 with its own key (that's the Allow USB debugging? prompt) and runs the same commands you would: cmd package set-home-activity, settings put secure screensaver_components, pm disable-user, pm grant / pm revoke for Continue Watching, and, while Recent Apps is open (it starts off), dumpsys activity recents, ps -A -o NAME, settings get secure enabled_accessibility_services and default_input_method, and am force-stop for an app you close. Nothing listens to the network.web/), written for the Chromium of older TVs, with no frameworks. webos/build.py packs it with config.properties into an .ipk without LG's tools, and webos/install.py installs it through Developer Mode; on LG it lists and opens apps through the TV's own service bus (Luna), as LG's launcher does. tizen/build.py packs the same app into a Samsung .wgt, which uses Tizen's web APIs for the apps and the inputs. To preview it on a computer: python3 webos/build.py --preview, then open (a stand-in lists sample apps).| File | What it is |
|---|---|
HomeView.java | The home screen |
HomeMode.java | Switching between Free My TV and Original |
Adb.java | The TV's own ADB, from inside the TV |
Recs.java | The picks (TMDB) |
KeyPage.java, Qr.java | The TMDB key sent from a phone, and its QR code |
WatchNext.java | Continue Watching from the TV's lists |
WatchArt.java | Continue Watching pictures, only from the TV |
HomeData.java | Weather and prices |
HomeApps.java | The shelf, inputs and All Apps |
The website (freemytv.io) is in docs/: plain HTML, CSS and JS on GitHub Pages.
On Google TV, LG and Samsung, each language is one file, app/assets/i18n/<lang>.json, keyed by the
English text in the code. Automatic follows the TV's language and uses any language that has a file (English otherwise); Home
Settings → Language lists them all. Today: English, Portuguese, Spanish, German, French, Italian, Dutch, Polish,
Swedish, Danish, Norwegian, Finnish, Czech, Romanian, Turkish, Russian, Ukrainian, Greek, Japanese, Korean, Simplified
and Traditional Chinese, Hindi, Indonesian, Vietnamese and Thai. Portuguese, Spanish, German, Russian, Thai and Turkish were translated by hand and are the
reference (fix them by hand); the others were machine-made, and corrections from native speakers are welcome.
python3 tools/translate.py --new ca, then fill app/assets/i18n/ca.json by hand, or with
ANTHROPIC_API_KEY set, python3 tools/translate.py --fill --lang ca (only the strings go to the API).python3 tools/translate.py lists what each language lacks; --fill translates
only that (the hand-translated ones, Portuguese, Spanish, German, Russian, Thai and Turkish, are left for a person
unless --lang names them), --prune drops strings the code no longer uses.
Run python3 tools/translate.py --check to validate all catalogues without writing files."{n} min ago"), so each language puts the words in its own order. A key
like "unit|Automatic" is the same English in another place, where a language may need another word."plural|one:{n} season|other:{n} seasons" is translated with one form per plural
category the language uses (Russian "one:{n} сезон|few:{n} сезона|many:{n} сезонов|other:{n} сезона", Japanese
just "other:{n}シーズン"), and Android's plural rules pick the one for each number.No accounts, no analytics, no tracking. The app talks to TMDB, Open-Meteo (with the coordinates you set, or your time zone's main city), and Binance only when show_crypto=true, Watchmode only when you set a watchmode_key, your Plex server only when you set a plex_url, your Immich server only when you set one, and Trakt (api.trakt.tv) only when you set a trakt_client_id and sign in on the TV. On Google TV and Android TV, the APK from the release asks GitHub (api.github.com) once a week, or when you press Updates, for the latest release, and when there's a newer one downloads it from github.com and GitHub's download server (release-assets.githubusercontent.com); a build you made yourself asks only when you press Updates. The Now Playing widget reads what apps are playing (title, artist, the app) through a notification listener, the only way Android shares it: Free My TV allows the listener only while the widget is on, never reads a notification with it, and asks Android to unbind it as soon as it connects, so it stays unbound. What's playing never leaves the TV. While Home Settings → TMDB key shows its QR code (5 minutes at most), the TV answers on your home network at that code's address, for one key; the key goes to TMDB only, to check it. Continue Watching (Home Settings) reads what your apps note on the TV itself and shows only pictures already on the TV: it downloads nothing. Home Settings → Status icons reads only whether the TV has Wi-Fi or Ethernet, a Bluetooth audio device and a mounted USB drive, and only while the row is on: on Android 12 and newer it asks for Nearby devices (BLUETOOTH_CONNECT) for the Bluetooth part, and none of it leaves the TV. Your settings stay on your computer and your TV.
MIT. Fork it, change it, ship it.
show_crypto | Show Binance crypto prices on home and screensaver | true |
currency | Crypto prices in USD, EUR, BRL… | USD |
temperature | C, F or auto | auto |
theme | auto (dark from sunset to sunrise), light or dark | auto |
disable_assistant | Also turn off Google Assistant | false |
screensaver | false keeps the TV's own screensaver: Free My TV then changes only the home screen and the promo apps (Google TV) | true |
hide_services | Streaming services to leave out of the picks even when their app is on the TV (netflix, prime, disney…), comma separated; for apps the TV ships that you don't subscribe to. It is where the switches in Home Settings › Picks › Picks from start; what you switch on the TV wins. Google TV only | empty |
hide_apps | Apps to leave out of the shelf, All Apps and the picks, by id or name (part of it), comma separated; for apps the TV ships that can't be uninstalled, like Samsung's built-in Netflix. LG and Samsung only | empty |
shelf_apps | The shelf's apps in this order, by id or name (part of it), comma separated; changing it wins once over the shelf picked on the TV. On Samsung, a whole app id also brings an app the TV leaves out of its list, like one installed in Developer Mode. LG and Samsung only | empty |
drawer_first | true opens the home screen with the drawer already out (apps in the middle, inputs, weather and prices below), so nothing has to be scrolled to reach the inputs; Back closes it to the full page. For a TV whose streaming apps live on a box, where the picks stay empty. LG and Samsung only | false |
immich_server | Optional: your Immich server: your own photos come from it, on each TV you send its key to (with tools/send_key.py, never here). Google TV only | empty |
am force-stop), so it starts from scratch next time; the TV's own pieces, what its inputs and remote need, apps whose accessibility service is on, and the keyboard can't be closed. It reads the list only while it's open, with dumpsys activity recents and ps -A through the TV's ADB.out/webos/index.htmlREAD_TV_LISTINGS through the TV's ADB; Original revokes it. Pictures load only from the TV (content://, android.resource://), never from the network.show_crypto=true), optionally Watchmode (the picks' own pages in their apps, with a watchmode_key), optionally your Plex server (with a plex_url), optionally your Immich server (your photos, with an immich_server and its key) and optionally Trakt (what you're watching and your watchlist, with a trakt_client_id, once you sign in on the TV).DreamView.java |
| The screensaver |
SettingsActivity.java | The settings screen (the app's icon) |
Prefs.java | Settings changed on the TV |
RemoteKeys.java | The remote's app buttons (TCL, Sony, Xiaomi and others) |
RecentApps.java, ScreenBlur.java | Recent Apps, over a blurred copy of the screen |
Watchdog.java | The safety net |
web/home.js | The home screen on LG TVs |
web/tv.js | The TV's apps and inputs, on LG and Samsung |
webos/build.py, webos/install.py | The LG app package and its install |
tizen/build.py | The Samsung app package |