Chromecast Screen Mirroring on Sony Xperia Z2 - Xperia Z2 Original Android Development

Hey guys,
As you all know with the 1.7 Version of the chromecast app google enabled screen mirroring on selected devices. Since a Nexus 5 is a selected device i decided to try to make my Sony Xperia Z2 a Nexus 5
I changed the following original Sony build.prop settings from:
Code:
ro.build.product=D6503
ro.product.brand=Sony
ro.product.name=D6503
ro.product.device=D6503
to:
Code:
ro.build.product=hammerhead
ro.product.brand=google
ro.product.name=hammerhead
ro.product.device=hammerhead
I took the build.prop settings from a original Nexus 5 build.prop file.
Tested and working...it's great !
I guess you can easily adapt this to any other phone, so just a quick hack.
regards,
nEUTR0n

Haha, nice

nEUTRon666 said:
Hey guys,
As you all know with the 1.7 Version of the chromecast app google enabled screen mirroring on selected devices. Since a Nexus 5 is a selected device i decided to try to make my Sony Xperia Z2 a Nexus 5
I changed the following original Sony build.prop settings from:
Code:
ro.build.product=D6503
ro.product.brand=Sony
ro.product.name=D6503
ro.product.device=D6503
to:
Code:
ro.build.product=hammerhead
ro.product.brand=google
ro.product.name=hammerhead
ro.product.device=hammerhead
I took the build.prop settings from a original Nexus 5 build.prop file.
Tested and working...it's great !
I guess you can easily adapt this to any other phone, so just a quick hack.
regards,
nEUTR0n
Click to expand...
Click to collapse
I hope yhat release a Xposed Module asap or an update with Xperia´s support

esps said:
I hope yhat release a Xposed Module asap or an update with Xperia´s support
Click to expand...
Click to collapse
Yes, preferably an xposed module to trick the app into working or at least a hacked app. Not everyone wants their phone thinking it's a Nexus. Thanks for the heads up though!

I downloaded this apk:
http://forum.xda-developers.com/har...experimental-enable-mirroring-device-t2812193
Works very well! (didn't want to break my build.prop as well)

I used the mirror enabler above, worked a treat also

yes, this enabler is working great!!
Screen casting is just what I was missing! Now this device is almost perfect!

Is it possible mod mirror screen in car use...
My alpine supports mirror screen, but i dont like googlemaps, so
it would be awesome if i can change it like navigon etc...
And if it supports whole phone mirroring.... I havent found support thread for this
kind of stuff...

Original Android Development? Really?

Sorry if I'm newbie... I installed, I enabled... but I can't get screen mirroring with my chromecast... what exactly do you set in Z2 to mirror it?

scesarin said:
Sorry if I'm newbie... I installed, I enabled... but I can't get screen mirroring with my chromecast... what exactly do you set in Z2 to mirror it?
Click to expand...
Click to collapse
1st, you need the chromecast app, so install it from play store if you dont have it.
In the Mirrorenabler app, make sure you enable "Mirror Status"
If your phone can see the chromecast, just press the menu button next to "Devices" in the chromecast app and choose "Cast Screen"
If your phone doesnt see the chormecast, then make sure you are on the same wifi network as your chromecast.
Hope this helps.

elbello said:
1st, you need the chromecast app, so install it from play store if you dont have it.
In the Mirrorenabler app, make sure you enable "Mirror Status"
If your phone can see the chromecast, just press the menu button next to "Devices" in the chromecast app and choose "Cast Screen"
If your phone doesnt see the chormecast, then make sure you are on the same wifi network as your chromecast.
Hope this helps.
Click to expand...
Click to collapse
Thanks a lot, following your instructions, it works now!

Related

[APP] [ROOT REQUIRED] Chromecast mirroring (screencasting) works!

The Chromecast only allows certain devices to use it's new mirroring functions. The OPO is apparently not on that list. But, thanks to this handy app, the Chromecast will now recognize my OPO and allow for full mirroring!
http://forum.xda-developers.com/har...experimental-enable-mirroring-device-t2812193
- Install the app and open it.
- Enable "Mirror Status:" and enable "QuickSettings Mirror:"
- Either open the chromecast app, and find mirroring in the left panel, or
- Pull down into your quick settings and see the icon for "cast screen"
There is a small bit of lag, which would mean some games that require split second timing would be hard to play on the big screen, but others work fine, like FIFA 14 for example. Any video site (that doesn't already support Chromecast) will work perfectly as well.
i try this but there is no audio out from my oneplus one only from youtube
Will this make my chromecast work as miracast that allow screen mirroring?
_____________
Sent from my GT-I9300 powered by Temasek Rom & Boeffla Kernel
Fueled by 7000mAh ZeroLemon Battery
Use Allcast its much better audio works perfect..
chainsuk said:
Use Allcast its much better audio works perfect..
Click to expand...
Click to collapse
Are you referring to samsungs allshare cast? Do you have it working on it?
Works perfectly, except many times there are lags. i hope google fix it
No he is talking about Koushik's "Allcast" app from the Playstore
chainsuk said:
Use Allcast its much better audio works perfect..
Click to expand...
Click to collapse
Allcast screens to TV or just PC. We are talking about screen mirroring and not Allcasts normal feature right?
A little easier way (for some)
Thanks for one of the popular and working solutions.. I was just about to apply that and I just wondered what happens if I try "Cast Screen" option in my One with my Samsung Smart TV, and I got it working with little efforts! Here's the thread I posted:
http://forum.xda-developers.com/oneplus-one/general/howto-oneplus-one-cast-screen-smart-tv-t2938752
Might be helpful for somebody who wants to go an easy way if possible.
Enjoy casting..!
yugz5 said:
Thanks for one of the popular and working solutions.. I was just about to apply that and I just wondered what happens if I try "Cast Screen" option in my One with my Samsung Smart TV, and I got it working with little efforts! Here's the thread I posted:
http://forum.xda-developers.com/oneplus-one/general/howto-oneplus-one-cast-screen-smart-tv-t2938752
Might be helpful for somebody who wants to go an easy way if possible.
Enjoy casting..!
Click to expand...
Click to collapse
Does it work with the latest version or CM11S 44S??? it stop working for me on that version.
I... am... not sure. I was on XNPH38R when I tried.
I will retry after updating to 44R and will post an Update.
If you try before me, do share..!
Sent from my A0001
masterchop said:
Does it work with the latest version or CM11S 44S??? it stop working for me on that version.
Click to expand...
Click to collapse
I found a little write up that makes it a lot easier and more stable. First download root explorer go to system folder then build prop. Find
ro.product.device=A0001 and change A0001 to hammerhead and save changes. Now go to settings / display and under cast screen option your chrome cast will now appear then click on it. Now once WiFi on and you pull down quick settings you will see cast option appear.
Sent from my A0001 using XDA Premium 4 mobile app
masterchop said:
Does it work with the latest version or CM11S 44S??? it stop working for me on that version.
Click to expand...
Click to collapse
working for me
masterchop said:
Does it work with the latest version or CM11S 44S??? it stop working for me on that version.
Click to expand...
Click to collapse
Tested... And working fine..!
Sent from my A0001
yugz5 said:
Tested... And working fine..!
hehe for some reason it did not work on the first try, after resinstalling it work like a charm.
the only problem is that the screen flickers a bit when you pull down the notifications.
Click to expand...
Click to collapse
masterchop said:
yugz5 said:
Tested... And working fine..!
hehe for some reason it did not work on the first try, after resinstalling it work like a charm.
the only problem is that the screen flickers a bit when you pull down the notifications.
Click to expand...
Click to collapse
That happened to me once when I was kind of away from the TV or when I thoroughly covered back of my phone. So I assume that would be because of weak Wi-Fi Direct connection between devices. Also, I noticed increase in delays and some jitter in video. So this surely seems like connectivity issue.
May be trying without a case or with WiFi antena area open/unblocked should reflect the improvement.
Sent from my A0001
Click to expand...
Click to collapse

Note 5 Screen Mirroring problem

I have just bought a note 5 to find there is no screen mirroring on this phone.
I have also tried to download the Samsung link app but it says it is not compatible with this phone.
Does anyone have any ideas, i only want to stream my videos to a Samsung T.V.
So far this phone has been a huge dissapointment, no external memory and now they take away something i tended to use everyday.
PLEASE HELP!!!!
CH
I used screen mirroring the day I bought it.
pool_shark said:
I used screen mirroring the day I bought it.
Click to expand...
Click to collapse
It will be helpful for OP if u mention how
saj2001ind said:
It will be helpful for OP if u mention how
Click to expand...
Click to collapse
Well since the OP didn't say it wasn't working, I didn't feel the need to say how.
The OP said screen mirroring isn't on the device. Simply pulling down the notification shade shows the button to enable it.
Funny
If your phone is not rooted you should have no problem with screen mirroring if it's rooted you simply need to add a few words so that you can allow it to work again. It works it's there
Note 5 doesn't sees chromecast as screen mirroring device... Anyone have this issue?
Sent from my SM-P600 using Tapatalk
You can also access screen mirroring from the Gallery by clicking share, screen mirroring is one of the options.
Pull down the notification panel and press "Edit" should be on the top right corner and it should pop up there
I don't think chromecast works with the built in screen mirroring. You have to use the chromecast app it's just as easy.
Go to About Device in Settings. Click on Status. Scroll to the bottom. If it say anything but "official" you won't be able to use a bunch of different Samsung apps that do a status check.
I had the same problem. Pull down notification bar select quick connect.
Figured I'd look into your request. First goto menu on Samsung TV, then goto network. Should then see a screen mirroring choose, select that. Then like mentioned, select screen mirroring in drop-down and Samsung TV choice should appear. In future you may just need to activate screen mirror after this initial connect. This was done from my Note 4, as well as my Note 5!
Hope this was helpful.
I'm having trouble connecting the screening mirroring with my tv...I have the Samsung all share hub...help!
hey . ive rooted my phone and in the status it doesnt say official but custom .. ofcourse cos its rooted
now what steps do i need to go through to enable screen mirrorring ?
thanks
My N920T is rooted so of course Status says Custom. Screen mirroring works perfectly fine for me with an Amazon Fire TV.
shooterch1 said:
I have just bought a note 5 to find there is no screen mirroring on this phone.
I have also tried to download the Samsung link app but it says it is not compatible with this phone.
Does anyone have any ideas, i only want to stream my videos to a Samsung T.V.
So far this phone has been a huge dissapointment, no external memory and now they take away something i tended to use everyday.
PLEASE HELP!!!!
CH
Click to expand...
Click to collapse
Ok on my non rooted note 5 on sprint the instructions about going to the settings and edit and select screen mirroring d9nt workwork, as it's there. To enable it take a picture go to the album select the picture, hit share, at the bottom click screen mirroring. Way to go Samsung and sprint.
Ok on my non rooted note 5 on sprint the instructions about going to the settings and edit and select screen mirroring d9nt workwork, as it's there. To enable it take a picture go to the album select the picture, hit share, at the bottom click screen mirroring. Way to go Samsung and sprint.
Click to expand...
Click to collapse
Thank you for that tip! I just upgraded from a Note 4 (SM-910T) to the Note 5 (SM-920I) and lost the menu option for screen mirroring. Your instructions worked perfectly. Annoying that we have to do that, but glad that the functionality is still there.
I found a tricky way to mirror video from Note5 to tv.
Pick any picture from your gallery.
At the bottom , there is a pop- up screen , choose share option.
Then choose mirroring option. Then your phone will look for tv or devices that you want to connect. After you choose that tv or device. Your phone will hook up and everything that shows on note5 includeing video will show on tv.
Microsoft Wireless Display Adapter
My Note 5 with Lolipop 5.1.1 doesn't work with my Microsoft Wirless Display Adapter...it sees it and tries to connect but never does it. My Note 3 on Kitkat 4.4.2 works better than anything I have every seen with this adapter, there is almost no lag! (unlike with Chromecast) I read that Lolipop broke a lot of phone's Screen Mirroring capabilities. Anyone know why or how to fix it yet?

Carstream (aka YouTube auto) working with update phone w/root

Up until recently google had blocked car stream via updates to Android auto and play services. The only way to keep car stream working was to keep those two apps rolled back to certain versions and not take updates. Problem is play services auto updates regardless of settings for such, and will randomly disable YouTube auto until roll back again.
Well thekirankumar updated carstream to version 2.0.0 and with it brought instructions to bypass these blocks. You can find it here at his github. The instructions were a little complicated for your average user and even then contained some uneeded steps. So I'm going to summarize....
Update play services and Android auto (woo!).
Install carstream (Android auto) from the github link above.
Then follow his guide step 1-8, I'll qoute...
"1. Start Android Auto on your phone (the phone is not attached to anything at this time)
2. Click on the menu on the top left (three bars)
3. Click "About"
The following steps may already be done. I am including them for reference for newbies.
4. If developer mode is not enabled, click on the bar "About Android Auto" 10 times.
5. Click on the three dot menu (on the top right)
6. Click on "Developer settings"
7. Click on Application Mode and set to "Developer". Also go to the bottom of the developers settings and make sure "Unknown Sources" is checked.
8. Click back, and then go to the three dot menu. Click "Start head unit server"."
Now connect the phone to your car and accept any permissions it may ask you for.
Disconnect the phone, click stop on the head unit server from your notification bar.
Then follow his steps 20-23, I'll qoute...
"20. Now, go to your apps, and start Carstream
21. Click on "Unlock[Root]" and grant Root access when prompted (screenshot below)
22. Reboot the phone
23.Once the phone reboots, connect the phone to your car, and start Android Auto. Go to the speedometer thing (on the lower right side of the screen) and see if Carstream is listed. If it is, give thanks below. If it isn't, I don't know what to tell you."
All done
Worked for me! ?
gooooooood
thnx bro
root or no root?
do i have to root my phone to do this??
ty perry
banditelvis721 said:
do i have to root my phone to do this??
ty perry
Click to expand...
Click to collapse
You need root
Works for me as well, but...the videos are portrait, not landscape. Any way to change that?
banditelvis721 said:
do i have to root my phone to do this??
ty perry
Click to expand...
Click to collapse
lloydsw said:
Works for me as well, but...the videos are portrait, not landscape. Any way to change that?
Click to expand...
Click to collapse
While watching the video, go full screen. When full screen, tap on the video and a little box on the right side will pop up that say either "fil, contain, or fit" I think. Tap on the box to cycle through viewing options
Superb...work fantastic with me.
It's an error on clicking Unlock [Root] in Carstream. I granted Root permissions at the prompt. Still it's a permission denied error.
noidea24 said:
While watching the video, go full screen. When full screen, tap on the video and a little box on the right side will pop up that say either "fil, contain, or fit" I think. Tap on the box to cycle through viewing options
Click to expand...
Click to collapse
Worked perfect, thanks!!!
Hey guys. It worked for me! If anyone has any problem using or installing this app, please check out my detailed video on youtube.
Link : https://youtu.be/uLcieEP1-hw
Please comment if i need to improve or your views on it. Thanks
thanks a ton, works perfectly for me on my Pixel 2
was missing this App after AA got updated to v3.0
you rooted your phone?
Rammit said:
Superb...work fantastic with me.
Click to expand...
Click to collapse
is it tought to do??
will it erase everything on my phone??
thanks
perry
thanks for this! I can't wait to try it and report back.
Is this work with AA and gps latest version? Confirm please... thank you.
car stream
Horoscope said:
thanks a ton, works perfectly for me on my Pixel 2
was missing this App after AA got updated to v3.0
Click to expand...
Click to collapse
so everything works? did you root?? if so what did you use, is it easy, will i lose everything??
thanks
perry
aroy11 said:
It's an error on clicking Unlock [Root] in Carstream. I granted Root permissions at the prompt. Still it's a permission denied error.
Click to expand...
Click to collapse
Make sure you have busybox. Though This message usually occurs when the apps aren't updated (either Android auto or play services). Reboot and try again.
banditelvis721 said:
so everything works? did you root?? if so what did you use, is it easy, will i lose everything??
thanks
perry
Click to expand...
Click to collapse
It Depends. If your bootloader is already unlocked, you won't loose anything by rooting. If your bootloader is locked then unlocking it (to allow root) will erase everything.
danyAf said:
Is this work with AA and gps latest version? Confirm please... thank you.
Click to expand...
Click to collapse
Yes, latest Android auto updates.
znel52 said:
Worked for me!
Click to expand...
Click to collapse
Does the phone have to be rooted?

Help with Samsung Smartview autoconnect to device

Hi,
i d like to create a task so it autoenables smartview and connects to a given device.
i couldnt find the trigger todo so, is it may not possible ?
The Trigger Bluetooth is clear, but i cant figure the way to use smartview with device as task ...
for an Tipp thanks ahead
Unfortunately, I haven't had a Samsung in years, but a post in the S7 Q/A forum suggests using an app called Miracast Shortcut.
ktmom said:
Unfortunately, I haven't had a Samsung in years, but a post in the S7 Q/A forum suggests using an app called Miracast Shortcut.
Click to expand...
Click to collapse
thanks for the tip, i gave it a try, this will only open the screen share page on the phone, there is no auto connect option in the app so it wont connect to the cast device actually.
was worth a try
alturismo said:
thanks for the tip, i gave it a try, this will only open the screen share page on the phone, there is no auto connect option in the app so it wont connect to the cast device actually.
was worth a try
Click to expand...
Click to collapse
Try using the net -> bluetooth connection action
ktmom said:
Try using the net -> bluetooth connection action
Click to expand...
Click to collapse
Hi, thanks, but thats exactly what im doing in profile, using the bluetooth connect to car to open the app, but the app doesnt auto connect to the cast device (and there is no option as far as i see in the app todo so), so the point in auto connect to the device cannot be provided like this in my usecase.
thanks for the tip with BT, that is my trigger already to start the action, but the action "auto connect to a cast device" ... is not given to me.
alturismo said:
Hi, thanks, but thats exactly what im doing in profile, using the bluetooth connect to car to open the app, but the app doesnt auto connect to the cast device (and there is no option as far as i see in the app todo so), so the point in auto connect to the device cannot be provided like this in my usecase.
thanks for the tip with BT, that is my trigger already to start the action, but the action "auto connect to a cast device" ... is not given to me.
Click to expand...
Click to collapse
There is a tasker plugin by the same developer called AutoCast. Maybe it will help you.
I don't do any of this, so obviously I don't have any personal experience to offer. You might try on the tasker Google groups forum.
ktmom said:
There is a tasker plugin by the same developer called AutoCast. Maybe it will help you.
I don't do any of this, so obviously I don't have any personal experience to offer. You might try on the tasker Google groups forum.
Click to expand...
Click to collapse
was a great idea, sadly this app (beta state) only supports google devices, no miracast device, but that function would have been the winner, thanks again
Probably a part of the problem is that Google removed miracast support from "stock" android awhile ago. That dates back to the nexus 6 days.
ktmom said:
Probably a part of the problem is that Google removed miracast support from "stock" android awhile ago. That dates back to the nexus 6 days.
Click to expand...
Click to collapse
contacted the developer of the autocast plugin and he confirmed, only works with google cast devices like i (sadly) expected.
thanks anyway for the hint.
That's always working to automate the tap(s) required. You could use Tasker to open the app, AutoInput UI query to determine when it's open, then an AutoInput action to enable the device connection.
probably yes, but thats now too much read and trial and error for now, thanks.

Google Cast & "Coolwalk"

After seeing the articles about the new files being in the latest beta version I took a dive in and looked to see how to enable it. Here's some basic steps for that.
​1. You will need to be rooted and on the latest beta. "7.3.120244-release.daily"​2. Download a database editor, I used SQLite Editor.​3. Open SQLite and under "apps" section navigate to Google Play Services and open it.​4. Scroll down to phenotype.db and select it.​5. Look for "flags" and open it.​6. On the top select "set filter" input Coolwalk__enabled.​7. change all bootVal from 0 to 1.​8. Now search for cakewalk and do the same.​9. Lastly search for MirrorApp__enabled and change those.​
Now just restart your phone and connect to Android auto. You will need to enable coolwalk on the head unit settings. To switch from full screen and condensed press and hold the new UI home button. I need another phone to show off cast, but it does work. You just can't do Netflix/Hulu what not. You also need to be in park. I haven't found what to change to eliminate that. Anyone else wants to help give it a shot.
UPDATE: if you have sqlite3 installed with magisk you can also create a trigger like so in termux.
Code:
Su
Sqlite3
.open /data/data/com.google.android.gms/databases/phenotype.db
CREATE TRIGGER after_update
AFTER UPDATE ON Flags
BEGIN
UPDATE Flags SET boolVal=1 WHERE name='Coolwalk__enabled';UPDATE Flags SET boolVal=1 WHERE name='MirrorApp__enabled';UPDATE Flags SET boolVal=1 WHERE name LIKE 'Coolwalk__%' AND boolVal=0;
END;
​​
works fine, thank you
working! maps looks a bit bugged when navigation is on (can't see road indications) but probably is just a matter of time they fix it... thanks bro!!
I enabled all the flags but can't get the option...anything I'm missing? I'm on Android 12 and latest AA 7.3 beta
@niccotaglia are you using exactly the android auto version as described "7.3.120244-release.daily"? if not you should try this
b0uNz said:
@niccotaglia are you using exactly the android auto version as described "7.3.120244-release.daily"? if not you should try this
Click to expand...
Click to collapse
I was using 7.3.120444. Will try 120244
Works great! I tried it on both the 7.3.120244 and the 7.3.120444 beta version and both worked. I did have to revert all the tweaks from AA AIO Tweaker and uninstall the app first to get it to work.
Still not working...I tried everything imaginable but nothing works.
niccotaglia said:
Still not working...I tried everything imaginable but nothing works.
Click to expand...
Click to collapse
Are you running any other Android Auto tweaks? Make sure your imputs are being saved before going on to the next one
Eazii said:
Are you running any other Android Auto tweaks? Make sure your imputs are being saved before going on to the next one
Click to expand...
Click to collapse
I ended up nuking Play services data and starting from a fresh database. I used AIO Tweaker to enable it and now it works
Can someone give me more information about the Cast function?
niccotaglia said:
I ended up nuking Play services data and starting from a fresh database. I used AIO Tweaker to enable it and now it works
Click to expand...
Click to collapse
Which option to use in AIO Tweaker to enable it? Did you still change the boolVal using SQLEditor for play service?
purespin said:
Which option to use in AIO Tweaker to enable it? Did you still change the boolVal using SQLEditor for play service?
Click to expand...
Click to collapse
These 3. And no, i didn't do any manual database editing
Perhaps we can use the cast function for Screen2Auto and Fermata in the future as Google always tries to block 3rd party apps.
niccotaglia said:
View attachment 5527001
These 3. And no, i didn't do any manual database editing
Click to expand...
Click to collapse
Which Version of AA are you using?
Works well!
But there is a little issue where screen goes totally black and android auto being unusable once i hold the home button to get the condensed UI!
Snake.s9 said:
Works well!
But there is a little issue where screen goes totally black and android auto being unusable once i hold the home button to get the condensed UI!
Click to expand...
Click to collapse
Which version of AA are you using?
Snake.s9 said:
Works well!
But there is a little issue where screen goes totally black and android auto being unusable once i hold the home button to get the condensed UI!
Click to expand...
Click to collapse
Yes, I randomly got the same black screen too, although the bottom bar is still visible/clickable. Restart AA will be back to normal. I think it's just a bug in the AA beta.
purespin said:
Yes, I randomly got the same black screen too, although the bottom bar is still visible/clickable. Restart AA will be back to normal. I think it's just a bug in the AA beta.
Click to expand...
Click to collapse
Which version of AA are you using?
fkrrr said:
Which version of AA are you using?
Click to expand...
Click to collapse
7.3.120244

Categories

Resources