yashsingh1/xdaforums huggingface dataset:
[Fire TV Original Android Development] Pretoriano80:
You could flash the stock 6.2.7.1 rom with TWRP. Here you can find the link of the full update - > https://xdaforums.com/fire-tv/general/official-stock-image-fire-tv-stick-4k-6-t4059777
[Fire TV Original Android Development] Michajin:
If you can boot into twrp recovery (plug in OTG from a power off state) then restore the boot.img from a back up.
[Fire TV Original Android Development] DerSammler:
Rooted the 4K stick version.6.2.7.1. with mantis 1.2 yesterday and it worked.

Unfortunately I broke the capacitor, but the stick still works fine.
[Fire TV Original Android Development] Michajin:
i broke mine too when looking for the shorting to get into bootrom back last July. It still works fine, not sure what the resistor did... lol:confused:
[Fire TV Original Android Development] DerSammler:
No idea maybe the condenser is just too heat dissipating there?

As long as the stick still works I don't care.
[Fire TV Original Android Development] SERGE4NT:
How can i update magisk and what is the last working magisk version for 4k Stick?
[Fire TV Original Android Development] DerSammler:
[MENTION=8127226]SERGE4NT[/MENTION] Magisk 20.3 flash over TWRP. Worked great.
[Fire TV Original Android Development] Skel40:
Magisk 20.4 has been released
[Fire TV Original Android Development] SERGE4NT:
Magisk 20.4 is beta or stable?
[Fire TV Original Android Development] Rortiz2:
In github doesn't says anything about a beta version so I guess it's stable ;)
[Fire TV Original Android Development] tune345:
yea same ...without the successful root part lol ...bought the foil now, goona try again later. how is it working i wonder..i thought it wouldnt turn on at all
[Fire TV Original Android Development] Donphillipe:
Can you hook a guy up?

Ok, the stick is apart and I see where to put the foil. I burned the ISO to USB memory stick and my laptop boots it to bring up a Linux based desktop. I have a very small OTG nodule that has a male micro USB on one end and a regular USB female on the other side. I have a 4 port non-powered USB hub. I cut two conventional USB/micro cables in half and soldered two USB regular size male cable ends together to make a male to male cable. What I've done so far is plug the male/male USB cable I made in one port of the hub and the other end in the device supplied 5V wall outlet. On the male end of the usb hub (1 male, 4 females conventional size USB) I plugged the hub male connector into the OTG and the micro end of the OTG into the stick. Now in the other ports of the hub I plugged in a mouse and keyboard to accompany the spliced one supplying power. So my stick powers up and I can use both the keyboard and mouse on the stick for normal operations.

Where does the laptop come into place and when do I do what with the mouse and keyboard? I've flashed a lot of phones before but used Windows and this is not making a lot of sense. Something regarding the hookup procedure is missing.

Do I connect the laptop directly to the stick, or do I use my male to male to connect the laptop USB to the OTG in the stick and regardless, does the laptop have enough to power the stick or must I keep some kind of wired connection alive between the USB bus and the wall 5V power supply? Thanks!
[Fire TV Original Android Development] Pretoriano80:
You don't need the OTG cable to unlock the stick, the connection to the PC must be done with the original USB cable.
[Fire TV Original Android Development] tune345:
Can you please take a picture of it ? I requested to know if this is possible few days back. I do have a 10 port usb hub which can be powered and have usb male to usb male cable but I think I left the micro usb to regular female usb adapter at work x_x if I join these 3 things together, I wonder if it work hmmm or blow the firestick....I ordered the OTG cable, should be here next week.

I want to take full backup from the twrp screen but need a mouse to swipe
[Fire TV Original Android Development] Donphillipe:
I don't have anything but a little square plastic OTG piece of plastic that should be available at most computer stores. It is one solid plastic piece that has a usb male micro on one end and a USB-A or large female USB on the other end. It is no larger than the smallest thumb drive you have seen. You need some kind of OTG to attach keyboards and "mice" to Android devices. So you might check your local computer hardware store to see if they have some form of OTG and you can work with that then today and not have to wait for your equipment to arrive (I am assuming the goal). So first consideration is to the get USB hub attached to the stick and most USB hubs consist of 1 USB male and several USB females attached in a plastic strip normally. The USB hub MALE must be plugged in some kind of OTG and that OTG must have a micro male on it by any combination of cables which plugs into the stick. OK at this point by plugging the hub male into the OTG large FEMALE USB and the OTG itself attached into the stick, you have your hub attached but no power. Now since if you pop open a USB hub you see the black (negative) and red (positive) or in some rarer cases the blue (negative) and brown (positive) wires are common throughout. So if you want to power the hub and the stick too, you need to provide power to the entire apparatus. Lucky thing is that the positive and negative is common all throughout everything including OTG, cables and USB Hub, so you inject the power anywhere you can. I am at an extreme remote location without access to Amazon or computer shops so I took the parts I had on hand and made do with them. It would have been most convenient if I possesed a powered hub because I could have just plugged in the hub and everything would power up. The hub wasn't powered and I did not have a male to male cable to bridge a wall 5V USB female into my equipment, so I took two USB male ends of other cables, cut them in half , stripped back the black/red wires and soldered them both together and that allowed me to plug one end of the male/male into the wall USB power adapter (charger) and the other end in an empty USB hub large female outlet which fed everything with power including stick, hub and mouse. And everything worked well. I did not hook up the yellow and green data wires of my male/male splice because I was only in it for the power and didn't want anything happening to the data wires as sometimes power supplies short the two data wires in the cable to signal the device it can use all the amps it needs and thus the device knows by these shorted data wires it's not dealing with the 500ma (1/2 amp) maximum output of e.g. a laptop USB port and can draw all the current it needs. Good luck.
[Fire TV Original Android Development] tinybilbo:
I think you've overcomplicated things...

I used this guide and rooted 2 firseticks in about half an hour..

https://xdaforums.com/fire-tv/orig-development/newbie-guide-how-to-unlock-bootloader-t4015273

I actually used windows, and ran the fireiso in VM (virtualbox).

I plugged the firestick to an external monitor but didn't connect it to any power source.

I ran the commands in the linux (fireiso) VM and then plugged the micro-usb (of the shorted firestick) into my PC (not power).

It was detected by windows, after which I attached it to VM and followed the onscreen instructions.

Basically you will need a PC (or laptop), and external monitor (if you want to see what's going on, although I don't think it's necessary), The fireiso as a bootable USB or in a VM, and a normal USB to microUSB cable (to connect the PC to the firestick).
[Fire TV Original Android Development] Donphillipe:
Things do get confusing, for instance the author of this post says initially:

:After kamakiri I would flash only magisk.zip + sideload the manager app with adb... and avoid any prerooted rom flashing until there is an update to a somewhat higher version (and the current 6.2.6.8v1 has that contact manufacturer error screen)."

And then later the narrative goes on to tell you to install it:

adb shell

twrp install /sdcard/mantis-6.2.6.8-rooted_r1.zip
[Fire TV Original Android Development] Donphillipe:
Got it unlocked and TWRP loaded - which options do I check to backup? System Image and Data along with Boot is selected. The ones not selected by default are System, Vendor, Vendor Image, Cache.

Also if one needs to restore, which are selected? Thanks!
[Fire TV Original Android Development] tune345:
that gave me a geek erection, thank you for writing it in details. i got motivated enought to finally unplug the usb hub i had plugged in from like 6+ years x_x so this one is where i can plug 10 USBs in and it has male usb as usual and on the side small female pin to plug power in. it just starts and gives me blue light when i plug that male regular usb into pc or power adapter so i guess that extra female pin on the side is for EXTRA power when needed since it can handle 10 regular male USBs.

So i plugged the hub in PC and plugged firestick in the hub to test. It didn't stay on, it would keep restarting because of low power so i plugged the hub in the phone charge plug and then firestick booted up normally. Next, i plugged in mouse in this same setup on the 2nd usb port without changing anything else, nothing ._. not even light on the mouse. so i restarted firestick into recovery hoping some sign of life on mouse, nothing ._. did same with just keyboard nothing ._. i guess this won't work since you said the hub needs to be plugged in the firestick.

Since i have the micro usb to female regular usb at work, i cannot complete this setup right now which i think is the only item i need in this setup?

Question: If i had the micro to usb adapter and if i plug the hub in the firestick with this adapter then all i need to do is power that usb hub by the plug on the side and if i plug mouse or keyboard, it will work ?
[Fire TV Original Android Development] ghostrecon21:
same here , I cannt unpack tz.img .

I am unable to unpack tz.img . does anyone know how to unpack tz.img ?
[Fire TV Original Android Development] Rortiz2:
You can't actually unpack TZ.img.

What are you trying to do with TZ.img?

Regards.
[Fire TV Original Android Development] ghostrecon21:
want to edit some stuff inside tz . tried many unpacker , but none seems to be working
[Fire TV Original Android Development] bird333:
How can you change the software number so that it won't take an update?
[Fire TV Original Android Development] Michajin:
with root, you can disable the app with with a pm disable command. But here is an old guide on how to change the software number in build.prop (i dont know why it would not still work), dont forget to back up before you tinker...

http://www.aftvnews.com/how-to-bloc...k-by-setting-a-custom-fire-os-version-number/
[Fire TV Original Android Development] jagler74:
How can I fix bootloop on Fire TV Stick 4k?

Yes, I installed com.google.android.gsm on my Fire TV Stick 4k. I'm stuck on bootloop right now. I have an USB otg cable but don't know how to boot into recovery mode. My stick is not modified and has no custom recovery installed. Does anyone have a suggestion?
[Fire TV Original Android Development] Michajin:
Try and unlock it. I don't know of a way to boot into recovery from stock at boot. Unless you get a ADB connection at all during the bootloop... If you get ADB you might be able to do a reboot into recovery command (adb reboot recovery). I have seen other trying to install play services and get bootlooped. But the unlock for this was still working last i knew.
[Fire TV Original Android Development] shaheen7m:
You definitely saved my day. I am banging my head on this for days. Definitely tey this now.. thanks
[Fire TV Original Android Development] bird333:
What's the difference between a 'hacked' bootloader and a normal one? BTW, thanks for this unlock. It took me a while to get the foil positioned right but I got it.
[Fire TV Original Android Development] Michajin:
Hacked bootloader is like having full fastboot options. Not that useful for most with TWRP. But good to have if you have a TWRP issue...
[Fire TV Original Android Development] bird333:
Thanks. That's what I was looking for.
[Fire TV Original Android Development] shaheen7m:
Is there any way to install play store on top of this?
[Fire TV Original Android Development] Michajin:
If you are unlocked and rooted it is likely possible. But you will disappointed with the offering apps... What are you looking to do with the playstore? fdroid is decent for most of the apps. There is really a limited amount of apps available for TV, and the store is horrible on restrictions for the TV versions. I have done this on a shield and a firestick (tank) it was horrible... IMO, but maybe i can suggest a alternate route...
[Fire TV Original Android Development] shaheen7m:
Its ok then. I thought it is useful.. I already rooted my FS
[Fire TV Original Android Development] shaheen7m:
Hi, Is there any way to get the original prime apk for FS? I believe i removed/disabled it accidentally.

Edit: Nevermind, sorted myself
[Fire TV Original Android Development] c3po_droid:
I've got an untouched stick in my shelf somewhere since its release, just for the case that a root method will come out somewhen :D

So it has still the original Release-Rom-version on it.

In case you are unsuccessful with retrieving the full-image, let me know how I could try to get it from my untouched one. I guess, since I never made the initial setup, ADB is not activated, hence logcat won't be possible to get the full image. But perhaps you will have an idea for the best way to activate adb for this purpose without getting an automatic update during initial setup wizard.

Just happy to see that root is possible finally :)

Best Regards
[Fire TV Original Android Development] sconnyuk:
You can activate ADB from within TWRP terminal:

mount data

echo -n 'mtp,adb' > /data/property/persist.sys.usb.config

mount system

echo '' >> /system/build.prop

echo '# Enable ADB' >> /system/build.prop

echo 'persist.service.adb.enable=1' >> /system/build.prop

echo 'persist.service.debuggable=1' >> /system/build.prop

echo 'persist.sys.usb.config=mtp,adb' >> /system/build.prop

I had to do this to activate ADB as I couldn't get into the home screen as my stick I have is blocked by Amazon. I also had to install magisk and magisk manager for root authorisation. However after doing this you still are required to give permission on screen to anything that connects to it, but I guess you could quickly do it and turn the stick off before it upgrades.
[Fire TV Original Android Development] c3po_droid:
Thank you for your guide!

How on earth did you manage to get Amazons attention to even block your device?!
[Fire TV Original Android Development] mrsweet1991:
I'm not sure if I'm overlooking something, but if you want to use a mouse when TWRP boots we will need a USB Hub as well as a USB OTG adapter right?

So glad the exploit has been found, I'm going to attempt mine later. Would love to get the Android TV OS on it
[Fire TV Original Android Development] sconnyuk:
I found these instructions elsewhere, as i had the same issue with a firestick v2.

No i didnt attract any attention from amazon myself, i bought this 4k stick along with 3 other v2 sticks in a joblot on e b a y and found out 2 were blocked by amazon.

Im trying still to get my 4k stick up and running, what i need is a full TWRP backup of a 4k stick after its been registered, therefore restoring that backup to my stick will get me straight to the homescreen, this way worked fine on the other v2 stick but trouble is ive no other 4k stick to make a backup with, this anything you could help with ?
[Fire TV Original Android Development] Sus_i:
Edit: No, you don't need a hub, only an otg cable. But it's useful if you want to connect more usb devices... :D
[Fire TV Original Android Development] c3po_droid:
How would that be supposed to work without an USB-OTG splitter cable with a Fire TV Stick 4k? It has only one micro usb port which is meant for powering the device. As soon as you only connect an USB hub to this Port, there will be no possibility to power it up. Hence you need an USB-OTG splitter where one usb port is used as power-in and the other as usb-hub-in/out. I don't see a way without usb-otg splitter.
[Fire TV Original Android Development] Sus_i:
You need an otg cable for sure. And if you want to control TWRP you need a mouse.

Question was if a usb hub is needed. ;) :p A hub is useful if you want to connect a mouse, keyboard and a usb storage stick, you could flash things, make backups with twrp...

Take a look at the question again: ;)

[MENTION=7728312]c3po_droid[/MENTION]

Thanks. I've corrected my misleading information ;)
[Fire TV Original Android Development] falldaemon:
super work. rx tx gnd the tips of the wires are broken are there any other solutions
[Fire TV Original Android Development] Rortiz2:
The points labeled in the photo are hardware broken in your stick?
[Fire TV Original Android Development] falldaemon:
Broken during assembly
[Fire TV Original Android Development] mrsweet1991:
Do we need to swipe to enable modifications in TWRP? I just booted into it first time but I don't see how we could swipe to allow using ADB commands?
[Fire TV Original Android Development] mrsweet1991:
Thanks, I followed those commands when I first booted into TWRP and was stuck on the "swipe to enable modifications" screen and everything went fine with installing Magisk 19.3 and then I used apps2fire to install Magisk Manager.. I'll have to run the commands to disable OTA updates as well.
[Fire TV Original Android Development] asislife20:
Anyone have a stock image, I tried installing gapps but had issues that didn't go away after a factory reset, so I restored the backup I made with twrp, but the stick just reboots to twrp every time.
[Fire TV Original Android Development] kigba:
Good afternoon. After opening the bootloader and executing the first script in the exploit, the stick turned into a brick. Now the stick is defined by Windows as Mediatek in the com port. In liveOS, the first script is launched without a needle - a simple cable connection and the script starts working. There is such a moment - the first procedure for running the script and closing the test point was not very successful. The ceramic capacitor has been damaged (removed). But! I know for sure that without this capacitor, the stick works for other owners. One way or another, the stick is half-dead. Is there a chance to restore the bootloader to boot into android?

P.S. The stick was exposed to the bootloader unlock procedure right out of the box. There was no first inclusion on the TV, there was no entrance to the Amazon account, adb debugging mode was not turned on.

Sorry for my English, I am writing here through an interpreter from Russian.
[Fire TV Original Android Development] Sus_i:
Can you take a picture from the damage?

Yeah, TWRP commandline works without that swipe :good:

If someone is going to use the mouse with TWRP, installing Magisk doesn't require a swipe "to enable modifications". As Magisk does a systemless install, you can keep the system read-only.

---------- Post added at 09:19 AM ---------- Previous post was at 09:06 AM ----------

No, that scripts can't turn your stick into a brick.

It's that broken electric component that renders your stick into a brick, as it always goes into bootrom now.

You can easily test this out. The first script finds your stick now without any short...

Don't know which of the points you shorted, but your ceramic capacitor is maybe/probably a resistor, idk.

:D That's impossible.

You see, your stick (and all others with that damage) goes always into bootrom. There isn't a way to boot system without a propper repair, i.e. soldering.

Can you take a photo from that damage?
[Fire TV Original Android Development] kigba:
Yes. There are photos. But I do not know how to attach them to the message. Now upload to the cloud...

Uppssss ... I can’t post links, still young :)

Spoiler content hidden.
[Fire TV Original Android Development] Sus_i:
Hmm, don't know :confused:,

Maybe encoded links with https://www.base64encode.net/ is a thing? You could post the result wrapped between code tags.

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

Ok. Thanks ;)

Can you measure that missing component or is it lost?
[Fire TV Original Android Development] kigba:
Of course lost. After the first unsuccessful attempt to install twrp, I repeated the procedure - nothing has changed. Only then he took a photo and in the enlarged image noticed the absence of a capacitor. It is so small that I could not find it. Nearby are the same capacitors, but it is impossible to measure their value on the board. After carefully cleaned the contacts so that there would be no short circuit. I measured it with a tester - there is no short circuit between the contacts. But the stick is stubbornly in "standby" mode
[Fire TV Original Android Development] Sus_i:
Yeah, I'm going to take a close look at mine, maybe later that day.

What do you think? Are you skilled enough to do a soldering repair? Do you have the needed tools?

OK. I've looked at the picture you pm'ed me.

That looks really bad! At least there are the two capacitors gone (near the rx/tx points, laterally from the QFN Package (the small black chip)). You can compare yours with the picture from that posting

First I would clean up all solder off (with a soldering iron and flux), to see if the pcb is damaged too.

And a word for clarification: To take the shield off, it isn't recommended to crack/cut the heatshields soldering all around the board. The shield is only clipped and comes easily off, if you carefully level from the side.
[Fire TV Original Android Development] ronaksworld:
You dont need any special cable if your on stock version, simply connect the device using Micro USB Cable from PC to device,

then using Command Prompt/PowerShell

adb kill-server

adb start-server

adb devices

adb shell pm list package

adb uninstall com.google.android.gms
[Fire TV Original Android Development] jagler74:
Fixed!

Connecting to a PC didn't work out for me. The device has been shown as "unauthorized". I used another USB keyboard and connected it via OTG cable to the Fire TV Stick 4K and me and my son pressed left Control key + ALT, right Function key and Option key + i + Print Scrn keys. The Stick started in "Save Mode" and I connected my android phone with the Stick via "Bugjaeger" app and deleted com.google.android.gms - fixed!
[Fire TV Original Android Development] Donphillipe:
I was using my stick normally, with AFTV tools loaded, leanback launcher and for over a week I've been watching movies from my home server via Kodi. All I did was simply to long press an icon to move it (the keymap one) and I went into a bootloop.

a) tried to restore from a backup of the original unlock and post-TWRP install; got error

"Failed to mount '/system' (Invalid argument)"

b) I completely re-applied the unlock procedure from scratch; this time after halting TWRP with cancel, the error I saw when trying to restore was

"Failed to mount '/vendor' (Invalid argument)" (/vendor instead of /system this time)

So according to this query:

https://xdaforums.com/showpost.php?p=81843717&postcount=4

I received the following suggestion:

I had the same problem in the past before, try flashing the original stock rom in TWRP and reboot. Rerun the exploit and push this zip file to the 4K Fire Stick.

Also if you're having problems pushing the zip, try adb shell, twrp sideload, then adb sideload (the zip file). It'll say copying system image unconditionally along with the vendor images so you shouldn't get the failed to mount vendor anymore and the brick will be gone

Question is, how is this accomplished? I've only used Install and Backup/Restore on TWRP before I downloaded the supposed original ROM but when I go int TWRP, sliding on the ADB sideload just puts me in a wait state. If I type in "adb devices" in the terminal window, it just says adb command not found.

I can't figure out how to a) have a USB mouse installed to stop TWRP and b) how to do the instructions underlined above.

Please help. I'd like to get my stick back after getting used to using it. Thanks!