yashsingh1/xdaforums huggingface dataset:
[Android Head-Units] TorstenH:
Code description from {Mod edit}

Please note: Don't just try a code without to know what happens. E.g. 9191 will lead to the message "device not activated" and you need a file called license.dat.

8888 - restricted settings menu

8878 - full settings menu. Mostly what you're looking for.

Additional info can be found here: https://xdaforums.com/t/junsun-v1-factory-settings.4282295/

1111 - load monitoring

0 - update (mcuupdate_num)

1 - some menu (csudy_num)

2 - barcode

3 - another barcode 8938003992756585897

4 - reboot

5 - color setting

6 - set a new random Bluetooth name

7 -

8 - gis whitelist reset

9 - system notification: device activated (in Chinese)

0129 - CAN DATA

5555 - save settings

1912 - factory setup

1812 - shop setup

12345678 - update_apk update MainUI

3699 - update_apk2

5699 - update_apk3

7788 - atc_log (engineering menu of the 4G modem)

8877 - atc_factory

Menu for changing the cutoff (filter) frequencies for the sub and line outputs (relevant for those who use external amplification):

Code 8877 ---> Audio ---> Scroll to Sound Effect ---> Bass (or Alto (Middle), Treble).

And also there is a setting and the ability to completely disable Loudness.

USB mode can be changed here if required, too.

7758258 - obligatory mode !! do not enter !!! Complete crap going on

5678 - changing the menu code logo

3234 - apk_install_pwd

Alternatively (untested!) restore the engineering menu settings to the factory settings.

2134 - appinfo_id_num

6666 - install_id_num

7777 - install2_id_num

1616 - display_id_num brightness

2064 - testmode_id_num

1414 - reboot_id_num

9191 - destroy_id_root_num

9090 - destroy_id_num

1313 - radio_reset_num

1101 - screenshot_num

4321 - filedelete_num

1234 - filecopy_num

Boot logos for code 5678: here

Instruction to change logo: here
[Android Head-Units] Oswald Boelcke:
I've removed the link to 4pda. 4pda.ru is not only another phone related site (and absolutely not affiliated with XDA) but also well known for the distribution of malware and warez. References to 4pda are not accepted on XDA.

XDA Forum Rules (excerpt):

Spoiler content hidden.
[Android Head-Units] digloz:
Hello, I also have a Junsun V1 Pro. Could someone do me a favor? I accidentally changed something in the radio settings in the secret menu (8788). Could someone take screenshots for me of what the normal values are? At AliExpress the support doesn't seem to understand me ... My English is not the best.

Thanks very much!

Regards from Germany
[Android Head-Units] TorstenH:
https://xdaforums.com/t/junsun-v1-pro-mtk8259-4gb-64gb-android-10-headunit.4193061/post-84791227
[Android Head-Units] Jamal318:
hi there, how to get in to this setting: Code 8877 ---> Audio ---> Scroll to Sound Effect ---> Bass (or Alto (Middle), Treble).

sound effect is not good, maybe if i switch off will be good. there are too much Bass and treble, even applifier bass is in min but still getting these bass
[Android Head-Units] TorstenH:
hi there, how to get in to this setting: Code 8877 ---> Audio ---> Scroll to Sound Effect ---> Bass (or Alto (Middle), Treble).

sound effect is not good, maybe if i switch off will be good. there are too much Bass and treble, even applifier bass is in min but still getting these bass

[/QUOTE]

Think you have to change that in equalizer app.
[Android Head-Units] andelf2:
where do you put those codes?
[Android Head-Units] TorstenH:
This is from another head unit but it's the same click path on Junsun:

Don't mess around with the codes if you don't know what you're doing. A lot people killed their devices by playing around.
[Android Head-Units] andelf2:
Oh thank you LOL. I though that was only for changing the logo with the 5678 code because is the same menu that appears when tapping the "change booting logo" but now i realize is for all the codes.

Great, i need it because my unit doesnt have the option or app to set the color/light to the buttons.
[Android Head-Units] Anezii:
Can somebody help me please. I bought junsun v1 for Clio 4. And I dont know how to match it with wheel buttons. Thank you in advance! 😊
[Android Head-Units] TorstenH:
Your question does not fit to this thread. Please try to find a thread handling the SWC (steering wheel control) topic or create a new thread.

Thank you.
[Android Head-Units] jgoz2520:
Which code will activate the Autolink to use with android auto?
[Android Head-Units] TorstenH:
Code 8878. You can enable it in the Others section.
[Android Head-Units] krzysiekki:
I have a question, what is the code to change the parameters of the rear view camera ???
[Android Head-Units] TorstenH:
There are a few settings in the Android settings. And additional factory settings (code 8888 or 8878 depending on your device).
[Android Head-Units] krzysiekki:
none of the codes works, I mean specifically changing the NTSC signal to PAL
[Android Head-Units] TorstenH:
It's in the Others section after entering code 8888 or 8878
[Android Head-Units] Achilefs_k:
What all these one digit codes under 1111 mean? e.g if i enter 4 it will reboot?
[Android Head-Units] jkanellopoylos:
8877 at my android unit opens the atc log.

I have problem with equaliser settings… at every new start all settings gone to default value’s.

I have the ff_866x with 6gb ram and 128gb Rom.

Could someone help me ?

Thank you
[Android Head-Units] TorstenH:
Yes. 4 is reboot. But here

https://xdaforums.com/t/junsun-v1-start-equalizer-aux-bt-music-from-launcher.4237797/

you can download reboot.apk to get an icon for easy reboot.
[Android Head-Units] nikolav75:
Hey guys. Is there any way to change the color of the side buttons?
[Android Head-Units] TorstenH:
Custom SWC key study with CAN box in place...

You all know that the SWC keys are assigned to a fixed function on the head unit.

But the Chinese developers prepared a SWC CAN key study with code 0127.

Unfortunately the corresponding activity is not defined in the manifest file of the central MainUI applications.

I'm searching for fearless victims try to replace the MainUI application by a modded one. Sure you should have SWC via CAN box in place and you should know how to flash a firmware in case of issues.
[Android Head-Units] t33t:
Keeping my eyes on this :)
[Android Head-Units] TorstenH:
MainUI from

8259P_军灿UI02v1280x720-国外_v81_20230427.zip

with enabled settings code 0127 and possibility to replace mode button with AppSwitcher can be found here:

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

MainUiUpdater to easy replace MainUI can be found here: https://xdaforums.com/t/appswitcher...-devices-incl-autostart.4593865/post-88620909
[Android Head-Units] TorstenH:
Added MainUiUpdater
[Android Head-Units] math3104:
Hi TorstenH,

Thank you very much for your work on this unit :)

Just a question : possible to control the original screen on a peugeot 308 (2010) with this MainUI modded ? :)
[Android Head-Units] TorstenH:
Don't know what you mean by "original screen".

Unfortunately I got no feedback regarding my first mod of MainUI and the Updater app. So I will see what's possible in future.
[Android Head-Units] ramig:
Hi TorstenH

this is what happened here.

Google Drive: Sign-in

Access Google Drive with a Google account (for personal use) or Google Workspace account (for business use).

drive.google.com

II will update to v81. That's why I tested.
[Android Head-Units] TorstenH:
Thank you for testing. I updated the updater app to version 0.2

Can't access your Google Drive link due to missing permission.
[Android Head-Units] ramig:
Sorry

File on MEGA

mega.nz
[Android Head-Units] TorstenH:
Thank you for providing the video. That's the original behavior of MainUI - crashing after you entered the code with a direct restart of MainUI.

New version of the updater app should show the log message "Finished! Please reboot your device", now.

Shure, you can directly try to enter the code before and after a restart so see if reboot is really required.
[Android Head-Units] ramig:
I did just that. I tested the code before and after a reboot . The result was the same. Here you have a new video with version 0.2:

File on MEGA

mega.nz

I disable the sleep mode if i have problems with the reboot ;)
[Android Head-Units] TorstenH:
We're on version 0.3, now.

https://xdaforums.com/t/junsun-v1-codes.4282299/post-88599413

Good you know how to force reboot. Unfortunately the change of MainUI was not persistent so I changed the way to make the partition writeable.

Adding a reboot button to the app would be piece of cake.

Thank you for your very helpful tests.
[Android Head-Units] ramig:
I didn't use the Reboot app because the HU freezes after running the updater

A new icon has appeared. you can see in the video.

Version 0.3

File on MEGA

mega.nz
[Android Head-Units] TorstenH:
I new icon may be a good sign and may indicate that the replacement worked. Unfortunately my internet connection is currently not got enough to watch the video. I come back to you ASAP.
[Android Head-Units] TorstenH:
Unfortunately mega tells me that the free transfer volume is exceeded. Maybe you can provide pictures and tell be what's behind the new icon and if code 0127 is working?
[Android Head-Units] ramig:
The new icon opens the Bluetooth application (?). Code 0127 does the same as in other versions. Sorry for the lack of time. I will make a short video.

Edit

I cut the video

20230605_120055.mp4

drive.google.com
[Android Head-Units] TorstenH:
Thank you for your effort.

Bluetooth is the standard activity of MainUI. The added icon may be just a weird side effect.

Because I'm confused why the code isn't working I want to ensure the replacement itself works. I added a new version of MainUI. This one should add a launcher icon "caninfo" with the radio icon.

https://xdaforums.com/t/junsun-v1-codes.4282299/post-88599413
[Android Head-Units] ramig:
With the new mainui, code 0127 opens the steering wheel controls screen. I couldn't record anything, but I just tried 2 times. In Agama, a new carinfo icon does not appear. I didn't see it in the other lanchers
[Android Head-Units] TorstenH:
Even if the icon doesn't appear it's great 0127 is working. Unfortunately I don't have a CAN box in place so I can not test by myself.

If the screen is similar to the well known SWC learning screen you need to clear the current assignments first. Nevertheless the idea this could work with CAN is based only on the name of the screen (CanCarInfoSub3Activity).

Another change could be to disable the standard functionality of the SWC mode button. This would allow to keep the menu icons setting, have a working radio app and use AppSwitcher to switch between apps. Are you interested in testing?
[Android Head-Units] ramig:
Yap butI have a steering wheel remote control with canbus and I installed another remote control connected to the Key 1 wire. where I have connected the appSwitcher.

Tomorrow :)
[Android Head-Units] TorstenH:
I disabled method DealModeKey.

Code 0127 should still work to allow further tests.

Post in thread 'Junsun V1 - Codes' https://xdaforums.com/t/junsun-v1-codes.4282299/post-88599413
[Android Head-Units] ramig:
test tomorrow 😉

20230606_191332.mp4

drive.google.com
[Android Head-Units] ramig:
The mode key stop working. There were no more changes.

I tried changing the canbus no to another option where the buttons didn't work. Nothing happened.

In the process I lost the backups. :D

Can you send me the initial mainui.apk?
[Android Head-Units] TorstenH:
Thanks for the video. No responding learning function is same behavior

Excellent as intended.

If code 0127 is still working I'm happy.

I sent you the original MainUI in a private message to avoid confusion here. I'm already working on the method hooks so next update for modified MainUI will come...
[Android Head-Units] TorstenH:
Updated MainUI:

https://xdaforums.com/t/junsun-v1-codes.4282299/post-88599413

- Starts AppSwitcher after boot and sleep (AppSwitcherStarter and further settings are not required).

This can be tested by uninstalling AppSwitcherStarter or setting another navigation app.

- Logs SWC keys with tag "MainUI" and message "key: ? / state: ?"

This can be checked in Android system log (e.g. with logcat reader), setting a filter on tag "MainUI" and searching for "key:".
[Android Head-Units] ramig:
I can't test it because the HU freezes when I open an app. I had to pull the fuse 3 times, but I was able to recover from the backup
[Android Head-Units] TorstenH:
That sounds terrible. I will undo one of the changed to get an idea what went wrong.

The reset hole of the head unit may me an alternative to removing the fuse.
[Android Head-Units] TorstenH:
Starts AppSwitcher after boot and sleep (AppSwitcherStarter and further settings are not required).

This can be tested by uninstalling AppSwitcherStarter or setting another navigation app.

REMOVED: Logs SWC keys with tag "MainUI" and message "key: ? / state: ?"

https://xdaforums.com/t/junsun-v1-codes.4282299/post-88599413
[Android Head-Units] ramig:
It wasn't terrible. :D I know where the fuse is on the engine. Was fast. I had nothing to insert into the hole.

Every time I opened an app the machine froze. Turning off the ACC with the key everything remained the same. The fuse was the most productive option .

I uninstalled AppSwitcherStarter before updating.

(Sorry for my English)
[Android Head-Units] TorstenH:
Your English is prefect and I will ask of I'm not able to understand what you're telling me. :-)

Thank you for the explanation. I've reverted one change so one more try would be great. I hope the effort to bring up the device is acceptable.
[Android Head-Units] arhexen:
Hi, how to disable this window? it appears when an error pops up on the dashboard there is no way to disable it other than deleting the error
[Android Head-Units] TorstenH:
Do you have a MTK8257 and latest firmware v81?
[Android Head-Units] BoiaMondo:
Hello guys is there any solution to remap a CANBUS key?

For example, let it that I want to remap the VOL+ button to STOP button, is there any solution?

SWC didn't work, but it's normal because I'm using a Raise RCZ canbus box.

Junsun it's not collaborating, in fact I'll not reccommend them as sellers
[Android Head-Units] ramig:
AppSwitcher did not start. but...

Edit: The appSwitcher starts, my fault

I'm lost. (probably too much beer on the weekend). ;)

What is supposed to happen? Before, there was a button assigned to navigation for the AppSwitcher. Now I have none. How should I launch application?
[Android Head-Units] TorstenH:
Excellent. Maybe you should drink 🍻 only in case of successful test. :-)

This is the next topic we will have a look at...

I updated MainUI again

Post in thread 'Junsun V1 - Codes' https://xdaforums.com/t/junsun-v1-codes.4282299/post-88599413

We should find a message in Android log after each key press with tag "MainUI"

and message

"key: ? / state: ?"

I suggest to use logcat reader to find the message.
[Android Head-Units] BoiaMondo:
Guys any advice for this? I'm just going crazy to find a solution!
[Android Head-Units] ramig:
I tried but I didn't find the key

Today I will try with the new update and more attention

"06-12 14:16:40.284 I/power ( 517): release_wake_lock id='KeyEvents'

06-12 14:16:40.284 I/power ( 517): release_wake_lock len=9"
[Android Head-Units] ramig:
If you cannot change the presets on your radio and with your canbus, there is no software solution.

There is always the possibility of changing the wiring of the radio. On my mazda 3 I know how to do it but I'm not an expert. I will not make suggestions for other cars.
[Android Head-Units] TorstenH:
Yes, you first need to update to latest MainUI I provided here:

https://xdaforums.com/t/junsun-v1-codes.4282299/post-88599413
[Android Head-Units] TorstenH:
Currently I try to re-code the MainUI.apk which is the system application executing the SWC functions.

Currently I try to implement a broadcast hook. This will allow other apps to receive the key presses and in a second step the implementation of a function overwrite.

But I'm sure you're already following my conversation with @ramig

Feel free to participate testing - at least if the functionality is important enough for you to risk a required re-flash of the firmware.
[Android Head-Units] XLGGF:
Hi, none of these codes work. I can get into factory settings with 000000. My problem is my rear speakers are connected but there is no sound. I can hear some feedback when I check it with my Multim. Also my GUI looks nothing likeall the other ones, with special settings or developer tab. I'm thinking I might have to changea setting to get the speakers on. Or could it be a Canbus setting, like picking a different one? Thanks for any info.
[Android Head-Units] TorstenH:
Don't think you have a Junsun unit.

https://xdaforums.com/t/developer-password-cvd-headunit.4518291/
[Android Head-Units] XLGGF:
How can I tell if it's a Junsun? The trick with the date worked but it really doesn't look like what the pics on Ebay are.
[Android Head-Units] ramig:
About the latest MainUi version:

-Coming from sleep the AppSwitcher always starts. If it comes from boot not always.

- steering wheel buttons no longer work. But when I click on them a loop appears with "wake up appSwicher" message, home and opens auto-navi. It also loops a few seconds after exiting the navi app.

I installed the original MainUi and got all functionality back
[Android Head-Units] TorstenH:
The loop indicates that MainUI crashes and we should find a "fatal" message in log.

Could you please search for "fatal" in the Android log and post a picture of the error message?
[Android Head-Units] ramig:
I save the logcat if you won it
[Android Head-Units] TorstenH:
Thank you. That's very helpful. I will try to fix this error asap.
[Android Head-Units] ramig:
I have no hurry. My radio is working
[Android Head-Units] TorstenH:
Thanks to your logs I was able to fix the error fast. Find the updated MainUI here:

https://xdaforums.com/t/junsun-v1-codes.4282299/post-88599413
[Android Head-Units] ramig:
At the beginning only the MODE button does not work.

The AppSwitcher not running on book.When it comes from sleep it already works.

found the key and stiil not working.
[Android Head-Units] TorstenH:
I have an idea how to fix the missing start after boot. My expectation was that a specific method gets called after sleep and after boot so I have to enhance a second method.

Not working mode button is OK because I disabled it. But we see in your log "key: 10 / state: 0" which is the mode button.

With the next step I have to fix the non protected broadcast because we need it as trigger for AppSwitcher and other apps like Automate.

Stay tuned... update will follow...

Thanks again for your great support. We're on the right way...
[Android Head-Units] TorstenH:
- I moved the start of AppSwitcher to another method. Could you please check if it gets stated after boot and after sleep?

- I changed the broadcast message to com.ts.main.STATUS_CHANGE.

By searching in the Android log for "com.ts.main.STATUS_CHANGE" we should not see the errors from ActivityManager anymore.

https://xdaforums.com/t/junsun-v1-codes.4282299/post-88599413

In meantime I will prepare a version of AppSwitcher which can handle the broadcast messages...
[Android Head-Units] TorstenH:
Here you can find the adjusted version of AppSwitcher which is listening to the broadcast from modded MainUI as soon as the service is running (AppSwitcher icon on status bar).

It will show the dialog for key 10 (mode) but shows a toast message for all key codes.

It allows to disable the log listener which is not required in combination with the modded MainUI:

https://xdaforums.com/t/appswitcher...-devices-incl-autostart.4593865/post-88620909
[Android Head-Units] ramig:
News

-The AppSwitcher sart on boot and from sleep

-The sistem going very slow especially the android apps.

- The apps freeze and take a while to respond

however i can get the logcat and I achieved recovery to original MainUi

Edit: added a new print
[Android Head-Units] TorstenH:
In the first log I see that AppSwitcher gets started at least two times. Maybe MainUI continuously starts AppSwitcher which may influence the system performance.

Maybe you can filter the log for "started AppSwitcher" to see if that's the case.

I will try to check that in parallel.
[Android Head-Units] ramig:
what is this?
[Android Head-Units] ramig:
too many results
[Android Head-Units] TorstenH:
I adapted the weird logic how the navigation app gets started: only once after 100 calls of the method.

Hope this fixes the issue of multiple starts

As usual, updated MainUI here:

https://xdaforums.com/t/junsun-v1-codes.4282299/post-88599413
[Android Head-Units] ramig:
I had to go visit my friend Fuse again.

MainUi app freezes the system.

The android apps worked to get the logcat and recover the system.

AppSwitcher not start
[Android Head-Units] TorstenH:
Oh that's bad. Unfortunately the log seems not to be helpful. I hope I can identify the issue.
[Android Head-Units] TorstenH:
I fixed a typo and it should work, now:

https://xdaforums.com/t/junsun-v1-codes.4282299/post-88599413

I'm really sorry for the inconveniences but I want to take the chance to mention that we're not talking about simple Java programming, I have to do nightmare smali code editing:
[Android Head-Units] ramig:
-AppSwitcher not start on boot but start from sleep

-System going slow

-Save logcat and revert to original mainui
[Android Head-Units] TorstenH:
Does the log contains fatal messages or at least a message with tag MainUI?
[Android Head-Units] ramig:
No fatal messages for MainUi and no messages
[Android Head-Units] TorstenH:
I did a quick test. My result:

- directly after update of MainUI head unit stays responsive and reboot via Reboot app was possible.

- head unit was slow after first reboot. Needs a few minutes until performance getting better.

- after 2nd reboot performance as usual.

- AppSwitcher gets started once after each reboot.

- Disabled menu button (as intended)

- key presses getting logged with message "key: xxx / state: xxx"

---

Untested due to less time:

- Start of AppSwitcher after sleep.

- Trigger AppSwitcher via menu button.
[Android Head-Units] ramig:
"- directly after update of MainUI head unit stays responsive and reboot via Reboot app was possible."

I confirm

"- head unit was slow after first reboot. Needs a few minutes until performance getting better."

I confirm

"- after 2nd reboot performance as usual."

a little similar

"- AppSwitcher gets started once after each reboot."

I do one reboot and can´t confirm.

"- Disabled menu button (as intended)"

Yes

"- key presses getting logged with message "key: xxx / state: xxx"

Yes, have a screenshot in the post before
[Android Head-Units] TorstenH:
If AppSwitcher gets started by MainUI the log entry "start AppSwitcher" with tag "MainUI" gets written.

This will help to check if it's an issue of MainUI or AppSwitcher.
[Android Head-Units] TorstenH:
Updated MainUiUpdater.

- Fixed text color of log for dark theme

https://xdaforums.com/t/appswitcher...-devices-incl-autostart.4593865/post-88620909
[Android Head-Units] ramig:
Yap, in this logcat 1 min after a reboot the AppSwitcher started
[Android Head-Units] TorstenH:
Good news.

I tested the latest MainUI update from here

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

together with latest AppSwitcher from here

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

I disabled Log reader and it works like a charm with the Mode SWC key.

If you can also confirm this, we will try to speed up the automatic start of AppSwitcher after booting.
[Android Head-Units] Sefir36:
Hello, here I connected Junsun V1 Pro 8G + 256G For Citroen C5 2008 - 2017 to my car and the mechanical parking sensor and steering wheel equipment have not been added to me, anyone know how to solve this problem?