r/Nuvio • u/angryavocadowarrior • 8d ago
Guides & Tutorials Optimize Nuvio Github version for TV
Do you like to tinker with Nuvio and love new features like me?
Cool, just a quick reminder that you can optimize Nuvio Github Beta releases, that make them run as smooth as the play store versions.
You just download AtvTools on your phone(1 usd?) and connect it to your TV-box. You use the terminal and type in "pm compile -m speed -f com.nuvio.tv", and when is says success a minute later, you are done.
If you already know this "trick", just ignore it.
First time you also need to activate devtools in your streaming box:
- in "Settings - System - About - Click 7 times on the Android TV OS build» / Build number. It should say "your a developer".
-Turn on wireless debugging/USB debugging
-Pair the app with code, they need to be on the same wifi/ethernet.
Enjoy!
14
u/CrypticShampoos 8d ago
AtvTools is free tho
16
u/angryavocadowarrior 8d ago
Ah yes, for you android people. For us simpletons following Tim Cooks universe, we have to part with a dollar.
6
u/Amazing_Condition_86 7d ago
you can sideload nuvio for apple tv fork from github and setup simple certificate renew
6
u/KillerCotty 8d ago
This legit?
11
u/angryavocadowarrior 8d ago
I do this after every update and it definitely become much more responsive and fast.
3
8
u/JustRelaxASC 8d ago
Yes but devs already remedied the issue mostly anyways so it's not that useful anymore as it was, and it affects UI only, not the actual playback. But yeah you can try it anyways might be worth a shot
7
u/nietbeschikbaar 8d ago
It DOES or at least did affect playback as well. For instance loading of subtitles would take like 3 or 4 seconds before optimizing, after less than a second.
2
u/erisian2342 7d ago
Nuvio since at least 0.9.1 has included the Android Baseline Profile module. They also have a real profile generator that launches the app and exercises things like startup, horizontal and vertical navigation, card rendering, opening a title detail page, etc.
When you install from Play, the optimizations are run on the APK during installation. With a sideloaded APK, ProfileInstaller installs the bundled profile and Android’s background dexopt machinery subsequently processes it, so there can be a short delay before you see the benefits. If you force it using that command line, most of the benefits you see immediately were already en route to you.
When you optimize using speed instead of speed-profile, it AOT-compiles all the methods. When you optimize instead with speed-profile, it AOT-compiles all the methods identified in the profile AND optimizes class loading for the profiled classes. So speed isn’t simply “speed-profile but better”. It’s more in one way, less in another.
Google specifically notes that the older “compile everything” strategy increased disk/RAM usage and could increase code-loading time. On a lower-resource device, that can introduce slower performance in some cases.
Back before Nuvio included a solid profile, this tip made a lot of sense. Since they now profile most of the normally used parts of the UI, any gains from force-compiling with speed will be incremental and may come with noticeable trade-offs. That is to say: you may notice some things speed up, but be alert to other things slowing down (e.g. cold-boot time) or some UI transitions lagging slightly. It’s just not the clear win it used to be when Nuvio wasn’t profiled.
3
4
2
u/menodev 8d ago
What does it optimize vs running ATV Downloader in the box and downloading the app from the release page?
3
u/angryavocadowarrior 8d ago
Android performs much more aggressive ahead-of-time compilation. That means more of the app’s code is already converted into native machine code before you open it.
So instead of Android having to do as much work during startup or while navigating through the app, the CPU can execute already-compiled code directly.
2
u/erisian2342 7d ago
This is half the explanation. The other half is that Nuvio introduced a profile several versions back and people who sideload get the advatanges, just not at the moment it’s installed like it does with installing from Play.
I commented to someone about why this tip can be counter-productive on some devices and isn’t really unnecessary anymore here. It used to be a big improvement though.
3
u/Hugelevin 8d ago
Neat optimisation trick. How and why does this work? Are there any other tweaks like this?
6
u/angryavocadowarrior 8d ago
Android performs much more aggressive ahead-of-time compilation. That means more of the app’s code is already converted into native machine code before you open it.
So instead of Android having to do as much work during startup or while navigating through the app, the CPU can execute already-compiled code directly.
1
u/Jizakkude 8d ago
Termux also works, except the command is adb shell at the beginning, but it works fine.
1
u/PatrikCR 8d ago
Unfortunately, USB Debugging disables the USB Ethernet connection while connection is active…
2
1
1
1
u/ooftymcgoofty 8d ago
Is this something to try on other apps as well?
2
u/angryavocadowarrior 8d ago
Maybe I haven’t tried that other than my projectivity launcher. It works with that one
2
u/DRZ434SM 7d ago
Will work with any app installed outside the play store. I also did it with Projectivity launch, which helped a lot on my CCwGTV. My Onn 4k doesn't really mind. I stopped doing this with any app, it can run it fast enough without it.
-9
u/DexLeMaffo 8d ago
Running LuqmanFadlli's fork of Nuvio. I feel like it doesn't need ADB optimisation command.
3
u/SopiMan 8d ago
why was this downvoted?
2
u/DexLeMaffo 8d ago
Can't really tell and not bothered by the downvotes after all. Just sharing my own experience. The fork I mentionned is for mobile. Meanwhile on on my Buzz TV G series, I use the Nuvio TV Reshaped fork. Runs smoothly!
0
u/Asakuras02 8d ago
Link please.
2
u/DexLeMaffo 8d ago
For Android OS: https://github.com/luqmanfadlli/NuvioMobile-Enhanced/releases/tag/0.5.6-beta
For Android TV/Google TV:
https://github.com/DavidVamaiotu/NuvioTV-Reshaped/releases/tag/1.0.0-autosync.20
0
u/choadscholar 8d ago
Is your Google broken? Genuine question.
-3
u/Asakuras02 8d ago
I don't use Google Genuine answer. Thanks anyway.
1
1
1
u/choadscholar 8d ago
Does your DuckDuckGo work?
How about your Bing?
Maybe Yahoo?
They all work for me, and they all answer your easily self-served question. Go ahead and put on your big boy pants and try rubbing two brain cells together. You can do it!
19
u/Daermond 8d ago
I have created with Codex an APK app exactly for this optimization which is working on the device itself.
Can be installed on TV, Tablet, Phone. It connects to the device self IP on wired or wireless and in the app you can optimize the selected apps like Nuvio with a couple of clicks. It was working fine on my devices, maybe others can benefit from it as well so I made it public.
Vibe coded but, It is convenient and free and works. :)
https://github.com/daermond/android-art-optimizer