yashsingh1/xdaforums huggingface dataset:
[Fire HD 8 and HD 10 General] DragonFire1024:
It's not about needing. It was fun (and still is lol). In KitKat 4.4 the technology was blocked in Android, from the source code to the software level. Some of the "internal" functions needed for it to operate (software like a casting and receiving app known as a source and sink) were blocked in the framework (/system/framework/framework-res.apk) and other parts were blocked in the WiFiDisplay configurations in Android's source code (/system/etc/wifidisplay_config.xml) and so on. That app you speak of works to use Chromecast, but not device to device. (I've tried dozens of apps and root tricks etc). RemoDroid is the only one to use the available software that isn't blocked and make up for the rest.

Wifi direct can be found in the hidden settings using Activity Launcher. It's tied into Cast Screen (hence my research months ago). I can get the tablet to connect to at least two other devices directly. What to do from there? *Shrug* Ask Amazon...they blocked that out too.
[Fire HD 8 and HD 10 General] sensboston:
Could you please expand this? Are you still talking about Amazon Fire HD 8?

[UPDATE] Just installed Activity Launcher on Fire HD 8: there is no "Cast Screen" activity found.

[UPDATE 2] As far as I understand, this "RemoDroid" app is not using WiFi direct; it working with HTTP protocol and own built-in HTTP server. It has NOTHING TO DO with the real screen casting; it uses slow HTTP protocol (and own plugin) to display screen content on the other devices. So, it's ineffective, slow and with huge lag. Definitely, it's not a WiFi direct/Miracast.

So I still don't understand your point. BTW, are you developer?
[Fire HD 8 and HD 10 General] DragonFire1024:
I said because it's fun. I've been researching this for months and it's there. I have both an HD 8 and a Fire 7. Cast screen was there as of 5.4.0.0. Using Activity Launcher, it's in the settings menu.

Does there need to be a point to this? No. I never said there was one. And you're not obligated to use this function, but this was what it was to do originally.

I'm not a developer nor do I claim to be and never have claimed to be one.
[Fire HD 8 and HD 10 General] sensboston:
OMG, now I understand! Man, you should better explain your finds and don't mess up with the completely different topics.

First, your assumption what everyone is very familiar with the third party app called Activity Launcher is wrong. I've heard that name a very first time from you here (btw, thanks a lot for the reference!)

Second: you are right, WiFi direct screen casting still here (but for some reasons Amazon made this setting hidden/not available). Here I made a pretty simple and small instruction (it's what I tried to get from you ;) ):

- install Activity Launcher from the Play store;

- start it, scroll to the "Settings" app, tap on "Settings" to expand;

- you'll see all "Settings" app activities and may pin (make shortcut) "Cast screen" activity to your start screen or just launch it!

This is a really good find but you need to explain it properly at the OP ;)

P.S. As for app you've mentioned (RemoDroid): it has nothing to do with the WiFi direct/Miracast (i.e. standard Android screen casting technique) but it's a nice and probably funny third party app, using own technique (HTTP) to emulate screen casting. But - fortunately and thanks to you - we can use the very standard Android screen casting!

P.P.S. Tried on my dongles: works pretty fine with Chromecast, cheap Chinese Miracast (bought for a few bucks on aliexpress), Windows 10 with the Realtek RTL8811AU USB dongle. Not working with the Microsoft Wireless Adapter.
[Fire HD 8 and HD 10 General] DragonFire1024:
Sorry I had assumed you read the link to my research. You are right I should explain it better. If you have appwidget active on your launcher, you can make 'cast screen' a shortcut on your desktop, but it has to be enabled again if you reboot.

As it stands now, the cast from device to TV is what it is for. The original idea was to do to or from ANY device. If cast were in the quick settings on the pull down, you would see RemoDroid using the cast function. Remo wouldn't work on my KitKat 4.4 because the functions internally were too blocked. If you look in the HD 8 build.prop you'll see the properties exist to allow casting and wfd to work, which allow Remo and the Chromecast to function. Most custom ROMs enable the feature so it works on any device, as it was meant to and much easier.

I also noticed the video uploaded improperly. That was my fault as I didn't grant proper permissions to my camera app.
[Fire HD 8 and HD 10 General] sensboston:
"Appwidget" (whatever it is, probably, another third party app?) isn't necessarily for this, "Activity Launcher" can create permanent shortcuts (I not tried to reboot but looks like it's a permanent - at least, until Activity Launcher isn't uninstalled). Just a long tap on item and choose "Create shortcut" from popup menu.

Here are screenshot to demonstrate "how to":

View attachment 4278535 View attachment 4278536 View attachment 4278537
[Fire HD 8 and HD 10 General] DragonFire1024:
I discovered appwidget in /etc/permissions. It is a script that allows launchers to use widgets, even though Amazon blocks it. They just did a write up about our thread related to it on XDA news. It also allows the creation of shortcuts. So you can long press the cast screen activity using Activity Launcher to make a short cut on your launcher's desktop.
[Fire HD 8 and HD 10 General] sensboston:
"Activity Launcher" creates a shortcuts, not a widgets :) Here is a source code, and this is a SO question (code based on) ;)

Small tip: if you don't like standard "gear" icon, you may install any app with better icon, and tap "Edit shortcut" in pop-up menu (instead "Create shortcut"). With the edit dialog, you may tap on the gear icon and select any from already installed apps primary icons.

P.S. Shortcut will remain the same (and will work too!) if you uninstall app with selected icon, and even you uninstall Activity Launcher.
[Fire HD 8 and HD 10 General] sensboston:
BTW, [MENTION=8165603]DragonFire1024[/MENTION] (I forgot to ask you), have you found a way to avoid "Fire Launcher" flickering by pressing home button? I remember something about substitution of standard buttons with third party "tricky" app but I don't like that solution (and it has some cons, AFAIR).

I found and tried your advice but it doesn't work for me: everything came as described but I'm getting permanent flickering of back/empty screen. I'm on Fire OS 5.4.0.1

P.S. Played for a little with second advice (about "Multi-action Home button"), and now can't get rid of the "The requested action is not permitted. Check Parental Controls settings and retry" :( Any advice? Should I reinstall "Fire Launcher" and uninstall "Multi-action Home button"?
[Fire HD 8 and HD 10 General] DragonFire1024:
If you can still downgrade Fire Launcher, you can "fix" that in this thread. If successful, follow the steps below to "fix" the recent's button:

1) Open Activity Launcher, tap top left and select All Activities.

2) Scroll to System UI section and tap it. Long press 'App Switcher' and create a shortcut. Place it as close to the recent apps (the square button) as possible. When you want to swipe close your apps, use that shortcut. You'll avoid parental warning.

EDIT: Just noticed you linked to it. At the time, that fix worked. If it no longer does, then you are out of luck as of the moment. Since you cannot uninstall/disable apps anymore, you can't downgrade it.
[Fire HD 8 and HD 10 General] sensboston:
I ended up with the factory reset. It looks like this "bad magic" is not working anymore, by result you can "achieve" just a non-working home button only :(

However the pros is: after reset and reinstalling, the "flickering" become significantly faster (or no flickering at all), now Nova Launcher mostly working like a normal launcher on Android OS. However I can't set (after reset) Google Now Launcher as a default launcher, LauncherHijack didn't see Google Now as a launcher, only Nova available. So, bye-bye, "OK Google" :D

Conclusion: will never touch that stuff again, FireOS with Google services working pretty fine, and don't need other "improvements".
[Fire HD 8 and HD 10 General] TechNash:
I mean I did the screen mirror method for normal android devices and had no problem...
[Fire HD 8 and HD 10 General] DragonFire1024:
It's a lot easier now and more likely to work on newer android versions now that Google redid the way Chromecast works. When I had started my research months ago, close to maybe a year now, it was far more difficult, at least on these tablets. It's a very long story.
[Fire HD 8 and HD 10 General] TechNash:
Oh. Yea, I don't really ever use streaming from devices so I just downloaded kodi onto my raspberry pi
[Fire HD 8 and HD 10 General] long_pn:
I've tried my Fire HD 8 2017 to miracast to a Chinese AnyCast doogle using Activity Launcher but it couldn't connect. My Lumia Windowsphone connects without any issue.

Also the shortcut to Activity Launcher doesn't appear.
[Fire HD 8 and HD 10 General] DragonFire1024:
Amazon has disabled a number of things, and on the 2017 devices, especially if you are on 5.4.0.1, some of the hacks we discovered, no longer work. In regards to the shortcut, depends on your launcher. Nova has a setting to disable shortcuts on the home screen so that might be the issue, if not, search for the thread 'enable widgets custom launcher' and run the appwidget script. I'm pretty sure you need to bind appwidget to your launcher to use shortcuts and or widgets.
[Fire HD 8 and HD 10 General] long_pn:
I'm on 5.4.0.0 and have blocked Amazon update. Cast Screen Miracast mode (Enable Wireless Display ticked) shows the dongle connecting for awhile but not connected. In DLNA mode (Enable Wireless Display not ticked), it doesn't recognized the dongle either, so i'm suspecting about compatibility issues between the dongle and Fire HD8. Anyway, Miracast is a common android feature and Amazon shouldn't disable it by updates. Do you know of another miracast/DLNA app in play store ?

Regarding Launcher, I'm still using the stock Amazon one and may update to another, maybe Microsoft's or Nova's (unknown to me). Is there issues with the home button? I read around here but haven't found steps to change it.

Thanks
[Fire HD 8 and HD 10 General] msm1965:
I have the 8 hd 2017 which can not be rooted afaik but I do cast/mirror display screen into LG smart tv by using Allcast app without any dongle also localcast app works.

---------- Post added at 11:47 AM ---------- Previous post was at 11:44 AM ----------

How did you block Amazon update without root?
[Fire HD 8 and HD 10 General] long_pn:
There is a thread Block OTA updates without root, just search for it.
[Fire HD 8 and HD 10 General] msm1965:
My bad it is localCast for chromecast app

Didn't notice the spelling error.
[Fire HD 8 and HD 10 General] TechNash:
No root firewall and unostalling system apps via adb no root (uninstalling. oTA
[Fire HD 8 and HD 10 General] mbwf:
All of the above. I have the very same 8" 7g 2017 KFHD, and, as with you, all my other devices (Moto G, Lumia 640 XL) will cast to my Roku 3 & Win10 PC no problem at all, but this KFHD won't. Also, yes, the shortcut doesn't appear - I think that's likely due to the fact that KF doesn't use a standard launcher.

However, my 6" 2014 KFHD *will* connect; I created a tutorial thread, earlier.
[Fire HD 8 and HD 10 General] DragonFire1024:
It's likely your fire has the most recent update of 5.4.0.1. unfortunately a lot of the tricks have been patched and no longer work.
[Fire HD 8 and HD 10 General] SunnySpoiled:
Good guide

Thank you for your good tips. I used to mirror my iOS device with ApowerMirror. :) Now I can refer to your tips and get a new useful method.
[Fire HD 8 and HD 10 General] erkt:
can i use miracast or chromcast or something like these for mirroring? i want to watch something on TV, i bought new fire 10 7th gen can someone help me? i'm not sure can we do that or not?
[Fire HD 8 and HD 10 General] DragonFire1024:
The HD 10 has root now, so maybe installing as system app, chromcast et Al may work. J haven't tested this yet.
[Fire HD 8 and HD 10 General] ktjensen:
would like to mirror from my Kindle GEN8 Fire HD8 to my Amazon Fire TV Gen1; with just wifi and no internet as am at a remote campground. Should I be able to do this with the ALLCAST or the REMODROID apps? Can I even install REMODROID on the FIRE TV Gen1?

Know I can use my Kindle GEN5 Fire HD8 as factory set, as that specific generation has MIRACAST built in an enabled. That has had no issue excepting lag, as it just is a slow processor in that generation.

Also have a Microsoft MIRACAST Gen1 device that would like to mirror to.

---------- Post added at 09:32 AM ---------- Previous post was at 09:26 AM ----------

cant get APOWERMIRROR to install on my Kindle FIRE HD8 gen5. oh well. just another dead end.
[Fire HD 8 and HD 10 General] DragonFire1024:
The HD 8 fully supports Miracast/screen mirroring, if it weren't for the framework value enabling wifi display being set to false.
[Fire HD 8 and HD 10 General] ktjensen:
any way to fix the FRAMEWORK to enable WIFI DISPLAY as true? for the current selling models of Kindle FIRE HD8? (is thast generation 8 or generation 10?)

Did not get that in the whole discussion. Did not get how to do that in any easy way. Did read that there was some "edit" that could be done, but to be extremely cautious to not brick your device; which was still confusing to me.

Just tried the ACTIVITY LAUNCHER app. was able to get the CAST SCREEN and the ENABLE WIRELESS DISPLAY buttons to show. But it gets rejected immediately when I try to mirror. Could be my network speed as was told at one time that is a significant factor in whether mirror will work. Trying to use an KF HD8 Gen7 device now as a test and no luck.
[Fire HD 8 and HD 10 General] DragonFire1024:
The settings APK restricts mirroring, even if the framework were set to true. Without root, there's nothing that can be done, at least not yet. Even with root on other Amazon tablets, the HD 8 is the only one that supports it. I have to work in it some more to figure out how to get it working, if I even can.
[Fire HD 8 and HD 10 General] ktjensen:
The only screen mirroring I was able to accomplish is with a GOOGLE CHROMECAST device. There is a buried setting in the GOOGLE HOME setup and control app for CHROMECAST. Go into GOOGLE HOME app (on any android device) and click the upper left stacked burgers switch. You will see a title called CAST SCREEN / AUDIO; and you can select that. Then hit CAST SCREEN / AUDIO again and your CHROMECAST device will be listed, and then you select that. It will do a mirror of your android device to CHROMECAST, with no requirement for any mirror activation inside the Android OS. It just works (audio and video synchronized) and proves that the KINDLE FIRE HD8 (generation 7 or newer) can mirror, with what is built into the android os standard.

You do need to have an android device that is relatively modern and functional (I have an HD8 generation 7 Kindle fire - works fine with that). Tried with the HD8 generation 5 and failed to work.

Then you still have the issue of needing for the CHROMECAST device to phone home when it starts up, as it needs internet to boot up correctly.
[Fire HD 8 and HD 10 General] DragonFire1024:
The HD 8 is the only lucky Amazon tablet with full support for the old-school Miracast. It's the only device, at least the 2016 edition, that fully supports it. It's the only tablet that doesn't require kernel modifications for it to have support or to work. If root ever comes on the HD 8, 2016, I believe the only thing stopping it is changing the framework value from false, to true. Now I can successfully achieve that, but without root, I have no way of enabling it.
[Fire HD 8 and HD 10 General] DragonFire1024:
May have gotten this to work. I'm almost there. I think if I can get the rom I ported from the stock factory image of LVY48F (HD 10 is based off that factory image) to properly flash (having script issues) then I'm certain screen mirroring is a go for the HD 10. I managed to hack the stock settings app from that image into the HD 10 and 98% of it works. And the cast screen setting is the only settings apk I've ever seen with a stock direction to the actual wifi display. I've never seen so many devices or any devices before.
[Fire HD 8 and HD 10 General] DragonFire1024:
Guys...guys...guess what??? We're going to have Miracast. Mediatek has their way of implicating it through their kernel. Look at system/data/misc at the project config. Somehow those can be added to the kernel in proprietary mediatek functions and added to the build configuration. I know this because I recompiled Amazon's HD 10 kernel with the sources both [MENTION=7104332]k4y0z[/MENTION] and I put together. It works...mostly. I posted screen shots below. This was done by adding the line persist.debug.wfd.enable=1 to the build prop...after compiling the custom kernel from source and installing it. I just need a tester lol. If I am right, we'll have it up and running quite soon. I can upload my kernel and if anyone wants to help by installing it and gathering logs, as much as possible, so we can get the final kinks out, it will just be a matter of days.

MTK_SEC_WFD_VIDEO_PATH_SUPPORT = no
MTK_WFD_HDCP_TX_SUPPORT = no
MTK_WFD_SINK_SUPPORT = no
MTK_WFD_SINK_UIBC_SUPPORT = no
MTK_WFD_SUPPORT = no
MTK_WFD_SINK_UIBC_SUPPORT
MTK_WFD_SINK_SUPPORT

There may be others in that file too.
[Fire HD 8 and HD 10 General] DragonFire1024:
One didn't upload.
[Fire HD 8 and HD 10 General] tylerhole:
Check your messages good sir [emoji106]

Sent from my SM-G9650/DS running stang5litre Pie ROM
[Fire HD 8 and HD 10 General] DragonFire1024:
Done. Please if anyone finds source code, please link here. What does anyone know about mira4u? That's it. I've seen some of these configurations in the kernel source. Looks like I'll have to download and dig through kitkat mediatek kernel.

https://android.googlesource.com/ke...d-4.4.4_r3/drivers/misc/mediatek/hdmitx/wfd.c

https://github.com/ShadeWalker/Tang...s/apps/Settings/src/com/mediatek/settings/wfd
[Fire HD 8 and HD 10 General] neodenjin:
I've been anxiously awaiting the results of this. Did anyone get miracast working?
[Fire HD 8 and HD 10 General] DragonFire1024:
I can get the tablet and another device to connect and reconnect and disconnect over and over, with the cast logo flashing in the statusbar as it's doing so. I was able to track down an old APK called wifidisplay.apk and that's as far as I have gotten. Literally I'm a hair away from all of it working and I can't figure out why it's not. The logcat is useless as it says the reason to fail at connecting is "reason=0". Logs show everything happening. I think and still think the AlexaWindowPolicyManager is causing it. When a window is declared for wifi display, it force cloees it.
[Fire HD 8 and HD 10 General] DragonFire1024:
Ok I have a working 'sink' app...so I think. I managed to get the wifidisplay.apk working. It just needed signed and to have a line removed in the manifest for shared uid. I need some testers. download the attached app and install it. Try to install it on another device or download a source app from the play store. If it does weird things let me know. Get logs if possible. This does not require root to install.
[Fire HD 8 and HD 10 General] MisterMalakai:
Installed and tested. Results are on the other thread.

BTW, should we start a new thread specifically for Miracast testing on the HD8/HD10? It would help to keep all of our data and correspondence consolidated in one place.
[Fire HD 8 and HD 10 General] neodenjin:
I can share the results of my testing.

1. The source devices only ever show 2 devices and thats it.

2. My windows 10 PC sees the tablet but the tablet does not see the windows 10 PC. When I try to connect from the PC to the tablet I get a popup box on the tablet requesting permissions. When I accept it, the PC tries to connect but nothing happens.

At least the PC sees the tablet, thats a start :)
[Fire HD 8 and HD 10 General] DragonFire1024:
Two is better then none. The latter is probably because you don't have the framework set to true which turns on the Wi-Fi display. If you can get them can connect that's a plus because I have had trouble getting mine to connect and when they do it disconnects and reconnects over and over. See if a cast logo appear in the status bar
[Fire HD 8 and HD 10 General] MisterMalakai:
How do we set the framework to true? I have your framework-res installed, but I am unaware as to how I can access it.
[Fire HD 8 and HD 10 General] DragonFire1024:
If you have it installed, the last one I made was for the power menu, then it's already set to true. To set values in the framework, you have to decompile it, edit it, recompiles and hope that it installs. I spent 6 months trying to find a way to get this to work. I can do it on almost any device now. You need apktool, Java, it takes a while to set up and use at first. And not everyone has the same results. I can link you if you like.
[Fire HD 8 and HD 10 General] DragonFire1024:
Take a look. And no I didn't just type it in.
[Fire HD 8 and HD 10 General] MisterMalakai:
I was never able to get to these menus in my previous tests since I softbricked upon installing xposed. I'm gonna have to go back through a few of your threads to put the pieces together as to how to properly get myself to where you need me to be.

My apologies for the lack of correspondence over the past few days. I had some RL stuff go down, but I'm all gravy now.

As for my current status, I need to install the latest framework-res, get xposed up and running, and resume testing on your latest version of the WiFiDisplay app. Anything else you would suggest in the meantime?
[Fire HD 8 and HD 10 General] DragonFire1024:
I'll just see now I have not been able to repeat it on any of the other tablet I have. I don't know exactly when it occurred or appeared there I just happened to notice it. So without knowing what I changed I can't tell you why it's appearing. I will post my buildprop settings a bit later and see if any of those have the same effect on your device that's the only thing I can think of right now I don't have any special applications installed at the moment.
[Fire HD 8 and HD 10 General] DragonFire1024:
Oops I forgot to add the screenshot
[Fire HD 8 and HD 10 General] Michajin:
I have been using scrcpy (casting through adb network or usb)

https://github.com/Genymobile/scrcpy

if you get an error code

scrcpy -m 1080
[Fire HD 8 and HD 10 General] DragonFire1024:
Is that from tablet to tv or both ways? I remember back in the day there used to be some kind of Chromecast APK or Google cast APK that what essentially allow your tablet to mirror to whatever you wanted to and vice versa. And it was patch rather quickly. I did a brief search over some keywords earlier to try and find some threads about it and I was unsuccessful. But I do remember a few of us talking about it around these threads at one point or another. I guess it would just be cool to be able to do something like that and not have to get to Fancy with buying cables which in my opinion kind of defeats the whole purpose.I really wish Google would just add the code back into the system and the apis and just be done with it. I've been trying to piece this stuff together for years and I always seem to get right before the end before I can't get any further. This does have some potential though I'm not sure anybody has tried to do this before.

PS I must have come across that application before because I already have it bookmarked ?