yashsingh1/xdaforums huggingface dataset:
[Android Head-Units] ifeket663:
Hi TorstenH!

I'm interesting this application. I have Ossuret doubleDIN 7 inch, 8 core unit with S5 MCU (UIS7862S). I tried installing the Option 1 method, set up the applications in Appswitcher, set up the Appswitcher starter to default app, etc., but when I click the Appswitcher or after restart the unit I got the following errors:

View attachment 6096993View attachment 6096994

Unfortunately, I'm not too familiar with ADB application, and android development. Is my device even capable of running the Appswitcher application? I really need it, because I'm not using the original music player and the head unit is difficult to use (pressing the mode button cannot be assigned to start my favourite music player application)
[Android Head-Units] TorstenH:
If you were able to set AppSwitcherStarter as navigation app and if you can configure a SWC button to run the navi (and so AppSwitcherStarter), you can disable the log listener.

To disable the log listener open AppSwitcher settings and disable

Log listener -> Enable log listener

Let me know if it works.

Best regards

Torsten
[Android Head-Units] ifeket663:
It works well! Thanks for help!!! Bought a coffee, Cheers!
[Android Head-Units] TorstenH:
You are very welcome. Thank you very for supporting this project.
[Android Head-Units] wabazuza:
Hey! I'm interested in adding this to my head unit (Junsun as well) , just wondering:

I have the MODE button on my steering wheel (not the GPS) along with the usual vol +/- and channels. ( Car from 2010, no CANBOX)

Which type install you reckon to be the best ?

I assume I will lose the current "MODE" function which basically cycles through the apps, including the radio, correct?
[Android Head-Units] TorstenH:
As you have a Junsun unit you should go for the installation with a modded MainUI. It's important to know which firmware you have installed on your device.

The modded MainUI will only map the mode button to AppSwitcher. You can then add the radio to AppSwitcher.
[Android Head-Units] Chris100115:
Hi TorstenH, sorry for the late reply but with the latest update the light/dark mode works perfectly!
[Android Head-Units] Sterke-Jerke:
I have a Junsun V1 Plus with UIS CPU, would this appswitcher work for me?
[Android Head-Units] TorstenH:
You can use AppSwitcher if you can answer the following questions with yes:

Can you use a button of your SWC to start the navigation app?

Can you set an app as navigation app?

Unfortunately I'm not familiar with uis Junsun units but I think they don't use the system app MainUI.apk.
[Android Head-Units] Sterke-Jerke:
I can set the navigation app on the harnass, (not on the steering wheel)

And yes, I can set the my own navigation app, currently waze
[Android Head-Units] TorstenH:
I don't understand what you mean with harnass. Unfortunately, if you can't start the navigation app you will not be able to start AppSwitcher (instead of the navigation app).
[Android Head-Units] Sterke-Jerke:
This is what I mean: (So not on the stearing wheel,but ont the frame that came whit the radio. There is a navi button

View attachment 6098743
[Android Head-Units] TorstenH:
You could use this button to run AppSwitcher. But first let's try to extract the MainUI.apk (if there is one):

Install MainUiUpdater and run it without further preparation. In a first step the app will try to create a backup of MainUI.apk
[Android Head-Units] Chris100115:
I was wondering if it was possible to disable the action of the voice assistant button in order to filter the event with Automate which in turn presses the microphone icon on AutoLink/CarLetter, thus activating the voice assistant on the phone.

You could disable all the actions that are not needed (such as the GPS button, Hang up, Hand Down, Back, Home etc..) and filter the events relating to those buttons with Automate so that you can program actions as you wish.

Unfortunately I have problems decompiling the app with ApkLab. I would like to understand what part of the code is executed when a mapped key is pressed so I can disable it.

It would be even nicer to be able to define keys as you like, but I think it would be difficult to add new entries in the key mapping screen.
[Android Head-Units] TorstenH:
Yes that's possible by mapping to key code 808.

Nevertheless the first step is to try to replace the MainUI.apk. If that works I can extend the MainUI for 8667 according to 825X.
[Android Head-Units] alfonsito76:
Ok, thanks I have been reading and it seems very complicated to change MainUi, or is it not so complicated?

My English is from google translator hehe.

Could you tell me what steps I have to do?

Explained for dummies.

Thank you
[Android Head-Units] TorstenH:
Install Option 2:

https://xdaforums.com/t/appswitcher...-devices-incl-autostart.4593865/post-88620899
[Android Head-Units] TorstenH:
It's enough to replace the MainUI with the modded one with MainUiUpdater.

Make a readable(!) picture of the log and reboot the device. Share the log here with me.
[Android Head-Units] alfonsito76:
These days I am traveling and I will not be able to try but when I have time I will do it, and I will send the log record. thank you so much
[Android Head-Units] elalvaro19:
Hello.

Here is the apk link of my 8867L unit, made with MainUiUpdater.

20230627_150745__MainUI.apk

drive.google.com
[Android Head-Units] TorstenH:
Here you can find the modified MainUI:

https://xdaforums.com/t/appswitcher...-devices-incl-autostart.4593865/post-88620949

Please unzip the file, rename it to MainUI.apk and place it into the Download folder to update with MainUiUpdater.
[Android Head-Units] dummptyhummpty:
Is it possible to use keyMapping.ini to pass steering wheel controls (voice, answer, hang up) to the Autolink (CarPlay) app?
[Android Head-Units] TorstenH:
It is possible to listen with Automate or Tasker to the broadcast I added to the modded MainUI. So if you find a way to control Autolink with Automate it would be possible.
[Android Head-Units] dummptyhummpty:
Thank you. It looks like it listens for the following KeyCodes:

Spoiler content hidden.

So Automate or Tasker would listen for the MainUI broadcast and then I'd have them send the appropriate keycode to AutoLink?
[Android Head-Units] TorstenH:
You can test to send the key codes with Automate:

View attachment 5941631

The modded MainUI sends the following broadcast message for every SWC key:

ACTION = "com.ts.main.DEAL_KEY"
intent.putExtra("key", key);
intent.putExtra("state", state);
intent.putExtra("topact", getTopActivityName(context));
intent.putExtra("cammode", MainUI.IsCameraMode());
[Android Head-Units] dummptyhummpty:
Thanks! I'll give that a try.

I tried using MainUiUpdater and it gives an error that its unable to verify free space.

Is there a way to find the keycode for my steering wheel buttons?
[Android Head-Units] TorstenH:
Could you please send me a photo of the log and the about section of MainUiUpdater so I can see which system you have, please?
[Android Head-Units] dummptyhummpty:
The picture is hard to read due to the glare, so I hope it's ok I retyped it:

Spoiler content hidden.

Spoiler content hidden.
[Android Head-Units] TorstenH:
Thank you for the requested information. Unfortunately not a device I can test on.

But: I updated MainUiUpdater to version 0.8. Please give it one more try...
[Android Head-Units] dummptyhummpty:
I'm happy to do any testing. I tried 0.8 and got the same error.
[Android Head-Units] elalvaro19:
TorstenH, tested and working. For this version did you modify to be able to do key mapping?
[Android Head-Units] TorstenH:
Yes. It may be helpful to use logcat reader (or similar app) to identify the original key code the modded MainUI is logging.

Every time you're pressing a SWC key you should find a log message from MainUI like this:

original key: X / state: Y

X is the key code you need to map to another key code.

https://xdaforums.com/t/appswitcher...-devices-incl-autostart.4593865/post-88621023
[Android Head-Units] TorstenH:
Thank you. I added version 0.9 of MainUiUpdater. I simply try to detect free space after remount if first check fails.
[Android Head-Units] TorstenH:
Updated MainUiUpdater to version 0.10 to fix issues on 8667 devices.

Please try and let me know if it works, now.
[Android Head-Units] TorstenH:
The modded MainUIs allow already the definition of a custom mapping:

AppSwitcher v3 - smart SWC launcher (for Junsun, Xtrons, Ossuret, Hizpo and similar devices) incl. autostart

AppSwitcher v3 SWC (Steering Wheel Control) app launcher Stay focused on the street and don't touch the head units display to switch between apps. Support the development of this free app via ko-fi.com/appswitcher

xdaforums.com

Also the modded MainUI sends broadcasts:

AppSwitcher v3 - smart SWC launcher (for Junsun, Xtrons, Ossuret, Hizpo and similar devices) incl. autostart

AppSwitcher v3 SWC (Steering Wheel Control) app launcher Stay focused on the street and don't touch the head units display to switch between apps. Support the development of this free app via ko-fi.com/appswitcher

xdaforums.com
[Android Head-Units] Chris100115:
So if I wanted to disable a certain action, I just remap it to a number that is not processed by the MainUi?
[Android Head-Units] TorstenH:
Exactly. And then you could use Automate to execute your custom tasks.
[Android Head-Units] cleverdicky:
Hello, I really like the concept of your app. But sorry, couple of questions.

As my car is fairly old, I only have a few steering buttons. But I do think its important to use them well.

They work over can bus and have 4 each side. They are mainly for the car screen menus.

Unfortunately I dont have a mode select button for the radio.

Basically when the car screen is in the radio position I can change volume up down using top two.

The bottom two control the car dash screens.

The other side has two for telephone .

Using your app is it possible to use any of these buttons (can it read codes from the can bus ?)

Or at a push can it be usable by say long pressing a volume button to activate you app switcher ?
[Android Head-Units] TorstenH:
If you hava a Junsun V1 based on MTK8257 or 8667 you can use a modded MainUI. This allows to remap a button to AppSwitcher.

AppSwitcher is not directly reading can bus messages as ever head unit handles this differently.
[Android Head-Units] cleverdicky:
No, I'm thinking of using it on a roco s8, not installed yet though.
[Android Head-Units] Nestoraj:
Hi everyone!

I just installed the 1.3 version of the MainUI mod and I was able to change some SWC keys, but my problem is that I'm not able to use the same key for Play/Pause. Is this even possible using the keyMapping.ini file?
[Android Head-Units] TorstenH:
You could invent your own code, use automate to receive it and execute the task you want. I think I posted somewhere an Automate example in this thread.
[Android Head-Units] TorstenH:
Maybe @romica.cotoiul can help...

https://xdaforums.com/t/appswitcher...-devices-incl-autostart.4593865/post-89333860
[Android Head-Units] Nestoraj:
I'll give it a try!

Thanks for the quick response!

Edit:

I just found that there is a code for the Play/Pause -> MEDIA_PP = 60, I added it and it worked just fine.

Thanks for all the help!
[Android Head-Units] jnathanroberts:
Is there an update for v115 at this point?
[Android Head-Units] k5k5k5:
Hi @TorstenH

Can you make mod for this MainUI.apk from 8259P_军灿UI02v1280x720-国外_v115_20240307 fw?
[Android Head-Units] Sterke-Jerke:
Hi, I really would likte to change the functions of some of my SWC keys.

I think i must use the GPS (1) option. My device meets requirment B.

(Not A) From the start post:

This will only work if

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.

My CAN Box is used, so thats why requirment A is not met. My question: Is it "A and B" or " A or B"

2nd question, can you add the relevant ABD commands in the start post, have a problem finding them.
[Android Head-Units] fwpasx:
Hello, have a Junsun headunit 8667Q in VW Passat B6. Steering wheel controls only work if cluster has AUDIO menu open, unfortunately the AUDIO menu only appears with FM Radio, Music from files and Bluetooth (not when using Android Auto), but not from other applications like Spotify. Will this application help to switch songs even on spotify?
[Android Head-Units] TorstenH:
No, this application will not help in this case. I think the first question is, if the head unit receives the SWC signal if you're not in audio mode. Maybe you car only sends the signal if it knows that audio is playing.

There is an activity which logs the received can signals but I don't remember the code required to open it.

I think you should place your question here:

[Firmware] Junsun V1 8667Q - 8G/128G VHD QLED

Hi, my seller send me new FW for my Junsun. IMPORTANT! This is for 8667Q chip. https://drive.google.com/file/d/1g1Uz--3FSbfCHoD2jEKHIHxFdW0S-R37/view?spm=a2g0s.imconversation.0.0.761e3e5fKk3Vqp I was make upgrade but not fully tested...

xdaforums.com

Edit: it should be code 0129. So you can compare the can signals with und w/o radio playing.
[Android Head-Units] Patryk12:
Hi @TorstenH ,Can you make mod for this MainUI.apk from 8259P ples;)
[Android Head-Units] TorstenH:
Could you please add the full name of the firmware?

E.g. 8259P_军灿UI02v1280x720-国外_vxyz_yyyymmdd

Thank you
[Android Head-Units] Patryk12:
8259P_军灿UI02v1280x720-国外_v115_20240307-1
[Android Head-Units] TorstenH:
Here we go:

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

Let me know if it works. You might be able to install it by clicking on the apk file.

If not, you must install MainUiUpdater and put the apk as MainUI.apk in Download folder.
[Android Head-Units] bloot:
Is it still not possible to mod the QF001 units launcher as on the Junsun ones for appswitcher to work "natively"?
[Android Head-Units] KiiRan91:
Personnally, it kinda bricked my device, had to reset to older version. Maybe it is the way I installed it or idk (with MainUIUpdater, clicking on the apk didnt work) but thats surely me who did ****.
[Android Head-Units] TorstenH:
Would be interesting to see the log of MainUiUpdater so I have no idea what happened.
[Android Head-Units] KiiRan91:
Yeah idk tbh the « car infotainment » part was just bricked (mading the settings app crash) nothing was working anymore (button on the left of the screen, SWC, and the head unit would take like 5mn to shut off when I put the ignition off) so I directly rolled back
[Android Head-Units] KiiRan91:
I did this while trying to install carletter mod (like explained on Junsun V1 Pro thread) btw cuz I didn’t really need MainUI to be updated. Still can’t find « carletter update » button too 😔
[Android Head-Units] Patryk12:
Click installations will not work. I have this message in MainUl updater.View attachment 6124731
[Android Head-Units] TorstenH:
Currently I don't have the app in front of me. But is the setting "use old su commad" activated? Please turn it off.
[Android Head-Units] TorstenH:
I will review the mod and come back to you asap.
[Android Head-Units] Patryk12:
I also tried this at first time. Today I wanted to take a photo of the error and the mod was loaded. Old su commad disabled.

Thank you for your help👍
[Android Head-Units] k5k5k5:
It works fine for me, I used MainUiUpdater and there are no problems.
[Android Head-Units] TorstenH:
Great! Thank you for your confirmation.
[Android Head-Units] 1Valentin:
Hello @TorstenH . Can you help me with modden MainUI? The original one is attached. I've tried the one in first post and i lost a lot of function of my unit like bluetooth, 360camera, setting, etc. The app is for a Mercedes ML 2014, and i'm trying to edit the hardware buttons. Some of them work and another ones has the wrong function.

Software version: 8259P_奔驰UI03v1920x720-国外_v43_20240527
[Android Head-Units] TorstenH:
Sure, I will provide a modded version but I don't know if I can make it before Sunday so please stay patient...
[Android Head-Units] TorstenH:
Please give it a try

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

and let me know if it works. Thank you.

I know, it's not Sunday. 😅
[Android Head-Units] 1Valentin:
Thanks brother for your hard work, but unfortunately after i install the app all my bluetooth functions stop working. My phone can't find Carplay or Bluetooth. I've tried restart, delete cache of all the apps, restart bluetooth, repair car with phone, nothing seems to work.

After i but back the original app everything started working normally.
[Android Head-Units] TorstenH:
Are other functions of MainUI working?

SWC keys and Radio?

Do you already have a keyMapping.ini file in place?
[Android Head-Units] 1Valentin:
I don't have Radio on it and SWC i didn't try it. 360 cameras was working.
[Android Head-Units] TorstenH:
I reviewed the changes and I wasn't able to find a typo.

You may have the chance to reinstall and perform a cold reboot.
[Android Head-Units] TorstenH:
Modded version of MainUI is available for 8227L

https://xdaforums.com/t/appswitcher...-devices-incl-autostart.4593865/post-88620949
[Android Head-Units] TorstenH:
This could be extended to a context sensitive mapping which allows to assign different functions based on the current foreground app. Not sure if there is a need... let me know.
[Android Head-Units] dummptyhummpty:
0.9 and 0.10 didn't work. Same error (although the error showed up twice on 0.9).

Not sure if there's a way to test in real time, but I could probably find some time to do a screen share with you.
[Android Head-Units] walkerdeath:
Hi! I tried option 1 gps in a 8227L radio but appswitcher wouldnt start, and in appswitcher starter when I tried to open apps option the app would close. I was going to try the second option but I'm afraid if I install it the apps will still not work and I won't be able to go back to using the default mainUI. I'm correct?

What should I do if I cant start appswitcher app?
[Android Head-Units] TorstenH:
It may help to start AppSwitcher for the first time manually. This can be done by clicking on the button on top of the settings screen:

View attachment 5943667

If AppSwitcher is running (app icon in status bar) you can close it via the status bar message and try to start it via AppSwitcherStarter.

---

You will be able to return to the original MainUI because MainUiUpdater creates a backup. Nevertheless if a manual start of AppSwitcher isn't possible via the settings menu of AppSwitcher, a start via the modded MainUI will not work.
[Android Head-Units] walkerdeath:
Yup, I've tried starting manually the app and it didn't work... it was nice trying though
[Android Head-Units] TorstenH:
You've set the media and navigation apps? Is AppSwitcher allowed to show notifications, read usage data and location?

If you're not getting an error message (toast) best approach would be to use logcat reader and search for "fatal" to get an idea what is different on your head unit.
[Android Head-Units] DarkTWH:
@TorstenH

First of all thanks for the great new version. I can finally use Appswitcher and the Radio even with canbus. However, I have found one issue and a small bug.

The issue:

Sometimes the App doesn't seem to work at all, even when I manually start the App. Sometimes it works just fine. According to the log there seems to be an issue with permissions, as the Dealing with the KeyID works fine. I'll attach the log for you to look at.

The bug:

Randomly the App seems to affect the choosen Volume. When Appswitcher is visible sometimes the wrong audio (ie. Navigation Audio (read arrow in volume bar) instead of the normal one) is used. I cannot reproduce it, it just sometimes happens.

Hope this helps the development
[Android Head-Units] TorstenH:
Thank you very much for providing your feedback.

Could you please give me some details regarding you current setup?

- installation variant: modded MainUI?

- device type: MTK825X?

Yes the log would be very helpful. If AppSwitcher can't be started manually, you may find a fatal error message.

Only the status bar icon or the dialog? I don't think you're changing the volume while the AppSwitcher dialog is visible.

Does this happen if you disable "Dialog\Key sound"?
[Android Head-Units] DarkTWH:
Good morning,

Sorry, I totally forgot to attach the log.

Yes, I use the modded MainUI on my Unit (V1 Pro, MTK8257).

Sorry, i somehow forgot to attach it.

I'll have to try that, and ill report if it fixes the issue.

Edit: Interesting, I cannot attach the log it automatically disappears. Ill send it to you via PM.
[Android Head-Units] TorstenH:
Updated AppSwitcher to version 3.0.5alpha:

- fixed detection of known app in foreground

Fixes this issue:

If only ignition turned on to enter the destination in the navigation app, starting the engine triggered AppSwitcher to start the media app.

The navigation app stays in foreground, now.This fix improves the begin of you journey...
[Android Head-Units] TorstenH:
This issue is fixed with the latest update of MainUI for MTK825X devices.
[Android Head-Units] elalvaro19:
I have tested the key remapping on the 8227L unit, it works correctly. I'm trying to assign the seek action to a key, but I can't get the code for that key, at least in other units (mtcd) that action had a key, I attached an image with the radio action that I want to assign to a key to see if anyone knows that key code.
[Android Head-Units] TorstenH:
Try this key codes in keyMapping.ini:

next track = 44

prev track = 45
[Android Head-Units] elalvaro19:
Those are the default keycodes that I have on the keys, their action is to switch between saved stations.
[Android Head-Units] TorstenH:
Unfortunately I wasn't able to find a key code which sends key for seeking (media fast-forward / rewind). This could be implemented but only if the radio app responses to the key click.

You could figure this out with Automate:

View attachment 5947253
[Android Head-Units] Jetblack31:
Hi Torsten,

Does it mean that it is possible to know if the engine is running or not ?

On my car, I connected the ACC to a line that is at +12V as soon as I unlock the car. The line remains at +12V a few minutes after the car is switched off and even locked. What I would be able to do : If the engine is Off and if I open the left door (so I will leave the car) then the HU goes into sleep mode. That's the behavior of the former stock car radio.

The HU knows from the can bus when a door is opened (a pop up appears on the screen).

Many thanks,

Jetblack
[Android Head-Units] TorstenH:
Fixed modded version of MainUI for 8667 devices:

https://xdaforums.com/t/appswitcher...-devices-incl-autostart.4593865/post-88620949

Simple installation by just clicking on the apk file is possible. No need to use MainUiUpdater.
[Android Head-Units] Jetblack31:
Hi !

I installed Appswitcher and the mod MainUI on my Junsun V1Pro 8/128 8667.

It works like a charm! Congrats for this amazing app!

I will now study improvements I can do using key remapping!

Many thanks for your amazing work and your support!

Jetblack
[Android Head-Units] Arky21:
Modded MainUI froem 20230302 will work with 20230703?
[Android Head-Units] Jetblack31:
Hi,

I'm interesting in 20230703. Is it a Junsun FW for V1pro 8667 ? Where can I download It ?

Jetblack
[Android Head-Units] Arky21:
Yes.

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

drive.google.com

Today Junsun send me this link. MainUI from 20230302 doesn't work with lastest fw.