Skip to content

Instantly share code, notes, and snippets.

@TameemS
Last active Aug 26, 2021
Embed
What would you like to do?
Debloating & Optimizing MEmu

Inspired by this

Edit 22/8/2021: I have updated MEmu and it seems like it reinstalls the apps and re-enables the services. Repeat steps 5, 7, 8, and 9 if you update MEmu.

Debloating MEmu

In my experience, Nox can be quite slow and choppy, and looks like I'm not the only person with this problem. A lot of people say that MEmu performs better than Nox, and I could agree with that. I have no chopping issues with it so far. But like Nox, there are kinda shady stuff going on. No one has made a guide on this, so I did it.

  1. If you don't have MEmu yet, go download it. Better to go with the offline installer
  2. Go to MEmu's Settings and enable Root Mode if it isn't enabled
  3. For the launcher, I would suggest going away from MEmu's launcher. Go install one of your choice.
  4. Once you got the launcher, get this and add the launcher to auto-start. (if you are on MEmu 6.3.7 or below, no need for the auto-start app, just set it as default in the Android Settings). Also check MEmu preferences for App auto-start if it's on.
  5. Go get something like Root Browser, go to the system folder and then the priv-app folder. Delete the MEmu guide, the MEmu launcher, and the Google apps installer provided by MEmu from the Root Browser, then reboot the emulator.
  6. Go get Blokada, enable it, then in the Android Settings, go to VPN options, and set Blokada to Always-on VPN. Go to Activity in the app and disallow everything that has to do with ads and anything that includes microvirt, applovin, applvn, memuplay, and facebook. Feel free to disallow requests that are unknown to you as well.
  7. Open Run (Win+R) then type in C:\Windows\System32\drivers\etc\hosts. Open it with a text editor of your choice.
  8. When open, place this in the hosts file:
0.0.0.0 memuplay.com
0.0.0.0 u888.v.baishan-cloud.net
0.0.0.0 u999.v.bsclink.cn
0.0.0.0 uz95.v.bsclink.cn
0.0.0.0 ut89.v.bsclink.cn
0.0.0.0 dl.memuplay.com
0.0.0.0 www.microvirt.com
0.0.0.0 118.31.236.63
0.0.0.0 114.215.159.204
0.0.0.0 221.194.169.66
0.0.0.0 121.22.238.237
0.0.0.0 121.22.238.244
0.0.0.0 60.163.132.161
0.0.0.0 119.188.76.81
0.0.0.0 119.188.76.84
0.0.0.0 119.188.76.90
0.0.0.0 61.160.199.215
0.0.0.0 119.188.76.84
0.0.0.0 61.160.199.227
0.0.0.0 119.188.76.90
0.0.0.0 61.160.199.231
0.0.0.0 106.225.234.102
0.0.0.0 121.22.238.246
0.0.0.0 121.22.238.247
0.0.0.0 117.21.36.40

(Most of the IPs are according to Glasswire. If there are any more to block, tell me in the comments)

  1. Open Run and type in services.msc. Find MemuSVC, stop the service, and set its startup mode to Disabled. This is to prevent it from running in the background if you close all foreground MEmu processes.

Optimization

Open Multi-MEmu, close the emulator window and go to the instance settings.

Engine

If you have a good CPU and plenty of RAM to spare, then go to Engine, and set the Preset to High. (anything higher is useless if you use a 32-bit Android instance)

If you use a 64-bit Android 7 instance (which I would suggest against as I have a lot of issues with it), then you can set the preset to Top

Display

If you have a good enough GPU, set the resolution to 1920 * 1080. If you want to set it to 2K so that you can play games like Ragnarok at a higher resolution, select Customize and set the Width to 2560 and the Height to 1440. (For Ragnarok, I would suggest setting the DPI to 320)

(NEW!) Enable Discord Live if you're going to screenshare MEmu. Disable it if you're done screensharing.

Storage

Set the Disk Management to Manual management and crank the slider to the max. (The emulator must be closed for this!)

Device

Set the microphone to Disabled if you are not using it.

And you're done! Have fun gaming with MEmu with lower worries!

@CapoFantasma97

This comment has been minimized.

Copy link

@CapoFantasma97 CapoFantasma97 commented May 7, 2021

What do you think about running PrimeOS on a Virtual Machine instead?
https://www.primeos.in/

@TameemS

This comment has been minimized.

Copy link
Owner Author

@TameemS TameemS commented May 8, 2021

What do you think about running PrimeOS on a Virtual Machine instead?
https://www.primeos.in/

Hmm... Keymapping tools. Pre-mapped controls for popular games. I didn't try the OS yet so I don't know much about it. Seems interesting.
But according to my research, there doesn't seem to be 3D accelerated drivers for VMware and VirtualBox for it, so it's are not a viable option for gaming if you install them on a virtual machine.
I've also looked at other Android distros like BlissOS, which is open-source and has similar features. But still, no VM drivers for it.
They only seem to be a viable option if you install them on real hardware. But it's not worth the hassle to switch between OSes because some people prefer to stick to one OS for all.
So that's why Nox/MEmu (preferably debloated & optimized), or BlueStacks are the best options. Or Anbox if you're on Linux.

@Mephi-Dross

This comment has been minimized.

Copy link

@Mephi-Dross Mephi-Dross commented May 11, 2021

I've tried to use the exact steps as given, however it seems the autostart and launcher removal no longer works. Still, thanks for the guide. Wish someone would make an emulator without all the nonsense sigh

Edit: Ah, nevermind. You simply have to activate a setting under "Preferences -> App autostart". With that it then works properly.

@donradzsk

This comment has been minimized.

Copy link

@donradzsk donradzsk commented Jun 15, 2021

What setting to activate @Mephi-Dross ? I'm trying to use Rootless Launcher.

@Mephi-Dross

This comment has been minimized.

Copy link

@Mephi-Dross Mephi-Dross commented Jun 15, 2021

What setting to activate @Mephi-Dross ? I'm trying to use Rootless Launcher.

@donradzsk In the actual Memu emulator, not within Android:

Settings -> Preferences -> App autostart

It can still be a bit iffy, as sometimes it doesn't properly start, but most of the time it does.

@donradzsk

This comment has been minimized.

Copy link

@donradzsk donradzsk commented Jun 15, 2021

OK thanks. I was searching frantically through the Android settings and couldn't find a Preferences setting.
Wish I could replace the stock launcher with Rootless Launcher but when I tried copying it to the stock launcher folder I get copying failed.
I hate that it still goes to the stock launcher before it auto starts my preferred launcher.

@Animus120

This comment has been minimized.

Copy link

@Animus120 Animus120 commented Jun 26, 2021

Does MEmu allows for non-arbitrary resolution like Nox does? That was the only reason why I didn't use BlueStack instead of Nox.

@TameemS

This comment has been minimized.

Copy link
Owner Author

@TameemS TameemS commented Aug 22, 2021

I've updated the hosts + read the first thing

Also:

Does MEmu allows for non-arbitrary resolution like Nox does? That was the only reason why I didn't use BlueStack instead of Nox.

Yes it does. Sorry if I'm late lol

@TameemS

This comment has been minimized.

Copy link
Owner Author

@TameemS TameemS commented Aug 23, 2021

Also forgot to say. They fixed the Discord screensharing issues by adding a switch in the Display options.

@HughJeffner

This comment has been minimized.

Copy link

@HughJeffner HughJeffner commented Aug 26, 2021

Not sure if this is needed but one thing I did was go to C:\Program Files (x86)\Microvirt\MEmu\resources , delete everything in the ad and ad2 folders and set them to read-only. This got rid of the ads while the instance boots up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment