PiPup icon indicating copy to clipboard operation
PiPup copied to clipboard

No Display on Phillips TV

Open william-j-pyle opened this issue 5 years ago • 15 comments

I have installed the beta from app store, so assume that means no extra permissions required. However reviewing permissions on the app does show NO PERMISSIONS.

Submitting your exact example JSON via a test app, and I get a good 200 message back from the server, Not sure if a return of the same content is expected, but it sent me back a plain text of the JSON i submitted. I did run top on the tv and saw that with each submission nl.rogro82.pipup did pop up in the top 10 briefly. So its so working the request.

MODEL: Philips 4k TV Version: 8.0.0 Android TV Core Services: 1.11.0-270169296-f Google: 3.12.0.2701455 Google Services Framework: 8.0.0

If you need ANYTHING, or want anything special ran please advise.

FYI - I LOVE THIS IDEA!!!! Once this is all good, may fork with some MQTT extensions...

william-j-pyle avatar Nov 18 '19 04:11 william-j-pyle

same here: Nothing is displayed on the TV, just the json is returned as plain text with http result 200. So if something is missing here, please let us know, what you need or we should do to test it

gent99 avatar Nov 20 '19 20:11 gent99

Works fine for me on a Phillips TV.

lucasvdh avatar Nov 21 '19 07:11 lucasvdh

lucasvdf, did you side load or get from Google play? and did you grant any permissions manually?

william-j-pyle avatar Nov 22 '19 01:11 william-j-pyle

FYI: I get it from google play and did not grant any permissions via adb

gent99 avatar Nov 22 '19 20:11 gent99

gent99, that is what I did as well.

william-j-pyle avatar Nov 23 '19 23:11 william-j-pyle

GOT IT WORKING!!!! Ok, while everything says if you install via Google Play should be ok, its not setting allow on SYSTEM_ALERT_WINDOW.

I enabled developer options, enabled usb debugging. And because I didnt want to try to get a usb cable on the back of the tv mounted on the wall, I downloaded "Remote ADB Shell" from google play. Put in the IP of my tv and connected right up.

ran: appops set nl.rogro82.pipup SYSTEM_ALERT_WINDOW allow

Then reran the test with the client on my phone using the example JSON here.

It popped right up on my screen as advertised!!!!!

So while there is an issue with setting the permission in the Google Play installed version, it does work fine if manually done!!!!

Integrating this into my HomeAutomation stuff today!!!!!!

Gent99, if this also works for you, this can probably be closed once the Permission issue from Google play is at least acknowledge by rogro82.

william-j-pyle avatar Nov 24 '19 21:11 william-j-pyle

No, even this did not work or me. I installed adb with homebrew on my mac with "brew cask install android-platform-tools". Then adb connect IP of my TV and then "adb shell appops set nl.rogro82.pipup SYSTEM_ALERT_WINDOW allow" And then use the example json with postman. Got a http 200 and returned the text of the PopupProps, but nothing is happening on the TV screen.

gent99 avatar Nov 27 '19 18:11 gent99

Sony bravia 65A1 tv Android oreo 8 Developermode on tv with USB debugging\foutopsporing turned on and on phone use remote adb Shell
Type: appops set nl.rogro82.pipup SYSTEM_ALERT_WINDOW allow And it Works :) Thnx projecteleanor !

dajojonl avatar Dec 03 '19 20:12 dajojonl

i got it working now: I updated the firmware of my philips to the latest version (based on android tv 8) and now it works

gent99 avatar Dec 04 '19 20:12 gent99

@ProjectEleanor sorry for the late reply, but I feel it's still relevant.

I installed pipup straight from the Play Store and didn't have to set or grant any permissions. This implies that there's a difference between tv's and how they handle what permissions can be set. I don't have the details of my tv at hand now but I'll post them later. Maybe it's possible to make a distinction between models/android versions which can set this permission when you install it from the store and which cant.

lucasvdh avatar Dec 09 '19 16:12 lucasvdh

@lucasvdh you make a great point! I posted all my pics info originally, so yours would be very interesting to compare.

william-j-pyle avatar Dec 11 '19 01:12 william-j-pyle

Completely forgot to look this up, I'll do it tonight.

lucasvdh avatar Dec 12 '19 14:12 lucasvdh

Model: TPM171E Version: 8.0.0

@ProjectEleanor how did you get the other hardware software info from your TV, is there an option or do you need to fetch it via adb?

lucasvdh avatar Dec 12 '19 17:12 lucasvdh

@lucasvdh , go into settings, and scroll to about and scroll down. At least on mine... 😀

william-j-pyle avatar Dec 13 '19 05:12 william-j-pyle

how did you get the other hardware software info from your TV, is there an option or do you need to fetch it via adb?

adb shell getprop

hoasis2 avatar Dec 13 '19 22:12 hoasis2