FORUMS
Remove All Ads from XDA

FireTV 2 (sloane) Recovery [v6] - 3.0.0-5

1,609 posts
Thanks Meter: 2,103
 
By rbox, Recognized Developer on 6th February 2016, 11:09 PM
Post Reply Email Thread
It's finally here! Recovery for the Fire TV 2. This is based off of TWRP and the way versions will work is I will increment the last digit in the version as I make updates. So 3.0.0-1 is my first release based off of 3.0.0. The downloads will be numbered starting at v1, and at the bottom of the post it will explain what is contained within each version.


As usual, this WILL void your warranty and I am NOT responsible for anything you do with this. Installing it properly won't brick your Fire TV, but doing stupid things with it might.

Installing this requires root. If you are not rooted, please see my FireTV 2 Recovery Installer page.

Installation
  1. You can copy the files to /sdcard, a USB storage device, or an sdcard. I will be using /sdcard in the instructions, but you can replace it with /storage/usbotg for USB or /storage/sdcard1 for an sdcard.
  2. Copy the zip file to your destination.
  3. Connect adb
    Code:
    adb connect IPADDRESS
  4. Open an adb shell
    Code:
    adb shell
  5. Run the zip file (replace vX with the actual version you downloaded). This will automatically run su, so make sure to accept the prompt if necessary.
    Code:
    sh /sdcard/firetv2_recovery_vX.zip
  6. Reboot

Upgrade
You may repeat this to upgrade to a newer version, or you can install an updated pre-rooted rom, as I will be uploading new versions of those with every version of recovery.

Notes
This includes bootmenu. For everyone that loved the old FireTV 1 bootmenu with Comic Sans, I'm sorry to disappoint you, but the Comic Sans is gone. When the FireTV boots, it will present you with the bootmenu where you can leave it alone and it will boot normally or you can select recovery and it will boot in to recovery. You do need a USB keyboard to interact with the bootmenu. To force it to boot in to Recovery, you can create a file /cache/bootmenu_recovery.

DHCP for Ethernet is enabled, and if there is enough demand I may add in wifi at some point. The IP address should show up in the top left corner.

USB storage, USB keyboard/mice, and sdcards should all work. Hotplugging works, so you should be able to plug and unplug devices as needed.

You can use a USB keyboard, mouse, or the mouse emulator to interact with it. To use a keyboard, you can use the arrow keys to move the cursor and the enter key to select buttons. Sliders don't require sliding, so you can just hit enter/click on them. To use the mouse emulator, use adb shell and then run the program mouse and follow the instructions.

ROMs
Recovery must be included in all ROMs. If you want to develop a ROM, please contact me about including recovery in it.

Kernels
The bootloader is locked and you cannot flash kernels. If you do attempt to flash a kernel, you will brick it.

Installing zips
You can push zips to /sdcard, put it on a USB storage, put it on an sdcard, or use adb sideload. Do note you need adb version 1.0.32 to use adb sideload.


Stuck in a loop?
If you cannot boot normally and keep going back to the bootmenu, wipe Cache from Wipe -> Advanced Wipe.
If that doesn't work, ensure Cache is not mounted from in the 'Mount' menu and run this from an adb shell:
Code:
mke2fs /dev/block/platform/mtk-msdc.0/by-name/cache


Source Code
You can find the source code here:
https://github.com/androidrbox/sloane-2ndinit
https://github.com/androidrbox/andro...table_recovery

WARNINGS
  • It is extremely important you never reboot after a failure. This will most likely lead to a brick. If recovery is hung, you can use adb shell to run
    Code:
    killall recovery
    to restart it
  • It is also extremely important to never reboot after wiping /system.
  • If you wind up bricking, you must use the Unbrick Image to unbrick.


Finally, thanks to everyone who has donated to me and those that helped to get me my FireTV 2.

Changelog and Downloads:
  • April 8, 2016 - v6 (md5sum: 79c1a3efbac86618fa2cdbb4901fbd77)
    • This should prevent auto flashing amazon updates.
    • This includes 2ndinit version dee776 and TWRP version 3.0.0-5.
  • February 14, 2016 - v5 (md5sum: 16c957c86f1f61160e14a55819610707)
    • This should fix the problems certain keyboard were having in recovery.
    • This includes 2ndinit version dee776 and TWRP version 3.0.0-4.
  • February 12, 2016 - v4 (md5sum: 15c6d375607839cac4b186a2b68b8b0d)
    • This includes 2ndinit version 743aa4 and TWRP version 3.0.0-3.
      • These are just changes related to the unbricking image. No other functional changes.
  • February 8, 2016 - v3 (md5sum: b39a4dbe0c19080a97f602f37fda63ec)
    • This includes an updated script. You can now just run the zip instead of needing the zip and the script.
    • This includes TWRP 3.0.0-2.
      • Added a reboot recovery option in addition to reboot system. Now reboot system will reboot straight in to Android. Reboot recovery will reboot to the bootmenu.
      • Fixed restoring backups.
    • This includes the same version of 2ndinit.
  • February 7, 2016 - v2 (md5sum: 762621104d158d7ce4010bea725f7181)
    • This includes an automated script.
    • This has the same versions of 2ndinit and recovery as v1.
  • February 6, 2016 - v1 (md5sum: 7be673dd24489080eacdd0ad00feda51)
    • This comes with 2ndinit version fe3362 and recovery version 3.0.0-1
Attached Thumbnails
Click image for larger version

Name:	splash.png
Views:	39564
Size:	9.1 KB
ID:	3636645  
The Following 44 Users Say Thank You to rbox For This Useful Post: [ View ]
 
 
6th February 2016, 11:23 PM |#2  
AFTVnews.com's Avatar
Senior Member
Thanks Meter: 342
 
Donate to Me
More
Awesome work!
7th February 2016, 12:18 AM |#3  
Junior Member
Thanks Meter: 0
 
More
Will try immediately! Thanks for posting this on weekend
7th February 2016, 01:50 AM |#4  
deanr1977's Avatar
Senior Member
Flag lost somewhere.... Help
Thanks Meter: 315
 
More
Thankyou Rbox, i just saw this & its put a smile on my face. Just one question do you need to reblock the updates after recovery & root have been installed? Thanks
7th February 2016, 01:51 AM |#5  
OP Recognized Developer
Thanks Meter: 2,103
 
Donate to Me
More
Quote:
Originally Posted by deanr1977

Thankyou Rbox, i just saw this & its put a smile on my face. Just one question do you need to reblock the updates after recovery & root have been installed? Thanks

As long as you don't wipe data, updates remain blocked.
The Following 2 Users Say Thank You to rbox For This Useful Post: [ View ]
7th February 2016, 02:13 AM |#6  
deanr1977's Avatar
Senior Member
Flag lost somewhere.... Help
Thanks Meter: 315
 
More
Quote:
Originally Posted by rbox

As long as you don't wipe data, updates remain blocked.

I downloaded both the zips from the Github, im already rooted on the previously rooted software & updates are blocked, im not sure if to wait for AFTV News to do a guide or not, im clued up but not to ADB or Terminal savey so i gonna look at the readme & see if i should try it tonight? I rooted with the video guide before & it was a breeze, i know it sounds easy but want to do it right. Can you give me a little more info on connecting the ADB or Terminal please if you arnt busy?
7th February 2016, 02:16 AM |#7  
OP Recognized Developer
Thanks Meter: 2,103
 
Donate to Me
More
Quote:
Originally Posted by deanr1977

I downloaded both the zips from the Github, im already rooted on the previously rooted software & updates are blocked, im not sure if to wait for AFTV News to do a guide or not, im clued up but not to ADB or Terminal savey so i gonna look at the readme & see if i should try it tonight? I rooted with the video guide before & it was a breeze, i know it sounds easy but want to do it right. Can you give me a little more info on connecting the ADB or Terminal please if you arnt busy?

If you don't want to deal with adb, use the installer.
7th February 2016, 02:21 AM |#8  
deanr1977's Avatar
Senior Member
Flag lost somewhere.... Help
Thanks Meter: 315
 
More
Quote:
Originally Posted by rbox

If you don't want to deal with adb, use the installer.

Thanks mate, looking at this now. Will it delete any data on the system? Kodi, Amazon apps or External Sd card? Thanks in advance
7th February 2016, 02:22 AM |#9  
OP Recognized Developer
Thanks Meter: 2,103
 
Donate to Me
More
Quote:
Originally Posted by deanr1977

Thanks mate, looking at this now. Will it delete any data on the system? Kodi, Amazon apps or External Sd card? Thanks in advance

Installing recovery and roms does nothing to data.
The Following User Says Thank You to rbox For This Useful Post: [ View ]
7th February 2016, 02:29 AM |#10  
Senior Member
Thanks Meter: 42
 
More
Quote:
Originally Posted by rbox

It's finally here! Recovery for the Fire TV 2. This is based off of TWRP and the way versions will work is I will increment the last digit in the version as I make updates. So 3.0.0-1 is my first release based off of 3.0.0. The downloads will be numbered starting at v1, and at the bottom of the post it will explain what is contained within each version.


As usual, this WILL void your warranty and I am NOT responsible for anything you do with this. Installing it properly won't brick your Fire TV, but doing stupid things with it might.

Installing this requires root. If you are not rooted, please see my FireTV 2 Recovery Installer page.

Installation
  1. Copy the contents of the zip to /sdcard on your FireTV.
  2. Remount /system as read-write
    Code:
    mount -o remount,rw /system
  3. Make the /system/recovery directory
    Code:
    mkdir /system/recovery
  4. Copy 2ndinitstub
    Code:
    cp /sdcard/2ndinitstub /system/bin/ext4_resize
  5. Copy 2ndinit
    Code:
    cp /sdcard/2ndinit /system/recovery/
  6. Copy the recovery ramdisk
    Code:
    cp /sdcard/ramdisk-recovery.cpio /system/recovery/
  7. Remount /system as read-only
    Code:
    mount -o remount,ro /system

Upgrade
You may repeat this to upgrade, but it is easier to just install a new pre-rooted rom. Every update for recovery I will make a new rom.

Notes
This includes bootmenu. For everyone that loved the old FireTV 1 bootmenu with Comic Sans, I'm sorry to disappoint you, but the Comic Sans is gone. When the FireTV boots, it will present you with the bootmenu where you can leave it alone and it will boot normally or you can select recovery and it will boot in to recovery. You do need a USB keyboard to interact with the bootmenu. To force it to boot in to Recovery, you can create a file /cache/bootmenu_recovery.

DHCP for Ethernet is enabled, and if there is enough demand I may add in wifi at some point. The IP address should show up in the top left corner.

USB storage, USB keyboard/mice, and sdcards should all work. Hotplugging works, so you should be able to plug and unplug devices as needed.

You can use a USB keyboard, mouse, or the mouse emulator to interact with it. To use a keyboard, you can use the arrow keys to move the cursor and the enter key to select buttons. Sliders don't require sliding, so you can just hit enter/click on them. To use the mouse emulator, use adb shell and then run the program mouse and follow the instructions.

ROMs
Recovery must be included in all ROMs. If you want to develop a ROM, please contact me about including recovery in it.

Kernels
The bootloader is locked and you cannot flash kernels. If you do attempt to flash a kernel, you will brick it.

Installing zips
You can push zips to /sdcard, put it on a USB storage, put it on an sdcard, or use adb sideload. Do note you need adb version 1.0.32 to use adb sideload.

Source Code
You can find the source code here:
https://github.com/androidrbox/sloane-2ndinit
https://github.com/androidrbox/andro...table_recovery

Finally, thanks to everyone who has donated to me and those that helped to get me my FireTV 2.

Changelog and Downloads:
  • Februrary 6, 2016 - v1 (md5sum: 7be673dd24489080eacdd0ad00feda51)
    • This comes with 2ndinit version fe3362 and recovery version 3.0.0-1

the commands are entered through adb correct......Also, once recovery is installed can I flash either of your pre-rooted roms or do I have to flash the version I'm currently on....i.e. if I'm on 5.0.4 I can only flash 5.0.4
thanks again for your great work!
7th February 2016, 02:30 AM |#11  
OP Recognized Developer
Thanks Meter: 2,103
 
Donate to Me
More
Quote:
Originally Posted by dk1keith

the commands are entered through adb correct......Also, once recovery is installed can I flash either of your pre-rooted roms or do I have to flash the version I'm currently on....i.e. if I'm on 5.0.4 I can only flash 5.0.4
thanks again for your great work!

Yes adb shell. You can flash either version.
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes