yashsingh1/xdaforums huggingface dataset:
[Android Head-Units] mark-1978:
Update: you can just put an ota zip file with the file i have attached here under the root of a fat32 formatted usb stick. Insert it and the flashing should automatically start when the device has booted up.

I don't know if you can just put an android 9.1 go ota update within a android 8.1 go installation.

Root: You first need twrp installed. Download an ota file for your device and extract it into a folder. Then replace the recovery.img with the twrp one(recovery.img attached to this message). Then usb zipbuilder to zip the folder to a zip file. Put the zip file under the root of the fat32 formatted usb stick together with the xyauto_bin file and install it in the device. You know have twrp installed on your device.

Now install terminal emulaator under android and run it. Type 'reboot recovery' to reboot to twrp recovery. In twrp recovery, you can just install the magisk zip file. Then install magisk manager apk. You can also install the other zip files (busybox, beats, dolby and viper4android). Then do a factory reset(else it may get a bootloop). You should now have a rooted device.

btw, i used this switch for turning the radio on and off. Otherways the radio would drain the car battery when in standby.
[Android Head-Units] mark-1978:
First i had this switch installed, but the bass was weak, so i guess it only supported like a maximum of 3 Amps. The switch in the post above is given a 35 Amps, so that's enough for the 10 Amps of the radio.

You can also install viper4android through the magisk manager.

Who has been able to install viper4android and dolby successfully, and how did you manage this?
[Android Head-Units] Javy.Khan:
Hi,

I need help with updating firmware of my head unit. I am novice to this but can do if have complete and right instructions. My HU model is YT9216B. Attached screenshots

Thanks
[Android Head-Units] FoxH69:
OK then;

I download the ota file for my device and extract it to a folder. I replace the recovery.img file with the one in your post.

Next, I use zipbuilder to create a firmware zip file with the modified recovery. Then I transfer this zip file to a USB stick together with the XY Auto file. After that I use terminal emulator on the android device, type "reboot recovery" and install magisk.zip. Next I install Magisk apk and I should have root.

Forgive me if I repeat all the steps but I would like to be sure I understand!

Are the steps I have described all correct?

Also I wanted to ask: where can I find terminal emulator? And magisk apk where do I get it?

Thanks again infinitely for everything!

EDIT:

Sorry, I only saw now that everything is in the file on the first post. So just insert everything on the Usb pen and launch them in the order I described, right?
[Android Head-Units] mark-1978:
files attached. You can also get them from the zip file from the original poster. The rooting i manage, but haven't installed viper4android through magisk manager yet. That should work though. It is a more compatible version then the one attached/first download.
[Android Head-Units] FoxH69:
great, thanks a lot! Can you confirm that the steps I have described are correct?
[Android Head-Units] mark-1978:
Those are the steps the original poster makes. Except for the (Developer options - OEM Unlocking - Make sure this is Enabled) in developer options and the factory reset he makes.
[Android Head-Units] FoxH69:
[QUOTE = "mark-1978, post: 84343263, membro: 6767868"]

Questi sono i passaggi che fa il poster originale. Fatta eccezione per le (Opzioni sviluppatore - Sblocco OEM - Assicurati che sia abilitato) nelle opzioni sviluppatore e il ripristino delle impostazioni di fabbrica che esegue.

[/CITAZIONE]

Perfect! I hope it is universal for all car radio codes and therefore also for mine (I have a yt9216b). I just hope I don't get in trouble😅
[Android Head-Units] FoxH69:
I just have another question: when I insert the USB stick to the main unit, it should automatically install the new firmware downloaded with the new recovery, right? Then I use terminal emulator and install magisk.zip and all the rest.

I hope they are the right steps!
[Android Head-Units] mark-1978:
Ok, so the original poster, if you follow his directions, it works perfectly. So for the installing of twrp you can use my posts, the rest like the installing has to be done according to the first post of this topic.
[Android Head-Units] FoxH69:
I probably did something wrong. I downloaded the firmware, reshaped the recovery and created with Zip builder a new file (obviously with a different name). transfer everything on a usb pen formatted in FAT32, I insert it into the USB socket of my car radio but nothing starts. Active developer options. where did I go wrong?
[Android Head-Units] mark-1978:
either way the radio isn't detecting the usb stick, so try inserting it again, or you haven't got the XYAUTO-UPDATE.BIN file in the root of the usb stick too. Or, you haven't got the files straight under the root of the zip file.

Probably why viper4android wasn't working for me, was that the magisk rooting wasn't working. So, when you make a factory reset after flashing the magisk.zip it should work. And then you might even be able to install the latest viper4android app 2.7 and let it install the drivers. So then instead of having version 2.5 you would have 2.7.

When you flash a new rom through spflashtool, you can use an usb mouse to set the resolution in factory settings the first time.

Can someone try to install viper4android 2.7? It is a rewritten version, so faster and more options.
[Android Head-Units] FoxH69:
nothing to do, I tried to do it all over again as you described and in no case can I start the update.

I formatted the key again in FAT32, inserted the modified firmware, the XYAUTO_UPDATE.bin file and it does not start. I also inserted the original firmware, without modifying anything, and in any case no type of update has started. Developer options are active. I don't know if I am doing something wrong or should activate some other setting somewhere else
[Android Head-Units] mark-1978:
Maybe you're trying a android go 9.1 ota update on a android 8.1 rom version? Best is to connect a pc to the radio. Just get the radio out of the car. You need to install drivers first, booting the windows into unsigned driver mode. The preloader you have to select i attached.

Then just start the flashtool flashing and connect the usb cable between pc and radio( radio powerless).
[Android Head-Units] Mohie.soheim:
hello please i need help to update this firmware

i have download from xyauto ( gongban_en_YT9216CH_ui1-hw-ota-v6.2 )

but it get me failed

any help to make it read canbus

thanks in advance
[Android Head-Units] mark-1978:
What api level is your rom?

If you want to update the firmware, you need the preloader for 32 gb sd card. But to be honest, mostly small bugs have been solved in newer roms. Strange that your info says android 10.1, while the downloads show 8.1 and 9.1. I thought the api level of the android 10.1 is the same as 9.1 so api level 27, which is real android 8.1 oreo.
[Android Head-Units] Mohie.soheim:
i have a fake android 10 its already 8.1 go
[Android Head-Units] mark-1978:
Then you need to flash android 9.1 go with a pc.

The preloader i attached couple of posts before didn't give any trouble on the yt9216b 1/16gb.

What is the preloader for:

Preloader

The function of the preloader is user-defined. However, typical functions include initializing the SDRAM interface and configuring the HPS I/O pins. Initializing the SDRAM allows the preloader to load the next stage of the boot software (that might not fit in the 60 kilobytes (KB) available in the on-chip RAM). A typical next software stage is the open source boot loader, U-boot. The preloader is allowed to load the next stage boot software from any device available to the HPS. Typical sources include the same flash device that contains the preloader, a different flash device, or a communication interface such as an EMAC.
[Android Head-Units] mark-1978:
Maybe this is something for you.
[Android Head-Units] Mohie.soheim:
thanks

but i think this is the same firmware

is this firmware in attached photo work with my device

i wan't to update mcu and can pro
[Android Head-Units] mark-1978:
Maybe the 10.1 is the nasty part. You can try update mcu only though. You might have to flash twrp.img (recovery.img) only through spflashtool to get twrp.
[Android Head-Units] Mohie.soheim:
it's an empty page

MCU firmware v3.5

https://4pda.ru/forum/dl/post/18273422/iap_pv1_9218033_097.rar
[Android Head-Units] mark-1978:
Then maybe, you have to flash a complete rom using spflashtool and download only mode.
[Android Head-Units] matibu06:
My device have 2 GB RAM, or its fake?
[Android Head-Units] FoxH69:
[QUOTE = "mark-1978, post: 84377231, membro: 6767868"]

Forse stai provando un aggiornamento Android Go 9.1 ota su una versione rom di Android 8.1? La cosa migliore è collegare un PC alla radio. Tira fuori la radio dalla macchina. È necessario prima installare i driver, avviando le finestre in modalità driver non firmato. Il preloader che devi selezionare l'ho allegato.

Quindi basta avviare il flashtool lampeggiante e collegare il cavo usb tra pc e radio (radio impotente).

[/CITAZIONE]

Sì, penso sia la cosa migliore. in questo caso penso che flascherò un firmware costum così da avere qualcosa in più. Grazie mille per il supporto!
[Android Head-Units] mark-1978:
If you set spflashtool to download only, it might give an error. The rom should still be ok, but it'll advise to format and flash using preloader.bin. Seems you have an italian radio. The russian would advise to open up the unit and search for text written on the mainboard on what type the radio really is. Then you can download a rom at xygala according to that type.
[Android Head-Units] Mohie.soheim:
when i tried to update and start update it's give me an error msg
[Android Head-Units] mark-1978:
did you try ota 8.1 or 9.1 go from xygala? Must say that the russian complain about the newer roms, that the side buttons get out of order. They setup the side buttons, then reboot and the buttons don't work. So, the rom doesn't store the buttons functions.
[Android Head-Units] Mohie.soheim:
no i have tried 9.1 only

6.2 and 6.7
[Android Head-Units] mark-1978:
your radio android version is api level 23, so real 6.0 and 8.1 go version. Android 9.1 go has api level 27.
[Android Head-Units] Mohie.soheim:
sorry for alot of question as i have no idea about these stuff api and versions

thanks for help :)
[Android Head-Units] mark-1978:
your radio is api level 23, which is android 8.1 go.
[Android Head-Units] Mohie.soheim:
this api can't be updated for this is a ahardware thing
[Android Head-Units] mark-1978:
it can, but you'll have to connect the radio to a pc and use spflashtool and probably need the right preloader.bin file.

It's a guess, but maybe the 8.1 go ota file will still work for your android version and installing twrp by usb stick.
[Android Head-Units] Mohie.soheim:
i have tried to install 8.1 and succeed but without changing only problems

1st it's a Chinese language

2nd the android setting has a bug and don't open

can i install this one instead og 9216c

xyauto_ui1_9216CJ-hw-ota-v3.4.zip
[Android Head-Units] mark-1978:
at xygala you can also download the foreign language ota update. You downloaded the chinese one.
[Android Head-Units] Mohie.soheim:
in this version the only option avilable is Chinese

can i install this one instead og 9216c

xyauto_ui1_9216CJ-hw-ota-v3.4.zip
[Android Head-Units] mark-1978:
this one i should download if i were you for backup.
[Android Head-Units] Mohie.soheim:
is this one for 2 g , 32 memory as it wrote 2.16
[Android Head-Units] mark-1978:
it should work though, cause it's an ota update as well. It has twrp and root, just still from 2019.
[Android Head-Units] Mohie.soheim:
is the mcu can update also ota , if yes can you send the link of new version as my version is 3.1
[Android Head-Units] mark-1978:
it was a folder, but works the same as ota update. Just put it in the root of the flashdrive. Mcu update, 4pda has removed them.
[Android Head-Units] Mohie.soheim:
yes i tried to download them but unfortunately it's removed
[Android Head-Units] mark-1978:
maybe you can set the chinese rom to english. Then you would still have a latest mcu version.
[Android Head-Units] Mohie.soheim:
I have a big problem this **** version Chinese has no google services ( playstore and maps and all google service )

And tried to download different version and always fail any help please
[Android Head-Units] mark-1978:
Attached the preloader for the yt9216C car stereo. You can now flash android 9.1 go from the xygala site.
[Android Head-Units] Mohie.soheim:
sorry for noising what shall i do with this or how can i update do you mean with spflash
[Android Head-Units] mark-1978:
yes with spflashtool. You got to get the pc into 'unsigned driver' mode first, to install the usb drivers. Select the scatter file from the xygala 9.1 rom, select the preloader i attached a couple of posts back, press flash button and connect usb to car radio. It should start flashing then.
[Android Head-Units] Mohie.soheim:
so there is no other solution for install 8.1 with flash any more ?

just with spflash
[Android Head-Units] mark-1978:
there is, a xyautoupg folder in the root of the fat32 formatted usb stick. I have no experience with that, but it should work the same as xyautoupg.bin in the root folder with the ota zip file. Just then the files would stand in the xyautoupg folder.

maybe the ch file in xygala, the h stands for hifi?

Don't know, but usb write and read speeds are very slow with android 9.1 go.

*edit: installed startup manager and deactivated startup of mediastorage. Write and read speeds are optimized again.
[Android Head-Units] mark-1978:
can't you try this version? It's 9218c, just the same as the one you flashed.
[Android Head-Units] Mohie.soheim:
I tried it with isb flash and get me file damage

Do you think i could flash it with spflash
[Android Head-Units] mark-1978:
so, android boots up, it checks the ota zip file and it gives an error? Then the zip is corrupted. You should download it again and check if you can extract it on your pc, so you know it's not corrupted.

Yes, you can flash a rom. Just got to install the drivers with driver signing check disabled. And use the right preloader.bin.
[Android Head-Units] Mohie.soheim:
Till now i have tried all this files

Yes the files is'nt courpted
[Android Head-Units] mark-1978:
You could try to rezip the 9218c ota files with zip builder. When you say it gives an error, you mean in the recovery mode flashing? Cause then the rom probably isn't compatible with your device.
[Android Head-Units] Mohie.soheim:
New error 😅
[Android Head-Units] mark-1978:
on what ota update file? The 9218c 8.1 go?
[Android Head-Units] Mohie.soheim:
yes on 9218c ota
[Android Head-Units] mark-1978:
then maybe the 9216cj version will work.
[Android Head-Units] Mohie.soheim:
same problem as i told you in previous post i have tried to install many different version

so do you think if i do it with the hard way ( spflash ) it would work and if yes which version do you advice me to use

sorry for alot of questions
[Android Head-Units] mark-1978:
i think this version with the preloader of 9216c.
[Android Head-Units] Mohie.soheim:
what is the use of preloader file ?

as i read before that when you use spflash uncheck the preloader file
[Android Head-Units] mark-1978:
it is the config file for ram type(and more hardware types). You can try to untick the preloader, but probably it will give an error during flash and you have to still tick it and format and flash the radio.
[Android Head-Units] Mohie.soheim:
i will try the 2 way , but i was looking for a way with ota as i'm afraid of doing with spflash to brick the device do you advice things to take care of it

as i',m beginner with this stuffs and have no idea how to make it
[Android Head-Units] mark-1978:
do you have a 2 din radio? Cause if so, you can always shortcircuit two spots on the mainboard and still flash a rom if the radio got bricked.

The preloader should be this one.

*edit: i see you want to install another ota update all though it's not for your radio. It isn't difficult to adapt the ota update, just replace the the head of the chinese updater-script into the other updaterscript.

*edit2: there is a preloader.bin in the upgrade file from xygala of android 9.1 go, and it's for the 9216c :) I attached it, but it's also in the upgrade file.
[Android Head-Units] Mohie.soheim:
no i have with touch button
[Android Head-Units] Mohie.soheim:
sorry i didn't understand the ( edit 1 )
[Android Head-Units] mark-1978:
You maybe better of installing the newest 9.1 go android through spflashtool. The preloader must be right, cause it's from xygala from the 9216c folder. So you can't really brick your radio by flashing the firmware.

. It isn't that hard to do and it works good, you have a clean install again. But i would replace the recovery.img with the twrp one, so you can root the radio and install viper4android and dolby.
[Android Head-Units] Mohie.soheim:
Ok thanks i will try

Where can i find recovery file

I will download this file
[Android Head-Units] mark-1978:
twrp recovery image.
[Android Head-Units] whoreforsatan:
Where is the button to power down the device? I can only find the reboot option.

Maybe then I can figure out if my usb is working. Having the same problem as

buffaloquinn
[Android Head-Units] mark-1978:
If you run the attached batch file as administrator, it should disable driver signature verification.
[Android Head-Units] quixcraiova:
Hello , i have question for owners of 8227L ANDROID YT9216B 2gb ram, 32 rom. I think i bricked my device, it became with blank black screen and only sensor buttons lighted up. It became unreadable for pc. I saw how to make it again visible with dissasembling the unit and using little wire. After that the device became visible again and i flashed it with another rom . Sadly after i gave the key in run position the device boots , shows me bootscreen and then appears the desktop but this time sensor keys and touchscreen not works . I saw method with five finger how to calibrate the touch screen but nothing appears on screen. I've tryed the original 8.1 Android rom from xy site with the preloader and recovery from archive as mentioned in the attached screenshot and i arrived to blank screen again. Atm im downloading 9.1. and i gonna try the same with preloader and recovery using format + download option in flashtool as usual. If even this cant help me what do you suggest me to do?
[Android Head-Units] mark-1978:
" Sadly after i gave the key in run position the device boots , shows me bootscreen and then appears the desktop but this time sensor keys and touchscreen not works . I saw method with five finger how to calibrate the touch screen but nothing appears on screen."

If you flash a fresh rom, the screen has to be calibrated again. You can do this by putting 5 fingers on the screen and hold it for a while. The sidebuttons you have to calibrate again too using the factory menu. Something with steeringwheel controls i think.

I would just flash the 8260 rom, cause it seems to be the newest and compatible with the 9216b.
[Android Head-Units] quixcraiova:
Hey Mark, thank you for reply, there is a problem when i use a USB mouse, when i move it nothing happends. Somehow i think the rom dont recognize it. I dont have buttons on my steering wheel to use. Im searching now for 8260 rom, but i cant find it. If you can help me with link i will be gladful. I think my unit is with 1024x600 screen. The only possible way to flash atm is with dissasembled unit and the wire method. When i try to flash otherway it cant be done.
[Android Head-Units] mark-1978:
here you go. Use the preloader i posted in this topic for 9216b.
[Android Head-Units] quixcraiova:
Thank you , i downloaded your preloader upload from post in 3th page . Now im downloading the rom . Later after few hours of work i will try to flash it . I hope all will be ok . Will come with feedback what happened !
[Android Head-Units] mark-1978:
usb mouse should be working, first click then move. Maybe you have to restart the radio or connect to the other usb cable.
[Android Head-Units] quixcraiova:
Yeah, i know that but not worked. After few hours when i go back home will flash again using wire method with format + download option in flash_tool with your preloader and will write feedback. I hope all will be ok.
[Android Head-Units] quixcraiova:
Mark , Im trying with your preloader but still gives me error with DRAM . Im still trying and still the same .... I"ve tryed with preloader_8227l_demo.bin and worked . Now im assembling and i will go to test the unit in car .
[Android Head-Units] mark-1978:
It seems like version 6.7 (9.1 go) has a setting in engineers which lowers the battery drain when the car is off. I can't find it in 6.6 though.
[Android Head-Units] velles2003:
hello

i have a YT9213A 2GB/ 32GB

i want to try upgrading to 8.1 from 6.0 from USB

did i got this right?

format USB fat32 -> create folder "xyautoupg" -> put in that folder the files from archive from xyauto + the preloader -> reboot?
[Android Head-Units] mark-1978:
You probably have to flash the firmware using a pc and spflashtool. The theory goes however that you can flash a new rom too the way you describe. I haven't been able to though.
[Android Head-Units] dsev2:
Hi I am a new member and am hav I ng issues with my head unit volume too high on lowest setting and equalizer not working and no fader or balance control my reseller has not been able too help it is frustrating will post pic of system
[Android Head-Units] beatrunner:
Hi, at the beginning srry for my bad english.

I tried to Upgrade from a 9216c_0005_V04_20191012_Hifi 2/32

to your Android 8.1 (Api 27) from first Post... Downloaded all.... moved needed things to usb ...flashed by PC, as u wrote format + Download....got a OK Check after flashing....

But then black screen... tried to reset th HU nothing, so I disconnected Power from Battery to Restart the HU. BUT Nothing, seems like Display is a little bit flashing sometimes but no systemstart.

I`m getting crazy. :-(

Please help me to get the HU running again.

THANKS
[Android Head-Units] Senextr:
I updated my headunit today via this post.

All is working great except my sound. I tried both the normal sound settings and the dolby settings. on the normal sound settings my sound is really low compared to before the update. when i start dolby and enable it, its louder but not great still.

But when i turn it from 19/20 i get a weird sound. like my speakers turn on again but with the sound from before the update. i get more bass and the sound is more clear in general.

when i turn it back down to 19 It's bad again.

Could this be a problem with dolby? or with the update?

Anyone got an idea? Can't figure it out.

Thanks!

Firmware before the update: watch pictures.
[Android Head-Units] supermdmario:
I installed the same firmware yt9213aj over my old yt9216b and i can tell you that it works perffectly.

now i make all the settings and i install some apps.
[Android Head-Units] supermdmario:
yes it is
[Android Head-Units] mark-1978:
just read on 4pda, that in some cases if you don't turn on bluetooth and wifi, the gps doesn't work. It's cause if you don't turn on the wifi and bluetooth, the gps chip doesn't get power since it's the same chip.
[Android Head-Units] focussoft:
link is dead :(
[Android Head-Units] focussoft:
Sorry, the file you have requested does not exist.

Make sure that you have the correct URL and the file exists.

Can someone fix or upload the file again please ?
[Android Head-Units] mark-1978:
on 4pda it says that the 9213 is compatible with the 9216b. There's version 6.8, it has a working equalizer, but no dsp for mp3 playing software as well as the radio. Maybe it has voice controlled dialing too? It does have carplay. I can't find anything like dolby or viper4android like looking through the system.img file. You have to use spflashtool to flash the rom.

When you flash a firmware, you may have to disable xy swapping in factory settings for the touch to work correct.