PRProd / HA-Firemote

Apple TV, Amazon Fire TV, Chromecast, Homatics, NVIDIA Shield, onn., Roku, Xiaomi Mi, and Android TV remote control card for Home Assistant
GNU General Public License v3.0
523 stars 71 forks source link

[New App Shortcut]: Xfinity Stream (modded) #538

Open lentinoz opened 2 weeks ago

lentinoz commented 2 weeks ago

App Name

Xfinity Stream (modded)

Device Platform

NVIDIA Shield

App Store Link and/or URL to .apk file if sideloaded

https://app.box.com/s/mez14psqk4z3hd9v3jbq3eg4ftzbe3gk

Required Information

app_name: com.xfinity.cloudtvr source: com.xfinity.cloudtvr adb_response: mSurface=Surface(name=com.xfinity.cloudtvr/com.xfinity.cloudtvr.view.BrowseActivity)/@0x25d84bd mSurface=Surface(name=com.android.systemui.ImageWallpaper)/@0x7befa8 mInputMethodTarget in display# 0 Window{573ab1e u0 com.xfinity.cloudtvr/com.xfinity.cloudtvr.view.BrowseActivity}

Optional Comments

I'm currently running the modded Xfinity Stream on an Nvidia Shield. The included Xfinity Stream button doesn't seem to work.

I'm also curious as to how exactly these app shortcuts are created. I've created my own as home assistant buttons already, it'd be interesting if we could add custom ones ourselves to your card.

Thanks for everything you do!

lentinoz commented 2 weeks ago

Here's the XDA page forum where new updates are posted. https://xdaforums.com/t/xfinity-tv-mod-android-box-hdmi-output.3535881/page-118

PRProd commented 2 weeks ago

@lentinoz ~

Congrats on opening your first issue! It's great to have you here!

I'm currently running the modded Xfinity Stream on an Nvidia Shield. The included Xfinity Stream button doesn't seem to work.

A modded app likely would not work with the official app launcher, so what you've described isn't surprising. Since I already have an app launcher for the official app, I will not be adding one for a modded/suspiciously altered version.

I'm also curious as to how exactly these app shortcuts are created. I've created my own as home assistant buttons already, it'd be interesting if we could add custom ones ourselves to your card.

You're in luck! In the Firemote Wiki, I wrote a section called Create a Custom Button for Yourself which describes how you can make a button, and program the button to execute a Home Assistant action.

For help figuring out how to write the command that will launch your version of the app, I have also written a wiki article titled How to write an ADB command to launch an app.

Using these two things together, you should be able to accomplish what you are asking. If you run into trouble, or something seems unclear, I can help you out. For now though, I won't be officially adding a modded app like this to the launcher list. I hope that you understand.

-Doug

PRProd commented 2 weeks ago

@lentinoz ~

My sincerest apologies. I know that this used to work on my Shield, but after looking again today I can clearly see that this app is not available through the normal means (Google Play Store), so it has to be sideloaded.

That being said, I've tried downloads from APK Mirror and from the link you provided, but my silly Shield responds with "App not installed"

I'm not giving up yet, just admitting that I was wrong. If I can't get it installed on my end, I will use the data you provided above and publish that in the next release. Most of the time, making launchers based off of that data will work. Either way, I'll let you know.

Sorry about that!

-Doug

lentinoz commented 2 weeks ago

No worries! I started building a custom button last night but haven't finished it yet. image I'll most likely have it up tonight for myself, but if you get one added, I'll switch to it. Let me know if I can help in any other way!

PRProd commented 2 weeks ago

Since I can't run that app on my Shield because... who knows why... I'd be interested to know the ADB command that works in your environment. I'll use whatever you find.

lentinoz commented 2 weeks ago

I wasn't able to play around with this too much last night, but for some reason, no ADB commands were working for me (even when I tried launching an app like Netflix instead). I may need to reconfigure some things within my HA environment. If I can get it working, I'll let you know.

PRProd commented 1 week ago

@lentinoz ~

I have just published Firemote version v4.1.2 which contains a modified version of the Xfinity launcher for the NVIDIA Shield. As soon as you get the ADB business worked out with your system, please give this new version a try and let me know if it's working as expected.

Enjoy!

-Doug


To see a complete list of all Firemote launchers visit this link After updating to the newest version, if you are unable to see the new updates on your Firemote card, visit this link for help.

PRProd commented 1 week ago

Do you have any updates on this @lentinoz?

lentinoz commented 5 days ago

@PRProd The new version and new launcher didn't seem to fix it unless I'm missing something. Is it still just called Xfinity Stream in the list of App Launch Buttons?

PRProd commented 4 days ago

@lentinoz ~

Yes, it is still the same one. The reason that it's not working is likely because I didn't include an ADB command. Since I hadn't heard back from you on a command that worked, I omitted the ADB command which sometimes causes failure.

code change: image

Assuming you have your system working properly again, can I ask again for you to take a crack at writing an adb launch command? When you come up with one that works, I can add it.

-Doug