[ROM] [unlocked] [tank] LineageOS 12.1

Search This thread

Sir Charles82

Senior Member
Sep 7, 2015
82
15
Vienna
So, some Apps won't Install because the need Android 6.0 or above. ORF TVthek can be installed but doesn't start.

My solution: I installed KODi and within the Addon for ORF...after some troubles with DRM also live streaming is Up and running
 
  • Like
Reactions: hasobist

nonukush

New member
Mar 24, 2015
2
0
Those who wants to change defalt launcher follow these steps. Here I replaced default Leanback with LeanbackOnFire_v1.54-release.apk

[email protected]:/ $ su
[email protected]:/ # mount -o rw,remount /system

First find app you want to replace with Leanback:

[email protected]:/ # cd /data/app/

[email protected]:/data/app # ls
com.amazon.tv.leanbacklauncher-1

[email protected]:/data/app # cd com.amazon.tv.leanbacklauncher-1/
[email protected]:/data/app/com.amazon.tv.leanbacklauncher-1 # ls
base.apk

[email protected]:/ # cd /system/priv-app/LeanbackLauncher/

[email protected]:/system/priv-app/LeanbackLauncher # mv LeanbackLauncher.apk LeanbackLauncher.apk.bak

[email protected]:/system/priv-app/LeanbackLauncher # cp /data/app/com.amazon.tv.leanbacklauncher-1/base.apk LeanbackLauncher.apk

[email protected]:/ # mount -o ro,remount /system

You can also map your remote buttons with button mapper app. I managed to get force stop working on long press back button.
here is the command for that. Go to Button Mapper > Back Buton > Long press > Advanceed > Root Command and then type
am force-stop $(dumpsys window windows | grep mCurrentFocus | grep -o 'u0 .*/' | cut -d " " -f 2 | cut -d "/" -f 1)
How to change default launcher? Because recommendations are not working for me. I also tried to delete Leanback folder in /system/priv* it says, readonly partition.
Please guide me.
 
Last edited:

stonework

New member
Nov 22, 2022
4
2
First, thank you for this.

Is there any way wifi setup (during first use wizard) can be skipped? After selecting language it seems the skip button slips away and then i can only proceed if I connect to a wireless network.
 

hasobist

Senior Member
Feb 1, 2021
71
19
First, thank you for this.

Is there any way wifi setup (during first use wizard) can be skipped? After selecting language it seems the skip button slips away and then i can only proceed if I connect to a wireless network.
Hello
Once booted and the remote paired the setup wizard goes through the complete setup besides the wifi password entry is just after pairing of the remote.
Hope it helps.......
 

stonework

New member
Nov 22, 2022
4
2
Hello
Once booted and the remote paired the setup wizard goes through the complete setup besides the wifi password entry is just after pairing of the remote.
Hope it helps.......
Hello and thank you for your help.
I'm not sure if we get each other. Once booted, the system wants me to pair the remote. I can pair the remote and the language selection screen appears almost immediately. It also appears after some minutes of waiting (which I prefer because I would like to use only my tvs remote over HDMI-CEC). Even if I pair the (original) remote I can not skip wifi setup after selecting my language. Rebooting the device by pull the power plug does not skip the whole procedure*. It starts with remote pairing, then language selection and then wifi connection. And it just shows available networks, connecting via WPS or connect to hidden network, no skip. The back button returns to language selection screen.
Maybe you can clarify your steps if I get you wrong.

* I'm aware of rebooting via adb and I also looked for some other possibilities to get around. Tried a keyboard, escape on language selection screen just leads to remote pairing again. One reason for me flashing Lineage was because I don't like Amazon to push me to get online and sign in. I thought there must be a simple method for skipping wifi connection, therefore I asked. Btw, it seems that connecting to a wifi hotspot whichs has no internet connection doesnt work either. On the language selection screen is an emergency call button which blacks out the screen.

Anyway, thanks again!
 

hasobist

Senior Member
Feb 1, 2021
71
19
Hello and thank you for your help.
I'm not sure if we get each other. Once booted, the system wants me to pair the remote. I can pair the remote and the language selection screen appears almost immediately. It also appears after some minutes of waiting (which I prefer because I would like to use only my tvs remote over HDMI-CEC). Even if I pair the (original) remote I can not skip wifi setup after selecting my language. Rebooting the device by pull the power plug does not skip the whole procedure*. It starts with remote pairing, then language selection and then wifi connection. And it just shows available networks, connecting via WPS or connect to hidden network, no skip. The back button returns to language selection screen.
Maybe you can clarify your steps if I get you wrong.

* I'm aware of rebooting via adb and I also looked for some other possibilities to get around. Tried a keyboard, escape on language selection screen just leads to remote pairing again. One reason for me flashing Lineage was because I don't like Amazon to push me to get online and sign in. I thought there must be a simple method for skipping wifi connection, therefore I asked. Btw, it seems that connecting to a wifi hotspot whichs has no internet connection doesnt work either. On the language selection screen is an emergency call button which blacks out the screen.

Anyway, thanks again!
If remember well after pairing the remote goes to wifi settings select the wifi your in from the list of available and a pop up appears confirming your connected then privacy settings just skip the privacy settings then region for the time zone and your good to go unless you flash Gapps it asks for the username and password during the setup for the playstore to work
Can you use a usb otg with a mouse will help.
If otherwise
Can you send some pictures get an idea can figure a way around working for you.
Lineage is a wonderful OS which is light on the system and RAM especially for Ftv tank mine is configured completely using Link2sd and never had any problems though.
Happy to help cheers!
 
  • Sad
Reactions: Gast2

stonework

New member
Nov 22, 2022
4
2
If remember well after pairing the remote goes to wifi settings select the wifi your in from the list of available and a pop up appears confirming your connected then privacy settings just skip the privacy settings then region for the time zone and your good to go unless you flash Gapps it asks for the username and password during the setup for the playstore to work
Can you use a usb otg with a mouse will help.
If otherwise
Can you send some pictures get an idea can figure a way around working for you.
Lineage is a wonderful OS which is light on the system and RAM especially for Ftv tank mine is configured completely using Link2sd and never had any problems though.
Happy to help cheers!
I appreciate your help but the question was how to skip wifi setup.
On the pictures you can see the setup as I described it. First connecting remote, selecting the language and then connecting wifi. But there is no skip button.

I cannot reproduce it but I think you can skip it by pressing buttons on any remote in a specific order.

The build.prop solution which you can find out there did not work for me and in TWRP /system only contains the bin folder, idk why. The only solution (which unfortunately is a bit hacky imho) is to disable setupwizard via adb. For those how need this solution:
  • "adb shell", then "am start com.android.settings"
  • enable developer settings and enable root access for adb there
  • "su" and "pm disable com.cyanogenmod.setupwizard", reboot
 

Attachments

  • 1.png
    1.png
    76.4 KB · Views: 60
  • 2.png
    2.png
    103.6 KB · Views: 60
  • 3.png
    3.png
    489.4 KB · Views: 60
  • Like
Reactions: Gast2

hasobist

Senior Member
Feb 1, 2021
71
19
I appreciate your help but the question was how to skip wifi setup.
On the pictures you can see the setup as I described it. First connecting remote, selecting the language and then connecting wifi. But there is no skip button.

I cannot reproduce it but I think you can skip it by pressing buttons on any remote in a specific order.

The build.prop solution which you can find out there did not work for me and in TWRP /system only contains the bin folder, idk why. The only solution (which unfortunately is a bit hacky imho) is to disable setupwizard via adb. For those how need this solution:
  • "adb shell", then "am start com.android.settings"
  • enable developer settings and enable root access for adb there
  • "su" and "pm disable com.cyanogenmod.setupwizard", reboot
Hello
So you found a solution is it so?
 

Gast2

Member
Mar 2, 2021
16
0
http%3A%2F%2Fi.picasion.com%2Fpic89%2F7652ffeccaa6bbdcda57289d991b093d.gif
DISCLAIMER:

This is an LineageOS 12.1 build for Amazon TV Stick (aka TANK).
  1. Спасибо! в отделе для разработчика есть включение суперпользователя.. для него надо Super SU?
  2. Нельзя ли восстановить IR управление телевизором?
 
Last edited:

UppGr4de

Senior Member
Nov 29, 2008
65
5
Can't find a single android (phone) keyboard to pair with LineageOS so I can copy/paste text or links in certain apps...like kodi or m3u links that are a pain to always type with the on-screen keyboard.
 

hasobist

Senior Member
Feb 1, 2021
71
19
Can't find a single android (phone) keyboard to pair with LineageOS so I can copy/paste text or links in certain apps...like kodi or m3u links that are a pain to always type with the on-screen keyboard.
Hello!
You can try using the apps2fire app never tried it though on the Firetv tank but works fine on Firetv 4k to upload files install apps from phone to firetv or pre-installed phone apps to firetv as well and the setup to pair with firetv is simple.Hope it helps.......
 
  • Like
Reactions: Gast2

UppGr4de

Senior Member
Nov 29, 2008
65
5
Hello!
You can try using the apps2fire app never tried it though on the Firetv tank but works fine on Firetv 4k to upload files install apps from phone to firetv or pre-installed phone apps to firetv as well and the setup to pair with firetv is simple.Hope it helps.......
Hi.

I'm not sure how apps2fire would help here. I'm looking for a virtual keyboard that I can use from my phone to copy and paste text/links on my firestick (tank) with LineageOS. Similar to the fire tv app but obviosly doesn't work anymore with LOS. I tried CetusPlay but it doesn't work once I open kodi/tivimate to paste links. I tried other adb/bluetooth keyboards. In terms of Bluetooth I can't pair my phone with the stick on LOS unfortunately, always says the pairing code is incorrect, although it's correct. (Fold 3)
 

p4r4d0xs

Member
Feb 12, 2018
7
0
Hi guys, i got everytime a message when i want to pair my Alexa Gen 1 remote.
'Wrong Passkey or Pin'
any sugestions what to do?
i tried to reset the remote dosent workd for me
 

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