-
-
Notifications
You must be signed in to change notification settings - Fork 17
Compatibility with Android TV #9
Comments
Playstore needs a few extra graphics for Android TV, I can look into that. We would also need to make sure that the menu can be navigated by remote, I have not looked into how good that currently works. Feel free to help out with that :). |
@d4rken Wakelock menu can be navigated by remote on Xiaomi Mi Box 3 (Android TV 8.0) without any problems. I checked yesterday. |
+1 on what @bieniu said. I can confirm it works ok on a Mibox S (4) (ATV 9.0). That being said, it's not the perfect interface for ATV but since it's kinda "set it once and forget it" that's pretty ok. |
I can confirm it is running on Sony Bravia TV KD-55X8505C as intended. Navigation with remote is also fine - installed via ADB. |
After last update (2604) of MiBox S(4) (ATV 9.0), Wakelock not work and MiBox S stay in deep sleep. |
Yes same issue here. |
FYI, USB Ethernet (connected to MiBox S) LEDs turns on and off soon, periodically. |
Me too. |
There is no specific change required in the app. This is likely a ROM change that increases restrictions on battery consumptions. Somewhere in the the system settings is likely a menu where you can exclude wakelock-revamp from these restrictions. |
Interesting moment - after restart of mi box S with installed and activated WakeLock , wakelock does everything right, and does not allow the device to go into deep sleep ... but it does it only once and after waking up, this does not happen anymore until the next reboot. It looks like the service is not restarting |
Check whether the notification is visible. If it's visible, then the app is doing it's job. If the notification is not visible (and thus the service not started), then there might be an issue. |
no any notifications.... |
Also I found this In case if you will follow any available tutorial to publish notification via notification channel on the Android TV — it will not work. In the logcat you will see the next message: TVNotifService: skipped notification StatusBarNotification(pkg=com.my.application user=UserHandle{0} id=2 tag=MyChannel key=0|com.my.application|2|MyChannel|1000: Notification(channel=MyChannel pri=0 contentView=null vibrate=null sound=null tick defaults=0x0 flags=0x100 color=0xff048f80 category=sys vis=PUBLIC)) userId: 0 Notification is ignored, this seems totally unexpected to anybody who was working with the notification channels on Android phones, but due to Android TV specific UI/UX — notifications are allowed only for the system white-listed application |
That could be an explanation... We can't modify the ROM and whitelist the package... 🤔 |
Here is example of notification wrapper for android Tv |
|
ok |
mi box s, latest android version (9), wakelock side loaded, gave all permission, load on startup, power optimization turned off, none made the mi box stay awake after pressing the power button |
I am getting "Ethernet not Connected" error every time my Xiaomi Mi Box S wakes up from sleep. I have to unplug and replug the USB Ethernet adapter or reboot the box to make the USB Ethernet recognized. Wakelock was working fine until I upgraded my Box to Android 9 (2604). I have done factory reset on my device after the upgrade but no luck. I have "load on startup" checked in the wakelock with the following options, power optimization turned off for Wakelock on the Mibox. But still no luck. |
Powermanager has very aggressive save mode. And Wfi, CEC, USB, partial_wake_locks not work in sleep mode at all! (exclude Bluetooth) Here link to bug reports BUG REPORT Mi Box S.... write there about this problem |
I have usb dongle remote control which works great when Mi Box S is turned on. I can turn it off via Usb remote but I can't turn it on back again. Only bluetooth remote can turn Mi Box S on. |
Same here. After updating Mi box to android 9, wakelock stopped working. Someone has already found a workaround? Ps. eth from usb not working either |
Yep, same issue with Mi Box 3 after update to Android 9. Basically, rendered a universal wireless+IR remote useless, including Xiaomi's own Mi Remote app. (same issue as @VoyteckPL described, no matter what sent the IR signal to put the Mi Box to sleep)
|
Any solution ? |
I ended us using the following USB ethernet adapter and it works
flawlessly. Only a USB adapter with AX88179 chipset works flawlessly with
Android TV OS and the uGreen one has AX88179 chipset. Hope it helps.
https://www.amazon.com/dp/B00LLUEJFU
|
This is not a solution, if you have a connected USB adapter, you cannot use the ADB Debugger function. |
Same on MiTV-MSSP2 (Android 9) with battery optimisation disabled. |
Would love to be able to install it from the store for my Mi TV Box, not a big fan of sideloading stuff. Hopefully someone can help out with this. I'm not a programmer myself, otherwise I would've helped in my spare time. |
Unfortunately, the app is not working on Mi box anymore (or any other android tv I know of). |
It works for me on the latest version of AndroidTV on a Hitachi device. |
That sucks, any alternatives available? |
Any update on this? So far the problem is the notification? Because it's handled differently in Android TV compared to normal Android? |
Hi !
It would be very useful to add compatibility with Android TV so users could install the app from the play store on set top boxes instead of sideloading.
Thanks for your consideration :)
Context: JeffLIrion/python-androidtv#18 (comment)
The text was updated successfully, but these errors were encountered: