AppSwitcher - smart SWC launcher (for Junsun and similar devices) incl. autostart

Search This thread

roubi

Senior Member
Apr 27, 2011
88
27
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 an 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.
Hi, for that kind of stuff you could use Tasker... 😉
 
  • Like
Reactions: ser_hero

TorstenH

Senior Member
Feb 20, 2021
1,432
380
t.me
Realme GT 2 Pro
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.
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:
No! I don't get money if you use it 🙃

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.

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

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.

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.
 
  • Like
Reactions: ser_hero

roubi

Senior Member
Apr 27, 2011
88
27
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 😇
 
  • Like
Reactions: TorstenH

TorstenH

Senior Member
Feb 20, 2021
1,432
380
t.me
Realme GT 2 Pro
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.

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.

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 😇
Is this only happening while AppSwitcher is running? If yes: Is screen dimming active?
 
  • Like
Reactions: roubi

roubi

Senior Member
Apr 27, 2011
88
27
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?

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...)
 

Attachments

  • IMG_20230126_200301.jpg
    IMG_20230126_200301.jpg
    333.9 KB · Views: 32
  • IMG_20230126_200320.jpg
    IMG_20230126_200320.jpg
    415.3 KB · Views: 33
  • IMG_20230126_200407.jpg
    IMG_20230126_200407.jpg
    458.9 KB · Views: 34

roubi

Senior Member
Apr 27, 2011
88
27
Okay, sorry, I just saw on first page where the setting for dimming is placed (title of dialog)... 😶
I'll check it out tomorrow...
 
  • Like
Reactions: TorstenH

roubi

Senior Member
Apr 27, 2011
88
27
Okay, checked again now. Dimming is disabled. Happens also after killing AppSwitcher and AppSwitcher Starter, but started happening just after installing the App...
 

roubi

Senior Member
Apr 27, 2011
88
27
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.
 

TorstenH

Senior Member
Feb 20, 2021
1,432
380
t.me
Realme GT 2 Pro
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...)
For me it looks like Spotify forces a screen rotation to portrait mode.
 
  • Like
Reactions: roubi

TorstenH

Senior Member
Feb 20, 2021
1,432
380
t.me
Realme GT 2 Pro
For me it looks like Spotify forces a screen rotation to portrait mode.
 
  • Like
Reactions: roubi

roubi

Senior Member
Apr 27, 2011
88
27
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. 😎
 

TorstenH

Senior Member
Feb 20, 2021
1,432
380
t.me
Realme GT 2 Pro
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. 😎
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.
 

roubi

Senior Member
Apr 27, 2011
88
27
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.

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... 😉
 

TorstenH

Senior Member
Feb 20, 2021
1,432
380
t.me
Realme GT 2 Pro
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... 😉
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.
 
  • Like
Reactions: roubi

tazere

Member
Feb 2, 2014
6
0
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.
 

Attachments

  • about from appswitcher.jpg
    about from appswitcher.jpg
    253.1 KB · Views: 27
  • about settings.jpg
    about settings.jpg
    808.4 KB · Views: 33
  • appswitcher settings.jpg
    appswitcher settings.jpg
    284.6 KB · Views: 33
  • devicelog.jpg
    devicelog.jpg
    330.9 KB · Views: 34
  • devicelog1.jpg
    devicelog1.jpg
    256.7 KB · Views: 31
  • maneta.jpg
    maneta.jpg
    441.6 KB · Views: 30

TorstenH

Senior Member
Feb 20, 2021
1,432
380
t.me
Realme GT 2 Pro
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.
Maybe you missed a space before the colon?

Code:
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.
 

roubi

Senior Member
Apr 27, 2011
88
27
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. 🙂👍
 
  • Like
Reactions: TorstenH

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    Attached AppSwitcher version 2.7 to first post...


    Whats new:
    - new setting "Screen\Landscape overlay" which forces all apps to run in landscape orientation. This fixes the appearance issue of Spotify (and other apps like Tidal and Apcoa Flow) after disabling "Screen\Forced fullscreen system property".
    - "Apps and activities\Set media apps/activities" offers all exported activities, now. This allows to start a specific screen of your app.
    - optimized switch dialog performance and countdown sync.
    - adjusted color of settings button
    - optimized app starts (actively by user and after countdown)
    - "Dialog\Grayscale app icons" is enabled by default (after fresh installation)
    - run of media app gets skipped if SWC button gets pressed. Only relevant if "Autostart\Delay (seconds) before start of media app" is set.
    - click on AppSwitcher status bar notification opens settings screen
    - code cleansing and other code optimizations/simplifications

    Fixed bugs:
    - App crashes when settings are changed after service is stopped
    - Dialog does not disappear when user clicks on settings button
    - set delay of media activity freezes app start
    1
    Attached version 2.6.24 to first post:
    What's new:
    - optimized log reader and derivation of current foreground app
    - removed unneeded resources
    1
    I have another canbus. In the new canbus i have the OEM Mazda configuration of SWC. Can't map/change SWC buttons in HU.
    I think the KEY wire of your OEM connector is connected to the can box and was connected directly to pin 13 of the head unit before.
    Screenshot_2023-03-04-12-03-29-66_948cd9899890cbd5c2798760b2b95377.jpg

    You can check this by comparing the Chinese wiring harnesses you're using now and before.
    1
    Hello TorstenH, it's me again with the bug in the Sleep Configurator; unfortunately I have a small problem with this software too: the option to keep the top bar visible doesn't stick to "on". I enable the option, I restart the unit (as requested) , but the option gets back to default value after restart. MTK 8259 running 20221226 fw on V1 Pro 4/64. Thank you.
    1
    Find new demo video 📹 attached to first post...
  • 8

    AppSwitcher

    SWC (Steering Wheel Control) app launcher

    ic_launcher_adaptive_fore.png


    Stay focused on the street and don't touch the head units display to switch between apps.


    61e11e22d8ff4a5b4a1b3346_Supportbutton-1.png
    Support the development of this free app via
    ko-fi.com/appswitcher


    Please note: This app is developed and tested only on Junsun V1 Pro with MTK825X AND MT8667 CPU. You can test on other devices and let me know if it works...


    User Interface:


    IMG_20230218_103534.jpg

    Covered features:
    - allow to select an app to start without the need to jump from app to app.
    - one button press to switch between last used navigation app and last used media app.
    - support usage of multiple navigation apps.
    - works with pre-installed apps like Radio and apps added by the user.
    - start the last used media app automatically.
    - long button press to cancel (if dialog is shown) or to jump to home screen.
    - reactivate accessibility service of Automate and start initial Automate Flow
    - enable/disable DuraSpeed
    - change system property to make Android status bar visible (work as on other Android devices)
    - automatic screen dimming based on sunset / sunrise information
    - Supports Mtk8257 and 8667 devices. Thank you @Jetblack31 for your testing engagement on 8667.

    Open:
    - May not work on devices with canbus.

    Testers are welcome! I need YOUR help to make it work on head units connected to canbus.

    Please install both apps because 'AppSwitcher Starter' is just used to start the App Switcher Service. Find installation instruction in 3rd post.

    FAQ

    https://forum.xda-developers.com/t/...sun-and-similar-devices.4435555/post-86825555
    3
    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...
    2
    Didn't see this mentioned; if someone has problems setting this up on Junsun V1 Pro w/ canbus, I had to give AppSwitcher permission to "READ_LOGS" with ADB. Now works great!
    2
    Added new version 1.9. Fasten you seat belt before you read what's new:

    - added setting to disable forced fullscreen for non-stock apps. Please reboot the system after changing the setting.
    If disabled, the status bar gets displayed on top of non-stock apps and behaves as intended by Google. You can use one of the immersive mode apps from Google PlayStore to control fullscreen display on application level.


    All thanks goes to: @demolite
    Thank you very much for your amazing engagement!


    See the history of pain in
    https://forum.xda-developers.com/t/junsun-v1-rescue-the-status-bar.4306249
    2
    FAQ

    Why is the starter a separate apk?

    Junsun head units check if the navigation app package is already in foreground. If that's the case home screen gets displayed. If we set 'AppSwitcher' as navigation app it would not stay in foreground. Here the relevant coding of MainUI:
    IMG_20220429_164055.jpg

    Why is my screen flickering while I switch trought the list of apps with the steering wheel button?
    The head unit starts the navigation app via the activity com.ts.main.navi.NaviMainActivity which is part of MainUI (package com.ts.MainUI). It will become the foreground activity for a short amount of time, invisible because a transparent theme is used. Unfortunately the screen is flickering during this procedure.
    You can enable the setting "disable navi start activity" in 'AppSwitcher' to avoid this. Please note the activity will be only disabled as long as the dialog of 'AppSwitcher' is active.

    What is DuraSpeed?
    DuraSpeed is a proprietary tool from MediaTek restricting and closing(!) background apps and services to free memory and so to make it available for starting apps.
    AppSwitcher can set the properties to turn DuraSpeed off in case you're struggling with closed services / apps and want to give back control to Android.


    AppSwitcher dialog isn't shown
    On some head units you have to provide permissions manually. According to my experience on a Junsun V1 pro (with MTK8259/MTK8257 CPU) the authorizations granted automatically.
    1. Check if AppSwitcher has permission to appear on top of other apps. You can provide the authorization in "application settings".

    2. On some head units AppSwitcher doesn't get authorization to read the Android log. In this case you have to grant authorization via ADB:
    Code:
     adb shell pm grant com.thf.AppSwitcher android.permission.READ_LOGS

    How display dimming works
    Screen dimming is realized by "painting" a semi-transparent overlay on top of the screen because we don't have the possibility to access display brightness on system level.
    Some apps don't like to get overlayed and so Google PlayStore shows a warning message. AppSwitcher is pausing the overlay if Google PlayStore is the app in foreground.
    If you're using an app which doesn't work well whiles it's overlayed, let me know.