Enable Miracast to work with Nexus 6P by editing build.prop - Nexus 6P Q&A, Help & Troubleshooting

Hi. It looks like the option to cast the screen to LCD/LED TV using Miracast is disabled by Google as they want to enforce the use of Chromecast device. However, it looks like it can be re-enabled adding this entry in /system/build.prop
Code:
persist.debug.wfd.enable=1
Has anyone tried out this option ? My device is not rooted. Is there anyway I can modify build.prop without rooting my device ?

Related

How to mirror screen to an android box?

Trying to mirror my screen to my raspberry pi (openelec) running kodi. What app do you guys use to mirror your phones screen to your Android boxes?
Sent from my Nexus 6P using Tapatalk
You mean wireless screen mirroring ?!
I had problem too cause i couldn't find "Enable Wireless Screen" check box in menu.
Solution is root your phone and edit build.prop and add this line at most bottom
persist.debug.wfd.enable=1
Reboot and you're welcome
Sent from my Nexus 6P
That will allow you to use Miracast, but unless the receiving box is set up to receive casting then it won't do you much good.
Why would you want to cast to that box? If the content is on your phone and you want to use the Android box to display it on a TV then you would be better off using the DLNA functionality to stream it from Kodi on the Android box.
More of a description of what you are trying to do will allow people to come up with a solution as I am not sure what you are asking is the best way.

Cast Screen does not work

Hi all
Cast screen is not working on g4 plus. Can anybody confirm if there is any additional setting. Thanks
Sent from my Moto G (4) using Tapatalk
I used cast function last night on my moto g4. no extra setting at all. When you view the photo or video, the cast icon will appear automatically if there is any paired device nearby.
I paired it with my JBL pulse 2, it shows cast icon. But m not able to pair it witj my led
Sent from my Moto G (4) using Tapatalk
you might need to sort out the pair process with your led even without playing anything.
i use google chrome. but i didn't install the chromecast app as what i did on my moto g1. but on my moto g4, it automatically found the chromecast.
you need to root your device.
1.Download Root Browser from play store.
2.Go to root directory > System folder > Open build.prop.
3.Add these two lines in the end :
persist.debug.wfd.enable=1
persist.sys.wfd.virtual=1
4.Reboot your device.
5.Connect to your TV using wifi direct.
6.After connecting, go to Settings > Display > Cast.
7.You will see 3 dots on upper right of screen, tap it and tap "Enable Wireless Display".
8.Your TV will be listed there. Tap on it and Screen Casting will be started.
I tried adding the lines to build.prop however it is not allowing me to save it
Less than 5 minute fix to flawlessly cast my phone to pc!
wizard-dima said:
you need to root your device.
1.Download Root Browser from play store.
2.Go to root directory > System folder > Open build.prop.
3.Add these two lines in the end :
persist.debug.wfd.enable=1
persist.sys.wfd.virtual=1
4.Reboot your device.
5.Connect to your TV using wifi direct.
6.After connecting, go to Settings > Display > Cast.
7.You will see 3 dots on upper right of screen, tap it and tap "Enable Wireless Display".
8.Your TV will be listed there. Tap on it and Screen Casting will be started.
Click to expand...
Click to collapse
Cant thank you enough!
Spent an hour downloading and installing Intel and MS bloat on PC and some half dozen apps on the phone, but your solution took mere 4 minutes to get my phone cast on to PC flawlessly.
Build prop won't save after modification everytime it fails, please help
I do This all as you said ... But still is not connect to my LG tv
wizard-dima said:
you need to root your device.
1.Download Root Browser from play store.
2.Go to root directory > System folder > Open build.prop.
3.Add these two lines in the end :
persist.debug.wfd.enable=1
persist.sys.wfd.virtual=1
4.Reboot your device.
5.Connect to your TV using wifi direct.
6.After connecting, go to Settings > Display > Cast.
7.You will see 3 dots on upper right of screen, tap it and tap "Enable Wireless Display".
8.Your TV will be listed there. Tap on it and Screen Casting will be started.
Click to expand...
Click to collapse
As above all procedure .. its shows enable wireless display options and also shows a tv name too but after long waiting of connecting period ..its disappeared and not coonect to my LG Miracast TV
By Motorola Moto E 2 4g LTE CM 14.1 Nougat 7.1.1
Sorry for reviving an 18mo thread, but... I just received my Moto G5 Plus today, and to my surprise, the official position of Motorola/Lenovo is "It works only with Chromecast". That don't fly with me. So, I applied the two lines to the build.prop file as described above, and lo-and-behold, my Roku TLC TVs showed up just fine.
However, when I select them, I get a prompt telling me that Wifi is active and must be turned off. After accepting, the MG5 connects directly to the TV, excluding the wifi connection to my router. That means, it rolls over to LTE service.
Is there any fix to this? It's certainly better than no screen casting, and will work just fine when trying to show local phone content - but since I'm on a capped data plan, it would really suck to be casting YT videos in a home with 100mbps WIFI, and still be forced to use VZ LTE to show it.
I cant use cast too on my samsung tv
My understanding based on various forums:
I do not think it connects to LTE even if its asking for switching off wifi.
Android as an OS supports Miracast (direct mirroring protocol without common wifi router) since JellyBean. Although OS supports it, some android hardware devices cannot support Miracast without turning off wifi.
Nexus, Samsung S3,S4,S5... can support Miracast without turning off wifi in your mobile. But G4 Plus's hardware will be able to support Miracast only by turning off wifi. Hence they disabled it at the software level. So we have to enable it by rooting!
Miracast protocol does not require the mobile manufacturers to display "Miracast" logo and so nobody explicitly mentions it in their products. So no clear way to know if a device supports Miracast! But my understanding is that it is present in all android from jellybean and above (but hidden at the software level for some phones like G4 Plus because of hardware restriction that disconnects wifi while mirroring).
Some more observation which might be helpful:
Though Miracast is a common protocol, every company can have its own implementation! This means Miracast of my Samsung TV and Miracast of my G4 Plus may differ in implementation. You may ask what is the impact of different implementations - Will it work or not?
The impact is although TV and Mobile both supports Miracast (but having different implementations),they cannot connect directly without common wifi router !!!! (which is what miracast is supposed to do!!!)
My some Samsung mobile like S4567 can connect to Samsung TV without a common wifi router (same is the case for Sony and LG I think) -- This is because Samsung's own implementation of Miracast in both TV and mobile makes it to work without common wifi router.
build.prop can't be edited !
I tried to edit build.prep file, but it is not allowing me to make changes to that file. Please help !
Cast Screen does not work on LG TV
wizard-dima said:
you need to root your device.
1.Download Root Browser from play store.
2.Go to root directory > System folder > Open build.prop.
3.Add these two lines in the end :
persist.debug.wfd.enable=1
persist.sys.wfd.virtual=1
4.Reboot your device.
5.Connect to your TV using wifi direct.
6.After connecting, go to Settings > Display > Cast.
7.You will see 3 dots on upper right of screen, tap it and tap "Enable Wireless Display".
8.Your TV will be listed there. Tap on it and Screen Casting will be started.
Click to expand...
Click to collapse
Tried the suggested changes in build.prop (after rooting) but "cast"
doesn't work from mobile (LG Nexus 5, Marshmallow, hammerhead,
Android 6.0.1, US make) on a smart tv (LG 55UC970T) with a built-in
Chromecast, purchased in India. Content sharing works with third
party apps. Under Screen Share option on TV, mobile does show
the TV name '[LG]WebOS' but soon disappears without allowing
us to click. Tried including
wlan.wfd.hdcp=disable
in build.prop but no success. Kindly suggest a workaround. Thanks in advance
The build.prop patch worked. I had to make sure Root Explorer doesnt reset file permissions and ownership (otherwise camera and torch would stop working)
I added the lines in build.prop but it still doesn't list my Roku TV under Cast.
wizard-dima said:
you need to root your device.
1.Download Root Browser from play store.
2.Go to root directory > System folder > Open build.prop.
3.Add these two lines in the end :
persist.debug.wfd.enable=1
persist.sys.wfd.virtual=1
4.Reboot your device.
5.Connect to your TV using wifi direct.
6.After connecting, go to Settings > Display > Cast.
7.You will see 3 dots on upper right of screen, tap it and tap "Enable Wireless Display".
8.Your TV will be listed there. Tap on it and Screen Casting will be started.
Click to expand...
Click to collapse
i know this thread is old but i cant save the changes when i try to edit the build prop. How can i save the changes? Please help me.
Build prop editor method WORKS
Recommended build prop method is working as perfect. My g4 did not have wireless display option earlier. After following this, everything worked flawlessly. Thanks xda and person who suggested the trick.

Daydream and Lineage 14.1

I have not flashed the latest LineageOS from Unjustified Dev but I wonder if Daydream is working on it. Did this on my Oneplus One to unlock daydream, wondering if it works on Axon 7. Anyone want to give it a try?
Post from Reddit:
"This requires root, Android 7.0, Google VR Services, and the Daydream app to all be installed on your phone. It also requires a compatible Daydream viewer and controller (I use a Cardboard viewer with the controller emulator running on an old device).
Using a root explorer app, navigate to /system/etc/permissions/handheld_core_hardware.xml. This is where the system features of your phone are listed.
Inside the file is the list of permissions, formatted as XML and nicely commented (as least on my 5X). Add the following lines into the root permissions tag:
<feature name="android.software.vr.mode" /> <feature name="android.hardware.vr.high_performance" />
They might even be mentioned and explained in the comments.
Reboot your device. You should be able to launch Daydream from the app."
feedback on daydream on lineage14.1 zte axon 7
I've been playing with daydream on lineage+zte axon 7, and here's my initial thoughts.
* To get the display working, you need to make the following change: switch under Settings -> Display -> "When device is in VR" , from "Reduce blur (recommended)" to "Reduce flicker" makes the display work.
* not initially, but shortly after using it will prompt to install daydream keyboard and update the firmware on the controller. that worked without issue
* The speakers aren't stereo, and are both playing left channel (unrelated to daydream) so I use headphones.
* The power button has an unfortunate location, and if you don't carefully apply the view strap, you will power off the phone or bring up the shutdown menu. after a while, you get used to that.
* the phone will get hot after a while.
* There seems to be some recurring motion tracking lag, and the controller seems lose connection from time to time.
Most of the experience is on par with a stock moto z daydream experience.
mhodges85 said:
I have not flashed the latest LineageOS from Unjustified Dev but I wonder if Daydream is working on it. Did this on my Oneplus One to unlock daydream, wondering if it works on Axon 7. Anyone want to give it a try?
Post from Reddit:
"This requires root, Android 7.0, Google VR Services, and the Daydream app to all be installed on your phone. It also requires a compatible Daydream viewer and controller (I use a Cardboard viewer with the controller emulator running on an old device).
Using a root explorer app, navigate to /system/etc/permissions/handheld_core_hardware.xml. This is where the system features of your phone are listed.
Inside the file is the list of permissions, formatted as XML and nicely commented (as least on my 5X). Add the following lines into the root permissions tag:
<feature name="android.software.vr.mode" /> <feature name="android.hardware.vr.high_performance" />
They might even be mentioned and explained in the comments.
Reboot your device. You should be able to launch Daydream from the app."
Click to expand...
Click to collapse
It works just fine with 14.1. I didn't have to change anything
Hi,
i recently installed Lineage nightly from 20.02.17 and tryed out the Daydream Headset. The standard apps including Youtube, Pictures and PlayStore are working very well. But some VR apps i've tested (eg. Poly Runner, Horizons) are not shown in VR mode. I've installed and start the apps out of Daydream an they are shown full screen and not splitted in two Displays for the Headset.
Has anyone else the same problem or any ideas how to solve this?
Thanks in advance
I can't install Daydream Keyboard.....incompatible app in playstore....any ideias?

Daydream screensaver

One of my projects is trying to get Daydreams to work. So far I haven't been able to. I have spent months upon months researching this and have come to several conclusions, however none of them have helped me in activating this feature.
1. Amazon tablets, (Fire 7, HD 8 and 10) have a feature called 'Daydream'. Its a simple screensaver that displays when you are plugged into a PC or charging. There are colors that display or slideshows of on device photos.
2. This feature is stock Android. Nearly every device has the feature enabled, except Amazon tablets.
3. the feature exists, in full, and is blocked out by Amazon.
I have tried several ways to bring the feature out. One being, taking the BasicDreams APK, from another Android device running Lollipop 5.1.1. Basic Dreams should be the catalyst to start the program, but it does not. I have tried it from other android versions too. No matter what, the APK won't brinng out the screensaver.
I have used activity launcher, with no luck. I have used Tasker and a Secure Settings plugin to bring it out. Nope not there either. But tasker does allow me to select the type of daydream I want, it just never launches it.
I have determined there is at least one thing, one word that stops dreams. Its loacted in /system/framework/framework-res.apk. I use a simple app (APK Editor Pro) thhat decompiles the APK. I then tap on files, res, values, bools. In that list is a configuration, 'config_dreamsSupported' which is marked as 'false'. Everything else from then on is in place. I change false to true and the APK will not recompile without errors. It seems Amazon assigns their own daydreams to certain attributes, but then blocks you out from seeing them.
So it seems I am only having trouble compiling a proper APK for the system. If you want to see the settings for daydream, Activity Launcher > all activities > settings > Daydream. Framework: Framework-res.apk > res > values > bools.
I will not rest until I am able to get this working. Any help would be greatly appreciated.
I managed to hunt down a settings.apk of an android 5.1.1 ROM. So as daring as I am, I uninstalled the settings.apk and reinstalled it with the new one I found. The daydream settings menu opens, I can select dreams like Colors. But again, the screensaver doesn't start. I also managed to install a settings.apk from a 4.0 ROM. In doing that, I managed to bring up the actual stock accounts menu. I was able to select all items to sync, remove the misc amazon accounts too. Though there was no daydream settings, most all the other options worked. I might add I was doing
Code:
adb install -r -d com.package.name
after uninstalling the settings.apk and was able to then install any settings.apk from any SDK. If I can rewrite any one of these APKs, we could have stock settings.
However, I don't have screen shots as I had to reboot and I bricked. So I have to sideload back to stock. Though I'm sure the brick was caused by my massive debloating and not from the settings modding.
So I managed to get the say dream settings to launch, but no screensaver yet. However, I have a surprise for later. This will be epic
Sent from my Samsung Galaxy S4 using XDA Labs
After weeks of trying, researching and bricking, I've finally found a way to successfully edit/modify the values of framework-res.apk and SUCCESSFULLY install the modded version. I have enabled the daydream screensaver, however sofar it will only accept the clock as the screensaver. Though I am sure colors won't display because of something I did wrong.
That having been said, you won't believe what else I've been able to activate now
Sent from my Samsung Galaxy S4 using XDA Labs
I've also been trying to do this. I've been unsuccessful. Can I ask how you were able to get it to take?
And my curiosity wants to know what else you've unlocked.
DragonFire1024 said:
After weeks of trying, researching and bricking, I've finally found a way to successfully edit/modify the values of framework-res.apk and SUCCESSFULLY install the modded version. I have enabled the daydream screensaver, however sofar it will only accept the clock as the screensaver. Though I am sure colors won't display because of something I did wrong.
That having been said, you won't believe what else I've been able to activate now
Sent from my Samsung Galaxy S4 using XDA Labs
Click to expand...
Click to collapse
DaRkNesss363 said:
I've also been trying to do this. I've been unsuccessful. Can I ask how you were able to get it to take?
And my curiosity wants to know what else you've unlocked.
Click to expand...
Click to collapse
Here is the day dream activation guide: https://forum.xda-developers.com/hd8-hd10/general/root-enable-daydream-screensaver-change-t3771038
WiFi optimization: https://forum.xda-developers.com/hd8-hd10/general/root-optimize-wifi-t3767868
FireTabletSettings rewritten: https://forum.xda-developers.com/hd...oot-firetabletsettings-apk-rewritten-t3787636
Change lock screen wallpapers WITHOUT Amazon photos: https://forum.xda-developers.com/showpost.php?p=76071092&postcount=2
And more
Sent from my Amazon KFSUWI using XDA Labs
Hello.
i just bought Fire Tablet 7 9th Generation. can any one help me on how to get daydream enabled on it? i really need this enabled. and im not sure if the instructions here will work as they are for older versions of fire tabs.

Connect Moto G5 Plus to Microsoft Display Adapter (Miracast) device - HOW? SOLVED!

XT1687 US does not recognize the MS Display adapter it's a Miracast device. How do I connect? I need to cast video apps to a display. I found an old G4 post but that does not work.
You need root, then edit the build.prop file and search for "persist.debug.wfd.enable=1" and delete #.
Change:
#persist.debug.wfd.enable=1
to:
persist.debug.wfd.enable=1
goodjuju said:
XT1687 US does not recognize the MS Display adapter it's a Miracast device. How do I connect? I need to cast video apps to a display. I found an old G4 post but that does not work.
Click to expand...
Click to collapse
I use an app called localcast, that works perfect using miracast/dlna to connect to my lg tv, really cannot understand the crippling of a good system so it only connects to google.
Smeagal192 said:
I use an app called localcast, that works perfect using miracast/dlna to connect to my lg tv, really cannot understand the crippling of a good system so it only connects to google.
Click to expand...
Click to collapse
It's the default build.prop setting in aosp, Moto just didn't bother changing it.
Smeagal192 said:
I use an app called localcast, that works perfect using miracast/dlna to connect to my lg tv, really cannot understand the crippling of a good system so it only connects to google.
Click to expand...
Click to collapse
Localhost did not recognize the MS Display adapter dongle. But the Cast to TV did and works like a charm.
Summary -
1. Must have root.
2. Install build.prop editor.
3. Install Root Browser.
4. Open Root Browser give it Superuser access
5. Scroll to System folder and open it
6. Scroll to build.prop and open it with build.prop editor
7. Find line below and delete the # it to make it active, it will turn from grey to black (thanks Duncan007). if you use RT editor it's around line 242:
#persist.debug.wfd.enable=1
to:
persist.debug.wfd.enable=1
8. Save and exit. Reboot.
9. Install cast to TV - enjoy!
Deleted double post

Categories

Resources