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

Search This thread

Lex_Michdeandroid

Senior Member
Dec 3, 2011
303
52
Is there a way to get a volume control? (I'm using the Lite version, so there's no volume buttons on the remote.)
 
Last edited:

rocklite

Member
Apr 21, 2022
12
2
the fututre
anybody needs to enable virtual mouse on fire tv remote, can install this apk
this app sure dont work for me. once enabled it works for about 3 sec before it gets stuck on a command. life if i change to 'pointer mode' i have about 3 sec before it begins 'drifting' hard to the left and then stays that way if i change modes. go back to keyboard and it wont accept input or gets stuck on a direction. perfect viewer started deleting things off my hdd with no recycle bin because it was stuck on scroll mode. scroll inputs get repeated/ stuck the worst. this app is not friendly at all... if it worked it would be pure bliss though.
 

KainanMaki

Senior Member
Jul 19, 2013
124
62
Montevideo
Can you grab logs of cast?

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.
 

Attachments

  • logcat2.txt
    1.2 MB · Views: 9
  • Like
Reactions: Rortiz2

Srikanth008

Member
May 16, 2022
14
1
Is there a way to get a volume control? (I'm using the Lite version, so there's no volume buttons on the remote.)
Use mx player while watching offline movies u can control volume but not sure about online content.i think u can use tv remote there is smth cec option which make ur tv remote work as firestick remote. If thses options doesnot satisfies u. U can buy cheap remote compatible with sheldon
 
  • Like
Reactions: Lex_Michdeandroid

tweakradje

Senior Member
Is there a way to get a volume control? (I'm using the Lite version, so there's no volume buttons on the remote.)

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
 
  • Like
Reactions: Lex_Michdeandroid

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.
 
Last edited:

Noisemaker00

Senior Member
Apr 9, 2013
66
21
hi guys :)
I succesfully unlocked my firestick and installed LineageOS via twrp command line.
Then I paired bt remote and set wifi but not it ask me for Google account :\
Is there any way to skip this like on normal android smartphones?
 
Oct 23, 2007
12
0
cosenza
I have a 3rd firestick with voice remote.
I managed to install the lineaOS rom but every time I turn off the firestick I have to reassociate the remote control and the two + and - volume buttons don't work. I wanted to go back to FireOS but couldn't. Can you help me?
 

Sus_i

Senior Member
Apr 9, 2013
1,602
689
I wanted to go back to FireOS but couldn't. Can you help me?
Going back amd forth is easy, if you take a backup with twrp infront of flashing any custom stuff ;)
If you haven't a backup, you need to flash a stock rom + wipe data, done.
It may be that you need to reset your remote too, there is a guide somewhere in this thread.
 
Oct 23, 2007
12
0
cosenza
Going back amd forth is easy, if you take a backup with twrp infront of flashing any custom stuff ;)
If you haven't a backup, you need to flash a stock rom + wipe data, done.
It may be that you need to reset your remote too, there is a guide somewhere in this thread.
I don't currently have a backup available. Can you describe the step by step procedure with the commands to write?
 

Srikanth008

Member
May 16, 2022
14
1
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
How to root ? Please can u eloberate commands ? Should i go from step 1 as i have used trail version of ubuntu and all data would be reset after rebooting the pc.
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
Can u give me detailed commands and proceedure for root ? I used trail version of ubuntu to install lineage os after rebooting all data would be wiped out in trail version so do i have to do the process from installing twrp and lineage os after that magisk?
 

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
    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!
    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":""}}
    2
    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)
    Found this blog regarding certificartion,
    Thanks, this is very helpful. Basically they are modifying the function so that the first parameter (i2) is always 0 and device authentication succeeds. Since they provide the code they used to accomplish this, I'll try hooking up the function that checks the integrity of the certificate to see if that's enough for cast to work.

    @KainanMaki I think you said that the device is rarely listed when using the mini variant of OpenGapps. Were you refering to YouTube or did you mean casting in general? I managed to pair with the device (Youtube TV - with the mini variant) by using the "TV Code", which can be found in Youtube TV settings ("Código TV" in my case and yours I guess?), can you try that too?​
    Thanks, this is very helpful. Basically they are modifying the function so that the first parameter (i2) is always 0 and device authentication succeeds. Since they provide the code they used to accomplish this, I'll try hooking up the function that checks the integrity of the certificate to see if that's enough for cast to work.

    @KainanMaki I think you said that the device is rarely listed when using the mini variant of OpenGapps. Were you refering to YouTube or did you mean casting in general? I managed to pair with the device (Youtube TV - with the mini variant) by using the "TV Code", which can be found in Youtube TV settings ("Código TV" in my case and yours I guess?), can you try that too?​
    I found the same blog yesterday and went ahead and tried the module (installing magisk/riru/edXposed first).
    It didn't work but it did change something. It won't connect and, at the same time there's no errors displayed.
    Device is shown in every app (on stock gapps). Didn't grabbed a logcat (but I will later today).

    Found also this: Google Cast Documentation
    Not sure if it helps in any way.

    Regarding mini gapps, I mostly tried youtube. I probably tried other apps too but don't remember exactly if behaviour was the same (of rarely appearing) across all apps.

    Using code to pair in YouTube works well. Didn't mention it before because it won't solve the general casting problem (for cast to work in every app), and at the same time, it doesn't work if YouTube is not open in the device, so it's not very useful for that purpose (but logcat might give you some clues?).

    In Burcbuluklu rom from Mantis, YouTube is the only app that works with cast, you don't have to pair it with a code and it doesn't need the app to be open. I still have no clue why it works over there.
    2
    I couldn't find in the topic how to change the launcher.
    I just install de last version of the unofficial lineageos and the gapp miniTV and I cannot change the launcher for FLauncher.

    Is there any way ?
    Reading is the key to solve problems. The solution to your problem was explained a few posts before yours.
  • 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.​