• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[TOOLS] Mstar Android TV firmware tools

Search This thread

dipcore

Senior Member
Jul 7, 2015
136
135
Mstar Android TV firmware tools​
Phython 3.4+ required.

Currently available tools:
unpack.py - unpack MStar bin firmware
pack.py - pack MStar bin firmware
extract_keys.py - extract AES and RSA-public keys from MBOOT binary
secure_partition.py - encrypt image and generate signature file

Unpack MStar bin firmware files
Code:
Usage: unpack.py <firmware> <output folder [default: ./unpacked/]>
        <firmware> - MStar bin firmware to unpack
        <output folder> - directory to store unpacked stuff. Default value: ./unpacked/

Pack MStar bin firmware
Usage: pack.py <config file>
Code:
Example: pack.py configs/letv-x355pro-full.ini
        <config file> - Configuration file. The config file structure will be described later.
                        For now you can take a look at configs/letv-x355pro-full.ini
                        and use it as an example

Extract keys from MBOOT
That tool is used to get AES and public RSA keys from the MBOOT. AES keys are needed to encrypt/decrypt boot.img and recovery.img images. aescrypt2 tool is used.
Code:
Usage: extract_keys.py <path to mboot> [<folder to store keys>] [<key bank offset>] [<key bank size>]
Defaults:
          <folder to store keys>        keys
          <key bank offset>             0x168e00
          <key bank size>               0x450
Example: extract_keys.py ./unpacked/MBOOT.img
Example: extract_keys.py ./unpacked/MBOOT.img ./keys 0x169e00 0x450

Encrypt partition and generate signature
All new MStar builds have SECURE_BOOT option enabled. In that case boot.img and recovery.img is encrypted (AES) and signed with RSA priv keys. That script is used to encrypt image and generate sign file.
To manually encrypt|decrypt image use aescrypt tool from bin folder. AES key can be extracted from MBOOT with extract_keys.py script.
Code:
Usage: secure_partition.py <file to encrypt> <AES key file> <RSA private key file> <RSA public key file> <output encrypted file> <output signature file>
Example: secure_partition.py ./pack/boot.img ./keys/AESbootKey ./keys/RSAboot_priv.txt ./keys/RSAboot_pub.txt ./pack/boot.img.aes ./pack/bootSign

Download tools:
https://github.com/dipcore/mstar-bin-tool
 

bamster89

Member
May 26, 2011
17
5
hi how to backup mstar tv partition including tee.img and sboot.bin?
is there any way to backup them?
i cant find my specific firmware for my mstar CV628H_B42 32SX250 (32EX250F) ctvupgrade.bin
 
Last edited:

dipcore

Senior Member
Jul 7, 2015
136
135
hi how to backup mstar tv partition including tee.img and sboot.bin?
is there any way to backup them?
i cant find my specific firmware for my mstar CV628H_B42 32SX250 (32EX250F) ctvupgrade.bin

You can use dd tool and create needed images. All what you need is here: /dev/block/platform/mstar_mci.0/by-name/ root is required.

Another way to do so is to create a back up of whole emmc device and then using any hex editor just slice it on required partitions (emmc header structure is pretty straightforward).
You can do it via mboot console (uart acces is required) or you can flash specially prepared firmware bin (look at https://github.com/dipcore/mstar-bin-tool/blob/master/configs/letv-emmc2usb.ini as an example). Basically that bin will just run couple mboot commands to start copying emmc to usb device.
PS You can access to debugging uart via VGA port on the TV. Use 12 and 15 pins (see attachment). 99% of mstar based TV have uart routed to those unused pins on VGA port. So no need to open TV and solder something.

Take a look on this:
Capture.PNG
 
Last edited:
  • Like
Reactions: ThAnEb

bamster89

Member
May 26, 2011
17
5
You can do it via mboot console (uart acces is required) or you can flash specially prepared firmware bin (look at https://github.com/dipcore/mstar-bin-tool/blob/master/configs/letv-emmc2usb.ini as an example). Basically that bin will just run couple mboot commands to start copying emmc to usb device.

i modify this 2 lines in configs/letv-emmc2usb.ini
FirmwareFileName=CtvUpgrade.bin
......
#emmcbin 0 to emmcbin 0
.......
setenv CtvUpgrade_complete 1

and pack after that ,,
i upgrade my mstar in factory menu Source +2580 ..,, and it reboot instantly and there is no partition save in USB.,

this is my MBOOT.img
https://mega.nz/#!LBgQjZbZ!ZirBzDOwbJrz6q-wD7gnikeNPGnVXfD8nGyKiaVkPls
 
Last edited:

dipcore

Senior Member
Jul 7, 2015
136
135
i upgrade my mstar in factory menu Source +2580 ..,, and it reboot instantly and there is no partition save in USB

Its two step process.

1. EMMC backup. Prepare and flash 1st bin file:
Code:
[Main]
FirmwareFileName=CtvUpgrade.bin
ProjectFolder=./pack
useHexValuesPrefix=false

SCRIPT_FIRMWARE_FILE_NAME=${FirmwareFileName}
DRAM_BUF_ADDR=20200000
MAGIC_FOOTER=12345678
HEADER_SIZE=16KB

[HeaderScript]
Prefix:
	mmc dd mmc2usb 0

Suffix:
	# Nothing here
It will take some time to copy it to usb drive (in my case it was like 25 minutes)

2. Restore normal boot process. Pack and flash 2-nd bin:
Code:
[Main]
FirmwareFileName=CtvUpgrade.bin
ProjectFolder=./pack
useHexValuesPrefix=false

SCRIPT_FIRMWARE_FILE_NAME=${FirmwareFileName}
DRAM_BUF_ADDR=20200000
MAGIC_FOOTER=12345678
HEADER_SIZE=16KB

[HeaderScript]
Prefix:
	setenv MstarUpgrade_complete 1
	setenv ForcePowerOn 0
	saveenv

Suffix:
	# Nothing here
After flasing it will restore normal boot process.
 

dipcore

Senior Member
Jul 7, 2015
136
135
One more thing, in the line
mmc dd mmc2usb 0
it uses usb port #0 in the TV. I do not know where is it located in your TV. You may try all usb ports. If that did not worked then just change it to
mmc dd mmc2usb 1 etc
 

bamster89

Member
May 26, 2011
17
5
One more thing, in the line
mmc dd mmc2usb 0
it uses usb port #0 in the TV. I do not know where is it located in your TV. You may try all usb ports. If that did not worked then just change it to
mmc dd mmc2usb 1 etc


i already did changing 0-3 and try to put 3 usb on each port each usb have CtvUpgrade.bin same thing happens no partition created on usb ithink my MBOOT does not allow me to use mmc dd mmc2usb and emmcbin

all i did is to manually backup using dd in terminal
this is my fstab.madison
HTML:
[email protected]_caixun_international:/ # cat fstab.madison
# Android fstab file.
#<src>                                                  <mnt_point>         <type>    <mnt_flags>                                          <fs_mgr_flags>
# The filesystem that contains the filesystem checker binary (typically /system) cannot
# specify MF_CHECK, and must come before any filesystems that do specify MF_CHECK


/dev/block/platform/mstar_mci.0/by-name/system          /system             ext4      ro                                                    wait
/dev/block/platform/mstar_mci.0/by-name/cache           /cache              ext4      noatime,nosuid,nodev                                  wait,block_validity,nodiscard,data=ordered,journal_checksum
/dev/block/platform/mstar_mci.0/by-name/userdata        /data               ext4      noatime,nosuid,nodev                                  wait,block_validity,nodiscard,data=ordered,journal_checksum
/dev/block/platform/mstar_mci.0/by-name/tvservice       /tvservice          ext4      ro                                                    wait
/dev/block/platform/mstar_mci.0/by-name/tvconfig        /tvconfig           ext4      noatime,nosuid,nodev                                  wait,block_validity,nodiscard,data=ordered,journal_checksum
/dev/block/platform/mstar_mci.0/by-name/tvdatabase      /tvdatabase         ext4      noatime,nosuid,nodev                                  wait,block_validity,nodiscard,data=ordered,journal_checksum
/dev/block/platform/mstar_mci.0/by-name/tvcustomer      /tvcustomer         ext4      noatime,nosuid,nodev                                  wait,block_validity,nodiscard,data=ordered,journal_checksum
/dev/block/platform/mstar_mci.0/by-name/usersdcard      /usersdcard         vfat      noatime,nosuid,nodev                                      wait,block_validity,nodiscard,data=ordered,journal_checksum
/dev/block/platform/mstar_mci.0/by-name/factory        /factory                           ext4      noatime,nosuid,nodev                                        wait,block_validity,nodiscard,data=ordered,journal_checksum
/dev/block/zram0                                        none                swap      defaults                                              zramsize=104857600
/dev/block/mmcblk0boot0                                 /boot1              emmc      defaults                                              defaults
/dev/block/mmcblk0boot1                                 /boot2              emmc      defaults                                              defaults
/dev/block/platform/mstar_mci.0/by-name/MBOOT           /MBOOT              emmc      defaults                                              defaults
/dev/block/platform/mstar_mci.0/by-name/MPOOL           /MPOOL              emmc      defaults                                              defaults
/dev/block/platform/mstar_mci.0/by-name/misc            /misc               emmc      defaults                                              defaults
/dev/block/platform/mstar_mci.0/by-name/recovery        /recovery           emmc      defaults                                              defaults
/dev/block/platform/mstar_mci.0/by-name/boot            /boot               emmc      defaults                                              defaults
/dev/block/platform/mstar_mci.0/by-name/RTPM            /RTPM               ext4      defaults                                              defaults


HTML:
dd if=/dev/block/platform/mstar_mci.0/by-name/system of=/mnt/usb/sda1/DUMP/system.img
dd if=/dev/block/platform/mstar_mci.0/by-name/cache of=/mnt/usb/sda1/DUMP/cache.img
dd if=/dev/block/platform/mstar_mci.0/by-name/userdata of=/mnt/usb/sda1/DUMP/userdata.img
dd if=/dev/block/platform/mstar_mci.0/by-name/tvservice of=/mnt/usb/sda1/DUMP/tvservice.img
dd if=/dev/block/platform/mstar_mci.0/by-name/tvconfig of=/mnt/usb/sda1/DUMP/tvconfig.img
dd if=/dev/block/platform/mstar_mci.0/by-name/tvdatabase of=/mnt/usb/sda1/DUMP/tvdatabase.img
dd if=/dev/block/platform/mstar_mci.0/by-name/tvcustomer of=/mnt/usb/sda1/DUMP/tvcustomer.img
dd if=/dev/block/platform/mstar_mci.0/by-name/usersdcard of=/mnt/usb/sda1/DUMP/usersdcard.img
dd if=/dev/block/platform/mstar_mci.0/by-name/factory of=/mnt/usb/sda1/DUMP/factory.img
dd if=/dev/block/mmcblk0boot0 of=/mnt/usb/sda1/DUMP/boot1.bin
dd if=/dev/block/mmcblk0boot1 of=/mnt/usb/sda1/DUMP/boot2.bin
dd if=/dev/block/platform/mstar_mci.0/by-name/MBOOT of=/mnt/usb/sda1/DUMP/MBOOT.img
dd if=/dev/block/platform/mstar_mci.0/by-name/MPOOL of=/mnt/usb/sda1/DUMP/MPOOL.img
dd if=/dev/block/platform/mstar_mci.0/by-name/misc of=/mnt/usb/sda1/DUMP/misc.img
dd if=/dev/block/platform/mstar_mci.0/by-name/recovery of=/mnt/usb/sda1/DUMP/recovery.img
dd if=/dev/block/platform/mstar_mci.0/by-name/boot of=/mnt/usb/sda1/DUMP/boot.img
dd if=/dev/block/platform/mstar_mci.0/by-name/RTPM of=/mnt/usb/sda1/DUMP/RTPM.img

HTML:
[email protected]_caixun_international:/ # ls /dev/block/platform/mstar_mci.0/by-name/
MBOOT
MPOOL
RTPM
boot
cache
factory
misc
recovery
system
tvconfig
tvcustomer
tvdatabase
tvservice
userdata
usersdcard


ifound this on my MBOOT

HTML:
 sar sar Command: (0-base, SAR0~SAR5)
sar <ch#> : ex: sar 0       // read sar channel 0
 panel_pre_init  - init panel by panel.ini
 command: panel_pre_init [option]
 -s : static init : panel init para from uboot
 -d : dynamic init : panel init para from SN panel_init  - init panel by panel.ini
 command: panel_init [option]
 -s : static init : panel init para from uboot
 -d : dynamic init : panel init para from SN panel_post_init backligth on  - backlight on
 command: backlight_on
 mmcinfo display MMC info mmcreg mmcreg show ext-csd <dev num>
    - device number of the device to dislay info of
 bin2emmc bin2emmc - read bin file and restore it to emmc
 command: bin2emmc [usbportnum] [pad] [binname] [offset/partitionname]
 emmcbootbin emmcbootbin - dump emmc boot partition and write it to fat usb disk
 command: emmcbootbin [usbportnum] [partitionname]
 emmcbin emmcbin - dump emmc and restore it to fat usb disk
 command: emmcbin [usbportnum] [pad] [binname] [offset/partitionname] [dumpsize]
 mmcbininfo mmcbininfo - Valid block num in each partition
 command: mmcbininfo [usbportnum]
 read[.boot|.gp] [bootpart|gppart] addr blk# size
mmc write[.boot|.gp] [bootpart|gppart] addr blk# size [empty_skip:0-disable,1-enable]
mmc readall - read all blocks for device internal ecc check
mmc crcall - read all blocks and calculate crc32
mmc read.p addr partition_name size
mmc read.p.continue addr partition_name offset size
mmc write.p addr partition_name size [empty_skip:0-disable,1-enable]
mmc write.p.continue addr partition_name offset size [empty_skip:0-disable,1-enable]
mmc rescan
mmc part[.gp] - lists available [GP] partition on current mmc device
mmc look [name] - lists specific partition info on mmc
mmc dev [dev] [part] - show or set current mmc device [partition]
mmc list - lists available devices
mmc create [name] [size]- create/change mmc partition [name]
mmc create.gp part_no size enh_attr ext_attr relwr_attr - create/change eMMC GP partition No.[part_no(0~3)] with size and enhance/extended/reliable_write attribute
mmc create.enhusr start_addr size enha_attr relwr_atrr - create/change eMMC enhance user partition(slc mode) from start_addr with size and enhance/reliable_write attribute
mmc create.complete - complete eMMC gp, enhance user, reliable write partition setting

Note: enh_attr = 0: no slc mode 1: using slc mode, ext_attr = 0: no attr 1: system code 2: Non-persisent, relwr_attr = 0: disable 1: enable reliable write

mmc remove [name] - remove mmc partition [name]
mmc rmgpt - clean all mmc partition table
mmc slc size relwr - set slc in the front of user area,  0xffffffff means max slc size
mmc ecsd - print ecsd register of emmc
mmc setecsd num mask value - set value to num of ecsd according to mask
mmc size - print the mmc size info
mmc slcchk - check the slc/mlc mode of emmc
mmc relwrchk - check the reliable write configuration of emmc
mmc slcrelwrchk - check the slc/mlc mode and reliable write configuration of emmc
mmc unlzo Src_Address Src_Length Partition_Name [empty_skip:0-disable,1-enable]- decompress lzo file and write to mmc partition 
mmc erase[.boot] bootpart [blk#] [size]
mmc erase.p partition_name
mmc erase - erase all blocks in device
mmc dd mmc2usb/usb2mmc [portnum] [pad] - dump/restore emmc raw data
mmc alignsize - check the alignment size of slc partition
mmc trim_test [chunk_size] [loop_count] - test read/write performance after trim enabled
 eMMC sub system emmc info - lists CSD & ExtCSD on eMMC
emmc init count - reset & init eMMC for count loops
emmc test count - verify eMMC & board signals for count loops
emmc speed [mode]- show eMMC speed sdr or ddr mode @ driver layer
emmc t_table [hs200/ddr] build - build timing table
emmc mode - ddr or sdr 
emmc clk - set ClkRegVal 
emmc cis - check or erase 
emmc pwr_cut init [addr][start block] - eMMC Power Cut Init
emmc pwr_cut test [addr][start block] - eMMC Power Cut Test
emmc reset [0/1] - toggle eMMC reset pin
 
  • Like
Reactions: userprince

masifkalam

Member
Jul 29, 2015
14
0
Karachi
My Mstar semi conductor tv stuck on boot animation

plz help

what i am doing now

---------- Post added at 03:33 PM ---------- Previous post was at 03:30 PM ----------

Plz Help my tv stuck on boot animation
I changed the boot animation after my tv is not booting plz help

how to tv in pc and any other solution plz help me someone

---------- Post added at 03:34 PM ---------- Previous post was at 03:33 PM ----------

MStar Semiconductor, Inc. MStar Android TV

MStar Android TV (full.cv6a628h_international)

---------- Post added at 03:37 PM ---------- Previous post was at 03:34 PM ----------

last i doing in tv permission in platform.xml

i thing going wrong in this

and other is boot animation change in media zip file

plz help what i am dong now .............any link of tv firmware to download in tv

thanks in advance
 

masifkalam

Member
Jul 29, 2015
14
0
Karachi
1. If you have stock bin or zip firmware just flash it.
2. If you do not have a firmware file, just connect to debugging UART and revert all your changes using console.

dont have stock bin and how connect to pc plz some brief

---------- Post added at 04:58 PM ---------- Previous post was at 04:48 PM ----------

1. If you have stock bin or zip firmware just flash it.
2. If you do not have a firmware file, just connect to debugging UART and revert all your changes using console.

plz some brief for debugging UART i will do
thanks fro reply
 

masifkalam

Member
Jul 29, 2015
14
0
Karachi

and how console used for revert changes
some examples
thanks dear i will understand these things

---------- Post added at 05:49 PM ---------- Previous post was at 05:25 PM ----------

and how console used for revert changes
some examples
thanks dear i will understand these things

any other solution for revert changes through pc or recovery mode
 

dipcore

Senior Member
Jul 7, 2015
136
135
and how console used for revert changes
some examples
thanks dear i will understand these things

It's just shell console with root privileges. Use it as you would use any shell console. I.e. using the sell copy needed files to usb drive then do changes on the PC and copy them back to TV.
 

masifkalam

Member
Jul 29, 2015
14
0
Karachi
Last edited:

dipcore

Senior Member
Jul 7, 2015
136
135
shell console with root privileges????? root???
and why copy files to usb first
just revert files from pc through deb uart

debugging uart this cable
http://www.96boards.org/wp-content/uploads/2015/06/uart-to-usb-cable.jpg

1. Yes ROOT, ROOOT, ROOOOT. It's by default for mstar based TV. So you should get root shell via UART debugging port, of course If your TV vendor did not change that.
2. Yes, you can update it directly from PC. I just provided an example of how to do it. Having shell access you can do a lot of stuff in a many different ways.
3. You can use any cable with usb-uart converter, for instance on pl2303 chip. I'm using similar to this one: https://www.aliexpress.com/item/Fre...lgo_pvid=d98f45a8-1c26-4a5e-bac3-39fdef513502
 

masifkalam

Member
Jul 29, 2015
14
0
Karachi
1. Yes ROOT, ROOOT, ROOOOT. It's by default for mstar based TV. So you should get root shell via UART debugging port, of course If your TV vendor did not change that.
2. Yes, you can update it directly from PC. I just provided an example of how to do it. Having shell access you can do a lot of stuff in a many different ways.
3. You can use any cable with usb-uart converter, for instance on pl2303 chip. I'm using similar to this one: https://www.aliexpress.com/item/Fre...lgo_pvid=d98f45a8-1c26-4a5e-bac3-39fdef513502

thanks dear
i will purchased this and connect to later in this platform
thanks for your time

---------- Post added at 06:41 PM ---------- Previous post was at 06:30 PM ----------

thanks dear
i will purchased this and connect to later in this platform
thanks for your time

just one thing more
debugging uart connect to tv in stand by position just red light , uart working because my tv automatically restart and off in boot animation

thanks ..............thanks.,,,,,,,,,,,,,,,,,,,,,,thanks...........................dear for your time
 

Top Liked Posts

  • There are no posts matching your filters.
  • 9
    Mstar Android TV firmware tools​
    Phython 3.4+ required.

    Currently available tools:
    unpack.py - unpack MStar bin firmware
    pack.py - pack MStar bin firmware
    extract_keys.py - extract AES and RSA-public keys from MBOOT binary
    secure_partition.py - encrypt image and generate signature file

    Unpack MStar bin firmware files
    Code:
    Usage: unpack.py <firmware> <output folder [default: ./unpacked/]>
            <firmware> - MStar bin firmware to unpack
            <output folder> - directory to store unpacked stuff. Default value: ./unpacked/

    Pack MStar bin firmware
    Usage: pack.py <config file>
    Code:
    Example: pack.py configs/letv-x355pro-full.ini
            <config file> - Configuration file. The config file structure will be described later.
                            For now you can take a look at configs/letv-x355pro-full.ini
                            and use it as an example

    Extract keys from MBOOT
    That tool is used to get AES and public RSA keys from the MBOOT. AES keys are needed to encrypt/decrypt boot.img and recovery.img images. aescrypt2 tool is used.
    Code:
    Usage: extract_keys.py <path to mboot> [<folder to store keys>] [<key bank offset>] [<key bank size>]
    Defaults:
              <folder to store keys>        keys
              <key bank offset>             0x168e00
              <key bank size>               0x450
    Example: extract_keys.py ./unpacked/MBOOT.img
    Example: extract_keys.py ./unpacked/MBOOT.img ./keys 0x169e00 0x450

    Encrypt partition and generate signature
    All new MStar builds have SECURE_BOOT option enabled. In that case boot.img and recovery.img is encrypted (AES) and signed with RSA priv keys. That script is used to encrypt image and generate sign file.
    To manually encrypt|decrypt image use aescrypt tool from bin folder. AES key can be extracted from MBOOT with extract_keys.py script.
    Code:
    Usage: secure_partition.py <file to encrypt> <AES key file> <RSA private key file> <RSA public key file> <output encrypted file> <output signature file>
    Example: secure_partition.py ./pack/boot.img ./keys/AESbootKey ./keys/RSAboot_priv.txt ./keys/RSAboot_pub.txt ./pack/boot.img.aes ./pack/bootSign

    Download tools:
    https://github.com/dipcore/mstar-bin-tool
    4
    If you want to enable HDR10 on HDMI ports of TCL TV P2US series/variants (based on MS6488 SoC).

    + Requirement:
    - Root your TV with SuperSU
    - Any file manager (I'm using ESFileExplorer and enabled Root)

    + Steps:
    1/ Download TCL_HDR_HDMI.zip in attachment file
    2/ Extract TCL-HDMI*-2.0-n3d-gb-hdr-420.bin file to /tclconfig/mstar/tvconfig/config/EDID_BIN/
    3/ Edit your ProjectID ini file /tclconfig/model/
    - In my TV, project ID is 187 (you can see it by open service menu via 9735 secret code), so I find EM_187_MS6488A.ini and edit:
    Add these lines to enable HDR HDMI
    [M_HDR]
    # if true, enable VS buffer switch patch, means to open HDMI HDR; if false: close HDME HDR
    F_HDR_HDMI = 1;
    #if mm or hdmi need support HDR feature, the flag should be set, otherwise should be cleaned.
    F_HDR_SUPPORT = 1;
    Change these lines to use new EDID with support HDR10 signal.
    [HDMI_EDID_1]
    HDMI_EDID_File_2_0 = "/config/EDID_BIN/TCL-HDMI1-2.0-n3d-gb-hdr-420.bin";
    ...
    [HDMI_EDID_2]
    HDMI_EDID_File_2_0 = "/config/EDID_BIN/TCL-HDMI2-2.0-n3d-gb-hdr-420.bin";
    ...
    [HDMI_EDID_3]
    HDMI_EDID_File_2_0 = "/config/EDID_BIN/TCL-HDMI3-2.0-n3d-gb-hdr-420.bin";
    ...
    - Save and reboot your TV.

    + Test HDR10 signal:
    - I'm using Mi box 4k (firmware 6.0.1 build 1034), set screen resolution to 4k2k-60Hz, enable Deep Color, HDR set to auto, use HDMI3 port on TCL TV.
    - Use Kodi to play Samsung Wonderland Demo.ts (4k HDR10 demo), this will auto switch HDMI signal to HDR10, new option HDR10 will appear in Picture Preset.
    - ADB log will spam "HDMI HDR metadata" is instead "GetHdrStatus: bHdrEnable=0"
    2
    Hello
    I havent root my tv.

    This is instruction how to update google services

    Description:
    All necessary (missing and updated) components required for the Google Play Market to work on TCL LxxP1US, LxxP2US, LxxC1US, LxxC1CUS. Included in the archive of packages, libraries and binaries are taken from OpenGapps version of arm64, Android 5.1, tvstock. Works on all firmware, including V108 and V150.

    A responsibility:
    You are responsible for what you do with your device. If you are not sure of your abilities, do not do the described actions better. To avoid errors, it is recommended to copy-paste commands, rather than typing manually.

    Installation:
    1. It is assumed that you have the ADB utility installed on your computer.
    2. Download zip-archive and unpack it into the directory where ADB is located.
    3. Start the terminal ("cmd" for Windows) and go to the directory with ADB.
    4. Check that there is a connection to the TV:

    Code:
    adb devices

    Find IP of ur's TV

    Code:
    adb connect <ip>:5555

    5. Copy the data to the device:

    Code:
    adb push tar-arm /sdcard
    adb push tcl-system-gapps.tar /sdcard

    6. Go to the remote system:

    Code:
    adb shell

    Then we take a root

    Code:
    tclsu

    7. Installing gapps

    Code:
    cd /system
    cp /sdcard/tar-arm xbin/tar
    chmod 0755 xbin/tar
    tar -xf /sdcard/tcl-system-gapps.tar
    rm /sdcard/tcl-system-gapps.tar /sdcard/tar-arm
    exit

    8. Done. If all commands are executed without errors, you can close the terminal and reboot the TV (it is better to disconnect from the socket).
    9. After the reboot, we check the work of the market play. Attention: Play Market application from TCL Appstore must be installed. Do not worry, this is not the market itself, but only a shortcut for launching the built-in application from the shell.

    Note #1: on MacOS / Linux before "adb" it is necessary to type "./"
    Note #2: the reboot after installation lasts a very long time (I had about 5 minutes). This is normal, the system should index new packages.
    Note #3: if something went wrong, and the TV is not loaded, you can return everything back, flashing through the flash drive with an alternative method from the cap.

    Download gapps from my google drive
    Or download it from
    @hexcoder will i used the above method but replaced the file for google play services in this file tcl-system-gapps.tar with latest google play services for android tv which i downloaded from apk mirror

    what you have to do is download the latest google play services for android tv and rename it PrebuiltGmsCorePano.apk
    and insert it in the file tcl-system-gapps.tar in the priv-app folder follow the above guide and it will be updated

    and if you want i can upload the updated files for you but when i get home
    2
    Hello
    I havent root my tv.

    This is instruction how to update google services - 4pda.ru)

    Description:
    All necessary (missing and updated) components required for the Google Play Market to work on TCL LxxP1US, LxxP2US, LxxC1US, LxxC1CUS. Included in the archive of packages, libraries and binaries are taken from OpenGapps version of arm64, Android 5.1, tvstock. Works on all firmware, including V108 and V150.

    A responsibility:
    You are responsible for what you do with your device. If you are not sure of your abilities, do not do the described actions better. To avoid errors, it is recommended to copy-paste commands, rather than typing manually.

    Installation:
    1. It is assumed that you have the ADB utility installed on your computer.
    2. Download zip-archive and unpack it into the directory where ADB is located.
    3. Start the terminal ("cmd" for Windows) and go to the directory with ADB.
    4. Check that there is a connection to the TV:

    Code:
    adb devices

    Find IP of ur's TV

    Code:
    adb connect <ip>:5555

    5. Copy the data to the device:

    Code:
    adb push tar-arm /sdcard
    adb push tcl-system-gapps.tar /sdcard

    6. Go to the remote system:

    Code:
    adb shell

    Then we take a root

    Code:
    tclsu

    7. Installing gapps

    Code:
    cd /system
    cp /sdcard/tar-arm xbin/tar
    chmod 0755 xbin/tar
    tar -xf /sdcard/tcl-system-gapps.tar
    rm /sdcard/tcl-system-gapps.tar /sdcard/tar-arm
    exit

    8. Done. If all commands are executed without errors, you can close the terminal and reboot the TV (it is better to disconnect from the socket).
    9. After the reboot, we check the work of the market play. Attention: Play Market application from TCL Appstore must be installed. Do not worry, this is not the market itself, but only a shortcut for launching the built-in application from the shell.

    Note #1: on MacOS / Linux before "adb" it is necessary to type "./"
    Note #2: the reboot after installation lasts a very long time (I had about 5 minutes). This is normal, the system should index new packages.
    Note #3: if something went wrong, and the TV is not loaded, you can return everything back, flashing through the flash drive with an alternative method from the cap.

    Download gapps from my google drive - tvgapps
    Or download it from opengapps.org