yashsingh1/xdaforums huggingface dataset:
[Android Head-Units] elalvaro19:
Hello

the package name is the same for all:

com.ts.MainUI

the following activities are the ones that interest me to have direct access:

com.ts.can.CanBaseCarInfoActivity

com.ts.bt.BTConnectActivity

com.ts.main.radio.RadioMainActivity

I attach the images, Thanks for everything
[Android Head-Units] TorstenH:
Radio and Bt already included in for_launchers.zip

Can maybe included in car_apk.zip

Let me know if not. Best you reply in linked thread to keep topics separated.

Post in thread 'Junsun V1 - start equalizer/AUX/BT music/... from launcher' https://xdaforums.com/t/junsun-v1-start-equalizer-aux-bt-music-from-launcher.4237797/post-85047137
[Android Head-Units] TorstenH:
One note regarding the routing apps from here

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

and AppSwitcher:

If you use the "Smart list" feature AppSwitcher will track the current running app by querying the usage data. This will influence the sort of the offered apps and the app which is currently in foreground will not be offered.

The identification of the app is done by the package name.

The routing apps have different package names and only starting another package's activity.

If you select a routing app as media or navigation app, for AppSwitcher it will never be in foreground. E.g. Radio will be offered to start even it's already in foreground.

Please select the Junsun specific activities directly from app MainUI. The selection dialog for media apps allows to expand the apps and to select a specific activity. You can click on an activity to try if start will work and use the back button of the head unit to return to the settings dialog.
[Android Head-Units] ser_hero:
Hi, @TorstenH. Greetings from SPb :)

Just installed AppSwitcher 2.6.10 to 8667, it's working as description says. Few suggestions:

1. Maybe it's possible to launch not one, but 2-3 apps on the start of service? I'm using tracker app to track gps position of the car and set it to launch first of all, and I need to launch media app manually because of that.

2. Another cool option would be to reassign long button press f.e. to return basic option (for me it's play/pause). Or using long press to switch apps and short one to set for something else.

3. Basic junsun launcher has an option to start navi pressing on the car image on start screen. Now this button doesn't working at all.
[Android Head-Units] roubi:
Hi, for that kind of stuff you could use Tasker... 😉
[Android Head-Units] TorstenH:
First thank you for using and testing my app. And thank you for your suggestions.

AppSwitcher allows to enable Automate and start an Automate flow on startup.

Automate is similar to Tasker and allows you to start apps and do a lot of cool stuff:

Automate - Apps on Google Play

An automation app for Android that can perform almost any task.

play.google.com

No! I don't get money if you use it 🙃

I'll put this on my to-do list.

Unfortunately Junsun launcher starts only the generic navi start activity, which starts the app you defined as navigation app. Now, we use exactly this activity to start AppSwitcherStarter after reboot / sleep. Currently that's the only reliable way to bring up AppSwitcher after sleep mode.

To be honest "finding a workaround for Junsun launcher" will be on the very bottom of my to-do list because I don't like Junsuns launcher and I can't identify myself with the car (is it a Porsche? ) they are showing on it.
[Android Head-Units] roubi:
Hi Torsten,

I installed AppSwitcher and really like it - thanks for the work. 🙂👍

Two things to report:

1. I can't find the fm radio app in the list of settable media apps.

2. In Spotify, when I play a track and select the album cover view, the display seems to change to portrait mode and I can see only the part of the screen that fits in the display of my HU.

Any idea why this happenes? I 😇
[Android Head-Units] TorstenH:
It is definitively available under the MainUI (Bluetooth app). You have to expand the app activities and find the entry

com.ts.can.CanExRadioActivity

or

com.ts.main.radio.RadioMainActivity

Simply try which one is working.

Is this only happening while AppSwitcher is running? If yes: Is screen dimming active?
[Android Head-Units] roubi:
Thanks for the quick reply. Found the radio now. 👍

Yes, only with AppSwitcher. I don't have a toggle for screen dimming, only a slider... 🤔

See attached pictures (sorry for the bad quality...)
[Android Head-Units] roubi:
Okay, sorry, I just saw on first page where the setting for dimming is placed (title of dialog)... 😶

I'll check it out tomorrow...
[Android Head-Units] TorstenH:
Please disable dimming (sun ☀ icon) to see if this makes a difference.
[Android Head-Units] roubi:
Okay, checked again now. Dimming is disabled. Happens also after killing AppSwitcher and AppSwitcher Starter, but started happening just after installing the App...
[Android Head-Units] TorstenH:
Please check if Spotify was updated, uninstall updates of Spotify app and clear cache and data.
[Android Head-Units] roubi:
Okay, I'll check it tomorrow. It's happening just in Spotify and just in the album cover view. So it's not really a big thing and maybe really a Spotify problem. I'll report after checking.
[Android Head-Units] TorstenH:
For me it looks like Spotify forces a screen rotation to portrait mode.

[Android] Landscape mode on Now Playing view

When using my phone in the car I put it in a car holder. The holder is horizontal in order to have better view for navigation etc. I use spotify also a lot in the car but when using the playing music I'm not able to rotate the screen but the playlists dose rotate

community.spotify.com
[Android Head-Units] TorstenH:
Are you using Spotify on your phone (sorry I don't use it at all)? What happens if you open album art in landscape mode?
[Android Head-Units] TorstenH:
[Android] Landscape mode on Now Playing view

When using my phone in the car I put it in a car holder. The holder is horizontal in order to have better view for navigation etc. I use spotify also a lot in the car but when using the playing music I'm not able to rotate the screen but the playlists dose rotate

community.spotify.com
[Android Head-Units] roubi:
Interesting information. Thanks for that. I didn't think about searching the web for a Spotify problem because it worked before. So maby it is related to the force full screen settings... 🤔

I'll have a look tomorrow.

I don't use Spotify on my phone. Only on the HU.

Anyway - thanks for the work and the support. I'm really glad there's guys like you, pimping our devices and making them more fun to use. 😎
[Android Head-Units] TorstenH:
You're welcome. It may be possible that by disabling the setting and so by disabling the weird coding of Junsun Spotify behaves like on every android device and forces portrait mode - which handled by the head unit in a special way.
[Android Head-Units] roubi:
Okay, when I toggle the force full screen setting in AppSwitcher, the album view in Spotify works again. I don't know why Spotify behaves like that but a visible status bar is more important to me... 😉
[Android Head-Units] TorstenH:
Junsun patched a framework file which forces all apps to appear in full screen without status bar. Only exceptions are some Junsun apps which are defined by fix coding.

AppSwitcher disables the patch and all apps appear as they should appear. On some apps this may be a worsening. And as you can see on the links several users don't understand why Spotify is not supporting the album art view in landscape.
[Android Head-Units] tazere:
Hi everyone, I am trying to use your app to put a custom button command for to switch through some apps.

I read through all the thread and still was not able to make it work :-( maybe you guys can help me out.

Thank you in advance.

Unit specifications:

I am using JUNSUN v1 pro on a seat ibiza using UIS8581A processor and TS18 firmware like in the pictures below.

I am using canbus decoder from SIMPLESOFT on a SEAT IBIZA 09-2013

I have the steering wheel controlls like in the picture below and am not able to change the steering wheel actions (this will be awesome if you have experience with this)

At the moment I just installed CAR LAUNCHER Pro (the launcher the unit came with seems really bad.

The original command from the steering wheel have a mode button that switches through AUX IN, Radio, NAVI, Bluetooth, Video, MUSIc and Ipod, and i only need 3 apps top to switch and was not able to change the original music app to let's say youtube music so this is the reason i want to turn another button into a carousel.

Left the System info in the pictures below

Setup:

I used the log reader mentioned in the thread to check what input was made when i pressed the swc and it said Tag: BTModel and keyCode :220 for the button that is currently not assigned to anything.

I made the settings like in the pictures below.

Issues:

Nothing happens when I press the button and i am unsure that the program reads the logs.
[Android Head-Units] TorstenH:
Maybe you missed a space before the colon?

keyCode : 220
or
keyCode:220
or
keyCode: 220

And please add it only! at "short press log entry". Enter some other text which doesn't occure in the "on press" and "long press" fields, please.
[Android Head-Units] roubi:
I also use a device with canbus an had to search the log for the right button code. Entered it in the short button press log entry and left the other two empty. Works fine. 🙂👍
[Android Head-Units] TorstenH:
Any tricks required to suppress the standard action of the SWC key?
[Android Head-Units] tazere:
Indeed that would be alot of help. P.s. will try with the different spaces between keyCode as you suggested today and will let you know.
[Android Head-Units] TorstenH:
That was a question 🤣

I think as soon as AppSwitcher will work on your head unit the standard action gets triggered in parallel...
[Android Head-Units] roubi:
No, not necessary in my case. I use the button "end call" for AppSwitcher. So no real collision in daily use. While talking on the phone I don't need to switch apps. The standard action is active in parallel.
[Android Head-Units] TorstenH:
Excellent idea. 👍
[Android Head-Units] tazere:
Hi, so as feedback I tried everything and nothing is registering :-(
[Android Head-Units] TorstenH:
Service is running and you have the app icon on Staus bar?
[Android Head-Units] TorstenH:
Added version 2.6.14alpha which is the most stable version so far.

Thanks to @Jetblack31 for his testing engagement

Even the version is not final, I removed all previous versions on first post because they may lead to a bootloop on 8667 devices.

As always: please provide your feedback. Not only but also in case of issues. Friendy user feedback is my motivation to continue this project...
[Android Head-Units] elalvaro19:
@TorstenH I have managed to make it work with another key on the panel that did not have a function by default, with this it works for me, since the touch screen is very far from me when driving and from the panel it has better access. Thanks for the contributions so far, working well.
[Android Head-Units] TorstenH:
Added version 2.6.20 to first post.

What's new:

- enabled GPS provider if coarse location can't get retrieved. This may fix dimming feature on some devices

- added "always show launcher on 2nd position" . This allows to return to home screen if "Long press log entry" can't be used.

- reorganized settings menu

(screenshot taken on phone for better overview)

Your feedback is highly appreciated!
[Android Head-Units] TorstenH:
To protect non-8257X devices from bootloop the option to change the fullscreen flag is temporarily disabled in version 2.6.21alpha:

A changed logic will be implemented as soon as I have feedback for JunsunSleepConfigurator which uses an adjusted logic to modify system files.
[Android Head-Units] mitko9922:
Hi, where is the status bar always on top setting, I can't see, with 8667 chip. By the way, my car is with canbus, I'm open to tests, I'll help. Thanks in advance!
[Android Head-Units] TorstenH:
In latest AppSwitcher version this feature is disabled on non-825X devices:

https://xdaforums.com/t/appswitcher...-devices-incl-autostart.4435555/post-88153011

The feature will come back as soon as I got user feedback for JunsunSleepConfigurator. So if you're interested in getting the feature support me by testing 8667 compatibility:

https://xdaforums.com/t/junsun-junsunsleepconfigurator.4459019/
[Android Head-Units] mitko9922:
Hi, i tried the app on V1 8667 chip, I installed both the launcher and the application, in principle I had set up auto nav, I set the nav for auto start AppSwitcherStarter, but after waking up it only says that the launcher is started and nothing happens nor does it stratify my navigation(Waze) nor anything, I have set them in appswitcher but they don't start. Where could the problem come from? I am ready to assist as a tester.
[Android Head-Units] TorstenH:
This needs to be set in factory settings (code 8878)

You should see a notification and the app logo on status bar if the service is running.

Only last used media app gets started automatically if you enable the corresponding setting. Apps defined as navigation app getting not started automatically.
[Android Head-Units] mitko9922:
Yes I have set it from the 8878 menu, and it starts, but nothing else happens. If I have selected nav app from appswitcher will the navigation be started automatically when the service starts, or should it be via a button on the steering wheel. I'm with canbus so for now i can't use steering wheel control.
[Android Head-Units] TorstenH:
No, apps selected as navigation apps get only started via SWC.

You know that 8878 users made it work with canbus?

@Jetblack31 can you give a hint how to your setup/configuration looks like?
[Android Head-Units] TorstenH:
Attached version 2.6.22alpha to first post.

What's new:

- Improved thread handling to improve stability and performance.

- AppSwitcher is compatible with sleep mode, now. AppSwitcher will be immediately ready after the head unit wakes up.

You will be able to add it to the white list using

https://xdaforums.com/t/junsun-junsunsleepconfigurator.4459019/

Simply add AppSwitcher to the white list ...

-->

-->

... and reboot your device.

There is no need to add AppSwitcherStarter to the white list.

AppSwitcher automatically registers on Junsuns Quickbootmanager to get the "wake up" signal (e.g. to start the last used media app).
[Android Head-Units] mitko9922:
ok, I got it, can I help with tests if we can add the status bar to always be on top work and for 8667?
[Android Head-Units] Jetblack31:
Hi, concerning my set up, auto nav is on in 8878, AppSwitcher Starter is the navi app defined in the preferences. In 8878 / Menu Icons, I removed all apps of the array except CAR INFO and NAVI. This allowed to free some of the buttons of my SWC and prevented from some interferences with Appswitcher.

Then I used logcat to find the key numbers. I found that keys 10 and 11 corresponded to the 2 buttons I wanted to use for short and long press. I configured Appswitcher and it works!

Bernard
[Android Head-Units] TorstenH:
Yes, you can test JunsunSleepConfigurator.

Why? Because it also modifies a file on /vendor partition and I can use the same code for AppSwitcher. And because you can use it with (but not only) together with latest version of AppSwitcher:

https://xdaforums.com/t/appswitcher...-devices-incl-autostart.4435555/post-88168463
[Android Head-Units] mitko9922:
ok, that's great, but didn't you say that the option to always be on top of the task bar is currently not active for the 8667 chip.
[Android Head-Units] TorstenH:
Exactly. And with this test you will not test if the status bar appears but you will test the basics.
[Android Head-Units] TorstenH:
I would like to replace the demo video on first post with a screen recording. Someone knows a free lightweight app which can record the head unit screen without tons of smurfbear games ads and ugly watermark?

Even better: maybe someone has fun creating such a video 📹?
[Android Head-Units] mitko9922:
I'm going to try out the apps today and try to make a video as well. I just have to try to make and SWC with canbus by the method of the colleague so that the clip can be better.
[Android Head-Units] TorstenH:
Thank you very much!

The question regarding a screen recording was a question to all happy AppSwitcher users. Don't feel pressured if it's too cumbersome. Enjoy your weekend.
[Android Head-Units] mitko9922:
Yes of course, I want to test the programs if I understood correctly using the JunsunSleepConfigurator , I can remove navigation app start AppSwitcherStarter, and put it in JunsunSleepConfigurator and for him to launch it AppSwitcher, and in this case there is no need for AppSwitcherStarter, did I understand correctly?
[Android Head-Units] TorstenH:
That depends...

If you use a SWC key which is originally mapped by Junsun to the navigation app, you should keep AppSwitcherStarter to avoid, that the navigation app gets started by every key press.

Additionally AppSwitcherStarter gets used to start AppSwitcher after a full reboot. That's why we use the factory setting (8878) to start the navigation app automatically. On the other side AppSwitcher listens to the "boot completed" event and should be started by the OS.

Additionally AppSwitcherStarter will start AppSwitcher, if Duraspeed kills AppSwitcher ,with the next SWC key press if the SWC key is mapped to the navigation app.

Long story short: Test it. 😁 If it works on your device it may work (not) on other devices.

Because in meantime we know a Junsun V1 pro is not a Junsun V1 pro is not a Junsun V1 pro... ahhh and the same unit gets sold with different brand names by other companies...

And because I can't give a universal answer which is valid for all AppSwitcher users, I never mentioned that you can kick AppSwitcherStarter.
[Android Head-Units] mitko9922:
I tested your method but when I remove the Radio from the array the radio stops working and sits at 0.00mhz and I can't move it. And that's exactly what I wanted to remove to eliminate Mode button and release it.
[Android Head-Units] TorstenH:
How are you starting the radio after removing it? Via the stock launcher or are you using on of the "starter apps" or AppSwitcher?
[Android Head-Units] Jetblack31:
Ye, that's a side effect. When RADIO is removed from Menu Icons, it doesn't work anymore...
[Android Head-Units] TorstenH:
Not sure if we talked about this already but there are two radio activities inside MainUI. You tested both?
[Android Head-Units] TorstenH:
com.ts.main.radio.RadioMainActivity

com.ts.can.CanExRadioActivity

Both activities are accessible for the stock launcher. Maybe it's important to select the right version.

You can start both radios from the media app selection screen of AppSwitcher. Expand MainUI to find the listed activities and click on its name.
[Android Head-Units] mitko9922:
It doesn't work from anywhere. I have a hopefully not too stupid question, if I want to clear all the configurations that the two programs change, is it enough to flash with a original Junsun firmware?
[Android Head-Units] TorstenH:
You tested both activities?
[Android Head-Units] mitko9922:
Yes, but they don't work, I'll try again tonight. And on the issue of the configurations that touch the two programs, is it enough to flash with the firmware of Junsun to reset all to default?
[Android Head-Units] TorstenH:
Simply uninstall AppSwitcherStarter and AppSwitcher.
[Android Head-Units] Dieleco:
Hi TorstenH, AppSwitcherStarter and AppSwitcher works perfectly well in my Junsun V1 Pro 8667. I would like to help you test your Apps in 8667 devices, but my knowledge is very limited. I hope you'll be able to show the status bar in third party APPs.

Thank you.
[Android Head-Units] TorstenH:
Thank you very much for your feedback!

I'm very happy if you're happy with AppSwitcher.

Can you tell us if you adjusted the head unit factory settings as described here... https://xdaforums.com/t/appswitcher...-devices-incl-autostart.4435555/post-88169175

... and lost the radio functionality? Or have you found another way?

No problem. If you want you could try JunsunSleepConfigurator without technical knowledge:

https://xdaforums.com/t/junsun-junsunsleepconfigurator.4459019/

Background: I can re-use a lot of the coding to re-implement the status bar visibility option.

You are welcome.
[Android Head-Units] Dieleco:
I haven't removed apps In 8878 / Menu Icons. The only thing I did is selected in AppSwitcher my navigation (Waze) and multimedia apps (Poweramp and Radio) and when I press my GPS button on my steering wheel I can choose between those apps (Waze, Poweramp and Radio).

Ok, I'll install JunsunSleepConfigurator, but as far I could read all funcionalities of JunsunSleepConfigurator are integrated in AppSwitcher, aren't they?.
[Android Head-Units] TorstenH:
Ahhh. You're one of the lucky guys without can box or a separate SWC button for navigation.

Nope. You can add AppSwitcher on the white list with JunsunSleepConfigurator. But AppSwitcher is not made to maintain the white/yellow list.
[Android Head-Units] Dieleco:
I don't use Canbox also I don't have a multifunction steering wheel. I use the Key 1 and Key 2 cables of my HU to conect a remote control specific gadget that allow me to use the SWC buttons.

What is the advantage of adding AppSwitcher on the white list with JunsunSleepConfigurator?. Sorry for my ignorance :cry:.
[Android Head-Units] TorstenH:
Please read first and FAQ post in JunsunSleepConfigurator thread to get an idea what it is made for.

After adding AppSwitcher to the white list it will be immediately ready after sleep mode.
[Android Head-Units] Dieleco:
Ok, I'll do that, and I tell you that the result is.

Thank you again.
[Android Head-Units] TorstenH:
Attached version 2.6.23alpha to first post.

What's new

- Improved reliability of wakeup (start media app and LTErecover) after sleep mode.

Status bar setting for 8667 will come after sufficient feedback to JunsunSleepConfigurator...
[Android Head-Units] Dieleco:
Hi TorstenH,

In my 8667 unit AppSwitcher is always ready after sleep mode, the only weird behaviour is that I have two multimedia apps selected in AppSwitcher (PowerAmp and Radio FM) and regardless of the multimedia app I was listening before entering to sleep mode always wake up with Radio FM. Maybe with the last release of AppSwitcher that improved reliability of wakeup this issue can be solved.

I installed JunsunSleepConfigurator and the installed procedure was ok, I added AppSwitcher to the white list and the system told me to delete some apk to free up space. I deleted Nexflix and youtube and everything was fine. But since I installed JunsunSleepConfigurator the behaviour of AppSwitcher doesn't change so I don't know if it is working or not.

Also I added to the yellow list Radardroid.apk which is an app that runs in background and warn me every time I approach a radar, but It doesn't wake up after sleep mode, so I don't really know if JunsunSleepConfigurator is working in my 8667 unit.
[Android Head-Units] TorstenH:
Does the behavior change if you deselect radio from media apps?

Some apps may started by the head unit itself...

The toast message "Starting AppSwitcher Service" should not appear and the AppSwitcher icon on status should be visible as soon as you wake up the head unit, if AppSwitcher is on the white list.

You can check if apps are still marked in JunsunSleepConfigurator after a reboot.

JunsunSleepConfigurator is only maintaining the configuration file of integrated Quickbootmanager. But please note, that according to FAQ of JunsunSleepConfigurator, apps on yellow list get only started if they are in foreground while entering sleep mode. So it makes no sense to put a background service on yellow list.