HDMI work around for ICS

InVeNtOr

Member
Joined
Jun 14, 2012
Messages
61
Reaction score
0
ok, what on earth am i doing wrong! i have sdk tools installed, moto drivers, but when it comes to the cmd prompt, thats where it all goes wrong! i can't get anything to work. i keep getting "bad directory" or some type of verbage like that. i can post the exact phrase if needed. i have tried all different ways to get this to work and i keep failing.....
please help, i'm dumb.....
 

jbattershell

New Member
Joined
Nov 22, 2009
Messages
8
Reaction score
1
An update on this. I spent some time this weekend seeing if I could put this command into an app. Unfortunately when I tried to have the app broadcast the intent the app would force close because it did not have the authority to send it. The ADB commands work because it is given permissions over more system functions than an app which does make sense from a security standpoint. Unfortunately that means that this method probably cannot be translated directly into an app.
 

jbattershell

New Member
Joined
Nov 22, 2009
Messages
8
Reaction score
1
InVeNtOr said:
ok, what on earth am i doing wrong! i have sdk tools installed, moto drivers, but when it comes to the cmd prompt, thats where it all goes wrong! i can't get anything to work. i keep getting "bad directory" or some type of verbage like that. i can post the exact phrase if needed. i have tried all different ways to get this to work and i keep failing.....
please help, i'm dumb.....

Were you able to navigate to the folder where you stored the SDK and get into the platform tools folder? The path I gave was an example, you may have stored the sdk in a different location.
 

InVeNtOr

Member
Joined
Jun 14, 2012
Messages
61
Reaction score
0
i got it to work, but i had to do a few different things or at least change a few items.....
i watched a youtube video and and downloaded the exact same file (.zip) he did.....
i then had to "exact" that .zip into C:\
after i installed it, i had to open up "manager" and then "click" and download "platform-tools"
here is where i was LOST!
when i opened up win XP cmd prompt, my screen said "C:\Documents and Settings\......"
no matter what i did, i couldn't change the directory to anything, when i typed in C:\ it said "bad file" or something like that. long story short, it wouldn't work.
so....i googled.....
came up with a cool fix. i went to start, all programs, accessories, (right clicked) on cmd prompt. clicked on "properties", (the "short cut tab should already be selected) where it says "Start In" i changed that. i did a copy paste of the location of my platform-tools (for me, i followed the youtube video and it was....
C:\Android......
i hit "ok" and when i started cmd prompt, that directory was already loaded. i then went back to jbattershell's post and copied that line "adb shell am broadcast -a com.motorola.intent.action.externaldisplaystate --ei hdmi 0 --ei hdcp 1"

that should have been it, buuuuuuut, it wasn't. m3mo15 help me with the final steps.
at this point i had my laptop and phone connected. so, now i have cmd prompt open, the directory is there now, i have the script? (is that what you call it?) copy and pasted, but i haven't hit "return" yet. i now plug my phone into the TV (still leaving my phone plugged into the laptop as well) turn on NFL apk, choose a video, and i get the fail message. i hit ok on the phone screen, then i hit "return" on the laptop, it starts the script, the phone has the circle loading icon going.....
it finishes, and bam!
NFL mobile on the bring screen!

(i did have to load the script a few times, not sure if i was impatient or it just needed to be that way)
 

InVeNtOr

Member
Joined
Jun 14, 2012
Messages
61
Reaction score
0
alrighty then!
i updated my rom from symplex v1.2 to v1.3. i had to re do the script? this time it was a whole lot smoother. since i had everything already downloaded i didn't have to mess with that.....
plugged the phone in, started the app, got the fail, ran the script, bingo bango bingo, done deal.
to make the picture a tiny bit better i did put the "overscan" option all the way down in the settings menu. i have a 43" tv so have very small black border isn't an issue.
thanks again for all the help.
 

welsalex

Member
Joined
Oct 20, 2011
Messages
559
Reaction score
11
Location
Austin, TX
Ok the above, how safe is it to use that command on your phone? and is there anything you must do once you are done watching?
 

jbattershell

New Member
Joined
Nov 22, 2009
Messages
8
Reaction score
1
Ok the above, how safe is it to use that command on your phone? and is there anything you must do once you are done watching?

It is completely safe. That command is actually supplied by Motorola for developers so they can test that their app does the correct thing when HDMI is plugged in/unplugged. You don't need to do anything after you are done. The app might get a little confused when you unplug the HDMI cable that it thought was already unplugged, but that won't cause any problems.
 

welsalex

Member
Joined
Oct 20, 2011
Messages
559
Reaction score
11
Location
Austin, TX
Ok thanks. Gonna test this out. I have a second laptop that resides next to my tv (I sometimes enjoy having a 46 inch monitor) so this isn't much hassle for me!
 

welsalex

Member
Joined
Oct 20, 2011
Messages
559
Reaction score
11
Location
Austin, TX
I got Android SDK tools and Android SDK Platform-tools installed. Is that all the packages needed for this?
 

Lok1

New Member
Joined
Jan 12, 2010
Messages
2
Reaction score
0
I'm trying to do the same thing on my Droid 4 with HBO GO. This seems like it should work for that too, but I'm not having any luck. When I run the command I see no discernible difference on the phone, and in the adb shell, I get Broadcast completed: result=0. Is this what it should say? How can I tell if the intent I broadcast is being heard? Should I be doing anything different because I'm using a different phone? Any suggestions are greatly appreciated.
 
OP
yaterml

yaterml

Member
Joined
Jan 2, 2012
Messages
315
Reaction score
9
Yes you have to do it every time it. It changes the current commands to tell it no it is not plugged in.
 

tattoorat77

New Member
Joined
Oct 7, 2012
Messages
1
Reaction score
0
i got it to work, but i had to do a few different things or at least change a few items.....
i watched a youtube video and and downloaded the exact same file (.zip) he did.....
i then had to "exact" that .zip into C:\
after i installed it, i had to open up "manager" and then "click" and download "platform-tools"
here is where i was LOST!
when i opened up win XP cmd prompt, my screen said "C:\Documents and Settings\......"
no matter what i did, i couldn't change the directory to anything, when i typed in C:\ it said "bad file" or something like that. long story short, it wouldn't work.
so....i googled.....
came up with a cool fix. i went to start, all programs, accessories, (right clicked) on cmd prompt. clicked on "properties", (the "short cut tab should already be selected) where it says "Start In" i changed that. i did a copy paste of the location of my platform-tools (for me, i followed the youtube video and it was....
C:\Android......
i hit "ok" and when i started cmd prompt, that directory was already loaded. i then went back to jbattershell's post and copied that line "adb shell am broadcast -a com.motorola.intent.action.externaldisplaystate --ei hdmi 0 --ei hdcp 1"

that should have been it, buuuuuuut, it wasn't. m3mo15 help me with the final steps.
at this point i had my laptop and phone connected. so, now i have cmd prompt open, the directory is there now, i have the script? (is that what you call it?) copy and pasted, but i haven't hit "return" yet. i now plug my phone into the TV (still leaving my phone plugged into the laptop as well) turn on NFL apk, choose a video, and i get the fail message. i hit ok on the phone screen, then i hit "return" on the laptop, it starts the script, the phone has the circle loading icon going.....
it finishes, and bam!
NFL mobile on the bring screen!

(i did have to load the script a few times, not sure if i was impatient or it just needed to be that way)







I did all this but the script isnt doing anything when I hit enter. I can root and install custom roms but this is a little bit above my head. we just moved from Louisiana to Texas and they havent gotten out to hook up our cable and im trying to get the game this evening on my 60". If someone can help me get it going, there will be many thank yous.
 

InVeNtOr

Member
Joined
Jun 14, 2012
Messages
61
Reaction score
0
jbattershell,
you did a great job figuring out the hdmi issue, do you think you could figure out the "time out" issue? the "are you still there" pop up really sucks. it not only pauses the video, it messes up the quality for a few moments too, once it resumes. i can't stand there isn't an "exit" option, you have to hit the "back" button a ton of times until you get to the home screen. it's really weird to me what they choose to have in an app and what they don't.
anyways, if you could figure that out too, it would be super awesome!
thanks again for the hdmi fix.
 

InVeNtOr

Member
Joined
Jun 14, 2012
Messages
61
Reaction score
0
you don't really see anything. after you copy and paste that script, i says a few things, i had posted it eariler the exact pharse, and that's it. you start nfl app, and you shouldn't get the "hdmi is plugged in" prompt.
don't worry, i'm at your same tech level. it was hard for me to understand too. it usually comes down to one tiny step wrong or slightly different that throws the whole thing off.
 
Top