[Fire TV Android Development] LocoMexican:
The new script starts out with:

# This is my shared folder where I put backups and the zip files, i.e. usb stick...

UNLOCKED="yes"

Before, I was working on a bricked device which actually had an unlocked bootloader. The one I'm looking at now is a stock FTV, so I'm pretty sure the bootloader is locked instead of unlocked. Should I change this on the new script to show Locked=yes? Also, the FTV I'm working on shows up as having 5.2.6.9 and NOT 5.2.7.0. I changed this in your posted script, and downloaded and unzipped Rbox's pre-rooted 5.2.6.9 zip file. I then unzipped it as before so the Folder has the correct file. Are there any other changes I need to make regarding the current firmware? Thanks again for your help.

---------- Post added at 02:06 AM ---------- Previous post was at 01:07 AM ----------

I ran the script without changing the "locked" unlocked" question, but making the changes regarding the version number 5.2.6.9. Here are the results.

sudo apt install dos2unix

Reading package lists... Done

Building dependency tree

Reading state information... Done

3 packages can be upgraded. Run 'apt list --upgradable' to see them.

locomex12@locomex12-Presario-C700-Notebook-PC:~/Desktop/Folder$ sudo apt install dos2unix

Reading package lists... Done

Building dependency tree

Reading state information... Done

dos2unix is already the newest version (6.0.4-1).

The following packages were automatically installed and are no longer required:

libllvm5.0 snapd-login-service

Use 'sudo apt autoremove' to remove them.

0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

locomex12@locomex12-Presario-C700-Notebook-PC:~/Desktop/Folder$ sudo apt install pv

Reading package lists... Done

Building dependency tree

Reading state information... Done

pv is already the newest version (1.6.0-1).

The following packages were automatically installed and are no longer required:

libllvm5.0 snapd-login-service

Use 'sudo apt autoremove' to remove them.

0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.

locomex12@locomex12-Presario-C700-Notebook-PC:~/Desktop/Folder$ sudo dos2unix sdat2img.sh

dos2unix: sdat2img.sh: No such file or directory

dos2unix: Skipping sdat2img.sh, not a regular file.

locomex12@locomex12-Presario-C700-Notebook-PC:~/Desktop/Folder$ sudo chmod u+x sdat2img.sh

chmod: cannot access 'sdat2img.sh': No such file or directory

locomex12@locomex12-Presario-C700-Notebook-PC:~/Desktop/Folder$ sudo chmod u+x sdat2img.py

locomex12@locomex12-Presario-C700-Notebook-PC:~/Desktop/Folder$ sudo ./locked.shUnmounting system...Done.

1572864+0 records in3MiB/s] [================================> ] 99% ETA 0:00:00

1572864+0 records out

805306368 bytes (805 MB, 768 MiB) copied, 129.324 s, 6.2 MB/s

768MiB 0:02:09 [5.94MiB/s] [================================>] 100%

1572864+0 records in

ecords out

805306368 bytes (805 MB, 768 MiB) copied, 129.322 s, 6.2 MB/s

Done.

Unmounting recovery...umount: /dev/disk/by-partlabel/recovery: not mounted

Done.

20480+0 records in5.9MiB/s] [====================> ] 64% ETA 0:00:00

20480+0 records out

10485760 bytes (10 MB, 10 MiB) copied, 1.66419 s, 6.3 MB/s

10MiB 0:00:01 [6.02MiB/s] [=================================] 107%

20480+0 records in

20480+0 records out

10485760 bytes (10 MB, 10 MiB) copied, 1.66452 s, 6.3 MB/s

Done.

Unmounting boot...umount: /dev/disk/by-partlabel/boot: not mounted

Done.

20480+0 records in.89MiB/s] [==============================> ] 94% ETA 0:00:00

20480+0 records out

10485760 bytes (10 MB, 10 MiB) copied, 1.66416 s, 6.3 MB/s

10MiB 0:00:01 [6.01MiB/s] [=================================] 158%

20480+0 records in

20480+0 records out

10485760 bytes (10 MB, 10 MiB) copied, 1.66347 s, 6.3 MB/s

Done.

Clearing cache...mke2fs 1.42.13 (17-May-2015)

/dev/disk/by-partlabel/cache contains a ext4 file system

last mounted on /cache on Fri Aug 23 17:49:49 2019

Proceed anyway? (y,n) y

Creating filesystem with 196608 4k blocks and 49152 inodes

Filesystem UUID: 27b1008c-5e0a-4c62-b2eb-af2b16921939

Superblock backups stored on blocks:

32768, 98304, 163840

Allocating group tables: done

Writing inode tables: done

Creating journal (4096 blocks): done

Writing superblocks and filesystem accounting information: done

Done.

Mounting system...

Installing TWRP...

Chmodding and chconing RECOVERY...

Symlink e2fsck to 2ndinitstub...

Installing SU...

Unmounting system...

Done

locomex12@locomex12-Presario-C700-Notebook-PC:~/Desktop/Folder$

I'm going to unwire everything and see what it looks like. I think it worked. Will let you know. Thanks again.