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

Search This thread

roubi

Senior Member
Apr 27, 2011
88
27
Any tricks required to suppress the standard action of the SWC key?
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.
 

tazere

Member
Feb 2, 2014
6
0
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.
Hi, so as feedback I tried everything and nothing is registering :-(
 

TorstenH

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

elalvaro19

Senior Member
Sep 18, 2018
57
3
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://forum.xda-developers.com/t/...-bt-music-from-launcher.4237797/post-85047137
@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.
 
  • Like
Reactions: TorstenH

TorstenH

Senior Member
Feb 20, 2021
1,455
387
t.me
Realme GT 2 Pro
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_2023-02-13-08-04-03-10_508eb4fa400729517800037bda6bc0d3.jpg
(screenshot taken on phone for better overview)


Your feedback is highly appreciated!
 
  • Like
Reactions: ramig

TorstenH

Senior Member
Feb 20, 2021
1,455
387
t.me
Realme GT 2 Pro
To protect non-8257X devices from bootloop the option to change the fullscreen flag is temporarily disabled in version 2.6.21alpha:

Screenshot_2023-02-15-19-42-14-29_508eb4fa400729517800037bda6bc0d3.jpg

A changed logic will be implemented as soon as I have feedback for JunsunSleepConfigurator which uses an adjusted logic to modify system files.
 

mitko9922

Member
Aug 9, 2022
29
7
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!
 
Last edited:

TorstenH

Senior Member
Feb 20, 2021
1,455
387
t.me
Realme GT 2 Pro
Hi, where is the status bar always on top setting, I can't see in 8667 chip. Thanks in advance!
In latest AppSwitcher version this feature is disabled on non-825X devices:

https://forum.xda-developers.com/t/...-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://forum.xda-developers.com/t/junsun-junsunsleepconfigurator.4459019/
 

mitko9922

Member
Aug 9, 2022
29
7
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.
 
  • Like
Reactions: TorstenH

TorstenH

Senior Member
Feb 20, 2021
1,455
387
t.me
Realme GT 2 Pro
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,
This needs to be set in factory settings (code 8878)
but after waking up it only says that the launcher is started and nothing happens
You should see a notification and the app logo on status bar if the service is running.
nor does it stratify my navigation(Waze) nor anything,
Only last used media app gets started automatically if you enable the corresponding setting. Apps defined as navigation app getting not started automatically.
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.
 

mitko9922

Member
Aug 9, 2022
29
7
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.
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.
 
Last edited:

TorstenH

Senior Member
Feb 20, 2021
1,455
387
t.me
Realme GT 2 Pro
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.
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?
 
Last edited:

TorstenH

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


Simply add AppSwitcher to the white list ...
Screenshot_2023-02-18-07-25-12-17_a0a98fd191d29385a29eb8440f81ca94.jpg
-->
Screenshot_2023-02-18-07-24-54-18_a0a98fd191d29385a29eb8440f81ca94.jpg
-->
Screenshot_2023-02-18-07-26-17-49_a0a98fd191d29385a29eb8440f81ca94.jpg

... 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).
 
Last edited:

Jetblack31

Senior Member
Sep 10, 2022
93
23
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?
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
 

Top Liked Posts

  • 1
    Almost 100 downloads of the latest version 2.7! Nice!
    Zero Coffee (ko-fi)... People are probably very poor.
    But zero feedback? Not exactly an incentive to release an app here for free.
    Hello there! Congratulations on the success of your latest version 2.7 with almost 100 downloads, that's quite an achievement! As for the lack of Coffee and feedback, perhaps the users are too busy enjoying your app that they forget to show their appreciation? Or maybe they're just too afraid to give you feedback because they're worried it won't be good enough. Either way, keep up the great work!
    1
    Thank you so much for your great feedback.

    To be honest, I think it's because of the international brutalization of humanity. Lack of appreciation and selfishness are in vogue. True to the motto: If everyone thinks of himself, everyone is thought of.
    I appreciate your perspective on the matter. While it's true that a lack of appreciation and self-centeredness can sometimes seem prevalent in today's world, I still believe that there are many people out there who are kind, thoughtful, and willing to show their gratitude for the hard work of others. It may just take a little extra effort to find them sometimes. In the meantime, keep up the good work and know that your contributions are valued by those who do appreciate them!
    2
    I requested the admins to remove your post from "my" thread.
  • 3
    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
    2
    Find new demo video 📹 attached to first post...
    2
    I requested the admins to remove your post from "my" thread.
    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.
  • 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.


    Feedback on the web
    Unfortunately the author only picks up one specific aspect of the app.
    IMG_20230401_193710.jpg

    Testers are welcome! I need YOUR help and your feedback. Don't be a stranger!

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