yashsingh1/xdaforums huggingface dataset:
[Fire TV Original Android Development] dmcfo20:
Ok I've had everything up and running all day, flashed the prerooted 6.2.6.8 rom. Boots up fine, but when I try to enter su commands, I get permission denied. I've reflashed the rom probably 10 times so far, I've even tried flashing magisk separately but no matter what I do su is denied. I don't know what else to do, any suggestions, please?? I'm losing my freaking mind trying to figure this out...
[Fire TV Original Android Development] brick00444:
If you open Magisk and click the upper left menu, then click Superuser make sure you have "com.android.shell" toggled on.
[Fire TV Original Android Development] luniz7:
Where is magisk? On the Firestick os? I can’t see my Firestick picture while it’s connected to my pc.
[Fire TV Original Android Development] brick00444:
That was meant for dmcfo20 . Did you get the rom pushed to your stick?
[Fire TV Original Android Development] luniz7:
Yes. I have the same issue as he does now. Cannot su. adb devices gives me the device name and then unauthorized.
[Fire TV Original Android Development] brick00444:
There is a popup on the tv screen that you have to click on "allow" , then you will be able to "su" .

And yes Magisk is on the firestick.

What are you trying to do with it?
[Fire TV Original Android Development] luniz7:
Trying to block the ota updates

---------- Post added at 05:15 PM ---------- Previous post was at 05:14 PM ----------

I hooked up the Firestick to the tv and went to magisk, the Superuser and nothing is listed there. Is there a way to connect the Firestick to the tv and computer simultaneously?
[Fire TV Original Android Development] brick00444:
Yes, you can hook to both the tv and pc. Just have to be close to the tv. Use the pc for the power.

---------- Post added at 06:21 PM ---------- Previous post was at 06:19 PM ----------

You can and should install adblink or Minimal Adb and fastboot and do it over wifi.
[Fire TV Original Android Development] luniz7:
I was able to get the updates blocked but had to exit out of the live usb to download the magisk addon module. Now adb devices doesn’t list the Firestick anymore.

---------- Post added at 06:32 PM ---------- Previous post was at 06:31 PM ----------

I was able to get the updates blocked but had to exit out of the live usb to download the magisk addon module. Now adb devices doesn’t list the Firestick anymore.

---------- Post added at 06:32 PM ---------- Previous post was at 06:32 PM ----------

I was able to get the updates blocked but had to exit out of the live usb to download the magisk addon module. Now adb devices doesn’t list the Firestick anymore.
[Fire TV Original Android Development] brick00444:
If you are doing it wirelessly, try "adb connect (your firestick IP)" and see if it shows up
[Fire TV Original Android Development] luniz7:
So I can connect to it via adblink and can boot to recovery. However I don't know how to install the zip in twrp with adblink. Once the stick reboots to recovery I can no longer access it with adblink and the adb shell. These are the commands that were to be done. I already have the AFTV zip on the sdcard.

adb devices

adb push <your download location you decided earlier here>/AFTV-MM-1.7-6.2.6.8.zip/ sdcard/

adb reboot recovery *it will boot into TWRP*

adb shell

twrp install /sdcard/AFTV-MM-1.7-6.2.6.8.zip

twrp wipe cache

twrp wipe dalvik

reboot -p
[Fire TV Original Android Development] brick00444:
Ok it looks like you pushed the zip file to the sdcard. Then you can connect the usb from the firestick to the pc for power and then it should be able to see the usb connection, then run the commands:

adb shell

twrp install /sdcard/AFTV-MM-1.7-6.2.6.8.zip (or the name of the AFTV-MM file you downloaded.)

twrp wipe cache

twrp wipe dalvik

reboot -p

Then replug the usb into the wall socket

It gets easier after that is accomplished. The rest should be able to be done with the firestick hooked to the tv. Hope that helps
[Fire TV Original Android Development] luniz7:
I got it. One more question. Can I update magisk within magisk itself or do I need to do it another way?
[Fire TV Original Android Development] brick00444:
I read this: "don't ever do install / update Magisk over Magisk Manager on Fire TV 4K!" So I guess I would do it through twrp.
[Fire TV Original Android Development] luniz7:
Got it. Installed with TWRP. Thanks for the help.
[Fire TV Original Android Development] brick00444:
No problem. It's the least I can do for all the help people on here have given me. Thank you everyone for the things you do.
[Fire TV Original Android Development] dmcfo20:
I ended up just starting from the beginning, including the bootrom exploit, and it seemed to work fine the second time. I did everything pretty much the same so I'm not sure what happened the first time. Unless I was getting really unlucky, grounding the circuits with foil didnt work again until I factory reset my stick.
[Fire TV Original Android Development] brick00444:
Glad you got it going. Sorry I forgot about the factory reset, I had to do that on one of mine also.
[Fire TV Original Android Development] liveroy:
Any ideas why I can't seem to to be able to use adb in twrp or fastboot when I reboot to hacked bootloader? It worked until I've rebooted the first time when I've used the exploit and for some reason now it won't see the device.

Otherwise the device boots alright.
[Fire TV Original Android Development] brick00444:
When in twrp, are you connected to computer? Wifi isn't connected until after boot as far as I know. Connect usb to pc and try. Hope that helps.
[Fire TV Original Android Development] liveroy:
It's connected to a PC of course, I never used adb wirelessly. Tried with Y-cable and with a 4 port USB hub. Managed to get adb to work when I boot the device, but only with the usb hub, the Y-cable is still a no go. Also in twrp it doesn't work as mentioned.

Also this is a blacklisted 4k stick. Has anyone managed to get some 3rd party launcher to work in this state?
[Fire TV Original Android Development] Pretoriano80:
With OTG cable you won't have the data connection, so adb and fastboot won't work.

Use the original USB cable when you connect the FireTV to the PC.
[Fire TV Original Android Development] liveroy:
How do I connect a mouse to access twrp then. Without the y-cable won't even display the twrp prompt. Please explain.
[Fire TV Original Android Development] brick00444:
You can type the commands on pc and no mouse clicking needed within twrp. examples:

adb reboot recovery

adb shell

twrp install /sdcard/mantis-6.2.6.8-rooted_r1.zip

twrp wipe cache

twrp wipe dalvik

reboot -p

Once on twrp screen just start your commands with "twrp" and your in.

No need for a mouse
[Fire TV Original Android Development] liveroy:
I'm aware for that, but there are 2 problems.

First on a blacklisted device you can't just go and enable adb in settings, it's possible, but not just like that.

Second, even when I reboot to recovery with just a micro USB cable attached to my PC, adb doesn't work in twrp.
[Fire TV Original Android Development] brick00444:
Sorry, thats the only way I know how. Good luck hope you find your answer.
[Fire TV Original Android Development] theflashfromthecw:
TWRP lags when select storage is selected, backing up is glitchy

So far twrp works fine. Backing up my system, data, boot, vendor seems to be Backing up too fast skipping numbers and not showing the blue bar. Restoring my backup just bootloops me back into twrp until i flash a pre rooted rom.
[Fire TV Original Android Development] thehosh:
So I seem to have a completely different stick that seems to have it all soldered to the board. I didn't see anyone else with the same one. As you can see from the image the left side is clip on but the right side isn't. I'm also unable to take the left side only off as it is soldered to the bar above it, which in turn is soldered to the right side.

Can anyone confirm if they've got the same thing and have been able to unlock it, and if so what the best approach is?

In addition, for some reason I'm unable to boot into the live cd. My computer says no OS found, though the bootloader does find the USB.
[Fire TV Original Android Development] theflashfromthecw:
You have the tank version of the stick. Take a look at the forums for a root guide for fire tv stick 2 tank
[Fire TV Original Android Development] thehosh:
Thanks. Bit annoying to realise this as I was meant to be buying the 4k version, but never mind. Amazon accepted the return!
[Fire TV Original Android Development] chinkster:
how to do step 3?

Open a terminal in the kamakiri directory
[Fire TV Original Android Development] luniz7:
Navigate to the kamakari directory and right click an empty space. There will be an option to open a terminal window here.
[Fire TV Original Android Development] chinkster:
I was checking the folder where kamakiri is to make sure it is read and write and it was read-only. I unchecked the box and applied settings but when I went to check again, it went back to read-only. What happened?
[Fire TV Original Android Development] luniz7:
Are you using the live iso provided?
[Fire TV Original Android Development] chinkster:
I have the fireiso-1.0.0

---------- Post added at 08:56 AM ---------- Previous post was at 08:54 AM ----------

By boot the ISO, you mean restart the computer and press the F2 button and set it so it boots the USB that the fireiso-1.0.0 was burned onto right?
[Fire TV Original Android Development] brick00444:
Yes, you have to boot into the iso and do everthing in the iso.
[Fire TV Original Android Development] chinkster:
Hi, I am getting std::bad_alloc error when I try to push the mantis rooted zip
[Fire TV Original Android Development] chinkster:
I managed to flash the zip through twrp. But I am having trouble disabling the Amazon ota updates through adb as the user told us to do in the newbie thread
[Fire TV Original Android Development] luniz7:
Use adblink
[Fire TV Original Android Development] chinkster:
Got everything to work guys! Woohooooo

---------- Post added at 09:36 AM ---------- Previous post was at 09:35 AM ----------

Thanks devs and everyone that helped!
[Fire TV Original Android Development] RPM99:
Help firestick 4k stuck on Logo Screens

I tried to short the contacts with tin foil, I can hardly see the 4th contact pad , it's under the shield.

I was never able to get a response from the bootrom-step.sh script., I tried several times.

Now when I plug the stick back into the tv it get's to the black and white logo screen and then alternates to the red logo screen and then back again.

Is there anything I can do?

I tried flashing from 2 USB ports in my PC booted into the FireISO on a thumb drive in one usb port and the other usb for the stick. does this sound OK. I tried using a USB hub too.

ADB kept saying unauthorized when I tried connecting to the IP address, it stopped if I unplugged the stick?

Thanks for any help,

Steve

---------- Post added at 05:51 AM ---------- Previous post was at 04:58 AM ----------

So I changed from aluminum foil to a piece of solder folded in half then smashed thin.

Pushed that up into pins 3 and 4, ran the script and plugged her in, Bingo it prompted right away to pull the short and way it went installing. ran the 2nd script and she booted into twrp mode :)

Off we go to see about loading magisk

Thanks,

Steve
[Fire TV Original Android Development] luniz7:
Anyone know if it’s possible to make a backup in twrp to an external usb flash drive? Specifically the usb drive formatted for internal storage?
[Fire TV Original Android Development] Sus_i:
Yes, that is possible. I use fat32...
[Fire TV Original Android Development] luniz7:
I’ve tried it and it does not work. What could I be doing wrong?
[Fire TV Original Android Development] Sus_i:
IDK. My setup is an otg cable and a cheap usb2 hub. The stick is formatted with fat32, 32kb cluster.

Maybe take a look in the mount tab, try to check/uncheck usb/otg.
[Fire TV Original Android Development] luniz7:
Hmm I’m setup the same way.
[Fire TV Original Android Development] luniz7:
I don’t have the amazon AppStore at all. Is this normal? If not, can I just download it and install it or is there something else I need?
[Fire TV Original Android Development] Sus_i:
What? Isn't the appstore integrated into the launcher? ;)
[Fire TV Original Android Development] luniz7:
It says AppStore and it has my apps from the Amazon Appstore but how do I search for new apps? I feel like I’m missing something dumb..
[Fire TV Original Android Development] Sus_i:
Scroll thru the categories or via the search button..

The store shows only fireTV compatible apps, there aren't many ;)
[Fire TV Original Android Development] luniz7:
It’s not there. Do I need to factory reset this thing?
[Fire TV Original Android Development] Sus_i:
Some apps disabled during debloating? If not, you can give amazon a call...

It's a bit offtopic, maybe start a new thread in Q&A section.
[Fire TV Original Android Development] mrsweet1991:
Hi All,

I did this root months ago and never done anything, I decided today to try the magisk module but I noticed on magisk manager it said magisk wasn't installed and ADB su wasn't recognised which is strange?

Anyway, I decided to root again from scratch but despite the bootrom-step.sh installing fine it just reboot to a black screen with Fire TV logo and

-> HACKED FASTBOOT mode: (0) - xyz, k4y0z

Update

While stuck on that screen I dragged across fastboot-step.sh which rebooted to TWRP. I then used "ADB reboot -p" and its booted back. Magisk still states no root though and ADB shell > su returns /system/bin/sh: su: not found
[Fire TV Original Android Development] Sus_i:
Just curious ;) Did you missed that 'magisk zip flashing' part with twrp?
[Fire TV Original Android Development] RPM99:
Tips for Rooting

1) Do not use on OTG cable to connect FiretvStick when shorting the jumper and running the scripts.Use the cable that comes with the FiretvStick.

2) I used a small round piece of solder folded over and smashed a little to short out the pins after failure with the foil.

3) Do use an OTG cable and Mouse when you boot to TWRP, I was stuck at the opening screen until I hooked up the mouse.

4) Get a USB hub, the 4 into one OTG cables are junk, but the single usb with micro power connector is needed. This way you can have a mouse/keyboard and USB Drive.

5) Check out the "developer tools app" x-ray function. It shows what package is loaded and will give you actual video resolution of movies playing.
[Fire TV Original Android Development] itsyaboy:
That’s what I have the 4 into 1 otg cable, could that be the reason why apps like PopcornTime aren’t working when I try to change the cache folder? It acts like it’s about to load but looks like there’s some issue with the save I don’t know tho. Also Which otg cable and hub do U recommend?
[Fire TV Original Android Development] itsyaboy:
How can I patch the kernel? I have a kali Linux usb and would like to set this up there for whenever I might need to use it again.
[Fire TV Original Android Development] abalam:
With magisk manager
[Fire TV Original Android Development] RPM99:
4 into 1 OTG Cable issues

Hi,

I have tried 2 of the 4 into 1 OTG cables and both had issues.

The USB connections kept disconnecting.

Also noticed they were very warm.

Good Luck,

Steve
[Fire TV Original Android Development] chinkster:
Anyone else updated the magisk manager and now can't even see the selector??
[Fire TV Original Android Development] itsyaboy:
Sorry a bit of a noob here, but I thought MM was for android so not sure how I would do that, in the tutorial it said

“Running this exploit requires a patched linux-kernel on the PC you are using.

We have put together a Live-ISO that already contains all prerequisites required for running kamakiri”

Is there any tutorial explaining how I can set that up my self?
[Fire TV Original Android Development] Sus_i:
Magisk Manager? :D

You have to push that kernel patch to your ubuntu kernel source and build your own kernel from that sources...

There is a guide in the ubuntu wiki.
[Fire TV Original Android Development] itsyaboy:
Ok great thanx! much appreciated, and yea mm = magisk manager, someone had said that’s what I needed, but they prob misunderstood my question.
[Fire TV Original Android Development] RPM99:
Patching Kernel on Mint for installing exploit on FS

I have installed the Mint version of Linux and would be interested in updating it to be able to run the scripts for rooting the firestick. Would like to hear if you are able to do this to your Linux install and how difficult it was?

Thanks for asking the question and Thanks to Sus_i for including the links in his answer!!

Good Luck,

Steve
[Fire TV Original Android Development] luniz7:
You need to use the provided iso as it has everything you need. Make it a live usb.
[Fire TV Original Android Development] simons7:
Failed to complete bootrom step

Hi, I was able to perform short and run the script, but script failed:

./bootrom-step.sh

[2020-01-25 14:42:00.195657] Waiting for bootrom

[2020-01-25 14:43:36.406965] Found port = /dev/ttyACM0

[2020-01-25 14:43:36.407274] Handshake

[2020-01-25 14:43:36.407677] Disable watchdog

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

* * * Press Enter to continue * * *

[2020-01-25 14:43:42.424688] Load payload from ../brom-payload/stage1/stage1.bin = 0x27C bytes

[2020-01-25 14:43:42.448189] Let's rock

[2020-01-25 14:43:42.454761] Waiting for stage 1 to come online...

[2020-01-25 14:43:42.457121] All good

[2020-01-25 14:43:42.457246] Load 2nd stage payload

[2020-01-25 14:43:42.457367] Load payload from ../brom-payload/stage2/stage2.bin = 0x36D4 bytes

[2020-01-25 14:43:42.457435] Send 2nd stage payload

[2020-01-25 14:43:42.481287] Party time

[2020-01-25 14:43:42.482629] Waiting for stage 2 to come online...

[2020-01-25 14:43:42.618594] All good

[2020-01-25 14:43:42.619846] Check GPT

Traceback (most recent call last):

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

main(dev)

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

switch_user(dev)

File "/root/Downloads/kamakiri-mantis-v1.2/kamakiri/modules/functions.py", line 111, in switch_user

block = dev.emmc_read(0)

File "/root/Downloads/kamakiri-mantis-v1.2/kamakiri/modules/common.py", line 181, in emmc_read

raise RuntimeError("read fail")

RuntimeError: read fail

I have not seen such error in any threads, so I am wondering if someone would be able to help me.

Thanks!
[Fire TV Original Android Development] RPM99:
Rebuild your kernel needed

Hey,

From Su_1's post I think you need to rebuild your Unix kernel with the Kamakiri Compiler directives?

Then load a number of apps .

I read through the Kernel /Build page he referenced and it's no easy task and there are a couple of things I don't understand....
[Fire TV Original Android Development] simons7:
As per thread's tutorial, provided firebase100 iso should have required kernel directives compiled. I used that iso to create a bootable usb and then ran the script from there. So, now I am not sure if I need to rebuild the kernel or not.

since first few write commands ran, my stick can not boot normally anymore, so I have a bricked stick sitting on my desk now :rolleyes:
[Fire TV Original Android Development] Sus_i:
No ;) Of course you can just use the fire ISO provided in the OP. It contains all requirements. :good:

But if you want to do it with ubuntu instead, like [MENTION=5025842]itsyaboy[/MENTION] asked above, you have to patch the kernel.

---------- Post added at 08:55 AM ---------- Previous post was at 08:41 AM ----------

No, the fireISO is good :good:

The first commands doesn't write to the stick at all. Check gpt is a security measure, in case all is fine with the partitions/hardware, the script starts finally the write process.

You may try it again and again, maybe swap the usb port or the cable. If it won't work, watch out for hardware damages on the stick.

You removed the short, just infront that enter press, right?
[Fire TV Original Android Development] RPM99:
Sorry I misread your post

Hey Simons7.

Sorry I thought you were responding to our discussion about patching a Ubuntu distro to be able to run the rooting scripts that you are having trouble with.

I used the FireISO flashed to a USB drive for the first Firestick that I rooted. I did not like the fact that it's a dynamic environment where every time you reboot everything is reset and the scripts you copied here are gone. So I installed a Ubuntu distro from "Mint" and want to fix it so it can run the rooting scripts. It's a difficult thing to do if you are not real familiar with this environment :)

---------- Post added at 08:24 PM ---------- Previous post was at 08:22 PM ----------

Hey itsyaboy,

I ran some of the preliminary build stuff from the wiki page and put this in my sources.list file:

deb-src http://archive.ubuntu.com/ubuntu disco main

deb-src http://archive.ubuntu.com/ubuntu disco-updates main

Not sure if this is correct for the Mint distro?

It ran and installed some packages...

Also not sure how to "push that kernel patch to your ubuntu kernel source" as reccomended by Sus_i

Also not sure where to use Magisk

Have you had any luck?
[Fire TV Original Android Development] gregd72002:
What stick FW versions does this root require?

I am about to get the stick today and wondering if I can safely start using it before rooting (I guess OTA will kick in and will update it to latest FW).

https://www.amazon.co.uk/gp/help/customer/display.html?nodeId=201497590

https://www.amazon.com/gp/help/customer/display.html?nodeId=201452680
[Fire TV Original Android Development] Skel40:
Modified fixed TWRP.img?

I need help fixing recovery mode on the 4k firestick. It's broken and my device won't boot. I used the old versions of amonet, still not resolved. Can anybody upload a fixed TWRP.img recovery without it being unusable?
[Fire TV Original Android Development] RPM99:
Update before rooting

The advice that I follows said to let it update before rooting and then disable OTA packages.

Good Luck
[Fire TV Original Android Development] itsyaboy:
Anyone know if MAC address spoofing is possible on the fireTV4k? I downloaded a Mac spoof app but I don’t want to use it till I can confirm it won’t mess anything up.
[Fire TV Original Android Development] mauroarg:
I am afraid I bricked my device. I did all steps and was able to boot to the fire interface, but from Magisk Manager installed boot and now it wont boot anymore. Could anyone help me to unbrick my device? I believe I need to flash update-kindle-mantis-NS6265_user_2157_0002852679044.bin but I cannot find this file anywhere. Can anyone please help me?

I can re do bootroom step and fastboot step but it doesnt boot to the fire interface anymore, it just keeps displaying the firetv logo and it resets itself.

UPDATE: nevermind I found this https://xdaforums.com/fire-tv/development/fire-tv-stick-4k-mantis-prerooted-stock-t3983091 updated and it works fine now.
[Fire TV Original Android Development] micgoo:
Hello

my fireTV 4k will come in mail tomorrow. after step 1 to 9. what do i do with TWRP ? m i rooted already ? or i still have to load a rooted firmware ? how do i load google store/app on there ?
[Fire TV Original Android Development] itsyaboy:
After you unlock the bootloader follow this guide https://xdaforums.com/fire-tv/orig-development/newbie-guide-how-to-unlock-bootloader-t4015273 disregard what he says about deregistering tho, u don’t have to do that.
[Fire TV Original Android Development] micgoo:
how do i get google apps / store installed ?
[Fire TV Original Android Development] AssyrianHero:
Can somebody help me how to do this i can't understand anything, i downloaded Linux-cinnamon 19 just to do this and nothing is working i don't know how to patch my kernal on linux??? Or maybe someone has already done these steps on a video please send how to do all these steps cuz I can't understand anything I never worked on linux only windows.