[ROM][UNOFFICIAL][11] LineageOS 18.1 for Fire TV Stick Lite/3rd gen (sheldon/p)

Search This thread

katyS

New member
Mar 21, 2008
1
1
Has anyone been able to connect bluetooth hids? I'm having trouble connecting bt mouse. I can see mouse and select it to pair, but after a while it just says unable to pair
 
  • Like
Reactions: Tech0308

dony71

Senior Member
Dec 1, 2010
287
15
If you have root you can modify the remote kl file of your device. For instance Netflix vol up and internet vol down.
Find the proper kl file in /vendor/usr/keylayout and edit. For example
# App Keys
#key 744 BUTTON_1 WAKE
key 745 BUTTON_2 WAKE
key 746 BUTTON_5 WAKE
#key 747 ALL_APPS WAKE

key 744 VOLUME_UP
key 747 VOLUME_DOWN

put # to comment out other references to that key
do you know which *.kl file for sheldonp fire tv stick 3rd gen remote ? (remote with alexa button, tv on/off, tv volume and 4 dedicated apps button for prime video, netflix, disney+ and hulu(
 

Srikanth008

Member
May 16, 2022
14
1
1607247455067-png.5435845

LineageOS is a free, community built, aftermarket firmware distribution of Android 11, which is designed to increase performance and reliability over stock Android for your device.

LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.
Instructions:
  • Reboot to recovery mode
  • Wipe data, system (/system_root) and cache
  • Flash the ROM and the Gapps
  • Reboot and enjoy!
Downloads:
Reporting Bugs:
  • DO NOT Report bugs if you're running a custom kernel or you installed Xposed
  • Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
  • If it is a random reboot, grab /proc/last_kmsg. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
Known issues:
  • Netflix crashes after a movie is played, a reboot is needed to play another (memory allocation)
Notes:
  • SELinux is in Permissive mode
  • The ROM supports both sheldon (Fire TV Stick Lite) and sheldonp (Fire TV Stick 3rd gen)
How do i...
  • Unlock and install TWRP?
  • Go back to the original/stock ROM?
    • Download the stock update.bin (sheldon | sheldonp) and flash it using TWRP
Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.

Code:
What is your--
LineageOS version:
LineageOS Download url:
Gapps version:

Did you--
wipe:
restore with titanium backup:
reboot after having the issue:

Are you using--
a task killer:
a non-stock kernel:
other modifications:

Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:

Contributors
R0rt1z2, k4y0z, t0x1cSH, diegocr
Source Code: https://github.com/mt8695
Kernel source: https://github.com/mt8695/android_kernel_amazon_mt8695
Any eta on next update? Thank u so much for work which made us get rid of amazon bloat.
 

minorj

New member
Oct 24, 2020
4
0
Hi, thanks for your work.
I just finished installing your latest build on the Lite version but I have two problems:

1) I don't have volume buttons on my remote and I'm using a PC monitor with builtin speakers (but no HDMI-CEC) at the moment. Can I somehow control the volume from the Fire TV instead of using the physical buttons on the monitor? Is there some sort of internal volume I can increase?
EDIT: i just read the previous messages so I guess the answer currently is no

2) I'm trying to use an app called "Mediaset Infinity TV", which is a popular app here in Italy that allows you to watch the live channels of this television network and some on demand content (package ID: it.mediaset.infinitytv). The one from the Amazon Store was working fine with the stock ROM, but now that I installed LineageOS the one from the Play Store isn't (it does not crash, but a generic error message appears in the app itself indicating that it cannot be opened). So I thought that it might be useful to investigate its behavior as I have the impression that the Fire TV is not being detected as a real TV by the checks made by this application and that maybe solving it will solve any other problems of other similar applications. Are you currently interested in solving this type of problem? If so, can I collect (how?) any logs or useful data for you? I think you would make many people in the Italian community happy by doing it, including me

Thanks.
Hi, I have some updates for the second problem.

I decided to take a look at the logcat while running that application and I discovered something interesting. There was no obvious error thrown by the application, but only a particular line that said:
Code:
05-24 11:24:05.446  5377  5377 I chromium: [INFO:CONSOLE(2)] "android.provider.Settings$SettingNotFoundException: limit_ad_tracking", source: https://static1.mediasetplay.mediaset.it/app/ctv/android_tv/chunks/vendors.eb1dd13ac2ff30589363.js (2)
From what I understand, the Fire TV is obviously still recognized as an Amazon device and not a Google device, so the application will apply the rules described on this page, which states that if the property "limit_ad_tracking" isn't found, the SettingNotFoundException is thrown.
At this point I thought it would be useful to analyze the application code and in fact I found this:
code.PNG
which then I modded into a fixed 1 (true value) just to give it a try:
codeM.jpg
and now the application works just fine!

So, I am wondering: why can't the property be found? What is this OS missing that the stock OS had to correctly retrieve this property? Is it something you can fix?

Thanks.
 
Last edited:

Rortiz2

Senior Member
Mar 1, 2018
2,448
1,855
Barcelona
Hi, I have some updates for the second problem.

I decided to take a look at the logcat while running that application and I discovered something interesting. There was no obvious error thrown by the application, but only a particular line that said:
Code:
05-24 11:24:05.446  5377  5377 I chromium: [INFO:CONSOLE(2)] "android.provider.Settings$SettingNotFoundException: limit_ad_tracking", source: https://static1.mediasetplay.mediaset.it/app/ctv/android_tv/chunks/vendors.eb1dd13ac2ff30589363.js (2)
From what I understand, the Fire TV is obviously still recognized as an Amazon device and not a Google device, so the application will apply the rules described on this page, which states that if the property "limit_ad_tracking" isn't found, the SettingNotFoundException is thrown.
At this point I thought it would be useful to analyze the application code and in fact I found this:
which then I modded into a fixed 1 (true value) just to give it a try:
and now the application works just fine!

So, I am wondering: why can't the property be found? What is this OS missing that the stock OS had to correctly retrieve this property? Is it something you can fix?

Thanks.
Yes, I remember having problems with some streaming media apps when both ro.product.manufacturer and ro.product.brand were Amazon. I'll fix it in the next build. In the meantime, you can try setting these properties to amzn.​
 

minorj

New member
Oct 24, 2020
4
0
Yes, I remember having problems with some streaming media apps when both ro.product.manufacturer and ro.product.brand were Amazon. I'll fix it in the next build. In the meantime, you can try setting these properties to amzn.​
Thanks for the suggestion, now the stock application works as before. However, I don't know if it's the best way to do this but I edited those properties by adding them to the build.prop file using adb while beeing in twrp
 
Oct 23, 2007
12
0
cosenza
Hi, I'm still having trouble with the volume keys on the voice remote. I can't even go back to the stock firmware as after the flash the Fire Tv logo appears and it doesn't go forward.

Salve, ho ancora problemi con i tasti del volume del telecomando vocale. Non riesco nemmeno a tornare al firmware stock in quanto dopo il flash compare il logo Fire Tv e non va avanti.
 

tweakradje

Senior Member
This problem (with exoplayer) looks very similar to our Netflix problem. Also on Amazon Mediatek. https://github.com/amzn/exoplayer-amazon-port/issues/105
2020-07-03 17:49:06.417 251-1527/? E/ion: ioctl c0144900 failed with code -1: Out of memory
2020-07-03 17:49:06.417 251-1527/? E/IMGSRV: :0: MTKGenericAlloc: Allocating memory via ion heap_id_mask=0x2000 size(15716480) failed (Out of memory)

I tried to switch from GL to Vulkan but that doesn't work: debug.hwui.renderer=skiavk (default is skiagl)
I will try renderthread.skia.reduceopstasksplitting=false

Is anyone still working on this?

Cheers

EDIT: Netflix Ninja workaround: if video doesn't play, press HOME, press Netflix (still active) and play again. So no need to close Netflix.
 
Last edited:
Jul 20, 2014
7
1
Niterói
Hello everyone
I installed the ROM a few weeks ago, everything was working fine, all the apps and such. For some reason, this week, Netflix and prime video are not streaming. Netflix throws an error Code (tvq-pb-101) that appears related to the known issue, but I tried restarting the stick, turning it off, uninstall Netflix and it didn't fix it. Prime video does not give an error code. YouTube works fine. Any idea other than wiping all and reflashing the ROM?
 

fausti1981

New member
Aug 7, 2014
3
0
first of all thank you

I follow the tutorial as explained

but reached point 6

TWRP menu appears on my screen

I can't navigate through the tv menus the remotes don't work

I am doing something wrong?


thank you very much and sorry for my translation
 

ozfunghi

Member
Jun 6, 2016
17
10
first of all thank you

I follow the tutorial as explained

but reached point 6

TWRP menu appears on my screen

I can't navigate through the tv menus the remotes don't work

I am doing something wrong?


thank you very much and sorry for my translation
See if my post can help:
 

Top Liked Posts

  • There are no posts matching your filters.
  • 5
    @Rortiz2 thank you for making this rom for the sheldon/p devices, do you think an unofficial LineageOS 19.1 be in the works at some point? Again thank you for your hard work getting this rom pushed out for our devices!!
    Sure thing. But I'd like to fix all remaining issues here first. Once Netflix gets fixed and I switch to Enforcing (currently working on this), I'll move on to a newer version of Android.​
    3
    Sure. Flashed is your latest release, paired with gapps stock instead of mini and no Magisk.
    AFTVS appears on cast list from iOS and Android devices (I've used "Android TV" name instead).
    On iOS I get "Dispositivo no confiable", and on Android phones I get a similar error along "No se pudo verificar AFTVS. Esto puede deberse a que el firmware del dispositivo está desactualizado".

    Flashing Mini instead of Stock (and installing Chromecast on Playstore), the device rarely appears on any cast list.
    On stock at least it is always listed.
    I've been playing around with cast for two weeks now, but I couldn't get it to work. They seem to do a server side check, which in our case, fails because we're missing a cert.​
    Code:
    05-17 22:36:12.542 10219 10670 E LoadCastServiceInfoTask: org.json.JSONException: No value for sign
    05-17 22:36:12.542 10219 10670 E LoadCastServiceInfoTask:     at org.json.JSONObject.get(JSONObject.java:400)
    05-17 22:36:12.542 10219 10670 E LoadCastServiceInfoTask:     at org.json.JSONObject.getJSONObject(JSONObject.java:620)
    05-17 22:36:12.542 10219 10670 E LoadCastServiceInfoTask:     at lwc.a(PG:4)
    05-17 22:36:12.542 10219 10670 E LoadCastServiceInfoTask:     at lwd.call(PG:20)
    05-17 22:36:12.542 10219 10670 E LoadCastServiceInfoTask:     at dxq.a(Unknown Source:2)
    05-17 22:36:12.542 10219 10670 E LoadCastServiceInfoTask:     at tpt.call(PG:2)
    05-17 22:36:12.542 10219 10670 E LoadCastServiceInfoTask:     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    05-17 22:36:12.542 10219 10670 E LoadCastServiceInfoTask:     at rvz.run(PG:1)
    05-17 22:36:12.542 10219 10670 E LoadCastServiceInfoTask:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    05-17 22:36:12.542 10219 10670 E LoadCastServiceInfoTask:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    05-17 22:36:12.542 10219 10670 E LoadCastServiceInfoTask:     at rvd.run(PG:2)
    05-17 22:36:12.542 10219 10670 E LoadCastServiceInfoTask:     at rvl.run(PG:4)
    05-17 22:36:12.542 10219 10670 E LoadCastServiceInfoTask:     at java.lang.Thread.run(Thread.java:923)
    05-17 22:36:12.542 10219 10670 W LoadCastServiceInfoTask: Failed to get cast id and certificate from cast service.
    05-17 22:36:13.584 10219 10670 E LoadCastServiceInfoTask: error parsing cast info Json {"device_info":{"4k_blocked":0,"capabilities":{"audio_hdr_supported":false,"audio_surround_mode_supported":false,"cast_connect_supported":true,"cloudcast_supported":true,"display_supported":true,"fdr_supported":false,"hdmi_prefer_50hz_supported":false,"hdmi_prefer_high_fps_supported":false,"hotspot_supported":false,"https_setup_supported":true,"keep_hotspot_until_connected_supported":true,"opencast_supported":false,"reboot_supported":false,"renaming_supported":true,"set_group_audio_delay_supported":true,"setup_supported":false,"stats_supported":false,"system_sound_effects_supported":false,"wifi_auto_save_supported":true,"wifi_supported":false},"cloud_device_id":"0D724A60085948F17234B7B8F0C8F5FE","factory_country_code":"","hotspot_bssid":"FA:8F:B6:E3:49:F9","mac_address":"00:00:00:00:00:00","manufacturer":"Amazon","model_name":"AFTSS","product_name":"sheldon","public_key":"MIIBCgKCAQEAlOxTisYMRMdD9UtHvPwd+9iLetLYnbnrplbcqI\/9kyPlCbDLd1NOeer7qJOZXLz7ds9sktVqpJTubI83rFBd8HPUMNkgF9z1wA0VFpyCf4PamohZL6D84d5goF3dZa7\/XPnfxLe5ywcuZFzROyt9u4uAc8eJbiLFv3ZCOg8NRVicA6IVbWH0fh4LDTcF7TBnL1n93HMUcvgBeJfgysWdfhTJd5BNuPdyz+NAiyXX5jD0xyALjJDJReld3duByjvEp2RPutdfjWwTq1q2SDwbpAjljeG6Op4xNSrx3q+i7f+GTfCa8nO5S7pv3biIKnfW0g2dWL1HO8jiA8UB4FhEJQIDAQAB","ssdp_udn":"4a2f94d4-009d-cbca-d4f0-51799dc4585e","uma_client_id":"8d0bc130-5d40-46a2-83d2-587b9c1b3569","uptime":6748.632514,"weave_device_id":""}}
    05-17 22:36:13.584 10219 10670 E LoadCastServiceInfoTask: org.json.JSONException: No value for sign
    05-17 22:36:13.584 10219 10670 E LoadCastServiceInfoTask:     at org.json.JSONObject.get(JSONObject.java:400)
    05-17 22:36:13.584 10219 10670 E LoadCastServiceInfoTask:     at org.json.JSONObject.getJSONObject(JSONObject.java:620)
    05-17 22:36:13.584 10219 10670 E LoadCastServiceInfoTask:     at lwc.a(PG:4)
    05-17 22:36:13.584 10219 10670 E LoadCastServiceInfoTask:     at lwd.call(PG:20)
    05-17 22:36:13.584 10219 10670 E LoadCastServiceInfoTask:     at dxq.a(Unknown Source:2)
    05-17 22:36:13.584 10219 10670 E LoadCastServiceInfoTask:     at tpt.call(PG:2)
    05-17 22:36:13.584 10219 10670 E LoadCastServiceInfoTask:     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    05-17 22:36:13.584 10219 10670 E LoadCastServiceInfoTask:     at rvz.run(PG:1)
    05-17 22:36:13.584 10219 10670 E LoadCastServiceInfoTask:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
    05-17 22:36:13.584 10219 10670 E LoadCastServiceInfoTask:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
    05-17 22:36:13.584 10219 10670 E LoadCastServiceInfoTask:     at rvd.run(PG:2)
    05-17 22:36:13.584 10219 10670 E LoadCastServiceInfoTask:     at rvl.run(PG:4)
    05-17 22:36:13.584 10219 10670 E LoadCastServiceInfoTask:     at java.lang.Thread.run(Thread.java:923)
    05-17 22:36:13.584 10219 10670 W LoadCastServiceInfoTask: Failed to get cast id and certificate from cast service.
    05-17 22:36:15.625 10219 10670 E LoadCastServiceInfoTask: error parsing cast info Json {"device_info":{"4k_blocked":0,"capabilities":{"audio_hdr_supported":false,"audio_surround_mode_supported":false,"cast_connect_supported":true,"cloudcast_supported":true,"display_supported":true,"fdr_supported":false,"hdmi_prefer_50hz_supported":false,"hdmi_prefer_high_fps_supported":false,"hotspot_supported":false,"https_setup_supported":true,"keep_hotspot_until_connected_supported":true,"opencast_supported":false,"reboot_supported":false,"renaming_supported":true,"set_group_audio_delay_supported":true,"setup_supported":false,"stats_supported":false,"system_sound_effects_supported":false,"wifi_auto_save_supported":true,"wifi_supported":false},"cloud_device_id":"0D724A60085948F17234B7B8F0C8F5FE","factory_country_code":"","hotspot_bssid":"FA:8F:B6:E3:49:F9","mac_address":"00:00:00:00:00:00","manufacturer":"Amazon","model_name":"AFTSS","product_name":"sheldon","public_key":"MIIBCgKCAQEAlOxTisYMRMdD9UtHvPwd+9iLetLYnbnrplbcqI\/9kyPlCbDLd1NOeer7qJOZXLz7ds9sktVqpJTubI83rFBd8HPUMNkgF9z1wA0VFpyCf4PamohZL6D84d5goF3dZa7\/XPnfxLe5ywcuZFzROyt9u4uAc8eJbiLFv3ZCOg8NRVicA6IVbWH0fh4LDTcF7TBnL1n93HMUcvgBeJfgysWdfhTJd5BNuPdyz+NAiyXX5jD0xyALjJDJReld3duByjvEp2RPutdfjWwTq1q2SDwbpAjljeG6Op4xNSrx3q+i7f+GTfCa8nO5S7pv3biIKnfW0g2dWL1HO8jiA8UB4FhEJQIDAQAB","ssdp_udn":"4a2f94d4-009d-cbca-d4f0-51799dc4585e","uma_client_id":"8d0bc130-5d40-46a2-83d2-587b9c1b3569","uptime":6750.672449,"weave_device_id":""}}
    3
    Quick tip on setting a custom home:

    • Install LauncherManager (Android TV, not FireOS) from its xda thread.
    • From adb, uninstall (pm uninstall --user 0 <packagename>) com.google.android.tungsten.setupwraith and org.lineageos.setupwizard. This will probably disconnect you from WiFi, but you can reconnect after. Do Not uninstall the default or Google launchers.
    • Now run LauncherManager and enable the custom launcher. It should set the default launcher to Android System instead of Setup Wizard. If it doesn't, save yourself some trouble and disable the custom launcher.
    • Press <Home>, and it will ask you what launcher to use: either LauncherManager (in which case, set up your choice of launcher under custom launcher options), or a custom launcher you have already installed.
    Hope this works for other people as it did for me. Enjoy!
    2
    Hello

    I just did the installation

    but I do not get applications
    You did not (correctly) install gapps. Read the OP or read my previous post. If you did, you should be able to add new apps through the Play Store.
  • 28
    1607247455067-png.5435845

    LineageOS is a free, community built, aftermarket firmware distribution of Android 11, which is designed to increase performance and reliability over stock Android for your device.

    LineageOS is based on the Android Open Source Project with extra contributions from many people within the Android community. It can be used without any need to have any Google application installed. Linked below is a package that has come from another Android project that restore the Google parts. LineageOS does still include various hardware-specific code, which is also slowly being open-sourced anyway.

    All the source code for LineageOS is available in the LineageOS Github repo. And if you would like to contribute to LineageOS, please visit out Gerrit Code Review. You can also view the Changelog for a full list of changes & features.
    Instructions:
    • Reboot to TWRP
    • Wipe data, system (/system_root) and cache
    • Flash the ROM and the GApps
    • Reboot and enjoy!
    Downloads:
    Reporting Bugs:
    • DO NOT Report bugs if you're running a custom kernel, you installed Xposed or you installed Magisk
    • Grab a logcat right after the problem has occurred. (Please include at least a few pages of the log, not just the last few lines, unless you know what you're doing.)
    • If it is a random reboot, grab /proc/last_kmsg. (Do not bother getting a logcat unless you can get it just before the reboot. A logcat after a reboot is useless)
    Known issues:
    • Dolby Digital Plus™ E-AC-3
    • Netflix
    Notes:
    • SELinux is in Permissive mode
    • The ROM supports both sheldon (Fire TV Stick Lite) and sheldonp (Fire TV Stick 3rd gen)
    • Do not ask for ETAs
    How do i...
    • Unlock and install TWRP?
    • Go back to the original/stock ROM?
      • Download the stock update.bin (sheldon | sheldonp) and flash it using TWRP
    Remember to provide as much info as possible. The more info you provide, the more likely that the bug will be solved. Please also do not report known issues. Any bug not reported in the bug report format below may be ignored.

    Code:
    What is your--
    LineageOS version:
    LineageOS Download url:
    Gapps version:
    
    Did you--
    wipe:
    restore with titanium backup:
    reboot after having the issue:
    
    Are you using--
    a task killer:
    a non-stock kernel:
    other modifications:
    
    Provide any additional information (observations/frequency of problem/last version it worked on/etc) as needed:

    Contributors
    R0rt1z2, k4y0z, t0x1cSH, diegocr
    Source Code: https://github.com/mt8695
    Kernel source: https://github.com/mt8695/android_kernel_amazon_mt8695
    15
    🕑 New build is up: 2022-05-05
    • Fixed the advanced audio distribution profile (A2DP)​
    • Fixed the remote disconnecting after rebooting​
    • Fixed the 3rd gen remote app-button(s)​
    • Fixed the microphone (assistant works now)​
    • Fixed Netflix not showing up in the Play Store​
    • Added support for newer remote revisions​
    • Enabled memory optimizations for low-RAM devices​
    • Enabled the XPAD kernel driver (xbox gamepads)​
    • Enabled exFAT/NTFS support in the kernel​
    • Switched to sheldonp blobs​
    NOTE: Netflix still has memory management issues (video playback), I'm still trying to figure out a way to fix this.

    NOTE: As for the assistant button, it works but in a bit weird way; do not release the button when you stop talking, keep it pressed even if you have finished (the assistant will notice once you stop talking).
    12
    when will the next compilation be ready approximately?

    Thanks for the work you do!
    I don't know. I'm currently on vacation so I'm away from the PC for some days, but I guess it'll be released during the next week.
    11
    Tried already exfat, ntfs, ext3+4...lineage alway says non usable filesystem and wants to format...
    I'll add exFAT/NTFS support to the next build (which yeah, should be released soon).
    7
    Yes, I am already aware of the ongoing OOMs. I actually applied some workarounds (designed for low RAM devices) which will hopefully help and I'm currently trying to get Dolby (kinda hard since it requires framework modifications) to work now (WON'T FIX) (A2DP seems to be working now as well).

    As a side note, Netflix will appear by default in the Play Store with the next build (thanks to the new Netflix RRO overlays/permissions/properties).

    I'm also trying to debug all the issues related to the sheldonp remote, but keep in mind that it will take some time as I just own the standard sheldon remote.​