• If you are experiencing issues logging in, we moved to a new and more secure software and older account passwords were not able to be migrated. We recommend trying to reset your password, then contacting us if there are issues.
  • Nearly done! Migration cleanup is mostly done. There are a small number of issues left that we continue to work on, but all the heavy lifting is done. We still would love to hear feedback over at this thread and also check out the new XDA app! Thanks and we hope you enjoy the new forums, and thanks for your support of XDA <3

[ROM][locked][sloane]Lineage-12.1 [9 DEC 2019]

Rortiz2

Elite Member
Mar 1, 2018
1,932
1,107
113
Barcelona
DISCLAIMER:
We are not responsible for any damage, bootloop, bricked or broken devices and Relationships.
Needs TWRP installed. If system can't be rooted, refer here. If it's rooted, use rbox's recovery installer.
This is an LineageOS 12.1 build for Amazon TV 2 (aka sloane).

It's needed to flash SuperSU, if you don't do it, the device will brick!

Issues:
  • HW Decoding (Netflix).
  • G-APPS Not tested.
  • USB Not working. Keyboard/Mouse.
  • Dadydream aka Screensaver.

Installation:
  • Reboot to recovery
  • Adb push rom to /sdcard/
  • Wipe dalvik cache, cache, data
  • adb shell
  • twrp wipe data
  • twrp wipe cache
  • twrp wipe dalvik
  • Flash Rom:
    Code:
    twrp install /sdcard/lineage-12.1-xxxxxxxx-UNOFFICIAL-sloane.zip
  • FLASH SUPERSU. VERY IMPORTANT!

Quote:
Since remote disconnetcs at every reboot, you will be forced to pair it at every boot. To do it, when Wi-Fi direct screen appears, start pressing home button 15-20 secs. The TV will press automatically to the remote. If the pair fails, reboot to try again.
Quote:
It's recommended to copy your adb keys to data partition for use adb in case of something goes wrong:
https://stackoverflow.com/questions/26213954/how-to-solve-adb-device-unauthorized-in-android-adb-host-device/36507415
Quote:
Since this ROM is optimized for TV 2, this ROM uses LeanBack Launcher, LeanBack IME and TVSettings intsead of CM Launcher, AOSP Keyboard and CMSettings.
Thanks:
  • @rbox TWRP
  • @MSe1969 for the lineageos-12.1 sources
  • @diego_cr @t0x1cSH @novatillo and @Kaijones23 for the big help with the ROM.
  • @ggow for the mt8173-common tree
  • @Goayandi for the mt8173 resources
  • LineageOS team

Source Code:

Download:
Please don't mirror!

XDA:DevDB Information
Lineage OS 12.1 Amazon Fire TV 2 (sloane), ROM for the Amazon Fire TV

Contributors
Rortiz2, DanielF50
ROM OS Version: 5.1.x Lollipop
ROM Kernel: Linux 3.10.x
ROM Firmware Required: TWRP
Based On: LineageOS

Version Information
Status: Alpha
Beta Release Date: 2019-12-09

Created 2019-12-09
Last Updated 2020-02-08
 

Attachments

Last edited:

Rortiz2

Elite Member
Mar 1, 2018
1,932
1,107
113
Barcelona
Changelog

2019-25-09
  • Succsefully paired Wi-Fi Direct Remote.
  • Merge bluetooth version and Wi-Fi Direct version.

2019-13-09
  • This is a bluetooth build. Old remotes using Wi-Fi direct will not work with this build.
  • Updated security patches to December 2019.
  • LineageOS updates.

2019-12-09
  • Initial release.
Release notes
  • OMX is partially working. Software decoding is working (i.e: Kodi) but Hardware decoding is not working (i.e: Netflix).
  • Keyboard and mouse can be enabled if you disable ADB.
  • The remote needs to be paired at every boot. The ROM already implements a script that starts Wi-Fi direct activity at boot so you can automatically pair it.
  • Didn't tested G-APPS. Probably need same workaround as tank.
  • ROM will take a bit to boot due libaudiocustparam.so errors.
  • Needs SuperSU in order to boot.
  • Yes, you can use bluetooth remotes for control the device. (i.e: Fire TV Stick remote).
  • That's all, enjoy the ROM.
 
Last edited:

Rortiz2

Elite Member
Mar 1, 2018
1,932
1,107
113
Barcelona
FAQ

1. The ROM doesn't seems to be booting. Help please!
- As I said, a lib used to get sound working, is constantly crashing with NVRAM so that's causing this long time booting.
- Also, we are using a pretty dirty method to disable SELinux so that may be other reason of the slow boot process.
- If you stuck more than 10 mins, it's not a lib/SELinux "issue". Reboot to get bootmenu, boot TWRP and install the ROM + SuperSU again.

2 Help, I didn't flashed SuperSU!
- I advised you... Anyway, if you're lucky and you can reach boot menu, just flash the SuperSU zip.
- If you can't access boot menu and you don't have adb access, you're pretty f*** up;) Use my method to unbrick and start the process again.

3. How we are booting a custom ROM with a locked bootloader?
- Since our bootloader neither boot.img checks for system partition, we can flash a different system partition.
- Also, we are using stock boot.img from Amazon's update.bin so we aren't triggering the kernel check stage.
- Obviously, we need permissive SELinux, that is possible by a modified 2ndinit that disables SELinux at boot.

4. How I can install G-APPS?
- As I said, G-APPS are not tested. Give a try to the tank's method and report back how it goes:)

5. I flashed a custom kernel/Magisk boot.img and now the device stucks in the Amazon Logo (aka why I can't install Magisk).
- Bootloader still locked. You can't boot unsigned boot images/recovery images. Refer to my unbrick thread to recover your bricked device.

6. Remote got disconnected, how I can reconnect it?
- Reboot and wait until it booted. When you see the home screen, press the home button 15 secs until it gets paired again.
- I'm still working on fixing ozwpan issues..

7. Does the ROM includes rbox's boot menu?
- Obviously lol. Without it we can't boot the ROM neither access TWRP in case of something goes wrong.
 
Last edited:

CFKod

Senior Member
Jun 23, 2016
262
77
28
Cardiff
Great work dude. A tip tor everyone is simply backup system and data in TWRP of both fire os and then this rom and you can seemlessly but slowly switch between the two (if ever required)

Dualboot would be nice hahaha
 
  • Like
Reactions: Rortiz2

Rortiz2

Elite Member
Mar 1, 2018
1,932
1,107
113
Barcelona
Great work dude. A tip tor everyone is simply backup system and data in TWRP of both fire os and then this rom and you can seemlessly but slowly switch between the two (if ever required)

Dualboot would be nice hahaha
Thanks:)
Yeah, agreed, dualboot would be nice but we need SafeStrap for that ;)
Regards.
 

DanielF50

Senior Member
Jul 22, 2010
374
109
43
Hampshire, England
Hell yeah, it's up! Awesome work dude! :D

Side note: it would be cool if anyone could let us know if the WiFi direct remote fix is working for them?

The fix works for me, but when remote goes to sleep after being idle for too long I have to manually reconnect it, which is a bit of a hassle as involves a few adb commands to get to the correct settings menu.

In an ideal world, we would be using ozwpan (I think?) to store the remote's SSID & reconnect automatically upon a keypress (like Amazon does), but unfortunately I don't seem to be able to get ozwpan to write to to /sys/class/, so unless someone with more knowledge on the subject can weigh in on this matter (any Shield TV devs here? :p), we will probably have to use the current method until someone figures out how to unlock the bootloader.

If reconnecting is an issue, I'm sure @Rortiz2 could probably include a script that reconnects automatically (like init.fosflags.sh does), but it'd probably have to be manually triggered from an adb shell command.
 
Last edited:
  • Like
Reactions: Rortiz2

CFKod

Senior Member
Jun 23, 2016
262
77
28
Cardiff
If reconnecting is an issue, I'm sure @Rortiz2 could probably include a script that reconnects automatically (like init.fosflags.sh does), but it'd probably have to be manually triggered from an adb shell command.
Good shout dude. I'd say Tasker can do that... Ie. When awoken from sleep, run adb command
 

brick00444

Senior Member
Nov 24, 2018
165
31
28
I have installed the rom fine but can not get remote to pair. I can see it in the searching for accessories screen then it goes to a settings screen. Then I can not do anything. I have tried 3 different remotes. Maybe I'm missing something but I think I'm following the instructions fine. I wait for the searching for accessories screen then hold the home key for 15-20 seconds, the remote shows up then after about 10 seconds it goes to settings screen and I can't do anything. How can I connect through ADB? Thank you for any help.
 

Rortiz2

Elite Member
Mar 1, 2018
1,932
1,107
113
Barcelona
I have installed the rom fine but can not get remote to pair. I can see it in the searching for accessories screen then it goes to a settings screen. Then I can not do anything. I have tried 3 different remotes. Maybe I'm missing something but I think I'm following the instructions fine. I wait for the searching for accessories screen then hold the home key for 15-20 seconds, the remote shows up then after about 10 seconds it goes to settings screen and I can't do anything. How can I connect through ADB? Thank you for any help.
Hi. Are you using sloane's remote?
It shouldn't show up at the first screen... It should show up at that Settings Screen (Wi-Fi Direct screen).
Regards.
 

brick00444

Senior Member
Nov 24, 2018
165
31
28
Hi. Are you using sloane's remote?
It shouldn't show up at the first screen... It should show up at that Settings Screen (Wi-Fi Direct screen).
Regards.
To be honest I'm not sure if it is the original remote. Is the original remote the little one? I'm using model-PE59CV