yashsingh1/xdaforums huggingface dataset:
[Android Head-Units] mimoat:
Hi Torsten, thanks again for checking. I will attach multiple pics.

I already tried different CAN Settings (e.g. other than "13" so e.g "146", "157", "226", "292") resulting with same behaviour as on CAN "13" or middle console buttons and SWC completely not working (also no keyCodes emitted in LogCat)

I asked my dealer. He meant I should check the wiring. Yehu 🤦‍♂️.

Keep in mind the "A-Sure" branded photo is not my car, just used for reference (same buttons)

On CAN "13" the buttons/keys:

- Nav

- CD

- Eject

- Map

- and the toggle switches (on left and right of the LOCK indicator)

are NOT* working (emitting any keyEvent)

all other work fine. (except e.g. "Info"-Button is opening the Navigation App, instead of opening some Info App)

* the toggle switches work, if the Ford SYNC App gets opened (e.g. triggered by Voice Command Button on Steering wheel), but the only work if the app is opened.

PS: Thanks for that really useful app and your help!
[Android Head-Units] TorstenH:
Just to be sure I want zu ask if your SWC speech key opens the activity com.ts.can.ford.CanFordSyncUIActivity? Or does some different action gets triggered?
[Android Head-Units] mimoat:
Would love to attach logs, but unfortunately not able to do so because LogCat Reader App has somehow (no permissions?!) problems to write anywhere (even not into clipboard) grr.

Anyway I will attach a photo again where I could find the first logEntry of my action (Pressing Speech/Voice Command Button on a Ford Kuga DM2, 2015).

As I could see:

CanFunc
GotoWin = 48

And afterwards:

Calling a method in the system process without a qualified user: android. app. ContextImp1.startAr 900 android.app.ContextImp1.startActivity:889 android.content.ContextWrapper.startActivity:379
*com,ts.can.CanFunc. showCanActivity:3967 com.ts.can.ford.CanFordSyncUIActivity.ShowSync: 1595
10-02 08:09:51.463 1639 1639

I hope this is helpful. Best wishes!
[Android Head-Units] tekhtime:
Anyone installed on an Xtron IA unit? Which method did you use to install it?
[Android Head-Units] TorstenH:
More interesting is the log entry before:

GotoWin = 48

Could you please check if this log entry always occur as soon as you press the speech button?

Sorry you need so long for my replies but I'm a little busy currently.
[Android Head-Units] TorstenH:
If you have a dedicated SWC key to start the navigation app and the possibility to set an installed app as navigation app, you should go for option 1.
[Android Head-Units] TorstenH:
@mimoat

If that's the case we can overwrite the function and send a broadcast (to AppSwitcher) instead.

But this would require your help to re-test the current possibility to overwrite keys and the (then new) functionality to overwrite that GotoWin's.
[Android Head-Units] mimoat1:
Hey Torsten, it seems like after the migration of xdaforums I could not sign in via Google SSO (thats why I am mimoat1 right now).

Regarding the log, you meant:

_YYW_
popmute

right?

It is triggered, but it seems to be responsible to mute the mic for a short period of time (e.g. Ford Sync Woman's voice says "Please give me a command".)

I assume that this will be also triggered e.g. in CarPlay when SIRI is answering.

I also started to dig a bit around and decompiled MainUI.apk with jadx, but could not find out yet what is triggering GotoWin(48). (Because maybe the parameter is already they Key decoded by CanBox - so the idea - )

Will try ;-)
[Android Head-Units] TorstenH:
I'm just talking about the GotoWin log entry so I can't give a valid comment to this.

A method call to read a custom mapping could be implemented directly in CanFunc method GotoWin(I)I.
[Android Head-Units] mimoat:
Oh, seems I misunderstood.

For sure I would love to be helpful here!
[Android Head-Units] tekhtime:
I don't unfortunately, so best option would be no 2?
[Android Head-Units] Carlosc197501:
Hi TorstenH.

Awesome work.

Been following all your post.

I have recently aquired a Junsun stereo and would like to use your apps.

I have model: MT6768 (FF_866X)

Do you know what MainUI i need to install?

I have looked for a 6768 but there seems to be non there.

Thank you for your help.

Carlos
[Android Head-Units] Gator677:
ff_866x is your hw, so you need fw and files for 8667 ;)
[Android Head-Units] Gator677:
hi TorstenH,

there's newer fw for 8667 v43

8667Q军灿UI02-国外-1280x720_v43_20230925.zip

drive.google.com

could you please create modded file for it?

I've never used your app before but want to try. I could be your tester as well, I've junsun v1 8667 4+64
[Android Head-Units] STomko:
@TorstenH I have V1 Plus unit (8259P) so I wanted to go the GPS way instead. There is one thing I do not follow:

a) a dedicated SWC key to start the navigation app is present. If no CAN box is used every SWC key can be configured
b) a dedicated SWC key to switch between apps (mode button) is present AND the radio app is not used/required. We can configure AppSwitcher to listen to the mode button. But we need to remove all apps from factory icon settings to disable the standard functionality. As a side effect the radio app will not work after its icon gets removed.

I have CAN box. I don't follow what about that radio thing.

1) what do you mean by "remove all apps from factory icon settings" - where is that please

2) Does this mean that I will not be able to use stock Radio app (use at all, or just switch through with your app)?
[Android Head-Units] AndreyOleynik:
Hello! This method works great for me! Thank you very much! I tested on custom 8667 device with 1920x720 screen. Your app works great!

I have few more question and ideas for future updates maybe if you want:

1. Sometimes cellular networks disappears on my device and I see "x" near the cellular icon. Only reboot fix this. Is "Restore LTE" option fix this? Can you enable it for 8667 devices too?

2. As I know you can modify MainUI application. Did you decompile code and then compile it again or edit bytecode? What do you use for it? Thanks!

3. Autostart navigation app is the only one way to autostart something on this device as I know. Is it possible to add autostart apps list to your application? To make possible to setup your application starter as navigation app and then start other my applications in your?

4. I don't know is it good idea or not. Maybe create option to add current application to the end of the switching list. If I press switch button to make it possible cancel this dialog by one button ( I have only one)
[Android Head-Units] Gdenich:
I have managed to start your app on a stock Changan head unit (android based) using Keymapper tool and intent broadcast, it is working perfectly!

The only minor thing is the size of the dialog.

I have a 1920x720 display, and the dialog seems to be too small compared to the screen size.

Is it possible to change DPI setting in the app somehow, or make the icons bigger?
[Android Head-Units] TorstenH:
Let me see what I can do but please give me some time because I work currently on another project.
[Android Head-Units] nikos1671:
Hi Torstenh,

I have this model https://xdaforums.com/t/junsun-v1-p...oid-10-headunit.4193061/page-80#post-89123116

will appswitcher work with this??

I have connected with canbus and my steering buttons its working (Opel insignia ) but i want to install your app.

i don't know what version of Firmware i have. i ask the seller and he told me , that i have the latest ui 4.

Thanks

Nikos
[Android Head-Units] TorstenH:
Unfortunately I'm not familiar with your type of head unit so I'm not sure if it has a MainUI.apk system app.

You should check if your head unit has such an apk on partition /system/app.
[Android Head-Units] nikos1671:
Thank you for your fast response . My unit is Junsun V1 plus 4gb 64gb from AliExpress.

I will check for this app and i will report back.

Thanks

Nikos
[Android Head-Units] nikos1671:
Sorry but how can i see this folder? with the normal file manger of the unit i don't have this folders.
[Android Head-Units] TorstenH:
You could install MiXplorer, the best file explorer for Android.
[Android Head-Units] nikos1671:
Ok. I found it. Its meaning it will work?

Nikos

View attachment 6026302
[Android Head-Units] TorstenH:
Please copy the file, zip it and share it here.
[Android Head-Units] nikos1671:
I think its the correct file :)

Thanks

Nikos

edit: why the attached folder its not showing ??
[Android Head-Units] TorstenH:
You need to zip the file.
[Android Head-Units] nikos1671:
i have already done. i click post reply but its not appear.View attachment 6026460
[Android Head-Units] nikos1671:
Maybe because i don't have 10 posts???

This is my 10th
[Android Head-Units] nikos1671:
No luck. i don't know why.

can an admin delete my unnecessary posts please.
[Android Head-Units] Carlosc197501:
Have finally installed this.

Can I just say this is an awesome app.

Thank you so much for you work.
[Android Head-Units] TorstenH:
Thank you very much for this amazing feedback ❤️
[Android Head-Units] TorstenH:
Don't miss​

DABster​

DAB+ player for USB DAB adapters​

View attachment 6027196

DABdream - DAB/DAB+ Player for USB adapters

DABdream DAB/DAB+ player for USB DAB+ adapters FAQ More on https://t.me/junsunv1 Support the development of this free app via ko-fi.com/appswitcher

xdaforums.com
[Android Head-Units] Gator677:
hi TorstenH, please take a look
[Android Head-Units] TorstenH:
If you want to speed things a little up you could install the new firmware, extract the MainUI with MainUiUpdater and share it here for modding.
[Android Head-Units] Gator677:
OK, I'll try to do it asap, thanks!
[Android Head-Units] Gator677:
8667 v43 MainUI.apk
[Android Head-Units] kamilwar:
Hi Torsten, please find attached the MainUI.apk backup from 8259P_军灿UI02v1280x720-国外_v107_20230919 firmware. Hope this will help in creating the modified MainUI. 20231101_213344__MainUI8259P_UI02v1280x720-_v107_20230919.apk
[Android Head-Units] TorstenH:
Here you can download the modded MainUi:

Send large files free | File sharing | File upload | File transfer

Send large files for free with TransferXL ✔ without registration ✔ secure & fast file upload ✔ file transfer up to 200 GB

www.transferxl.com

Installation should be possible by simply clicking on the apk file.

Please note that you need to start AppSwitcher service the very first time manually to make autostart after boot and sleep work.

Let me know if it works...
[Android Head-Units] Gator677:
8667 v43 MainUI.apk

hi, please find extracted apk by the link above.

(is it possible to remove own unnecessary post on this forum? 🤨)
[Android Head-Units] TorstenH:
Here you can download the modded version

Send large files free | File sharing | File upload | File transfer

Send large files for free with TransferXL ✔ without registration ✔ secure & fast file upload ✔ file transfer up to 200 GB

www.transferxl.com
[Android Head-Units] kamilwar:
Thank you it works. It didn't want to update MainUI at first so I removed the original MainUI via pm uninstall (After removing it I lost the button functions untill I installed your APK.), rebooted and installed the modified one via terminal.
[Android Head-Units] TorstenH:
No surprise because MainUI handles the key events and contains several stock "apps" like Radio as activities.
[Android Head-Units] TorstenH:
View attachment 6029793

Due to upload size restrictions you will find latest modded MainUI here:

Junsun V1 Pro

All about the Junsun V1 Pro.	This channel is English. Please use a translation app if needed.

t.me
[Android Head-Units] Carlosc197501:
Question.

What is the benefit of updatng mainUI. I am running 1.51.

Working smoothly.

Ans I guess if I do update it will I need to install all apps again?

Thanks
[Android Head-Units] TorstenH:
I only provide different modded MainUIs to support different firmware versions of different device type. The intention is not to update the MainUI to a later version.
[Android Head-Units] Carlosc197501:
Hi TorstenH.

Before I update my MainUI. I used to have a fan cpu control app. After the update its gone missing. I have looked everywhere to see if anyone had posted it but unable to find it.

Do you have and alternate one or know where i can download one?

Thanks
[Android Head-Units] Tomtom24:
I have the same problem. It would be nice if someone could provide an up-to-date apk.
[Android Head-Units] TorstenH:
Maybe you flashed the wrong mainui. If you used MainUiUpdater you can find the backup on internal storage in MainUiUpdater folder. Copy it to download folder, rename it to MainUI.apk and flash again.

Shared the MainUI from backup here so I can create a modded version.
[Android Head-Units] Malteubz:
Hello, did you guys end up with something ?

I got a ford fiesta 2013 (with sync) and got the same issue (button on the SWC that start ford sync app). I also dont have "mode" button, so i dont know how to trigger the switch app dialog.

By the way, how to remap buttons on the main console (see pic)? Is logcat app mandatory to see orignal id?

For info, did the method 2 to install your app and I use a canbox.

If needed, can I just install firmware the seller gave me above your modded main app ?

Anyway, thx for great work ! :)
[Android Head-Units] TorstenH:
Unfortunately I got no further feedback to create a modded MainUI - or I've overseen it.

It would be very helpful to know if your system writes this log entry as soon as you press the SWC key you want to use for AppSwitcher:

View attachment 6041411

Alternatively you could use the SWC key for navi start - if such a SWC key is present.
[Android Head-Units] TorstenH:
AppSwitcher runs on Ossuret S8 which is the same as a Hizpo S8:

https://xdaforums.com/t/general-dis...d-read-first-post-first.4525675/post-89207266
[Android Head-Units] Malteubz:
Hey, installed a logcat and Grant permission via adb.

I can see all the buttons with a filter "key =" (logcat is unreadable without that), but I can't see this voice button. It triggers nothing. I also found that message you are talking about (see Pic) when voice button is pressed. I don't know how I can help you digging more, the logcat tool throw way too much messages. It seems that this voice button directly trigger an activity of fordSync.

I successfully remaped a button to "mode" button to use the dialog switcher, but the behavior is weird (used the keyMapping.ini file with 13:10). I joined a video of the behavior.

Thx a lot for all your answers.
[Android Head-Units] TorstenH:
Filter for GotoWin and check if always the same GotoWin entry gets written as soon as you click the button.

You need to change the mapping and reboot your device:

13:9010

If you map to 10 you map to standard mode button behavior and not to AppSwitcher.
[Android Head-Units] stefand1k:
Hi, sry for the noob question, but how can I identify my unit, in order to know what Modded version to use?

The seller marketed it as "V1 Plus 6G"

View attachment 6041740

I've checked the MainUI on it (decompiled using jadx) and I found it to be 1.51, but when I compared with the modded 1.51 of 8667, mine has extra code, most of it related with Carplay & Carletter.

Thank You.
[Android Head-Units] TorstenH:
Unfortunately the Chinese are modifying MainUI without counting up the version number. If you have not flashed the firmware, it is more or less impossible to tell which MainUI is required or at least fully compatible.

You could upload your MainUI to https://www.transferxl.com/ and send me a private message with the link so I can response with a modded version.
[Android Head-Units] Malteubz:
Re, thx ! It works very smooth with 9010 as id.

I found a "bug", if there is one and only one app in preferred navigation / media in settings in AppSwitcher, when you are currently in the said app and you press the button to show the dialog, AppSwitcher crashes.

I tried to push the voice button, it launches the FordSync App the first time you press it (after that you have to wait a long time, dunno why, maybe the app lives a moment) to trigger the app again, and btw, as you said, there is always the message GoToWin = 48. So yes, always the same id.
[Android Head-Units] TorstenH:
Could you please send me the Android log with the fatal message? To do this let the app crash and search in logcat reader for "fatal" and send me a photo of the full error message which is for sure a null pointer exception.

Thank you for your support to make this app better.

It would be possible to implement a remapping of the GotoWin's. But this is something that needs some time to implement and I can't test it by myself. That means: if you really want to have it, I can implement it - but only if you can provide test support.

If this is just a nice to have and you don't want to invest time we should keep it as it is.
[Android Head-Units] TorstenH:
Don't forget to touch outside of the dialog to let the additional buttons appear. Change the one with the sun ☀ to sun + moon to enjoy automatic screen dimming. Usually the Junsun screens are to bright during night drive.
[Android Head-Units] Malteubz:
Yeah of course no problem, will do this tomorrow.

I'm in, I can test as much as you want

Nice I'll try that, thanks!
[Android Head-Units] inscriber:
I can't autorize, itcs says to do that manually through ADB, but how?
[Android Head-Units] TorstenH:
You need to establish an adb connection to your head unit.

So you could try to install Remote Adb Shell on your phone, open a hotspot and connect the head unit to it. Try to connect to the ip of your head unit.
[Android Head-Units] inscriber:
Ok I don't have problem with that, but what should I type as a command? Thank you.
[Android Head-Units] TorstenH:
https://xdaforums.com/t/appswitcher...-devices-incl-autostart.4593865/post-89046981
[Android Head-Units] PrinceLc:
It's running good on UIS7862S head unit also after sleep good work 👍
[Android Head-Units] fumbreisa:
Hello @TorstenH.

I have a 8667Q HU so looking for info trying to understand it, I meet the hard work you are sharing about Junsuns on XDA. Thank you so much! 👏

This week the seller sent me the v46 firmware and testing it I have seen that MainUI is labeled as v1.54.

I had installed in v34 (the one preinstalled) mostly of the tools you are developing, and see you only ask repeatedly for feedback (especially with 8667Q) and little else... blessed generosity!!

So wishing you keep developing them and trying to be helpful here, I have extracted the MainUI.apk from bin file.

MainUI_1.54_8667Q_v46.zip

drive.google.com

If you could take your time to modded it, of course I would be grateful to try it.

Thanks to all of you who make life easier to people.

My best wishes.
[Android Head-Units] Dlay2k:
Hi,

will there be a version for MT8163 devices also?
[Android Head-Units] TorstenH:
If you can configure one SWC button to open the navigation app, installation option 1 should already work.

If not, your help is needed because I don't have such a head unit. Does it have a MainUI.apk in /system/app or /system/priv-app you can share?
[Android Head-Units] Dlay2k:
In /system/priv-apps is Hlauncher.apk, as attached. Also i have added AIDA64 Screenshots about the hardware.

I cant find a MainUI so far
[Android Head-Units] Dlay2k:
Also there is /system/priv-app/MtkLauncher3 -> MtkLauncher3.apk which is 385,4M in size.
[Android Head-Units] TorstenH:
Hlauncher.apk is just your home screen. Sounds no fun to decompile and analyze such a huge app.

Can you set a swc key to open the navigation app?
[Android Head-Units] Dlay2k:
There is a CAN Box attached to it and also the App for SWC is installed, but i havent mounted the device into the car yet.. So SWC is unconfigured right now.
[Android Head-Units] TorstenH:
New AppSwitcher version 3.2.9

- Fixed crash if only one app was selected.

@Malteubz thank you for reporting and testing

- Fixed crash if latest media gets uninstalled. @Jetblack31 thank you for providing log

- Improved reliability of log listener start after sleep.

@Jetblack31 thank you for testing

- prevent multiple "long press" (interval < 1 second). Avoids jump to home if long press executed to only close AppSwitcher dialog.

- adjusted size of icons and texts for screens >= 720px.

Some functionalities enhanced/adjusted to work also on Ossuret/Hizpo Sx:

- Start of equalizer

- General autostart after sleep. AppSwitcher (not AppSwitcher Starter) must be added to whitelist.

- Key sound continues to work after sleep
[Android Head-Units] Jetblack31:
Hi @TorstenH

I installed the last version this morning and it's great. The dialog box pops up faster than before and works perfectly. Sometimes I had some delays between key press and dialog box coming to screen and now it's ok.

Jetblack
[Android Head-Units] michaelfel1984:
Hello i have nakamichi nam5510 can i install mainui?

What about the radio app?

It stay or deleted after inatal mainui?
[Android Head-Units] TorstenH:
Unfortunately I don't know your head unit so I would suggest to use installation option 1.

But please note that you need to configure one SWC button to start the set GPS/navigation app. Not all head units allow to customize the SWC buttons - at least if there is a CAN box on place.
[Android Head-Units] michaelfel1984:
I dont have canbus.

My car is outlander

Did you to the menu button on wheel?
[Android Head-Units] sandpita:
Does this app support the MTCD PX6 RK3399 HU? TIA
[Android Head-Units] PrinceLc:
You can check when you have ccanbus and you are able to set a swc button for navigation maybe yes
[Android Head-Units] TorstenH:
Please check if you have such a SWC learning function to set one button to start the navigation app.

View attachment 6048191
[Android Head-Units] michaelfel1984:
I have.
[Android Head-Units] TorstenH:
Option 1 - GPS is the way to go:

https://xdaforums.com/t/appswitcher...-devices-incl-autostart.4593865/post-88620887
[Android Head-Units] TorstenH:
Added AppSwitcher version 3.3.3

View attachment 6049406

- Support of easy install. No need to grant permissions via adb.

- New 'Back' option to allow to leave the dialog without running an app

- Launcher can be added as generic 'Home' entry

--> Please update "AppSwitcher Starter" to version 1.1
[Android Head-Units] fumbreisa:
Hi. I have installed your last two updates, and little helpful to say here other than what I have tested, works perfectly.

It is not necessary to go deep having your modified 8667Q MainUI.apk and can bus decoder. Once you have giften us, lucky users like me, the possibility of installing with Option 2 - MainUI, you couldn't have made it easier for us.

And after all fixes, and now with your improved "easy install" even more. It's simply that. EASY. And of course the "BACK" (and "Home") really welcome.

If I remember... install MainUI > install AppSwitcher > Look settings > Click icon > OK > Toggle > OK > Toggle > Reboot > BOOM. Done!

Enough activating some settings to my liking. Not needed to config SWC because works perfectly as expected.

A MUST app for those HUs.

Good luck.
[Android Head-Units] Pi0n3r:
Would it be possible to add a back button that goes to the previous screen and not only closes the dialog?
[Android Head-Units] TorstenH:
Not sure. I would need to test it. But what's the concrete use case?
[Android Head-Units] Pi0n3r:
My unit does not have a dedicated back button and only has a software one. The device placement is quite difficult to use when driving so I'd like to have a way to do that from the steering wheel.
[Android Head-Units] honda2015:
My unit is a fyt 7862s by Mekede (mk6pro) with a canbus box. My steering wheel doesnt have a navi button. Is installing possible without any firmware changes etc, i.e. option 1?

Currently I can’t learn swc keys using the settings, my guess is because of the hardcoded apps in the canbus box.

Thank you in advance.
[Android Head-Units] PrinceLc:
You need only one button to configure it for a Navi app fyt Mekede is like qf001 UIS7862S unit so when you can select one button on SWC for an app than it will work
[Android Head-Units] honda2015:
Thanks! May i ask what you would suggest to install it then? Option 1?

Be aware, i can not reassign any apps by the SWC app, it does not react at all.
[Android Head-Units] PrinceLc:
Option

I have installed Appswitcher and Appswitcher Starter both the latest apps. But you can select a Navi app in the firmware right