yashsingh1/xdaforums huggingface dataset:
[Android Software Development] dipcore:
Its two step process.

1. EMMC backup. Prepare and flash 1st bin file:

[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:

[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.
[Android Software Development] dipcore:
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
[Android Software Development] bamster89:
Maybe this is heplful

MSTAR ROOT_BOOT volume production

https://mega.nz/#!jQIyQJKT!PAnuBXZOPuPvOkoWkhpvk_ZCiHR1UJqAu9IobbemuTU
[Android Software Development] dipcore:
you do not need to play with bin files, if dd works for you.
[Android Software Development] dipcore:
Yes I read it, I used it to create that bin file configs.

Here are more docs: https://github.com/dipcore/Madsion/tree/master/MBoot_Madison_TVOS/doc
[Android Software Development] masifkalam:
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
[Android Software Development] dipcore:
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.
[Android Software Development] masifkalam:
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 ----------

plz some brief for debugging UART i will do

thanks fro reply
[Android Software Development] dipcore:
look at my post #4 https://xdaforums.com/showpost.php?p=71294095&postcount=4

use VGA port
[Android Software Development] masifkalam:
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 ----------

any other solution for revert changes through pc or recovery mode
[Android Software Development] dipcore:
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.
[Android Software Development] masifkalam:
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
[Android Software Development] dipcore:
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
[Android Software Development] masifkalam:
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 ----------

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
[Android Software Development] imgeld:
My LeTV x3-55

My LeTV x3-55

Last night I am trying to update the ROM/Firmware but after just inserting the USB with files It stuck on the screen and giving me some error related to the "mboot" after that I forcefully restart my tv by switch off the power supply and restart the tv. After that my TV is not booting up, It's just flashing the logo light.

Please help me to get my tv back.
[Android Software Development] maximusmx:
65" inc firmware

Hello my TV which is local brand but OEM from TCL. It compatible with V8-S68AT02-LF1xxx firmware.

I did flash the wrong firmware with 43" screen and need to change to resolution to support 65" like before.

Please advice which firmware or which settings should I change.
[Android Software Development] sagimarius:
Hi!

I'm trying to unpack the bin fw of a mstar based sat receiver, the bin file is here (3.7MB):

micro-nh.de/index.php?id=300&type=0&jumpurl=fileadmin%2Fdownloads%2FReceiver%2F12v_receiver%2Fm350plus_23082018.zip&juSecure=1&locationData=300%3Att_content%3A793&juHash=8b3f4847a2f83df608dc7cabc547a1b28947e081

Everytime i try to decompress the file as described here, github.com/dipcore/mstar-bin-tool

i get "Invalid syntax"

Say the bin file is in C:/ , what syntax should i use to decompress it?

Thanks.
[Android Software Development] maximusmx:
Download

Could anybody download attachment from this post and upload to some public server?

{Mod edit: Link to 4pda removed. Oswald Boelcke, Senior Moderator}

How to please?
[Android Software Development] tahitibub:
Hi,

I have an RD-817 projector with MStar android TV system and AIDA 64 says it is rooted.

How can I definitely remove stock application ?

Is it possible to upgrade Android ?

Regards
[Android Software Development] vmkundgol:
about using UART to flash firmware

Need help regarding using UART to flash recovery and firmware to 43P1US . I had root enabled and Uart is on in the engineering menu, Watchdog is turned off and adb is turned. i inadvertently flashed the 165 firmware and lost the powerbutton ability to flash. After that installed RAShr and tried to tinker with the TV in order to get back the use of power button . while doing so the programm downloaded a file from the net and flashed the recovery. Now my TV is does not boot up. only the back lights glow. I would like to know how to use uart to get back my TV to work again . Any help is appreciated. Nobody answered the above quoted also .please can anybody help
[Android Software Development] Wakky22:
Hi can anyone help me i flashed wrong firmware on my tcl 55dp628 via usb iv found the right firmware v8-s586t02-lf1v186 but i cant flash it the tcl logo just comes on 30sec off it goes bkack screen thanks
[Android Software Development] vmkundgol:
using UART to flash firmware

Hello Wakky22 ,

You can use a usb to ttl converter and flash the correct firmware . I had run into a similar situation a few days back and used this method.
[Android Software Development] Tousifhussain:
Firmware update using computer in rooted TCL C1US?

I have rooted Tcl C1US and installed v8-s68at02-lf1v185.bin and now power button is not working. Please let me know method to flash firmware using computer with male A USB cable.....

---------- Post added at 03:03 PM ---------- Previous post was at 02:56 PM ----------

Did you find method to work your TV again?

---------- Post added at 03:17 PM ---------- Previous post was at 03:03 PM ----------

Did you find method to work your TV again?
[Android Software Development] ntinykumar:
adb push tar-arm /sdcard

for above command bellow is the error from the command prompt.

PS C:\Users\Swara\Desktop\LG G4 810 10o\TCL TV ADB> adb push tar-arm /sdcard0

failed to copy 'tar-arm' to '/sdcard0': Read-only file system

PS C:\Users\Swara\Desktop\LG G4 810 10o\TCL TV ADB>
[Android Software Development] vmkundgol:
using UART to flash firmware

Yes i was able to flash using PC . M y TV is working again

I don't think v8-s68at02-lf1v185.bin is the proper firmware for v8-s68at02. I remember reading somewhere on a Russian forum that it is Actually for v8-s68at07 . So I suggest you download a firmware meant for v8-s68at02. My TVs Power button also was not working after Flasing v8-s68at02-lf1v165.bin. Later I found out that v8-s68at02-lf1v165.bin is actually v8-s68at07-lf1v165.bin.

We cant flash firmware using computer with male A USB cable directly. You have to use a TTL to USB converter to flash the proper firmware.

The method is simple.

1 take usb pen drive format it to fat32 and then copy the proper firmware for your TV to this formatted pen drive.

2 Connect the TTL to USB Converter to your PC.

3 Plug in the Pen drive wiuth the firmware into the USB socket of your TV. Connect the other end of the TTL to USB Converter's Tx, Rx & GND pins to the pins 12,15 and of the VGA on your TV( refer post 15 of this very thread for connection diagram)

4 start Putty console on your PC

5 Turn you TV on an keep on hitting ESC or Enter keys on your PC's Keyboard. You should see this " << MStar >>#" on your Putty console .

6 Now type # tcl_upgrade. Your command will look like this << MStar >># tcl_upgrade.

7 Now your PC will begin to flash through the TTL to USB converter

I am Pasting My Putty LOG generated when I reflashed my TV:
[Android Software Development] vmkundgol:
watch this video about Unbrick LeEco Super3 Super4 TV Using UART and Terminal App at https://www.youtube.com/watch?v=8amG8aNageM

it will give you some idea. it helped me to reflash my TV. but i used Putty ultimately as terminal did not help me
[Android Software Development] Tousifhussain:
No luck

I tried but no luck
[Android Software Development] vmkundgol:
I checked it on the net . your TV does not have VGA port. so you could not have tried UART on VGA. Search on the net and find where the UART points are , on your TV and then use USB to TTL converter. you will definitely be able to do it. where do you live, by the way.
[Android Software Development] Tousifhussain:
It has vga port

Thank you for your help. I am from Pakistan. It has vga port. When I connect uart USB to Ttl and use putty it reads log initialky like you post but it does not show mstar I mean looks like TX from PC to TV is not working . Please suggest some new solution
[Android Software Development] Ivanespo95:
nordmende nd49ks4000s

hi, i've this tv model that is a mstar macan based tv with cranberry software that's an android tv 6.0 custom firmware called tvos 4.0..... anyone know how to root this tv and how to access to all settings instead of the one customized by the manufacturer?
[Android Software Development] vmkundgol:
I think the problem is not with the TV VGA but the USB to TTL adapter . I would suggest you to use a CP2102 USB 2.0 to TTL UART Serial converter Module because when I use PL2303 USB to Serial(RS232-TTL)based converter , It didn't work for me. By the way watch the You Tube video that I had posted earlier . it will help you to understand some basics. By the way post the logs that you get on putty ,so that I can try to compare them with mine. with PL2303 USB to Serial(RS232-TTL)based converter even I thought that my Tx is not working .But its them problem with PL2303 chip, which is counterfeit chip used in cheap chinese made converter. Search the net and you will get a lot of information about these counterfeit chip and how the drivers dont support them. I used it on a windows 8.1 PC. Read it somewhere that Windows 10 has problems instaloling drivers for thsese USB to TTL
[Android Software Development] gtuxyco:
I have a 50 inch TV is a mstar msd6586-t8e2 board

I connected via ip and was installing some applications in the priv-app folder and by mistake I changed all the permissions of the folders to 0644 and damage the system now does not boot.

try to connect with male to male usb and the laptop no show any device, so i assumed it cant connect thru usb.

the problem is that it no has vga port so i cant use as serial port, I dissasembly it and I saw that it has an i2c port, try to connect using an arduino one as if it were uart but it did not work. Also try flashing a zip with commands to fix the permissions but it gave me error.

someone knows how I can fix it? I just need to repair the permissions.
[Android Software Development] ThAnEb:
Some help please ^^

Hi Dipcore,

Many thanks for your tools and all the knowledge you are sharing here, really useful !

I own a mstar based philips tv and i try to make it use a bluetooth dongle (BCM20702) i bought especially for it and to install widevine drm.

The goal of this is unplug the external mi box for ever.

After many research, it seems that everything in my system is ready to use bluetooth, but I'm still unable to activate it (aida32 saw it as bluetooth, system has bluetooth apk / permission / config in /etc...), and so i wanted to look system files from another clone... i found one MstarUpgrade.bin from a kogan tv ( https://assets.kogan.com/files/support_files/KALED55KU8000SZA/MstarUpgrade.bin ) but I'm unable to unpack it, your unpack.py returning "update file" error..

I already had to send my tv one time to the after sales (was stuck on boot logo) after a wrong rm command i did ^^ , so before doing something wrong again, i must ask you :

I found in /config the " Flags " file, which contains the value BLUETOOTH_ENABLE=0 , could it be this point that make my tv unable to use the bluetooth dongle i connected to it ? Can I safety edit this file ?

If you have any suggestion on how to add widevine drm support, I'm open ! i tried to add related files from the google nexus player (with same build number), but it's still didn't work.. ( https://developers.google.com/android/drivers#fugulmy47v )

Here's all details of my tv :

Model : 55put6002s/67

aosp_philips_asia - 5.1.1 - 5.0.8 user debug

BUILD : LMY47V - API 22

tv638_DVB msd6a638_dvb

Platform : Arbutus - Msd6a638-t8e2

K550wdc1/2_lp350a2 - Tuner mxl661
[Android Software Development] MarTinCzeK:
help please

Hello dipcore,

I want to unpack this firmware:

https://drive.google.com/open?id=1lp7f0ErEAT1HJsZdc4_NxXGFtUfH1uVn

but unpack.py script just generate this error:

Analizing header ...

Traceback (most recent call last):

File "C:\Python36-32\unpack.py", line 46, in <module>

headerScript = header[:offset].decode()

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x96 in position 0: invalid

start byte

What i'm doing wrong ? Please help

Thank you in advance
[Android Software Development] Tousifhussain:
Thank you vmkundgol. I solved the problem by opening the back to led TV and confirming it TX port is "2" in vga port. Then I easily changed firmware. Thank for your help
[Android Software Development] Er. Aditya:
hi dev , how would i confirm if my tv has an update and where should i download from ?
[Android Software Development] VinhNguyen89:
Hi longnt2007,

I'm using TCL 55 C1, would like to ask you some questions:

1. Can I enable HDR HDMI for my TV using this way?

2. Normally I can't connect HDMI with 4k 60fps (only 1080 60fps or 4k 30fps). Is there any way to configure this?

Thanks.
[Android Software Development] RandomLettersandNumbers:
How can i open service menu ?

How can i open service menu?
[Android Software Development] pravingasva:
file size not a multiple of 16!

Hi [MENTION=6810881]dipcore[/MENTION],

I am getting this error while decrypting: "file size not a multiple of 16!"

How can I solve it?? Screenshot attached..
[Android Software Development] pravingasva:
[MENTION=6810881]dipcore[/MENTION], gone pass through this error. It seems that the img files were already decrypted.

Anyways, I'm going through this hassle just to find a way to run the MStar Firmware within Android Virtual Device. I want to make some changes and test the rom before flashing.

Could you guide me in this??
[Android Software Development] divubi2004:
I have akai aktv3226 T with CV338H-T42 mainboard. I have make a emmc dump from mstar console with the command emmcbin. On the U disk I have found 3 file. BOOT1 BOOT2 and EMMC.bin

If I try to load back the dump with the commando bin2emmc the TV dies. Fortunately i have the ISP boot file and I can upload them with the RT809H programmer. So I have again the mstar console. But I need to charge the emmc.bin dump from mstar console

Any ideas ?

From mstar console it's possible root access ?
[Android Software Development] forart.eu:
Hi everyone I just discovered that my cheap 4K AndroidTV - rebranded by local distributor as "Q.Bell QT43K03" - is an Mstar-based device (probably MSD6586 'cause it features 2xA9 1200MHz, Mali-400 MP, 1.5Gb RAM+4Gb ROM).

It's not that bad for its price even if i have a doubt: according to my web researches, Mali-400 MP isn't able to manage UHD resolutions, so how the board can handle it ?

I want to understand if is possible to "optimize" it by upgrading/crossflashing its ROM without (high) risks.

Of course I wanna backup its firmware 1st in order to easily revert changes in case of brick or reselling.

I believe that Mstar boards are used by many manufacturers so many different products colud be (almost) the same: it would be interesting to have a wiki (like this) to understand true differences between boards and software used on them.

Last but not least, here's some questions:

I've not understanded if Mstar boards mounts own CPUs only or they also assemble 3rd-party ones: can you argument ?

Do you think it's possible (in the next future) to build a Libre/Open/CoreELEC for Mstar boards ? What's needed to achieve this ?

Thanks to anyone that will help !
[Android Software Development] Zestar:
im also interested on this .:good:

I have seen the OpenElec (root) on the play store, but i have been unable to root the device, i have tried all the one click root apps that are out there.

Im specially interested on the youtube 4k plugin, it can stream youtube in 4k but the tv always downstream to 1080p. and if I change the resolution to 4k it fails to restart due to memory issues.
[Android Software Development] al1963:
Help please !!

I have smart projector with mstar android 6.0 aosp

I cant flash gapps because system olmount has no RW. I tried through system recovery to apply updates from sd card wher the gapps zip file but it gives "can not get FAT label. Can some one help solve this issue.

I tried many root apps but none worked I even tried kingroot zip file but didnt work. Please some one help

Thanks
[Android Software Development] alesul:
Dear Friends I have an Jtc 55 curved 4k modell And I Want to help me if exist a hacked firmware with android And Hdr to install/flash on this modell. THANK you and I wait a feedback.
[Android Software Development] isamhhh:
TCL LED 4K Android Smart TV 50P1US What is the latest software?
[Android Software Development] hasaney01:
Hi everyone.my tv is 55c2lus & firmware v8-s68at06-lf1v016.

I need the new firmware.can u help me?
[Android Software Development] hasaney01:
firmware update

Hi.my tv is 55c2lus & firmware v8-s68at06-lf1v016. Can i update it by firmware V8-s68at02?
[Android Software Development] ThAnEb:
Bump for people having a user-debug build, rooting is just few adb commands lines, explained here :

https://selvaline.blogspot.com/2015/09/how-to-install-supersu-on-android-via.html

and easily automatized or copy-pasteable here (ready to use for 64bits, has to be adapted for 32bits) :

https://github.com/spff/install-supersu-via-adb

And if after rooting, at first supersu launch, you got a "su process in use", it could be an "older su" (the one provided with the build) that remains in /system/bin , so maybe pull /system/bin/su (for back up) and then rm /system/bin/su , reboot and everything should be alright !
[Android Software Development] Jalava:
Same TV but 43", I can't login in my Google Account, I receive FC so I vould like to root it and reinstall the gapps
[Android Software Development] khachanedhaval:
need help for packing my bin firmware...i successfully unpacked it made changes now dont know how to pack again..please guide me friends
[Android Software Development] Zestar:
I have a MStar macan Android TV, I was installing Netflix using adb from my laptop and it failed, now the TV enters a boot loop every time i plug it.

how can I enter recovery mode or factory reset it?

any help will be greatly appreciated.
[Android Software Development] ThAnEb:
If you are lucky enough, maybe the system reach the network few second (just to get an ip and then stuck into its loop). You can check that with the dhcpclient list of your box/router, if you can see that, you can use these bash scripts :

./safemode.sh xxx.xxx.xxx.xxx <- IP of the tv

#!/bin/bash
if [ $# -ne 1 ]; then
echo "i need one parameter: the IP address of your android device"
exit 1
fi
while true; do
if [ $(./adb devices | grep "$1" | wc -l) -lt 1 ]; then
./adb connect $1
adbExitCode=$?
if [ $adbExitCode -ne 0 ]; then
echo "adb connect failed"
fi
if [ $adbExitCode -ne 1 ]; then
./adb shell su -c 'setprop persist.sys.safemode 1'
./adb reboot
fi
fi
sleep 1
done

./recovery.sh xxx.xxx.xxx.xxx <- IP of the tv

#!/bin/bash
if [ $# -ne 1 ]; then
echo "i need one parameter: the IP address of your android device"
exit 1
fi
while true; do
if [ $(./adb devices | grep "$1" | wc -l) -lt 1 ]; then
./adb connect $1
adbExitCode=$?
if [ $adbExitCode -ne 0 ]; then
echo "adb connect failed"
fi
if [ $adbExitCode -ne 1 ]; then
./adb reboot recovery
fi
fi
sleep 1
done

I had an issue with my philips mstar based tv, it was powering on, but struck on the loading, I saw that there's a small window of time where the system was reaching the network and get an ip, and in that window, the adb can interact. But as it's a very very very small time window, I had to find and adapt a script that try and retry to connect an ip and then order it to go recovery or safe mode.

I suggest you to start by safe mode (if it successfully goes out from the loop), maybe you could fix with adb command.

save each code into a recovery.sh and a safe.sh file in the adb folder (if adb isn't in your bash path),

chmod +x safe.sh
chmod +x recovery.sh

and then execute

./safe.sh IP

or

./recovery.sh IP

boot the tv and cross the fingers !
[Android Software Development] forart.eu:
Just found this interesting post about Mstar rooting, hope that can help someone:

Root shell on a MStar based UMC TV (Sharp LC-24CFG6132EM)

EDIT

OK guyz, "search & found" time today...

Here's Kogan's TVs - which are Mstar-based devices too - firmware upgrades collection (many are Android 8.0):

Firmware Upgrades - For software, audio, tuning and display issues
[Android Software Development] Addy1212:
About packing mstar .bin help

Hey when I am flashing new modifyed bin into board. Board was dead.. please make simple packing video with, do some changes in system and pack new system.img. and teach us step by step packing .bin file.. please bro I am fail in packing please make one video. And Anyone know about the packing. Please help me guys, I am waiting your reply.. my mail - advadotes@gmail.com
[Android Software Development] genesx:
I have tcl 55C2LUS, however it doesn't support tclus, what do else do I have to do? would much appreciate any help