How To Guide Oppo find n Default launcher change - no root or adb required

Search This thread

hesham1216

Member
Nov 6, 2017
12
0
Hi guys,

I used to use Microsoft launcher as my default launcher in all phones but oppo find n does not let you do that unfortunately.

I didn't want to try adb methods (of uninstalling default launcher) that may lead to boot loop stucking if something went wrong.

So I thought to share with you finally a simple trick I came up with by using Tasker to automatically launch your favorite launcher based on UI change of default color os launcher of oppo.

First you need to install Tasker and give it all permissions required


Then you add a task and profile as follows:

Tasks > add > name it > add an action > search for if > add if condition: %WIN ~ Page 1 of 2** (**please note depends on how many pages you have on default launcher home screen, you should name the window label above (page 1 of 2 or page 1 of 3... Etc)) > from the add button > add another condition > %WIN ~ Page 2 of 2 (so the profile works on all pages of home screen) > add another action > search for wait > wait > 3 ms (milliseconds) > ok > add another action > app > launch app > Microsoft launcher (your launcher) > ok


Add profile > event > app changed > all apps (from bottom in Tasker) > system launcher

Choose the task you created with above actions in the profile

Done

Result:

ezgif-3-662f075a2d.gif
 

Attachments

  • IMG_20221209_232321.jpg
    IMG_20221209_232321.jpg
    71.6 KB · Views: 66
  • Screenshot_2022-12-09-23-34-20-89_78c564e752295d769e9a0ddd26e8199d.jpg
    Screenshot_2022-12-09-23-34-20-89_78c564e752295d769e9a0ddd26e8199d.jpg
    141.1 KB · Views: 65
Last edited:

nimumo

Member
Nov 11, 2019
28
4
Just a quick question: did you test this on Android 13 or Android 11? Because I'm using Android 13, and sometimes it works, sometimes it doesn't.
 

nimumo

Member
Nov 11, 2019
28
4
In that case, I'm doing something wrong, for sure, because, sometimes, the Microsoft Launcher doesn't appear. As an example, if I press the Task Switcher button, and then press the Home button, I still get the default Oppo Launcher. Also, sometimes, when I press the Task Switch button, it opens and closes immediately. Just to clarify, I don't use gestures for the Back, Home and Task Switcher; I'm using the onscreen buttons.
The only difference is that I already used ADB to change the default system launcher to Microsoft Launcher. Could this be the problem?
 

hesham1216

Member
Nov 6, 2017
12
0
In that case, I'm doing something wrong, for sure, because, sometimes, the Microsoft Launcher doesn't appear. As an example, if I press the Task Switcher button, and then press the Home button, I still get the default Oppo Launcher. Also, sometimes, when I press the Task Switch button, it opens and closes immediately. Just to clarify, I don't use gestures for the Back, Home and Task Switcher; I'm using the onscreen buttons.
The only difference is that I already used ADB to change the default system launcher to Microsoft Launcher. Could this be the problem?
Yes it could be.

I am using Tasker to automatically launch Microsoft launcher based on oppo default color os launcher itself, so if you uninstalled the default launcher Tasker won't recognize the UI change of default launcher and hence of course won't give you correct actions...

You may reinstall the default launcher and try Tasker method and please let me know if it works fine afterwards..
 

nimumo

Member
Nov 11, 2019
28
4
Just to clarify, I managed to get your solution up and running. Note that I didn't uninstall the default launcher; I only forced Microsoft Launcher to be the default launcher, using ADB commands.

The problem was something that we always forget: battery optimization. I had to change all the settings related to battery management (Battery menu and also App menu) and had to allow to run in background (Tasker App). Now I can have your script running 99% of the time.
The problem I noticed is if I press the Task Switcher button, for a short period I can see the running apps but then, it shows my home screen. If I press the Task Switch 3 times in a row, the Task Switch stays on but, as soon I press the Home button, it doesn't revert to Microsoft Launcher. To solve that, I need to disable and enable Tasker again.
Your solution, for me, it's not 100% fault proof, but it's much better that having to press the Microsoft Launcher button that I had to put on the Home screen, so, I thank you for sharing this other method for having a different launcher

If only we could put a "decent" ROM... 🙏
 

hesham1216

Member
Nov 6, 2017
12
0
Just to clarify, I managed to get your solution up and running. Note that I didn't uninstall the default launcher; I only forced Microsoft Launcher to be the default launcher, using ADB commands.

The problem was something that we always forget: battery optimization. I had to change all the settings related to battery management (Battery menu and also App menu) and had to allow to run in background (Tasker App). Now I can have your script running 99% of the time.
The problem I noticed is if I press the Task Switcher button, for a short period I can see the running apps but then, it shows my home screen. If I press the Task Switch 3 times in a row, the Task Switch stays on but, as soon I press the Home button, it doesn't revert to Microsoft Launcher. To solve that, I need to disable and enable Tasker again.
Your solution, for me, it's not 100% fault proof, but it's much better that having to press the Microsoft Launcher button that I had to put on the Home screen, so, I thank you for sharing this other method for having a different launcher

If only we could put a "decent" ROM... 🙏

Yeah you are right. Tasker method have some bugs and sometimes it forces to home screen of Microsoft launcher in somewhere in settings.
Then like you said turn off the profile and turn on again later...

Thank you for your reply and yeah "If only we could put a "decent" ROM... 🙏 "... Can't agree more 👍
 

hesham1216

Member
Nov 6, 2017
12
0
Just to clarify, I managed to get your solution up and running. Note that I didn't uninstall the default launcher; I only forced Microsoft Launcher to be the default launcher, using ADB commands.

The problem was something that we always forget: battery optimization. I had to change all the settings related to battery management (Battery menu and also App menu) and had to allow to run in background (Tasker App). Now I can have your script running 99% of the time.
The problem I noticed is if I press the Task Switcher button, for a short period I can see the running apps but then, it shows my home screen. If I press the Task Switch 3 times in a row, the Task Switch stays on but, as soon I press the Home button, it doesn't revert to Microsoft Launcher. To solve that, I need to disable and enable Tasker again.
Your solution, for me, it's not 100% fault proof, but it's much better that having to press the Microsoft Launcher button that I had to put on the Home screen, so, I thank you for sharing this other method for having a different launcher

If only we could put a "decent" ROM... 🙏

Good news I was able to fix that bug by adding a condition of the profile only works on home screen.

So it doesn't not work on recent tasks or settings that related to oppo system launcher app (lock screen wallpaper settings for example).

I will edit the original post adding the "if" condition...

Tasker will read the window label which is unique for each window in same app, so the actions will only be executed on home screen.

Please note the window label of oppo system launcher changes based on number of pages you have on system launcher home screen.

It's called "page 1 of x"
Where x is the number of pages you have in the launcher it self.
 
Last edited:

nimumo

Member
Nov 11, 2019
28
4
I was trying to reproduce your steps, but I'm getting stuck on the "if" condition. Whatever I do, I cannot put the "green" line (the one next to the conditions), it's always "red". I already tried to use Tasker Permission Manager to sort my Tasker's permissions (all green now) but looks like Tasker cannot "read" the WINDOW LABEL from the phone. I say this because if I try to press the PLAY button on the bottom of the task, it doesn't do anything. If I remove the "if" condition, it works as previously.
What am I missing?
 

hesham1216

Member
Nov 6, 2017
12
0
I was trying to reproduce your steps, but I'm getting stuck on the "if" condition. Whatever I do, I cannot put the "green" line (the one next to the conditions), it's always "red". I already tried to use Tasker Permission Manager to sort my Tasker's permissions (all green now) but looks like Tasker cannot "read" the WINDOW LABEL from the phone. I say this because if I try to press the PLAY button on the bottom of the task, it doesn't do anything. If I remove the "if" condition, it works as previously.
What am I missing?
The green line means the if condition is true and this only happens when you go to home screen which gives the label name page1 of...

It won't go green unless Tasker reads home screen label.

I took the screen shot after pressing play then going to home screen then going back to Tasker using gestures. It was not on purpose 😁

Regardless the line going to green or stays red, if it works then it works. Even though you may not be able to make the line goes to green...
 

nimumo

Member
Nov 11, 2019
28
4
After a lot of testing, I finally found the reason why this method was not working for me:
Tasker App Check Method - Accessibility
I found that I had this option set to "App Usage Stats" (because I never changed it) and it must be set to "Accessibility"
After changing to this option (Tasker) and after activating Tasker in Accessibility menu (phone), it started to work.

But I found that this method doesn't work all the time. As example, if you click on the "Task Switcher" button, choose an opened app and them go back (via the "Back" button), the Microsoft Launcher doesn't open.

But, instead of complaining, I want to thank you for this method because it's works, and it's easy to set up.
 

hesham1216

Member
Nov 6, 2017
12
0
After a lot of testing, I finally found the reason why this method was not working for me:
Tasker App Check Method - Accessibility
I found that I had this option set to "App Usage Stats" (because I never changed it) and it must be set to "Accessibility"
After changing to this option (Tasker) and after activating Tasker in Accessibility menu (phone), it started to work.

But I found that this method doesn't work all the time. As example, if you click on the "Task Switcher" button, choose an opened app and them go back (via the "Back" button), the Microsoft Launcher doesn't open.

But, instead of complaining, I want to thank you for this method because it's works, and it's easy to set up.

Thank you my friend for sharing your experience

I really appreciate any ono who shares his feedback

Wish you all the best 🙏
 

hesham1216

Member
Nov 6, 2017
12
0
Could you share the exact command? When i tried it awhile back, i wasnt sure which microsoft package to use.

The code

cmd package set-home-activity "com.microsoft.launcher/com.microsoft.launcher.Launcher"

And the task under adb wifi

But my advise is not to use it as when you go home screen and want to open recent tasks it messes up and you won't see any open recent applications, just lines..
(try it you will know what I mean)

Also it goes to oppo launcher sometimes and you have to go to home screen several times to get back to Microsoft launcher

Other thing Microsoft launcher icons stops working sometimes with me when I used that method

So I went back to my method of this original thread

Much stable and just a mask of oppo launcher on the top so everything goes fine (just like pressing Microsoft launcher icon to start it normally every time you go to home screen
 

Hadron001

Member
Apr 4, 2020
15
0
Thanks a lot for the advice. I did try:

Code:
adb shell
pm disable com.android.launcher
pm enable com.microsoft.launcher

Which worked, except the 'swipe from bottom' gesture completely stops working. Can't swipe to exit foreground app, nor can you swipe and hold to see all recent apps.

I'm going to look around to see why that's the case, but maybe I'll just have to use your method eventually.
 

hesham1216

Member
Nov 6, 2017
12
0
Thanks a lot for the advice. I did try:

Code:
adb shell
pm disable com.android.launcher
pm enable com.microsoft.launcher

Which worked, except the 'swipe from bottom' gesture completely stops working. Can't swipe to exit foreground app, nor can you swipe and hold to see all recent apps.

I'm going to look around to see why that's the case, but maybe I'll just have to use your method eventually.

Thank you for sharing your experience.

I guess recent tasks and home buttons are forced to be used by oppo launcher some how since even by not disabling the oppo launcher completely still some odd behavior happens by recent tasks and home button swiping.

Wish you the best of luck.