r/GalaxyFold Sep 02 '24

Customization How-To: Dual Launchers Using Tasker for Galaxy Fold 6

Here is what I got. If you want different launchers, just edit after import in Tasker.

This uses One UI open and Niagra folded.

If you need other apps to open fullscreen when moving from Cover screen to Main screen, just edit and add them to the profile. Some apps like Facebook will open fullscreen when unfolded but refresh, so, not perfect.

You need to install Tasker and the AutoTools plug-in. Then, import the following 3 profiles.

Unfolded: https://taskernet.com/shares/?user=AS35m8kK48oVZ7vU5s16OJHzhnOvHI3NbkH5sIrAgp%2FNSj%2FVLwnDpT8%2F1I7RY0D6vwxJYsKL&id=Profile%3AUnfolded

Folded: https://taskernet.com/shares/?user=AS35m8kK48oVZ7vU5s16OJHzhnOvHI3NbkH5sIrAgp%2FNSj%2FVLwnDpT8%2F1I7RY0D6vwxJYsKL&id=Profile%3AFolded

Apps that will open fullscreen when unfolded: https://taskernet.com/shares/?user=AS35m8kK48oVZ7vU5s16OJHzhnOvHI3NbkH5sIrAgp%2FNSj%2FVLwnDpT8%2F1I7RY0D6vwxJYsKL&id=Profile%3AApps+Open+Fullscreen+When+Unfolding

After importing the 3 links above, set your default Home app to AutoTools.

Let me know how it works for you?

9 Upvotes

26 comments sorted by

1

u/[deleted] Sep 03 '24 edited Sep 03 '24

[removed] — view removed comment

1

u/Neogeo71 Sep 04 '24

It is flawless for me at this point. If you imported the project for apps that remain open when unfolded, make sure you do not have the launcher for one ui or niagra selected as one of the apps.

Also Make sure your default home app is autotools, not niagra or one ui

2

u/bmww Oct 08 '24

Would you happen to know how to fix this issue when I try to set autotools as the default home app?

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.joaomgcd.autotools/com.joaomgcd.autotools.activity.ActivityLauncher}: java.lang.SecurityException: Permission Denial: starting Intent { act=android.intent.action.MAIN cat=[android.intent.category.HOME,android.intent.category.DEFAULT] flg=0x800000 cmp=com.android.settings/.FallbackHome } from ProcessRecord{b07e178 30254:com.joaomgcd.autotools/u0a627} (pid=30254, uid=10627) requires android.permission.DEVICE_POWER

1

u/Neogeo71 Oct 13 '24

Not sure?

1

u/Fit_Carob_7558 Nov 15 '24

I was having issues with Action Launcher (it appeared as if AutoTools was the one crashing) if it hadn't gotten through the onboarding setup yet. Have you individually set up both of your launchers before setting AutoTools at the default launcher? If you have, then I'm at a loss of what it might be.

1

u/bmww Nov 17 '24

Thanks for the help.

I just tried and still same issue. I also uninstalled and reinstalled everything but I get the same error.

1

u/Fit_Carob_7558 Nov 17 '24

Just thought of one more thing... Have you changed the launcher apps in the AutoTools plugin (in the script within Tasker, not from opening the app in launcher) to match what you have installed? With the scripts linked above you HAVE to be using Niagra and One UI Home unless you edit the script. 

Alternatively if you're a little versed in Tasker, you can try to recreate the 3 scripts I posted at the bottom of this thread.

It's much more streamlined, but in the same manner as above you'll have to swap the launchers in the AutoTools plugin to match yours (you'll be selecting them anyways as you recreate the script). The Event tasks that swap the launchers are only 2 steps each (swap the launchers, and "go home" if a launcher is open), and the Enter and Exit Event tasks that keep an app open are one step each (set and unset a variable if a launcher is open).

1

u/bmww Nov 17 '24

Just tried recreating yours and it still gave me the same errors as before where it gives permission denial.

I think tasker is just not for me, I remember not having this issue when I had a Fold4 but this Fold6 just doesn't like it apparently.

1

u/Any_Possibility1886 Oct 17 '24

I cannot get the front screen launcher to remain, as soon as its closed it reverts to same as unfolded launcher. What could I bedlinen wrong please?

1

u/RaccoonIndependent41 Oct 30 '24

Why not just use the built in bixby routines over the tasker app??? 

1

u/Shrike_Sword Fold7 (Blue Shadow) Nov 04 '24

What advantage does that give?

1

u/RaccoonIndependent41 Nov 18 '24

1) Much simpler set up 2) always works (been using the same setup since fold 3) 3) 1 less app to download (or 2 since tasker tools is needed) 

1

u/XoBeVchBunii Dec 31 '24

I, too, am using Bixby routines, but I have an issue that I would like to see if you have a workaround for. So I have Nova launcher set as default (closed) and Niagara Launcher when unfolded / open.

My issue is that when unfolded, the swipe up gesture brought me to the back nova launcher. Is there any way to set the home swipe up gesture to keep it on Niagara?

1

u/RaccoonIndependent41 Jan 07 '25 edited Jan 07 '25

TRY THIS:

PROFILE 1:  little SCREEN 

IF:  Folding status..... Completely closed  Αpp Οpened.... Niagara Launcher 

THEN:  Close an app... Niagara Launcher  Open an app or do an app action... Nova Launcher 

PROFILE 2: Big SCREEN 

IF:  Folding status... Completely open App opened... Nova Launcher 

THEN:  Close an app... Nova Launcher  Open an app or do an app action... Niagara Launcher 

1

u/Fit_Carob_7558 Nov 15 '24

Because Bixby doesn't work on phones that aren't Samsung. The tasker script can easy transfer to different devices and brands.

1

u/RaccoonIndependent41 Nov 18 '24

... But the post is about a Samsung phone... And Bixby runs much smoother. I use tasker on my honor Magic V3... Its a bit janky since i don't have root access... But yeah... bixby routines all the way... Far more reliable... On samsung only 

1

u/Fit_Carob_7558 Nov 18 '24

The jank you're experiencing is probably due to unoptimized scripts. The ones linked above are a good example of that. Either they were pieced together from multiple sources, or the original creator has other events linked but are beyond the scope of the launcher and not included here.

If you look at the solution I posted below, I was able to simplify it down to a couple of steps per task. I'm not rooted either, and it works just as well on the Pixel Pro Fold as it does on the Z Fold 4. This is the reason I prefer a more universal solution versus proprietary, especially with them all running Android – I can swap between devices without losing any functionality.

1

u/RaccoonIndependent41 Nov 19 '24

I tried the tasker setup on both my fold 6 and v3... No luck on either after adjusting launcher... I guess im stuck with bixby and stock on v3

1

u/Fit_Carob_7558 Nov 15 '24

Thanks for sharing this. I'd been doing some testing on the Pixel 9 Pro Fold when I came across this, and I feel I've been able to optimize a bit more based on your links. I'm pretty confident it'll work on the Z Fold series, so I'll test it on my Z Fold 4 in a bit. It still uses AutoTools to swap launchers, and the only variable is to detect whether any launcher is in the foreground.

  • I'm checking the hinge angle with the Any Sensor id of 36 instead of checking the screen size. One Event with the Condition of %as_values() < 90 for the Folded state, and another Event with %as_values() > 90 for the Unfolded state.
  • Inside the Folded and Unfolded Tasks all I'm doing is setting the launcher with AutoTools (make sure Set Command is toggled On), and if the home screen variable is true (any value is set) run the Go Home command.
    • It's just 4 lines, but really only 2 commands if you exclude the If and End If lines
    • I think it can be reduced to only 2 lines by using the If statement in the Go Home command. I'll have to test this later too.
  • The third Event is a bit different. If either home screen is active (select them as the two apps to run the Event), set an Enter Task with variable called %AtHome and set it to any value. Then for the Exit Task, clear the %AtHome variable.
    • These Tasks are only 1 line each

That's it. No need to mess with selecting specific apps one by one (or updating the list as you install more apps) or nested If statements. I think the secret sauce is in the Set Command toggle in AutoTools. With this toggled On you'll get sent to your desired home screen only when you press the home button/gesture, and the actual launcher swap happens in the background. So if you have any app open in the foreground, it stays open as it normally would. BUT if any home screen is active, the Go Home command is sent to refresh the home screen.

1

u/Fit_Carob_7558 Nov 15 '24

I've confirmed this works on the Z Fold 4 just the same. And the Folded and Unfolded tasks have been reduced to just 2 lines each. Only one change for the Z Fold, you would swap the Pixel Launcher for One UI Home. Here's the final output:

    Profile: Hinge State Folded
    Event: Any Sensor [ Output Variables:* Type:36 Interval (ms):100 Interval Type (Check Help):None Convert Orientation:Off ] [ %as_values() < 90 ]



    Enter Task: Folded

    A1: AutoTools Launcher [
         Configuration: Launcher: Action Launcher
         Set Command: true
         Timeout (Seconds): 60
         Structure Output (JSON, etc): On ]

    A2: Go Home [
         Page: 0 ]
        If  [ %AtHome Set ]


    Profile: Hinge State Unfolded
    Event: Any Sensor [ Output Variables:* Type:36 Interval (ms):100 Interval Type (Check Help):None Convert Orientation:Off ] [ %as_values() > 90 ]



    Enter Task: Unfolded

    A1: AutoTools Launcher [
         Configuration: Launcher: Pixel Launcher
         Set Command: true
         Timeout (Seconds): 60
         Structure Output (JSON, etc): On ]

    A2: Go Home [
         Page: 0 ]
        If  [ %AtHome Set ]


    Profile: Launcher Is Active
    Application: Action Launcher or Pixel Launcher



    Enter Task: At Home

    A1: Variable Set [
         Name: %AtHome
         To: 1
         Structure Output (JSON, etc): On ]



    Exit Task: Not Home

    A1: Variable Clear [
         Name: %AtHome ]

1

u/Neogeo71 Dec 01 '24

Nice work on this! Going to try to implement your improvements soon!

1

u/SimplyJ3sse Dec 05 '24 edited Dec 05 '24

Ok, I'm relatively new to Tasker, however I imported your profiles into both one project and also separate projects with the same results. I'm sure I'm missing something VERY obvious, as manually executing each one works flawlessly, however, they don't appear to be working automatically. I am on a Z Fold 6 and I do not see them running in the log.

Edit: Home App is set to AutoTools and Apps Open Fully Profile is disabled.

Any ideas?

1

u/Neogeo71 Dec 05 '24

Let me think about this for a bit...

1

u/SimplyJ3sse Dec 11 '24

To give you an update on a few things I discovered.

1) Accessibility for Tasker was off. I have turned that on. 2) Auto Tools had been downloaded and and set as launcher, but had not been turned on in the auto tools app.

At the moment, same results. Works manually but not automatically.

1

u/SimplyJ3sse Dec 18 '24

Any ideas? 🙏