[ROM] [unlocked] [tank] LineageOS 12.1

Search This thread

wwwkkk

Member
Mar 1, 2022
19
3
So one Question from me:
Connecting an USB 7Port Hub and putting 5 USB Sticks on it, there Lineage 12.1 won't be able to mount all the sticks.
On Lineage 19.1 running at the AFTV Stick Lite (codename Sheldon) it's no problem.

Is this fixable for some future release ?
 

Notefan3

New member
Apr 28, 2022
1
0
Installed this firmware. Tell me which file to disable or delete so that when the stick starts, the wolf launcher is loaded, and not with custom firmware?
 

mrbcrk

New member
Jan 10, 2011
1
0
The patch is doing its work. The problem is with the Audio HAL. It always reports that DD and DD+ are available, even though the underlying sink (your device) does not support it. On my device, Prime Video always chose EAC3 (DD+) format and crashed as my device couldn't support that.

After analyzing blobs, I noticed that Fire OS passes some Dolby related params to Audio HAL during HDMI device setup, which are currently not sent by Lineage. Below is the build which should fix this issue. Along with that, it sets a few more flags required by Audio/Video decoders.

Download: lineage-12.1-20220120-UNOFFICIAL-tank.zip

Changes:
- Fixes Audio related issues with Amazon Prime and Netflix
- Several compatibility changes for HW blobs
- Latest Lineage sources (not sure what new you will get as 12.1 is almost dead)


A big thanks to @diegocr and other folks who have worked hard on this project.

PS: As usual, not warranties, flash at your own risk. Some apps might require WebView impl. Install Android System from play store.

First of all thanks for your amazing job.

I've just unlock and install this porting on one of my Amazon TV Stick TANK.
About the Bluetooth, I can't pair anything I own, no remote (also other brand), no PS4 controller.
The OS's find the device but after the confirmation for pairing, get an error on wrong passkey.

The issue list report Bluetooth trouble only with speakers.
There is any workaround / patch I haven't see?

Thanks for all
 

Pdwag11239

New member
Dec 1, 2021
4
1
Hey guys! I've just unlocked my 2nd Gen TV Stick and installed this ROM. I have one very big issue though, and that issue is that the remote doesn't pair. I've tried resetting the remote, new batteries, using the remote from my Fire TV Gen 1 and nothing works. Is there anything I can do to fix this?
 
  • Like
Reactions: chiefRex

Sir Charles82

Senior Member
Sep 7, 2015
74
13
Vienna
Hey,

soon getting my hands on a Fire TV Stick 2 with LOS already installed but given the information, the stick is very slow... is there any current development after the version 20220403?

Would you change to the newer 2022-Versions??

@BOOTMGR : was it possible to solve the problem with the non- connecting remotes? Which logs were necessary?

Thanks
 
  • Like
Reactions: Gast2
Does anyone know where this green box is coming from? (no this is not from the camera app that I took the picture on) I have a fresh build from Sep 27 2022, and the first app I installed was Prime Video. I wiped and tried it again, installed Disney+ and the same result kept coming up. Is MLKit or something like that enabled?
FIXED

20220703_211840.jpg
 
Last edited:
Also are there instructions for me to build LOS 14.1 for this device? https://github.com/cmtank/device_amazon_tank/tree/cm-14.1 I found the tree for 14.1 but no idea on how to build myself. (Main reason being that opengapps.org does not have a tvstock package for ARM Android 5.1) EDIT: I just found the GApps package here, but I still would love to compile myself a higher Android version for this stick.
 
Last edited:
  • Like
Reactions: Gast2
Does anyone know where this green box is coming from? (no this is not from the camera app that I took the picture on) I have a fresh build from Sep 27 2022, and the first app I installed was Prime Video. I wiped and tried it again, installed Disney+ and the same result kept coming up. Is MLKit or something like that enabled?

20220703_211840.jpg
I just realized that this was not the Pixel camera doing this, that was the behavior of the Windows camera app. 🤦‍♂️🤦‍♂️
 

Sir Charles82

Senior Member
Sep 7, 2015
74
13
Vienna
@kerta1n thanks For Posting the Link to opengapps For Android 5.1 as the Stick I Got Had a LOS 12.1 build from September 2020 on it, but without any GApps installed.
Had troubles in first Boot and configuring...it won't pair with the remote on 2020 builds also but finally....ist Worked. Only to find Out there were No Apps to try and install.
If LOS 14.1 will Work on the Stick, it surely speeds Things Up.
 

Sir Charles82

Senior Member
Sep 7, 2015
74
13
Vienna
I haven't figured out how to boot to TWRP...connected the stick to my computer but ADB doesn't see it...not even with the Amazon USB driver installed. I guess I have to put the stick back in his monitor and allow USB debugging and try it again.
 

tomjfmu

Member
Jun 12, 2017
30
1
I have tried repo syncing and compiling on an Ubuntu 14.04 VM with the instructions from GitHub.
Any advice? I got OpenJDK 7 and I think I got all the other packages required for Android 5.X.
 

Marcyvee

Senior Member
Oct 9, 2015
325
35
I've just installed this rom on my fire stick, but I can't find anywhere the arm tv stock gapps for A5.1. I found the tv core package, but I haven't Google cast receiver. Do you know how to install it to cast natively on the fire stick?
 

hasobist

Senior Member
Feb 1, 2021
64
18
I've just installed this rom on my fire stick, but I can't find anywhere the arm tv stock gapps for A5.1. I found the tv core package, but I haven't Google cast receiver. Do you know how to install it to cast natively on the fire stick?
Hello
Never tried casting using Lineage-12.1 OS check this link hope it helps
You may need Mouse toggle.
If using windows you can try vysor does help.
Edit: In the forum someone did mention about casting ain't remember the post if found will update you........
 

Daimonion777

Member
Jan 2, 2020
32
2
Hello folks,
does anyone of you know how to get back from LineageOS 12.1 to a prerooted Rom 5.0.5?

Many thanks in advance 🙂
 

Top Liked Posts

  • There are no posts matching your filters.
  • 35
    http%3A%2F%2Fi.picasion.com%2Fpic89%2F7652ffeccaa6bbdcda57289d991b093d.gif
    DISCLAIMER:
    We are not responsible for any damage, bootloop, bricked or broken devices and Relationships.
    Need an unlocked tank with amonet patched recovery
    https://forum.xda-developers.com/fire-tv/development/unlock-fire-tv-stick-2nd-gen-tank-t3907002
    This is an LineageOS 12.1 build for Amazon TV Stick (aka TANK).

    DON'T UPDATE MAGISK WITH THE APP. THIS WILL BRICK THE DEVICE AND YOU WILL NEED TO UNLOCK IT AGAIN!

    Issues:
    • Netflix won't play 5.1 audio videos on some TVs.
    • Can't pair bluetooth speakers.
    • On latest versions of Prime Video text is not show on some buttons.
    • Permissive kernel

    Installation:
    Connect device to pc with a USB cable, don't use tcp adb
    • Reboot tank to recovery
    • Adb push rom to /sdcard/
    • Wipe dalvik cache, cache, data and system if you come from stock or another rom.
      adb shell
      twrp wipe data
      twrp wipe cache
      twrp wipe dalvik
      twrp wipe system (if it gives error, try adding "/" /system)
    • Flash Rom:
      twrp install /sdcard/lineage-12.1-xxxxxxxx-UNOFFICIAL-tank.zip
    • Reboot and pair remote, if fails reboot and try again, complete setup wizard.
    • Reboot to recovery and install magisk, microG .........
    • Enjoy

    Quote:
    On first boot it will ask you for pair the TV Remote. For do that, press the home button 10 secs or more.
    If don't pair on first start reboot and pair again

    Quote:
    Since this ROM is optimized for TV Stick, this ROM uses LeanBack Launcher, LeanBack IME and TVSettings intsead of CM Launcher, AOSP Keyboard and CMSettings.

    Thanks:
    • @k4y0z for the bootloader unlock and recovery
    • @MSe1969 for the lineageos-12.1 sources
    • @ggow for the mt8127-common tree
    • LineageOS team

    Source Code:

    Download:
    Please don't mirror!

    XDA:DevDB Information
    [ROM] [unlocked] [tank] LineageOS 12.1, ROM for the Amazon Fire TV

    Contributors
    diegocr, Rortiz2
    ROM OS Version: 5.1.x Lollipop
    ROM Kernel: Linux 3.10.x
    Based On: LineageOS

    Version Information
    Status: Testing

    Created 2019-08-26
    Last Updated 2020-04-23
    14
    Changelog:

    20200927
    Update keylayouts (thanks 0815hoffi)
    Revert useFixedVolume

    20200806
    Update kernel to fos 5.2.7.3
    Add AppDrawer
    Remove CMFileManager
    Update keylayouts
    Add Android TV remote wifi support (tvstock gapps may broken it)
    Use amazon tank fingerprint
    Repo sync

    20200514
    Update kernel and vendor to fos 5.2.7.2
    Add microG support
    Repo sync

    20200422 REMOVED
    Updated Security Patches to April 2020
    Synced with the LineageOS Source Code
    Added missing keylayouts
    Removed browser shortcut in LeanBack

    2020221
    Add some keylayouts

    20191225
    Disable volume buttons

    20191220
    Use libMtkOmx libs from austin

    20191215
    Update kernel and vendor to 5.2.7.2
    Enable adb on boot
    Build btremoted

    20191211
    Update LeanbackLauncher and LeanbackIme
    Disable adb on boot (now need to enable on developer settings)
    Overlay, Update remote pairing instructions
    TvSettings, patch to autopair on fistboot settings

    20191210
    Remove dolby sound service (not working)
    system.prop: Enable USB OTG (Thanks Petoriano)
    LOS updates

    20191029
    Enable ozwpan kernel module

    20191014
    Build kernel from source
    Use Sharp an_np40 fingerprint

    20190911
    Fixed secure video playback. Thanks @julianwi

    20190901
    Rebuild device tree
    Add some blobs

    20190828
    Fix privacy guard issue, thanks @ggow
    Add Overscan app
    Disable Trebuchet
    Hide notification bar (set only on on firstboot)

    20190827
    Set screen timeout to 15 min on firstboot
    Change setup pairing bluetooth device screen text (english only)
    Small notification bar (1px)
    Don't build TeleService
    9
    How to get DRM Playback working

    I analyzed the binaries in the stock rom and found the missing patch to get secure video playback working. libstagefright needs to set an special gralloc usage flag. For the devs, here is the source patch for frameworks/av:
    Code:
    diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
    index cdeb161f7..130dc18c4 100644
    --- a/media/libstagefright/ACodec.cpp
    +++ b/media/libstagefright/ACodec.cpp
    @@ -784,6 +784,12 @@ status_t ACodec::configureOutputBuffersFromNativeWindow(
             usage |= GRALLOC_USAGE_PROTECTED;
         }
     
    +#define GRALLOC_USAGE_SECURE 0x01000000;
    +    if (mFlags & kFlagIsSecure) {
    +        usage |= GRALLOC_USAGE_SECURE;
    +        ALOGW("ACODEC: use GRALLOC_USAGE_SECURE\n");
    +    }
    +
         // Make sure to check whether either Stagefright or the video decoder
         // requested protected buffers.
         if (usage & GRALLOC_USAGE_PROTECTED) {
    I will attache a patched libstagefright version to the post. Copy it over /system/lib/libstagefright.so and it should work. I tested it with the official prime video app.
    7
    New Build is UP

    DATED 14-05-2020
    • DRM Fixed!
    • Added MicroG support (tested and works).
    • Updated kernel and vendor to latest fire os.
    Download link in OP.
    Enjoy:)
    7
    So I looked at it a little more. This OS is a nuisance! Apps I install do not show up on the launcher and no matter what I do, no Google anything! I have LineageOS on both of my Fire Tablets and it is nothing like this.

    I'm going to do some more tinkering and see what I can find.

    Please fix this as I'm probably going to go back to the old FireOS for the Fire Stick 2. I can try to flash GApps to that and somehow get it to work.

    Sorry? I think it goes without saying that. If someone read the first post there would be no such doubts. THIS ROM IS ADAPTED FOR ANDROID TV AND IS A BETA.
    If you don't like it, don't install it.
    It is very angry that we have worked hard on this ROM so that you come now and insult it. This doesn't make sense