yashsingh1/xdaforums huggingface dataset:
[Fire TV Original Android Development] RPM99:
What are you trying to do?

If you are just trying to get root access on your FiretvStick you can use the FireISO from the link on page one.

Most all of this requires using Unix.

Patching a Kernel is no easy task and probably not something you want to tackle with no Unix experience
[Fire TV Original Android Development] AssyrianHero:
ZERO experience using linux and what does FireISO does ? Is it patched linux os? Cuz I didn't understand nothing and I'm trying my best to understand so I can root and install twrp recovery..
[Fire TV Original Android Development] RPM99:
FireISO flashed to USB using Rufus3.8

Yes, The downloadable ISO file on the first page is for flashing to a BOOTABLE USB or DVD drive and then using that environment to run boot-strap.sh.
[Fire TV Original Android Development] coni57:
Can you help?

My 4K was bricked up!

Have access to TWRP

only no connection via ADB

can you still save it with TWRP?
[Fire TV Original Android Development] brick00444:
I would use this guide: https://xdaforums.com/fire-tv/orig-development/newbie-guide-how-to-unlock-bootloader-t4015273 You don't have to install the "Add-ons".
[Fire TV Original Android Development] RPM99:
Which Distro are you using?

Did you ever get you full version patched so it will run the bootrom script?

I did get the Mint Distro installed and was able to patch it to run the bootrom script.

It wasn't too hard after I figured out that the patch that is needed is just adding 3 lines of code to the USB C module and recompiling the kernel.
[Fire TV Original Android Development] itsyaboy:
Oh that’s great! And no I haven’t gotten around to doing it yet might take a look at it this weekend, I want to get it working with kali Linux.

Edit: what where the three lines? And to where ? Also how did u figure that out, The wiki seems much more complicated than that.
[Fire TV Original Android Development] micgoo:
can u install google store / gapps ?
[Fire TV Original Android Development] diegocr:
Anyone interested on build cm14.1 for mantis?

I have no idea how to have sound working
[Fire TV Original Android Development] RPM99:
Notes from my Linux Mint Kernel patch for Firestick

KernelPatch for Linux to allow running of the FireStck rooting script from fully installed Linux Distro.(I used Mint, it has less password restrictions)

If you are using your Windows machine to format and install Linux onto a USB drive I strongly recommend unplugging your hard disks(power and data)

DISCLAMER – Use at your own risk. You need UNIX skills!!!

If you are just looking to root 1 Firestick then please use the firestick.ISO, it works fine.

Main site that I followed in how to build my kernel:

https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel

This site has good info too:

https://kernelnewbies.org/FirstKernelPatch

https://kernelnewbies.org/OutreachyfirstpatchSetup?highlight=(first)

This is the kernel patch that needs to be applied before recompiling your kernel.

I just edited the “devio.c” and inserted the 3 needed lines of code:

First few lines from the kernel patch file:

“diff -ur /home/xyz/Downloads/linux-4.14.83/drivers/usb/core/devio.c ./drivers/usb/core/devio.c

--- /home/xyz/Downloads/linux-4.14.83/drivers/usb/core/devio.c	2018-11-23 02:19:27.000000000 -0500

+++ ./drivers/usb/core/devio.c	2019-09-15 13:15:53.973022982 -0400

@@ -1090,6 +1090,7 @@

return -EFAULT;

ret = check_ctrlrecip(ps, ctrl.bRequestType, ctrl.bRequest,

ctrl.wIndex);

+	ret = 0;”

First line is a DIFF command that is supposed to update the devio.c file if applied correctly. I manually edited the file(after making copy) devio.c

See the plus sign above, that’s telling you to add this line of code at shis spot in the file.

There are 3 of these same 3 lines to be added.

After you pull all the kernel build files down you can find the above path for the USB c file "devio.c"

https://github.com/amonet-kamakiri/kamakiri/blob/master/kernel.patch

Had a lot of trouble with the python script not finding the serial and usb modules.

Need to use version 3

install python version 3 usb and I think I did serial too?

sudo apt-get install python3-usb

Need to uninstall modem manger for script to run

https://www.howtoinstall.co/en/ubuntu/trusty/modemmanager?action=remove

Hope this helps,

Steve
[Fire TV Original Android Development] enderffx:
Hi there!

I somehow managed to ruin my 4k :(

I did everything by the book using fireiso & shorting the pin, then installed TWRP.

Installed Magisk in TWRP, booted.

Black screen with white "Fire TV", then white screen with smile, then whhite screen with orange "Fire TV" and 3 dot animation.

Screen goes black THEN shows a dark grey gradient. End of story... AFter a while (minutes) screen goes full black (sone kind of screensaving?!)

I then rebooted to TWRP, did a wipe. Same happened. First boot after wipe takes longer, then faster but alwas same "success".

THEN i downloaded pre-rooted 6.2.6.8, flashed it, wiped , rebooted, SAME result...

Did i ruin my Hardware while shorting it? ANy idea what to try?

Greetings,

Ender
[Fire TV Original Android Development] Skel40:
I ran into the same issue and managed to fix it by simply running the exploit again, let it boot into twrp, type adb devices to see if it detects it, adb shell, twrp wipe data, twrp wipe /system and finally type in twrp sideload, adb sideload (space) drag and drop this zip file which is the 100 stock rom for 4K mantis, let it finish and you should be good to go let me know if you have any more issues! This stock rom WILL NOT get rid of twrp so you're safe.

Here's the zip file to drag and drop while in twrp recovery after shorting for adb sideload: https://drive.google.com/file/d/1-8Md0W6V7UNKkGb1uS2WfIKjjevEEaN7/view?usp=drivesdk

You also may need to wipe /system and data again after running it on your Fire TV Stick 4K due to read only system that can be easily fixed by flashing the prerooted rom after you flash the stock rom successfully. Let it boot into the OS to make sure it's working properly. Be sure to flash the stock rom first before flashing the prerooted rom so you're not confused.
[Fire TV Original Android Development] enderffx:
Hello Skel40!

Thanks a ton, will try as soon as i am home & report here!

:good:
[Fire TV Original Android Development] gggirlgeek:
I am confused: We extract the files from the zip file, right? After we run the script commands inside it, and short the device, do we still need to flash unextracted "kamakiri-mantis-v1.2.zip" via TWRP?

If so, before or after flashing the Mantis pre-rooted rom file?
[Fire TV Original Android Development] Sus_i:
If you use twrp commandline, you didn't need a swipe at the system readonly window. The commands run just fine from the terminal...

In that order it isn't necessary to wipe the system or data again, same for flashing the prerooted rom.

Be aware, if you flash the stock rom and mount/modify the system with TWRP, you have to flash the magisk.zip, or the stick won't boot anymore,

i.e. the android security measure dm-verity notice any modifications on /system and causes a bootloop.

---------- Post added at 10:52 AM ---------- Previous post was at 10:49 AM ----------

In case you used the latest one for the unlock, you didn't need a re-flash.

If your stick runs the latest OS, simply install the magisk.zip and you're done.
[Fire TV Original Android Development] enderffx:
Guys, i definately ruined my Stick.

When trying to reapply the mod i detected that i was stupid enough to rip the SMD....

Will buy another Stick, saw one w/o remote for sale.

I'll be back :)

Ender
[Fire TV Original Android Development] Sus_i:
The stick probably works without that smd part :D

Short the two pads and your stick is into the bootrom (you can simply bridge the two pads of that ripped smd part, since one of the pads is gnd), then re-run the exploit.
[Fire TV Original Android Development] enderffx:
That would be funny :)

Will try!

---------- Post added 11th February 2020 at 12:02 AM ---------- Previous post was 10th February 2020 at 11:27 PM ----------

Okay i successfullz went through the steps, booted to twrp *and flashed magisk 20.1}

But when i boot the same thing happens, after the orange text the gray gradient...

I AM supposed to leave the place where the capacitor sat open, right, not shortened_

(i guess it would be stuck in fastboot mode then, right_)

Greetings,

Ender
[Fire TV Original Android Development] Sus_i:
Yeah, leave this pads open.

Boot into TWRP, flash the latest amonet kamakiri package, flash this rom, wipe cache and dalvik, flash the magisk.zip again. Reboot.
[Fire TV Original Android Development] enderffx:
Hi!

Okay, i *believe* i tried that before but will do again just to be sure.

If you say "flash the latest amonet kamakiri package" you are referring to the very same "kamakiri-mantis-v1.2.zip" that i unpacked before to run the 2 "modding" scripts, right? Or do you refer to a different file?

THANK you so much for caring, even if this goes downhill thats really great of you!

Ender

---------- Post added at 11:13 AM ---------- Previous post was at 10:18 AM ----------

Okay, tried that, still boots up (first time takes quite some time with the 3-dot animation) to that gray gradient screen.

I guess its the background for the first step of the setup wizard or something like it.

I think its f*cked up :(

Lets see if there will come a lineage OS zip to flash so i can use it for something OR if someone else has this problem and finds a solution but MAYBE i damaged the Hardware...

Thanks yet again for the friendly help!

Ender
[Fire TV Original Android Development] Sus_i:
Yes, flash the package as zip.

If it bootloops again, add wipe system and data to the procedure above, just infront the rom flash.

You see, ripping parts off isn't recommended :D

Nevertheless, some users reported that the stick works with such a damage.

My theory is, missing one of the condensers, renders read/write attempts to the EMMC a bit unstable and/or slower.

You may need a few flash attempts, until all stuff is flushed correctly ;)
[Fire TV Original Android Development] enderffx:
Hi!

yep, tried ripping off SMD components before also leading to less fun :)

Just to clarify: Its no bootloop, its sits there at that gray screen waiting alooong time before showing a black screen (remnants of a screen saver?!). And then is stuck forever, no connecting to the remote or ADB or the likes...

And i tried to flash the stock image you referred to AND a prerooted, both combined with pre wiping data / dalvik / cache / system, formating data, sometimes flashing magisk after and sometimes flashing the kamari package before.

Always *exactly* the same result -> Black screen with With FireTV, Whote screen with orange FireTV and 3 dot animation (always longer the first boot after wipe), then gray screen, then after 5 minutes or so black screen. End of story.

I have to admit defeat :)
[Fire TV Original Android Development] Sus_i:
Yeah, maybe ;)

Edit: Last try, let it sit/run for a hour or so
[Fire TV Original Android Development] fredsky2:
hey [MENTION=7104332]k4y0z[/MENTION], i think i found the reason for that error in the quote.

long story short, im pretty sure it happens when we short circuit 'too deep': i was following a great guide by nandroidint and whilst following his video i happen to stick the tinfoil too deep, which always gave me that error.

when i managed to get my tinfoil stick to cover just that tiny, more visible (with the shield on) circuit pointed in red on the image, everything worked flawlessly.

perhaps this will help someone searching for the same issue
[Fire TV Original Android Development] totbl:
My Firestick 4k is blacklisted. Anyone got the steps to bypass the first boot screen with this? Let me know! Thanks!
[Fire TV Original Android Development] gggirlgeek:
BTW, a Reese's Cup wrapper works great to short the points on the circuit board. Just sayin'. ?
[Fire TV Original Android Development] ForForkSake:
did this in about 20 mins - Downloaded VirtualBox + usb 2/3 extension pack, created "other linux 64bit" virtual machine - loaded FireIso as the LIVE CD.

downloaded 1.2 zip from this post in firefox, extracted it to /mnt

Ran the bootrom-step.sh command

Assigned MediaTek Android usb device to VM

got the short first time! (had plenty of practice as I did something similar with my fire tv 2)

ran the 2nd command and now I'm in TWRP...

no OTG cable though... doh!
[Fire TV Original Android Development] Firozhari:
How to unbrick?

So i had rooted and installed AFTV on my firestick 4k a couple of weeks ago. Everything was going fine until last week when some sort of glitching noise started to come from the sound as well as display. It is not an HDMI problem because the TWRP runs smoothly.

I tried to restore from a backup I had made. The reboot after restoring, gets stuck at the black firestick page(one before the white page). If i go into twrp, i get the error Failed to mount /vendor.

So I restored the backup again and then flashed the mantis rooted rom and restored the vendor images. This time I managed to get to the white loading screen but then the glitched started appearing again.

I would like to know if there is any way to fix this? How do I Flash the firestick 4k Stock Rom ? or how to Unbrick?
[Fire TV Original Android Development] theflashfromthecw:
Have you tried flashing the original stock rom for Mantis? Try flashing this and see if it fixes the problem.

Original Stock Rom: https://drive.google.com/file/d/1-8Md0W6V7UNKkGb1uS2WfIKjjevEEaN7/view?usp=drivesdk
[Fire TV Original Android Development] Firozhari:
Do I flash it with twrp? Because as of now, I'm not able to go into twrp.. I used the mantis exploit to load twrp but when I run the fastboot.sh file it shows stock recovery.

---------- Post added at 08:04 PM ---------- Previous post was at 07:59 PM ----------

Do I flash it with twrp? Because as of now, I'm not able to go into twrp.. I used the mantis exploit to load twrp but when I run the fastboot.sh file it shows stock recovery.
[Fire TV Original Android Development] theflashfromthecw:
Yes. Hm that's weird.. Have you tried the earlier kamakiri versions (1.0,1.1)? If not, try 1.0 since its the most stable version there is for right now.
[Fire TV Original Android Development] Tony2k:
Can I know if you see MediaTek Android usb device without run bootrom script but only grounding DAT0? I suppose it does because you have before select the device on Virtualbox and after launch the script.
[Fire TV Original Android Development] ForForkSake:
You can manually add enter the details first otherwise.. But yea during the script was fine.. The moment I selected it in virtual box the script continued.

Couldn't get it working on Virtualbox on Linux itself... So loaded Windows 10 partition and tried it as above and worked first time.
[Fire TV Original Android Development] ghostrecon21:
can you give me the old tee ?
[Fire TV Original Android Development] cyberspectre:
So is there a vanilla Android TV rom that can be used for it?
[Fire TV Original Android Development] tsynik:
There is no Android TV ROM but you can do it yourself: amazon sources available on developer.amazon.com
[Fire TV Original Android Development] tsynik:
there is still unchanged lk / tz in images folder of NS6271 update, but preloader.img differs. [MENTION=7104332]k4y0z[/MENTION], does it matter in case new 4K sticks unlock?
[Fire TV Original Android Development] ForForkSake:
A nifty little app called flasher does the job though. It doesn't flash them in fire os.. But makes it easy to create open recovery scripts which then run once rebooted into twrp.

It's free in playstore so installed on phone. Then sideloaded it.

https://play.google.com/store/apps/details?id=com.victorlapin.flasher

Important note. I Didn't flash any boot or recovery images.. Only magisk modules.. And they ran without a hitch
[Fire TV Original Android Development] spark47:
I own fire stick 4k with model no. E9L29Y, is this applicable to my device?
[Fire TV Original Android Development] spark47:
Alright! I was able to follow all the steps and everything was successful. However when i plug it into my TV, I got stuck in "fire tv" bootloop. I have wipe everything inside. To cut it short, Looks like i just bricked my fire stick.

I can still login though to TWRP via mouse (using y-cable). My dilemma is i can't figure out a way how to transfer files from my PC to firestick. Can somebody help me please
[Fire TV Original Android Development] ForForkSake:
Plug into your PC and the TV hdmi

Download rbox latest pre rooted Rom and run adb from your download location.

adb devices
adb push mantis-6.2.6.8-rooted_r1.zip / sdcard/
adb reboot recovery

adb shell
twrp wipe davlik
twrp wipe cache
twrp install /sdcard/mantis-6.2.6.8-rooted_r1.zip
reboot
[Fire TV Original Android Development] luniz7:
http://www.jocala.com/ use this
[Fire TV Original Android Development] spark47:
Thank you! I did repeat the steps from the very start and got lucky and everything is okay now. Does anyone knows how to enable ssh to fire stick? Wondering if we could setup other services such as smb, cups to act as printer server? Planning as well to add transmission client to make it a torrent downloader.
[Fire TV Original Android Development] chcknsld:
Hi! I'm sorry for the noob question but does the latest Magisk (v20.3) works? Does it not lead to bootloops? I'm asking because every Magisk zip file in the last few pages was only referred to as "magisk.zip" -- without the version number. Or is there a specified Magisk file in this thread that only works with the method?
[Fire TV Original Android Development] Sus_i:
No. All versions are fine.

Just keep in mind that updating magisk only works via TWRP as zip, updating via the manager ends in a bootloop.
[Fire TV Original Android Development] chcknsld:
Thanks for the heads up!
[Fire TV Original Android Development] yosdmie:
hello I keep having issues any ideas? Thank You

* * * If you have a short attached, remove it now * * *

* * * Press Enter to continue * * *

[2020-03-07 23:44:13.554354] Load payload from ../brom-payload/stage1/stage1.bin = 0x27C bytes

[2020-03-07 23:44:13.639669] Let's rock

[Errno 5] Input/Output Error

[2020-03-07 23:44:13.639905] Waiting for stage 1 to come online...

Traceback (most recent call last):

File "main.py", line 114, in <module>

main(dev)

File "main.py", line 24, in main

load_payload(dev)

File "/home/xxxxkama1/kamakiri/modules/load_payload.py", line 85, in load_payload

raise RuntimeError("received {} instead of expected pattern".format(data))

RuntimeError: received b'' instead of expected pattern

apreciate any thoughts!
[Fire TV Original Android Development] pspTP:
Uh oh. I accidently updated Magicsk via the Magisk manager and am stuck in the boot loop now. How do I get out of this? Do I need to do the full root procedure again?

I tried connecting to the PC as well as running the whole root process again, but the device is not showing up under adb or when I run the bootrom script. Am I bricked and out of luck?
[Fire TV Original Android Development] Sus_i:
In case you're able to boot TWRP, flash kamakiri-mantis-v1.2.zip and a magisk.zip.

If you can't boot into TWRP, you have to re-do the whole OP...

adb won't work at this point, but the bootrom is still there... you have to short it properly :fingers-crossed:
[Fire TV Original Android Development] pspTP:
How do I boot into TWRP if adb is not working? Any tricks?

I have tried multiple times and the shorting is not working. It had worked the first time when I ran the root though few months ago before I goofed up and updated Magicsk through the app now :crying:
[Fire TV Original Android Development] adi10289:
I was unsuccessful for first time as shorting clk and gnd was not done properly but 2nd time got successful and installed magisk 20.3 for root.

Can any one tell me how can I install incremental updates when available?
[Fire TV Original Android Development] InFam0us-1985:
Do the whole thing over i guess. I'm kind of in the same boat, mine loads - but dosnt show me a menu - only way i can get to twrp is to adb reboot recovery once it has booted?

So is this - http://www.aftvnews.com/how-to-install-a-kernel-boot-menu-on-the-amazon-fire-tv/ - still the way to do this?
[Fire TV Original Android Development] Sus_i:
If the bootmenu doesn't show up, there isn't a way to boot TWRP, since adb won't work too.

You may just follow the OP, boot the provided ISO and carefully follow the steps...

Nope. Only full updates, renamed to zip and flashed with TWRP is a thing...
[Fire TV Original Android Development] adi10289:
ok thanks I should disable ota updates that for safer side
[Fire TV Original Android Development] Michajin:
I am confused? If you have a OTG you can boot into recovery from boot, i get the option... If you have access to recovery, you cant restore a backup or flash rbox's prerooted rom?

- boot from power off with a OTG it gives the option for TWRP
[Fire TV Original Android Development] InFam0us-1985:
Sorry - i didnt have my otg when i first did the stick so i used adb commands to wipe and flash everything. Ive not booted it with my mouse connected before - only once i had adb'ed out to recovery.
[Fire TV Original Android Development] razvangrig:
Rooted and installed magisk, xposed, adaway, adguard reborn, MinMin guard, blokada. Nothing works for blocking ads in Silk browser or firefox browser. Any idea anyone? Thanks!
[Fire TV Original Android Development] KevMetal:
Extract the apk using SD maid .( transfer apk to another android device ). Then using one of many apk that has the ability the patch the extracted apk to remove the code allowing the ads . These kinds of apks aren't allowed to be discussed or named because some of them also allowing you to patch the apk for purchases...

I'm not advocating the use of malicious software nor avoiding paying for things and services. I'm merely explaining the one true way to remove the ads ..

After patching ..reinstall patched apk. DO NOT USE THE PATCHER TO DO ANYTHING ILLEGAL ..SCAN THE REINSTALLED patched version with google virus scan to check for any unwanted code... The idea here is to remove code for advertising platforms ..get green( all of this on phone ) then pass to stick ...install ..turn off automatic updates or they will put back the ads for you by installing another version of apk on top of your cleansed apk.

Now if you're lucky ;) you're sure to find the name of the one patcher who may never be named here ...if you're lucky.
[Fire TV Original Android Development] razvangrig:
Thank you. Luckily, I used that apk before. But still do not understand why isn't any add blocker working after root. Aren't they supposed to block ads using the host files? Before rooting the firestick blokada was working. Now nothing works for blocking ads.
[Fire TV Original Android Development] ForForkSake:
Adguard works great here . Even just updating DNS settings to theirs does ta decent job..but the app works great
[Fire TV Original Android Development] 3dux:
I just did this... any fix yet? Ugh...
[Fire TV Original Android Development] pspTP:
I have just given up for now as I hv not gotten time to play around with it due to travel.
[Fire TV Original Android Development] DerSammler:
Hi, I had rooted the Fire Stick 4k with version 6.2.6.8_r1 and everything worked. Unfortunately the stick has updated to 6.2.7.1. So root is gone again.

Can I re-root my stick with version 6.2.7.1 or is it no longer possible?

Thank you very much for answers and help.
[Fire TV Original Android Development] tune345:
......and i broke the capacitor.....but it's still working ..... ¯\_(ツ)_/¯
[Fire TV Original Android Development] SERGE4NT:
I need help please. After magisk update i have a boot loop. What can i do?
[Fire TV Original Android Development] KevMetal:
you have to restore to stock and root again. You can't update magisk on Fire devices ( clearly stated ) due to it using an older method to run itself.
[Fire TV Original Android Development] SERGE4NT:
OK, I am a noob. How can I restore to stock?