yashsingh1/xdaforums huggingface dataset:
[FYT Android Head Units] surfer63:
As of Android 8 this doesn't work anymore. For none of the apps. When using FYTStarter or any other app to start Tasker, Tasker is launched in background. As of Android 8 those Tasker/Llama/MacroDroid/Automate etc. apps are not allowed to do these tasks in the background anymore.

So yes, if you start it from the foreground it works.
[FYT Android Head Units] LunaEros:
That's something I did not know. Mine is supposed to have 8.1 in it.
[FYT Android Head Units] surfer63:
Thy use a completely different technique to "first flash" these units. They set some pins high/low of the MCU or CPU and are then able to flash the unit. It has been described in one of the older threads from 2-3 years ago.

I'm not a hardware guy so I was not interested enough to remember it. ;)
[FYT Android Head Units] LunaEros:
Well that just bites, doesn't it? Grrr. I'm still not gonna stop looking. Once I can get a hold of the firmware that's currently in mine I'm gonna try that magisk method or whatever it's called.

Does that method result in the same rooting results or are there things you still can't do that you would be able to with normal rooting?
[FYT Android Head Units] surfer63:
To add to this.

On a normal cold boot, Tasker and all the apps are still allowed to start on the "boot_complete" event.

But on very unit most apps are killed when going into deep-sleep.

For that reason I added the "automation" apps I know, to the unkill_app.txt in the Extended main server mod (see post #133).

But I never tested these myself as I don't use these apps.
[FYT Android Head Units] tchleb:
Thanks for the detailed hint!

Is there a solution to start Tasker after booting at foreground? e.g. Make tasker to an system app?
[FYT Android Head Units] surfer63:
I don't think that is correct. As far as I know the NXP6851 is actually the TEA6851 from NXP (like the TEF series in the Joyings).

A datasheet is here and says it supports RDS.

But I could be wrong (happens more often ;) )
[FYT Android Head Units] tchleb:
I already added Tasker and other apps to the unkill_app.txt - -> Doesn't solved the problem
[FYT Android Head Units] surfer63:
You can assign any app as the Navigation app in the settings. And then set this Navigation app to always autostart.

I know from users who did that with Tasker and other automation apps, but I can't remember whether that still works on the 8.1 units.

And of course: you loose the navigation app shortcut if you have hardware buttons.

Edit: making it a system app will not help. Tasker will start on boot, just when normally installed, but not after deep-sleep either. Other system apps are also killed upon going into deep-sleep.
[FYT Android Head Units] gal3_hun:
On the fisrt page of the datasheet (2. Features and benefits) it says: 'Read information with device and tuning status, reception quality and RDS data'. This could mean that generally all the members of the TEA685X family can use RDS.

On the second page it says: 'Advanced RDS and RBDS demodulation and decoding (TEA6852, TEA6853)'. This could mean that TEA6852, TEA6853 can use adcanced RDS while TEA6851 can only use not advanced RDS. Or this could mean that TEA6852, TEA6853 can use RDS whith advanced RDSfunctionality but TEA6851 has no RDS functionality.

On page 3 in the table (4. Functionality) there is a '-' sign at the RDS demodulator and decoder function in case of TEA6850 and 6851. :(

So I thing my unit will never has RDS. :crying:
[FYT Android Head Units] surfer63:
I had not read so far, but I'm afraid you are right.
[FYT Android Head Units] midd33:
I just received my model JY-UO135N4GS direct from Joying. I've been reading this thread and the rooting thread. The loss of Google services and apps after rooting is a concern and thus, brought me here. I simply want better bluetooth functionality to connect with other devices, not just my phone.

Would this method allow me to roll a different bluetooth apk into the Allapp.pkg?
[FYT Android Head Units] tchleb:
I found an working solution. With the command "monkey -p xxx.xxxxx.xxx 1" (with root permissions) it is possible to start an app.

I created this Task:

Spotify_autostart-pidof (10)
A1: Run Shell [ Command:pidof com.spotify.music Timeout (Seconds):0 Use Root:eek:n Store Output In:%Spotify_Status Store Errors In:%Spotify_Status_fault Store Result In: Continue Task After Error:eek:n ]
A2: Wait [ MS:300 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A3: If [ %Spotify_Status !Set ]
A4: Run Shell [ Command:monkey -p com.spotify.music 1 Timeout (Seconds):0 Use Root:eek:n Store Output In: Store Errors In: Store Result In: ]
A5: Wait [ MS:0 Seconds:8 Minutes:0 Hours:0 Days:0 ]
<Play Button doesn't work, with Next the spotify skips to the next song and songs and start playing.>
A6: Send Intent [ Action:com.spotify.mobile.android.ui.widget.NEXT Cat:None Mime Type: Data: Extra: Extra: Extra: Package:com.spotify.music Class: Target:Broadcast Receiver ]
A7: Else
A8: End If
A9: If [ %Debug eq 1 ]
A10: Popup [ Title:Spotify_Status Text:%Spotify_Status Background Image: Layout:Popup Timeout (Seconds):2 Show Over Keyguard:eek:n ]
A11: Wait [ MS:300 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A12: Popup [ Title:Spotify_Status_fault Text:%Spotify_Status_fault Background Image: Layout:Popup Timeout (Seconds):2 Show Over Keyguard:eek:n ]
A13: End If
[FYT Android Head Units] mclellan83:
I am looking to do very similar myself, I purchased two units to run in my car. One I have planned to run the stereo and front facing DVR. The second I was looking to run the back up cam and then my air ride controller, which I have learned after purchase is a problem. I am at the end of completing the interior upgrades and have everything wired for it, so have not really used the units much since I got them about a year ago. Sorry for not having much knowledge, but if there is a setup for dummies that would be awesome. I had setup the FCC Car Launcher on my top unit that I want to run the air ride to play with it a little, but not really sure what to do since I haven't used either much at all. Really appreciate any help, the 10.1 unit is JY-UOS02N4PX5S. Then here is the info on my 8"
[FYT Android Head Units] surfer63:
No.

As such you can roll a different BT app into the Allapp.pkg, but it wouldn't help you at all. It would only make it worse. BT is completely crippled. The functionality that they want to offer is built into the BT app. There is no normal BT stack. Simply forget that.
[FYT Android Head Units] LunaEros:
Is that true of all the FYT units with Intel Airmonts?

I thought I read somewhere you could get the BT working normally after rooting it.
[FYT Android Head Units] tchleb:
How i can disable that the radio app (com.su.radio) starts after boot up?
[FYT Android Head Units] LunaEros:
From what I've gathered on here, you can't. The radio actually plays all the time. Closing the app just mutes it so you can use other apps.
[FYT Android Head Units] surfer63:
Completely right. See the Q&A thread from my signature
[FYT Android Head Units] surfer63:
It is true for all FYT units. At least going back from the intel airmonts, to the PX5s, to the Intel Sofias.

BT working can be improved, but not due to rooting. It is a setting in the config.txt. Note that this will only slightly improve it.
[FYT Android Head Units] LunaEros:
What slightly improves?

I think the BT module is plugin. I wonder if it could be changed. I've seen a YT video where someone replaced the sound chip in their Joying so maybe that could be replaced?

What if you were able to put a full BT stack or even apk, could you possibly access a BT USB dongle and do it that way?
[FYT Android Head Units] tchleb:
Thanks for the hint
[FYT Android Head Units] surfer63:
No it is not. On the Rockchip motherboards it is. On the intel chips the BT "chip" is integrated.

It can't be replaced.

It would not matter to replace it either. The BT stack is one part. The other part is inside the kernel. That works great on phones that come with the Intel Airmont.

On our units it would require recompiling the kernel and the drivers, which is recompiling the complete Android. With all the closed source modules for the hardware in it, you can forget that.
[FYT Android Head Units] LunaEros:
Leave it to me to wanna get the latest and greatest for all the goodies and fastest speed. I wish I knew all this to begin with. Maybe I would've found one of the older architectures.

Couldn't it be decompiled and fixed with the right drivers and then an external BT usb dongle could be used?

I wonder if Iyt could mirror the phone and use BT that way for any extras I wanna use. Then again I've heard some units can give problems with other usb devices when you connect the phone to mirror it.

I wanted to connect other BT devices down the road but the only thing I want to connect right now is a wireless keyboard. Maybe one with it's own 2.4g dongle would work.
[FYT Android Head Units] D4rk_Seraph:
I tried to change my Zhan unit using this method, but had the same issues with Bluetooth not working when installed Joying update in this device before, so I installed the original ZH ROM back. But now, when I put any usb drive with ROM update in the usb, the message to start update does not show anymore and nothing happens. Can you help me with this issue?
[FYT Android Head Units] tchleb:
Plugin the USB Drive with the update files.

Restart the unit and press the reset button when the bootlogo appears for 3 seconds, release and press again. The unit should start flashing
[FYT Android Head Units] kpitao:
[MENTION=2550900]surfer63[/MENTION] …. First of all, thank you for all your work….

So, I’m still not able to factory reset my radio, as you can see on the other thread; so I need some help from this thread because I wan to try resetting based on the first post.

Questions:

1 – The new April 2020 firmware from Joying – I cannot find the updatecfg.txt (Where is it?)

2 – Do I need any other software to run the APK Pack from post 2?

When I try to run (extract Allapp.pkg) nothing happens and I get a message in Chinese; if it did worked, where the the files go?

I just need to use the updatecfg.txt to factory reset my radio

Thanks
[FYT Android Head Units] surfer63:
There is no updatecfg.txt in this firmware as it doesn't wipe anything.

You can simply add the updatecfg.txt file only containing "twipe_all" to your usb-stick or SD-card. (without quotes).

When you then flash it, your will have a "clean" system.

Apkpack.exe:

Folder path: This is where your files are being extracted to, or packed from

File path: This is the file that is being created (packed), or where the files are extracted from.
[FYT Android Head Units] kpitao:
Thanks [MENTION=2550900]surfer63[/MENTION] ... the updatecfg.txt file did the trick..... now I'm all the way back to default settings no more stupid code to reset to defaults.

Nest step is root; which the only reason that I root is to use the Adway app to block all ads.... If there's a way to block all ads without root I would not root.
[FYT Android Head Units] surfer63:
I use Blokada slim from https://blokada.org/

It doesn't need root and blocks almost all ads in my experience.

ABSOLUTELY NOT the blokada version from the play store.

I now use my own expand_hosts_file_YYYYMMDD.zip from post #228
[FYT Android Head Units] kpitao:
I will check it out.... Thanks
[FYT Android Head Units] kpitao:
WOW !!!!!! some very good info here.... I know you still looking into this but maybe this will spark a fire (again) on you to make a custom room....
[FYT Android Head Units] xadamadax:
[MENTION=2550900]surfer63[/MENTION] - Thank you so much for all of your contributions, I have probably read most of what you've written up on the SC9853i units and it has been invaluable.

I have a firmware for my device that I'm modifying, is there a way for me to place files on any of the data partitions as part of this? Mostly images for wallpaper and home screen - what is the best and most logical way if i just need them on the root of what the head unit sees as the sd card? I want this to be part of a firmware flash

thanks in advance for any guidance
[FYT Android Head Units] surfer63:
That's what I described 2 posts above.

You can add a folder like "my_stuff" on the USB-stick that you use to flash the firmware, and copy your files in that folder.

And then you use the lsec.sh script to copy files from "/storage/sdcard1/my_stuff" to /data/<whatever>

That could also be used to "customize" a standard Joying ROM (that is what I am thinking about). Joying releases a new firmware and you deliver a zip file that can also be unzipped to the USB-stick and that will executed after the flash.

And of course you can also provide it as a seperately flashable image.
[FYT Android Head Units] surfer63:
I added 2 more scripts to post #228.

- expand_hosts_file_20200506.zip : This will copy a very big hosts file onto your system that will bock >99% of the ads.

- remove_launchers_apps.zip : Removes unnecessary launchers and apps and only leaves launcher3 on your system. This is my personal choice! Check the lsec.sh file yourself in case you want to remove apps from it.
[FYT Android Head Units] surfer63:
I added 2 more scripts to post #228.

- expand_hosts_file_20200506.zip : This will copy a "very big" hosts file (367 kb) onto your system that will bock >99% of the ads.

- remove_launchers_apps.zip : Removes unnecessary launchers and apps and only leaves launcher3 on your system. This is my personal choice! Check the lsec.sh file yourself in case you want to remove apps from it.

Duplicate of #232. :confused:
[FYT Android Head Units] D4rk_Seraph:
It worked! Thank you!
[FYT Android Head Units] syfq91:
Hi, I have a few questions:

1. Will this scripts work with Sinosmart HU or only for Joying firmware?

2. You removed YouTube in remove_launchers_apps.zip script. Can I reinstall YouTube in the future using play store or it is removed forever?
[FYT Android Head Units] surfer63:
1. I mentioned 2 scripts. "will this script" is not clear then :). The expand hosts file script will work. The system apps removal as well. Removal of the Fyt apps probably not. All fyt apps have a starting number, the manafucaturer id, and some follow up number (I do not exactly know what that means. So for example "190043003_com.android.launcher4.apk". The 1900 is the identifyer for FYT SC9853i. The 43 is the Joying manaufacturer id, the 003 is a number I can't explain now as I do not know. It is not a version number for "patch no. x". Your Sinosmart is for example 19004200x. (42 for Sinosmart, the x because I do not know that last number)

2. Youtube was flashed as a system app. I removed it from the system. You can always install it again from the Play store as a "normal" app.
[FYT Android Head Units] LunaEros:
Wow! Could I use this process to make a flashable firmware backup for my Joying JY-HOS01N4GS-2 , Surfer?
[FYT Android Head Units] surfer63:
I could only say "yes" and stop there, but that wouldn't help you :)

So, technically: yes. But it would not be "flashing firmware", but "restoring partitions".

But it's a bit more difficult to restore and it only works if your u-boot and recovery image/partition are still correct.

When looking at FYT units, you need to backup /boot, /system, /oem, /vendor and /sys. (note: /system will be a 2GB backup.)

When flashing a wrong firmware, or it breaks during flashing (power loss for example), only those partitions above are touched and most possibly even only one.

In that case you can always reflash your unit. If needed using the "triple reset" method.

You might say to backup all partitions (35), but some are recreated anyway during flash, and if u-boot and recovery are damaged, you need to send the unit back to Joying anyway.

(Actually u-boot is available as u-boot-backup and recovery as a 1.6MB data file in /system/etc/. So a really experienced Linux user knowing his/her way around partitions and who has the partition schematic can possibly still restore your unit).

I will create an lsec.sh cript that will backup all "absolutely necessary" partitions and will copy the recovery data file (/system/etc/recovery-resource.dat) separately.

And of course: one would also need a restore script in that case.
[FYT Android Head Units] LunaEros:
Awesome! Thank you, surfer.
[FYT Android Head Units] kpitao:
Not sure if I'm on the correct thread but does anyone knows if we can change the APN settings for the 4G module?

I want to use a specific APN for AT&T in the USA.....

Thanks
[FYT Android Head Units] tchleb:
2. Better you install Vanced YouTube and enjoy Ad-free & video playing in background :)
[FYT Android Head Units] surfer63:
With regard to a custom ROM:

I do not see any added value in creating a custom ROM by removing some unnecessary apps (lots of personal preferences), change the launcher to something else (again lots of personal preferences) and add a few "handy" apps (again a lot of personal preferences). That will never trigger me to start working on a custom rom.

If I knew how to:

improve the Google voice call

how to enable pairing of all kind of Bluetooth devices (and not only "some" TPMS and "some" OBD devices)

how to use every possible USB-cam (and not only the FYT restricted ones)

how to enable real correct RDS-AF in the radio/MCU (instead of the current rubbish "simply search the strongest 18 frequencies")

nicely embed that fantastic T'eyes SPRO launcher into the Joying firmware (T'eyes are russian units also from FYT. The T'eyes launcher is very nice (in this case my personal preference ;)) and of course integrated with the FYT hardware)

I would try to create that custom rom.
[FYT Android Head Units] surfer63:
I created the "system_backup" script and updated post #228.

system_backup.zip : This will make a backup of the required partitions in case you do not have a firmware yet for your device. As it makes "raw" backups in total of 2.9GB, you need at least a 4GB flash device. Note: the backup works. The restore, requiring another script, is completely untested! Next to that: It still needs a working u-boot and recovery partition.
[FYT Android Head Units] LunaEros:
Awesome. Thanks, Surfer.

I know what a recovery partition is but have not heard the term "u-boot". But if my unit likely has it I'm sure both are still working since I have not done anything to the unit besides install apps.

I did try some thing to try and flash the BT to be more open but I don't think I did it right since nothing changed. I think it said it had to be done more than once if it didn't work the first time but I didn't bother.

I haven't even been able to figure out how to connect my laptop to it for adb through a usb.

Hopefully I can at least get a backup of it now. :D
[FYT Android Head Units] surfer63:
u-boot is universal boot. What those windows users in an "old" pc call a BIOS. It is software in its own partition.

The BT-app is different nowadays on the SC9853 models. "Something" (don't know what yet) does a CRC change on the BT-app per firmware. If you flash something and you reboot, the system detects a changed apk and will simply disable it.

If you changed something to the BT config in /system/etc/bluetooth you have not much chance either as it is hard-coded in the BT app. And again: if you change that one it will no longer work anymore.

They closed the loop nicely (from their point of view)
[FYT Android Head Units] LunaEros:
I hate these jackoff companies for crippling these things like they have. IT goes entirely against how Android was designed to be customizable. Or even fully functional in these head units cases.
[FYT Android Head Units] kpitao:
[MENTION=2550900]surfer63[/MENTION] no worries.... now after the post #228 in this thread from you, I'm very happy with the unit as is, without root I'm able to block ads (without installing another app); remove apps that I don't use, I don't use Bluetooth at all.... my car had an OEM cam, so I'm good with that too.... RDS-AF would be nice but not necessary .... I use ADW launcher, with that I can adjust my car widget pro.... I will post a pic later

So I'm this, thank you very much for all your work here to help others with less knowledge of these units.
[FYT Android Head Units] gal3_hun:
Surfer,

Is it possible to change your radio mod to support split screen?
[FYT Android Head Units] surfer63:
In theory: yes. In practice: No. When we had the source code we could do it, but the graphic system used in the FYT apps is extremely old. It is not using the standard Android system and is extremely rigid (same for music, TV, Video, BT app). Doing that in smali is simply not possible, at least not for me.

It would also take a lot of time, an awful lot of time.

I'm on DAB+ using DAB-Z. That works great for me so I don't even care about the standard radio app anymore.
[FYT Android Head Units] tchleb:
Awesome, theoretical I should be possible to create an raw backup from the bootloader and use the raw backup for rooting via Magisk.

This should be interesting for the user of fyt compatible devices where the supplier does not provide an update file.
[FYT Android Head Units] surfer63:
Yes, exactly. That should be possible but I do not know if anyone tried that. It is on my (long) list of "things" I want to try, but haven't done yet (too many hobbies, too little time)

You could use the "backup_boot_recovery.zip" to create the raw boot image. Copy it back to your unit (the same was as described in the howto in the develop.zip). Let Magisk do its magic and see if it can root the raw boot image. Then you should be able to (even normally) flash it back.

I find it difficult to "advise" this as users looking for help on rooting tend to be slighly less experienced.
[FYT Android Head Units] surfer63:
I now realise by the way that this allows users with a FYT compatible to flash a 100% default Joying firmware with a small added lsec.sh to the USB-stick/SD-card.

First use my HWGetinfo to get the bluetooth config (if different from Joying) and their manufacturer id (from the fyt.prop),

create an lsec.sh file from HWGetinfo and simply add that to a a 100% default Joying firmware, flash that, and in the end it will set the correct settings for your brand unit using the lsec.sh script.

OR flash a completely default T'eyes firmware to a Joying with a small added lsec.sh to it to (in this case) add our Joying manufacture id and BT-config to the T'eyes firmware to make it compatible with our Joyings (and to alter all settings from RUssian language and config to US as more people do understand English than Russian).

Like said: It would only require a very small change to my HWGet_info.apk.
[FYT Android Head Units] gamer765:
Also another thing I'm not sure if anyone has realized, you can install/flash anything to unit as long as you resign it. I've been modding system apks and found that the AOSP platform key works. As far as Bluetooth goes, my experiments have gone nowhere.
[FYT Android Head Units] tchleb:
I tried it today, read / write the boot.img works with the lsec.sh script :) I made an short instructions for rooting, this should be intresting for units where the supplier does not provide an update file.
[FYT Android Head Units] surfer63:
Great!! This makes rooting even simpler as you do not have to create a signed 6521_1.zip.:good:

Edit: I added your zip also to post #228. Of course giving you the credits.
[FYT Android Head Units] LunaEros:
He made some very clear instructions. Clear enough even an idiot when it comes to Android like me can follow it. ;p

Hey, Surfer. I was trying to find some app like Tasker or something that would start the apps I want to always run but they're a little complicated and happened to notice your skipkillapp process part of that AllApp instructions you put up here https://xdaforums.com/android-auto/android-head-units/modding-joying-fyt-sc9853i-unit-root-t3974357

Will that work on my unit too? Also, I assume you have to put the actual filename of the apps in that as opposed to what the app actually calls itself when they run. Android app's filenames don't always reflect the name of the app. Is there some little utility somewhere that I can run on it that will make a list of the apps and their filenames? I don't see any place they'd be listed in Android's settings or anywhere else on the system.