yashsingh1/xdaforums huggingface dataset:
[FYT Android Head Units] IG_Vasilich:
i have checked MODE/carousel on my SoFIA unit - it has 6 items:

radio

BT Phone

BT AV

Aux

Music

Video.

acc to code

public static synchronized void mcuKeyMode() {
synchronized (HandlerMain.class) {
if (LOCK_KEY_MODE.unlock(800)) {
int index = (DataMain.sAppIdSequnceIndex + 1) % FinalMain.APP_ID_CNT_MAX;
int endIndex = ((DataMain.sAppIdSequnceIndex - 1) + FinalMain.APP_ID_CNT_MAX) % FinalMain.APP_ID_CNT_MAX;
while (index != endIndex && (JumpPage.AppByAppId(DataMain.APP_ID_SEQUENCE[index]) != JumpPage.RESULT_OK || DataMain.APP_ID_SEQUENCE[index] == -1)) {
index = (index + 1) % FinalMain.APP_ID_CNT_MAX;
}
DataMain.sAppIdSequnceIndex = index;
}
}
}

and to

public static final int APP_ID_NULL = 0;
public static final int APP_ID_RADIO = 1;
public static final int APP_ID_BTPHONE = 2;
public static final int APP_ID_BTAV = 3;
public static final int APP_ID_DVD = 4;
public static final int APP_ID_AUX = 5;
public static final int APP_ID_TV = 6;
public static final int APP_ID_IPOD = 7;
public static final int APP_ID_AUDIO_PLAYER= 8;
public static final int APP_ID_VIDEO_PLAYER= 9;
public static final int APP_ID_THIRD_PLAYER= 10;
public static final int APP_ID_CAR_RADIO = 11;
public static final int APP_ID_CAR_BTPHONE = 12;
public static final int APP_ID_CAR_USB = 13;
public static final int APP_ID_DVR = 14;
public static final int APP_ID_3GPHONE = 15;
public static final int APP_ID_SPECIAL = 16;
public static final int APP_ID_CNT_MAX = 20;
...
for (int i = 0; i < 20; i++) {
APP_ID_SEQUENCE[i] = i;
}
APP_ID_SEQUENCE[10] = -1;
APP_ID_SEQUENCE[11] = -1;
APP_ID_SEQUENCE[12] = -1;
APP_ID_SEQUENCE[13] = -1;

and to code AppByAppId you have posted, this works exactly as expected.

public static int AppByAppId(int value) {
if (DataBt.sPhoneWork != 0 && value != FinalMain.APP_ID_BTPHONE) {
return RESULT_OK;
}
switch (value) {
case FinalMain.APP_ID_RADIO:
radio();
return RESULT_OK;
case FinalMain.APP_ID_BTPHONE:
btPageDialByKey();
return RESULT_OK;
case FinalMain.APP_ID_BTAV:
btPageBtAvForce();
return RESULT_OK;
case FinalMain.APP_ID_DVD:
return dvd();
case FinalMain.APP_ID_AUX:
return aux();
case FinalMain.APP_ID_TV:
return tv();
case FinalMain.APP_ID_IPOD:
return ipod();
case FinalMain.APP_ID_AUDIO_PLAYER:
return audioPlayer();
case FinalMain.APP_ID_VIDEO_PLAYER:
return videoPlayer();
case FinalMain.APP_ID_CAR_RADIO:
return carRadio();
case FinalMain.APP_ID_CAR_BTPHONE:
carUsb();
return RESULT_OK;
case FinalMain.APP_ID_CAR_USB:
carUsbCd();
return RESULT_OK;
default:
return RESULT_NO_INTENT;
}
}
[FYT Android Head Units] IG_Vasilich:
after resetting of default settings for OneKey and Radio my MediaKey from steering wheel asked about radio and media. SO far OK, but it hadn't ask about BT.
[FYT Android Head Units] surfer63:
I made this actually for the hardware buttons on the unit, but it is good to hear that it also (partly) works on the steering wheel buttons.

The BTPhone and BT AV both have double intent filters. I combined those doubles into one for each. Now I split them up again.

Please try attached.

EDIT: I attached a new one at 11:58 CET
[FYT Android Head Units] IG_Vasilich:
tested the last attached APK - radio, Aux, video and music can be overriden, BT - not. I tried to stop BT app, clead all defaults, and test again - no luck :( Do you have some ideas more to try?

For those, that working - can it be possible to send "play" intent/MediaKey event to the app after start? I assume that after FM Radio starts, all other sources stop. That is why i need to press "play" button for music app (AIMP in my case) and reselect radio station in app instead of video player (in my case DAB-Z).

Thanks.
[FYT Android Head Units] surfer63:
I will first look in my XFytTweaker to see what function is captured an see what that function does. Stupid that I did not think about that earlier :rolleyes:

Otherwise, I will write a small test app that "should" do what the BT function does. And then see what activity/intent is selected/started.

In my code I already made options for starting an app by intent and for a system call, just like in the XSofiaTweaker and XFytTweaker.

That will take a few hours to work out and I will do that somewhere this week.
[FYT Android Head Units] IG_Vasilich:
just FYI - i have tapped EQ button in MCU settings and got selection dialog - OneKey or Built-in Equalizer.

So the only things that do not work are BT (and i cannot test DVD).

Your prebeta description on GitHub states that aux doesn't work, but it works here (i have written it in one of previous posts)
[FYT Android Head Units] deadeye920:
The solution was that the poster paid a Russian developer to mod the software so it worked how he wanted.
[FYT Android Head Units] surfer63:
:) that's also an option but also one that could be simply mentioned if other people want to pay that Russian modder too.
[FYT Android Head Units] TheDarkKnight1:
I thought modding was banned here so that's why a PM. I remember someone from mod team didn't wanna share a link from 4pda to mod Teyes or something with me. It was some time ago
[FYT Android Head Units] marchnz:
It's not the MOD it's the site 4pda that is the problem.

The other issue is they tend to silo their skills and not share the details about how they did it.
[FYT Android Head Units] davmurr:
Hi All,

I recently installed a Teyes CC3 in my granddaughter's car. It is a 2015 Vauxhall Corsa E which was fitted with an Intellilink 3.0 system. This was the first touch screen unit fitted to the Corsa. It was very basic and didn't support Carplay (which she is desperate for), etc. It was later upgraded to the Intellilink 4.0 in 2016 which was far superior, but the cost to upgrade from the 3.0 to the 4.0 would have been significant hence I went the aftermarket route. However, I have hit a few problems with the voice control / telephone buttons which I am hoping you may be able to help me with.

Firstly, I am referring to buttons 1 and 5 on the attached (the other buttons seem to work fine) which should work as shown. What is actually happening is as follows (I do not have OnStar so not applicable):

Using the Teyes UI

Button 1 will work for short press as shown, i.e. take phone call if phone connected, or open phone menu (regardless) if phone connected, or dial last number in call list when phone menu displayed. Not sure if it will switch between calls when calls are waiting as never got that far.

Button 1 will not work for a long press, i.e. activate speech recognition. All that happens is that it causes the phone menu to togggle on and off very quickly.

Button 5 will work exactly as shown on the attached. That said I do not know if it will deactivate a speech recognition session as I have never been able to initiate one.

Using Carplay (via the installed Carlink app).

Button 1 does nothing (long or short press) with the exception of answering an incoming call.

Button 5 does nothing (including not ending or rejecting a call) with the exception of muting the sound.

In discussion with Teyes (Australia) I have tried another Canbus adaptor. First was RZ-GM-01, second RZ-GM-07. I also tried a range of different car models within the unit itself with both adaptors. This yielded varying degrees of success but while a few models gave the same results as the above, none was better. Note that the two options for the Corsa in the unit are "Corsa D" and "Corsa E (2017-2019)". Neither of which is my exact model and both give the exact same results above (as does the generic option of "All" for GM/Opel, Astra J, etc.

I do suspect that the issue is probably Canbus related, but I don't want to keep buying different ones "hoping" that one will work. This is even more so given the issue TheDarkKnight1 raised about when you do get voice control it is only Teyes voice (I was not aware of this limitation). Ideally I would like my granddaughter to have Google when using the Teyes UI and Siri in Carplay as she is used to using these.

TheDarkKnight1, nice to hear you successfully resolved your issue. Do you think the programmer you refer to could do anything for me? By this I mean recommend a canbus box which would at least get me to where you were (voice control working) and then the additional mod to invoke Siri?

If anyone has any other suggestions they would be most welcome.

Many thanks
[FYT Android Head Units] Lahoyaa16:
Thanks for your application to the program, but I need help with a problem that I couldn't solve and no one could solve. I named the BAND button as Navrdio+, the button works fine, but when I click on the radio button on the screen, it keeps asking which application to open even though I always select it. device UIS7862 Help please
[FYT Android Head Units] surfer63:
"when I click on the radio button on the screen". Which radio button? The standard radio? navradio? Some side panel "soft" screen button?
[FYT Android Head Units] Lahoyaa16:
Bu cihaz nav radyo bandı tuşunda çalışır, ancak ekrandaki radyo widget'ı, her zaman nav radyoyu veya her zaman fytHwonekey'i seçmeme rağmen, bastığımda hangi uygulamanın açılacağını sormaya devam ediyor. Lütfen bana yardım et.
[FYT Android Head Units] surfer63:
English please. Don't use auto-translation
[FYT Android Head Units] Lahoyaa16:
The device, works on the nav radio BAND key, but the on-screen radio widget keeps asking which app to open when I press it, even though I always choose nav radio or always fytHwonekey. Please help me.
[FYT Android Head Units] surfer63:
The radio widget is a Launcher builtin widget and not a radio widget. It works differently. I can't control that.
[FYT Android Head Units] Rogerio Prazeres:
I did test the this app for two days on an non physical button generic Chinese ( UIS8141E Android 8.1 SPRD?? brand).

Tinkering a little bit I was able to make the mode button on the steering wheel control (SWC) to work changing only the player to Spotify.

Did map the mode SWC key to "source" function so I could make it work changing from Radio -> BT phone -> BT music -> Spotify -> Radio again.

The not so good part is it calls the app from the start, so Spotify, Deezer etc will restart in the main screen, so you have to press the tiny play icon. (maybe it could call a intent function to start from it was stopped, but I could find anything about it)

Have tried some other options but could not figure out very well how the hole thing works. Seems that depending of the app on focus, the source button calls different "functions", so it is not so clear how to configure it.

Giving that feedback cause maybe it can be useful to someone.

I'm actually using the "Mode" SWC button as the home button and using Agama launcher to launch the apps. It was the most drive friendly way I could set my unit until now, but if someone want to use the original launcher and the source function, this app can make it works a little better.

Thank you!
[FYT Android Head Units] Lahoyaa16:
:(( thanks for your effort and the program, but it would be great, maybe there is a solution

:(( emeğiniz ve program için teşekkürler ama olsa çok iyi olurdu belki bir çözümü vardır
[FYT Android Head Units] surfer63:
English please
[FYT Android Head Units] marchnz:
Reported
[FYT Android Head Units] Lahoyaa16:
thanks but there is definitely a solution :((
[FYT Android Head Units] surfer63:
New release 1.6.0​

giladg (Gilad S.) added functionality for Llamalab Automate. A tool to automate various tasks and app flows on your Android device.

Read the Readme.

(First post also updated)
[FYT Android Head Units] ghannaiem:
Good morning i have fyt head unit and swc app pre installed .. i use carlink 2.0 app for android auto wireless but when i use voice command button from steering wheel then voice assistant app from head unit pops up .. i need to use voice command from connected phone not through the headunit .. will this application (fyt one key ) can acheive this . If so .. how to do it ?
[FYT Android Head Units] masa55:
Hello, does FYT HW OneKey app work on Junsun V1 Pro?
[FYT Android Head Units] surfer63:
No, it does not. It captures activities from the FYT applications, which are completely different from the Junsun applications as it is a tottally different firmware.
[FYT Android Head Units] TorstenH:
https://xdaforums.com/t/appswitcher...n-and-similar-devices-incl-autostart.4435555/
[FYT Android Head Units] masa55:
Than,s for the tip about AppSwitcher but I am trying to find a way to remap my SW-buttons.

I have Mazda 6 with Junsun with Canbus and I can,t remap my SW-buttons
[FYT Android Head Units] TorstenH:
Junsun doesn't allow to remap the buttons, if you use canbus - the buttons are hard coded. AppSwitcher is very powerful and allows to remap the navigation button.

Another approach is to directly connect the SWC to the head unit to be able to use the "learning" function.

But further details shouldn't be discussed in the thread of FytHWOneKey.
[FYT Android Head Units] kemdau:
Hi, now you can change Teyes voice by other app easy.
[FYT Android Head Units] deadeye920:
Any instructions for this please?
[FYT Android Head Units] marchnz:
Replace now with how.
[FYT Android Head Units] deadeye920:
Sorry but if you read their reply they are stating they can change it not how to change it.
[FYT Android Head Units] kemdau:
For new firmware 15.03.2023 you can change it.
[FYT Android Head Units] kemdau:
Hi surfer63,

Thanks a lot for your great tool. We can do short button and long button press with package name or intent ? I use it by Automate but after deep sleep (CC3 with 15/03/2023 rom) sometime I need to start Automate again otherwise we will have error.
[FYT Android Head Units] Radzią:
Where can I find this option?

I wish I had google assistant pinned to the button instead of Teyes voices.
[FYT Android Head Units] kemdau:
If your car use canbus for steering remote so you can't change it, if your car connect directly via Key1 and Key2 so you can use Teyes android app to change it.
[FYT Android Head Units] Radzią:
Honestly, I don't know where to find it. I don't have canbus. Which apk is it? In Teyes apk I only have canbus selection and teyes app updates. I want to change the default Teyes voices to google assistant
[FYT Android Head Units] surfer63:
Is this now about the new Teyes firmware or about this FYTHWOneKey app?

If it is about the Teyes firmware, please continue in the Teyes CC3 thread and not here. It becomes very confusing.
[FYT Android Head Units] Sull2:
Hello, I don't have these buttons BAND, MEDIA, EQ, etc. What if I learn a custom button through the SWC app on my Teyes CC3 Unit to say BAND, would I then be able to customize BAND in OneKey to something that the SWC does not offer ie Automate Flow URI ?

Thanks
[FYT Android Head Units] torposochi:
Hi. You can add buttons MUTE, PLAY, NAVI for UIS 7862 ( Mekede M500S)?
[FYT Android Head Units] surfer63:
I think you can. Everything that calls BAND (=radio) will be replaced by the app/action you specify.
[FYT Android Head Units] surfer63:
Theoretically I could, but I stopped working on the app.

I don't have buttons at all anymore and neither the wish to change anything.
[FYT Android Head Units] MikkerBabz:
I've tried remapping buttons on my Mekede M700S to get an actual home button, i tried both "input keyevent 3" and "am start -a android.intent.action.MAIN -c android.intent.category.HOME" but nothing happens. I tried both by intent and by system call.

I then tried mapping the radio button to open navradio and that works fine.

Does anyone know what command i need to use?
[FYT Android Head Units] Aran:
Been reading this topic and many others because i really wish to change the way the mode/source button works. Do I understand it well that with 7862 (with Canbus) it is not possible.... Yet.

Or is there a way to use 'Modded syu.ms.apk' from @seb21 to change the way de mode/source button works...

Before I had a PX5, and it was all working very easy in the Mod from _Hal9K
[FYT Android Head Units] seb21:
The mode/source button is on your steering wheel ?
[FYT Android Head Units] Aran:
Yes that is the one
[FYT Android Head Units] seb21:
Then you can use my mod to assign new function to that button.
[FYT Android Head Units] Aran:
Great, I assume it is possible to assign one function and not the carousel as it was from factory. And then another function for long-press or double-press

I will look into it. Saw there was a step-by-step somewhere in the topic. Maybe an idea to give install-instructions in the first post

Thank you!
[FYT Android Head Units] seb21:
Maybe i do.
[FYT Android Head Units] Toetie014:
Can this app also be used for mapping the steering wheel controls? I have android 13 with a OPM2.171019.012 buildnumber and the steering wheel standard app isnt responding on pushing the buttons on the steering wheel to fixate it.
[FYT Android Head Units] surfer63:
Is your unit a FYT unit? this app only works on FYT units. It can work witth steering wheels buttons, but not all.
[FYT Android Head Units] Toetie014:
I dont know, how can I tell? It is a aliexpress unit with buildnumber OPM1.171019.012 and MCU-version NOR_18_L81_R10P80F1024_KeL_Ver:1.0 _RTC32
[FYT Android Head Units] surfer63:
Yes, it is a FYT unit and my app should work for at least 80% (and did you simply try it? simply install it, try it, and if doesn't work, simply uninstall it, like any other apk).

In the background of your image the system is identified as an SC7731, which is the same as an UIS8541a (not a uis8581). This is really the low-cost, low-performance Rockchip A7 based unit, but indeed FYT based.
[FYT Android Head Units] Toetie014:
Ok thank you for the information! I'll try it!
[FYT Android Head Units] j0hn83:
Just to add, it's not Android 13. They use a fake flag to show a fake Android version.

It's Android 10 at best.
[FYT Android Head Units] Rogerio Prazeres:
Hey Guys! I'm not sure if it is off topic...

Do you know a command, call or anything else that can mimic this icon action to turn off only the screen?

Would be nice to have a physical button for it, less distracting to drive.

Thx in advance!
[FYT Android Head Units] Matt Devo:
you should be able to remap the power button to screen toggle, and long press to power.
[FYT Android Head Units] surfer63:
You screen clearly shows screen buttons.

Press the "Home" button 1 second to mute your screen.

Press the Home button 3 seconds to switch off the screen.

And in your Settings apk you have an option under "General -> Press any key to start". This does not start anything, but switches on the screen again.
[FYT Android Head Units] Rogerio Prazeres:
Thank you guys!

Surfer, thank you for the attention. I do use those functions already, they are in the capacitive power button.

But I don't like it too much cause I still need to look at the screen for a few instants to do it.

I'm kinda hacking my car/unit to add rotating volume and physical buttons in another part of the panel, matching the car finish, so if this command or call do exist, would be ideal to have a tactile button for it.
[FYT Android Head Units] Ash7612:
I'm sorry if this has been answered before as I have tried to read all the comments but is it possible to remap the voice control button on my steering wheel to open Google voice assistant on the teyes cc3?

All the other buttons work as it has the canbus but on the CC3, there is no easy way to map a button for Google assistant.
[FYT Android Head Units] Rogerio Prazeres:
Hey Matt! I'm not sure if was about it you were talking, but after reading this reply, I did enter the factory configuration -> Capacitive keys and notice that the very corner of the screen (where the mic is placed) is still able to be mapped as a button, so I did map it to the "black" function and now I can slide my finger over the corner of the screen (without looking) and it does turn of the screen.

It is a very elegant and useful solution. Thank you for the insight!

Surfer, I'm sorry to kinda hijack the topic. It was not my intention. Thank you too!
[FYT Android Head Units] megane:
Hi guys

I have an android unit junsun v1 pro in my nissan xtrail. i want to assign the avm (360 camera) icon to a stearing wheel or in the touch buttons in the left side of the screen. Is that possible?
[FYT Android Head Units] gordgelin:
your device is built on different platform, nothing from FYT is compatible with your device
[FYT Android Head Units] packyman:
Can this app edit the linked apps of Software keys on the launcher?

I changed for example com.syu.radio to com.zoulou.dab but nothing changed. Yes, I rebooted. I have no real Hardware buttons on the Device.

Uis7862 Android 10 1920x1200 6G/128
[FYT Android Head Units] leo989:
This app is a miracle and a life-saver. Thank you very much for your hardwork !

I wish it can bring me back to previous app when I click the assigned button again (just like "GPS" button in my SWC works: 1st click it go to my map app and 2nd click it will be back to most recent app).
[FYT Android Head Units] rockman18:
Have a look to RadioProxyFYT. It should do whatever you want if you use the config file /sdcard/RadioProxy/RadioProxy.cfg with PackageName=com.zoulou.dab

But you will have to uninstall stock radio app to install this proxy and replace it with NavRadio (paid or free version).
[FYT Android Head Units] KoTiX2:
You don't have to uninstall the original radio app.

RadioProxy will replace it totally like if you install an update of it.
[FYT Android Head Units] rockman18:
Oh I didn't know about that. Great !

But if you do so you don't have any radio app anymore to listen FM/AM. Navradio is just to keep the FM/AM radio functionality if necessary
[FYT Android Head Units] KoTiX2:
This app is intended to avoid to remove the original radio app with my USB tool remover/installer.

As it fully replace the original app with a shortcut to NavRadio or your choosen app
[FYT Android Head Units] packyman:
I wiped the system.

I have installed last firmware for my system, Joying Android 10.0 1920X1200 2023.5.15 again.

and then I installed installed dab-z and blackplayer ex and FytHWOneKey.

I changed the PackageName for media and band.

I shutdown the headunit and started again, I get the choice window to select FytHWOneKey media button.

I accepted and selected always, selected black player.

now after every restart, it starts blackplayer.

but with the buttons on the launcher it starts stock radio and stock media app. :(

Yes, I have seen the info about radioproxy.
[FYT Android Head Units] surfer63:
FYTs mimics OEM units by always starting the last music/radio player. There is a property to switch this off. See "General FYT based Spreadtrum uis7862(s) (unisoc ums512) & uis8581a (sc9863) - Q&A, Mods, tips, firmware", first post, last sections mods.

Off course with the buttons inside the launcher it starts the original one. FytHWOneKey does not replace the icons or apps. It only copies the behaviour, so that when a system function starts them, it will start its selected alternatives. If you start the real original app by tapping it, it will of course start that app.
[FYT Android Head Units] Stevik:
Could someone write how to set up an app for dialing a specific phone number? It would help me a lot when opening the barrier in the parking lot, which opens after ringing. Thank you.
[FYT Android Head Units] packyman:
Tasker could this do, I think.
[FYT Android Head Units] I[E:
@Stevik super easy with tasker

Create a new task and give it a name

Add a phone/call action, give it the number and check the box for auto dial.

Just hang up when it connects.

If you are rooted and give tasker super user you should be able to script ending the call.

Add a wait action and give it a second to two to give the call time to connect.

Add another phone action to end call. (This needs the higher rights)

From there you could create a tasker widget to run this task from the desktop.

Depending on how close you need to be you could create a profile to run the task and use GPS to trigger the call.
[FYT Android Head Units] Stevik:
Thank you, I can do this with the Tasker app. But I wanted to reprogram the HW button on the Head Unit for this function. I also think that this will not work on the Head Unit, because it will not dial the number via BT. Before, I had a Main Unit with PX30 and there it was necessary to use MTCDialer.