FORUMS
Remove All Ads from XDA

[ROM] [unlocked] [tank] LineageOS 12.1

501 posts
Thanks Meter: 754
 
By diegocr, Senior Member on 26th August 2019, 07:09 PM
Post Reply Email Thread
DISCLAIMER:
Quote:

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/fir...-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 (Testing..):
  • Some OMX codecs
  • G-APPS Are not working (500 error)

Installation:
  • 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

Quote:
Quote:

On first boot it will ask you for pair the TV Remote. For do that, press the home button 10 secs or more.

Quote:
Quote:

This is a test build, I recommend copy your adb keys to data partition for use adb in case of something goes wrong:
https://stackoverflow.com/questions/...evice/36507415

Quote:
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
  • @julianwi for the secure video playback fixes
  • 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 2019-09-03
Attached Thumbnails
Click image for larger version

Name:	about.jpg
Views:	958
Size:	40.7 KB
ID:	4811376   Click image for larger version

Name:	about2.jpg
Views:	946
Size:	30.6 KB
ID:	4811377   Click image for larger version

Name:	settings.jpg
Views:	890
Size:	41.7 KB
ID:	4811378   Click image for larger version

Name:	keyboard.jpg
Views:	872
Size:	30.9 KB
ID:	4811379   Click image for larger version

Name:	launcher.jpg
Views:	934
Size:	38.8 KB
ID:	4811380  
The Following 14 Users Say Thank You to diegocr For This Useful Post: [ View ] Gift diegocr Ad-Free
 
 
26th August 2019, 07:11 PM |#2  
diegocr's Avatar
OP Senior Member
Thanks Meter: 754
 
Donate to Me
More
Changelog:

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
The Following 6 Users Say Thank You to diegocr For This Useful Post: [ View ] Gift diegocr Ad-Free
26th August 2019, 08:05 PM |#3  
TODO
  • nothing here
The Following 4 Users Say Thank You to Rortiz2 For This Useful Post: [ View ] Gift Rortiz2 Ad-Free
26th August 2019, 08:39 PM |#4  
Senior Member
Thanks Meter: 70
 
Donate to Me
More
Will test this tonight.

Does the stock amazon remote work with this?
26th August 2019, 08:41 PM |#5  
Quote:
Originally Posted by kwiksi1ver

Will test this tonight.

Does the stock amazon remote work with this?

Yes. It will ask to pair with it at first boot. Press the home button 10 secs or more for pair the remote.
The Following User Says Thank You to Rortiz2 For This Useful Post: [ View ] Gift Rortiz2 Ad-Free
26th August 2019, 09:45 PM |#6  
Member
Thanks Meter: 5
 
More
WOW, Thanks!
I don't have enough free time this week but will give it a test when I can.
The Following User Says Thank You to robojerk For This Useful Post: [ View ] Gift robojerk Ad-Free
27th August 2019, 03:08 AM |#7  
Junior Member
Thanks Meter: 7
 
More
Wow everything works with gapps tv stock, etc, needs added amazon game controller
I've tested this build a couple hours ago with gapps tv stock installed within twrp along with xposed and I got to say it works 100% with no lag or anything! I tested the Amazon Game Controller and it won't come up on bluetooth. Otherwise, everything in this tested build works as expected, most of the settings works unless you don't have gapps installed then it won't work properly. Thank you for releasing this and I'll get back to you in the future as time goes on!!!
The Following 2 Users Say Thank You to theflashfromthecw For This Useful Post: [ View ] Gift theflashfromthecw Ad-Free
27th August 2019, 05:06 AM |#8  
Member
Flag Kolkata
Thanks Meter: 11
 
More
The Leanback launcher setting works but some part of the setting wont open.

Hotstar dont play video in full screen.


Amazon prime android tv version dont work. App opens and works but will not play any video. Haven't tested the mobile version yet.

Will test more and give updates

And thanks to everyone for this awesome rom. Atlast i can use my fire stick.
The Following User Says Thank You to tamojit_ray For This Useful Post: [ View ] Gift tamojit_ray Ad-Free
27th August 2019, 05:07 AM |#9  
Junior Member
Thanks Meter: 37
 
More
Very awesome! Thank you so much for putting me out of my misery of trying to de-bloat the latest FireOS image and rid myself of the Amazon junk. In my setup I removed Leanback and set Kodi to start on boot. Tried several different configurations to get deinterlacing and 1080p/i playback to work, but running into choppiness issues. There's other mods I'm hoping to do like getting Xposed Edge working, but this this a great start. After that, I'd like to get the default remote configuration app working so I can modify the remote's functions, but that's down the road.

Again, thank you an everyone before you getting this to work!
The Following User Says Thank You to O_oaa For This Useful Post: [ View ] Gift O_oaa Ad-Free
27th August 2019, 07:42 AM |#10  
diegocr's Avatar
OP Senior Member
Thanks Meter: 754
 
Donate to Me
More
Quote:
Originally Posted by tamojit_ray

The Leanback launcher setting works but some part of the setting wont open.

Hotstar dont play video in full screen.
https://imgur.com/PdY4MPl

Amazon prime android tv version dont work. App opens and works but will not play any video. Haven't tested the mobile version yet.

Will test more and give updates

And thanks to everyone for this awesome rom. Atlast i can use my fire stick.

With amazon prime video have a problem with omx codecs or drm
On non tv apps remote control don't works well

Code:
D/AMZ-Playready25(  164): outputLevelsCallback: callbackType = 4 
D/AMZ-Playready25(  164): [DRM_GetVideoProtectionModeWithGUID,166]:DRM_GetVideoProtectionModeWithGUID fail!dr:80004005
D/AMZ-Playready25(  164): [DRM_GetVideoProtectionModeInBindCB,193]:DRM_GetVideoProtectionModeInBindCB fail!dr:80004005
D/AMZ-Playready25(  164): AmznVideoProtectModes :4 checked dr:80004005
D/Playready25(  164): [PR25][API] Drm_Reader_Bind out, dr = 0x00000000
D/AMZ-Playready25(  164): bindAndCommitLicense,619: Didn't get valid GUID from playenabler!4
I/RubyNative( 2219): AdaptiveStreaming::parseVideoFragment() - Switching to video quality level [5] - 640 x 272
I/RubyNative( 2219): AdaptiveStreaming::parseVideoFragment( /data/temp//fragment_video_11.bin, size: 99080, state: 2, index: 3, pts: 15.015000s, duration: 5.005000s, quality: 5 )
D/AMZ-MtkVideoSecureAL(  164): -[ MtkVdecH265InitSec #582 ]
D/AMZ-MtkOmxVdec(  164): [0xb5b04000] VAL_CHIP_NAME_MT8127
D/AMZ-MtkOmxVdec(  164): [0xb5b04000] InitHW HEVC OK (512)(208)(512)(256)(1)(1)
W/RubyNative( 2219): ScopedThreadName::ScopedThreadName( core::DataSourceFileRingBuffer ) - unable to store thread name
D/Playready25(  164): [DRM_GS_GetGUID]131. dr:8004c024
D/Playready25(  164): [DRM_GS_GetGUID,151]:DRM_GS_GetGUID fail!,dr:8004c024
D/Playready25(  164): [DRM_GetGUIDWithKID,991]:DRM_GetGUIDWithKID fail!,dr:8004c024
D/AMZ-Playready25(  164): [DRM_GetVideoProtectionModeFromCustomData,234]:DRM_GetVideoProtectionMode fail!
D/AMZ-Playready25(  164): bindAndCommitLicense,627: DRM_GetVideoProtectionModeFromCustomData failed: 0x8004c024
D/AMZ-MtkOmxVdec(  164): [0xb5b04000] # Got general command (OMX_CommandPortDisable)
D/Playready25(  164): Drm_Reader_Decrypt check  Drm_IsSecureStopOn 1
D/Playready25(  164): [optimize]_Oem_File_Open(118):####to open file name:/data/securestop/tee_state_tmp.dat mode:(null) f_dwCreationDisposition 2 
D/Playready25(  164): [optimize]>>>############# _Oem_File_Open(138) f_dwAccessMode&OEM_GENERIC_WRITE:[40000000]
D/Playready25(  164): [optimize]  _Oem_File_Open  media
D/Playready25(  164): [optimize]  _Oem_File_Open  uid 1013 gid 1005
D/Playready25(  164): [optimize]_Oem_File_Open(209):####to open file name:/data/securestop/tee_state_tmp.dat mode:w+b
D/Playready25(  164): [optimize]_Oem_File_Open(213):b6ef8d9c  strerror(errno) Invalid argument
The Following 2 Users Say Thank You to diegocr For This Useful Post: [ View ] Gift diegocr Ad-Free
27th August 2019, 08:25 AM |#11  
Quote:
Originally Posted by theflashfromthecw

I've tested this build a couple hours ago with gapps tv stock installed within twrp along with xposed and I got to say it works 100% with no lag or anything! I tested the Amazon Game Controller and it won't come up on bluetooth. Otherwise, everything in this tested build works as expected, most of the settings works unless you don't have gapps installed then it won't work properly. Thank you for releasing this and I'll get back to you in the future as time goes on!!!

G-APPS Are working for you? I installed them and stucked in this screen..

(Sorry for the quality)
The Following User Says Thank You to Rortiz2 For This Useful Post: [ View ] Gift Rortiz2 Ad-Free
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes