Skip to content

Instantly share code, notes, and snippets.

@TameemS
Last active June 13, 2026 09:05
Show Gist options
  • Select an option

  • Save TameemS/894cdb8adae1d6042a5f21c4e80bcd9e to your computer and use it in GitHub Desktop.

Select an option

Save TameemS/894cdb8adae1d6042a5f21c4e80bcd9e to your computer and use it in GitHub Desktop.
Debloating LDPlayer

Inspired by this

More of my guides: Debloating MEMu - Debloating Nox (Updated)

This mainly applies to LDPlayer9. They will probably work on the low end options (like LDPlayer5) but not guaranteed.

Debloating LDPlayer

This emulator seems to have less stability issues than MEMu. I think we get the shtick that these emulators do spooky stuff.

  1. Download LDPlayer, preferably an offline version from the version history
  2. Go to LDPlayer Settings, make system.vmdk writable, go to Other Settings and enable Root Permission
  3. I would suggest getting off of LD's Launcher. Go get another one and set it as a default home app.
  4. Get a file manager that supports root, go to the root directory, then delete /system/priv-app/LDAppStore and /system/app/Launcher3. (why did they modify the AOSP launcher lol)
  5. Get AdAway and set it up, preferably with root-based blocking.
  6. Open C:\Windows\System32\drivers\etc\hosts with a text editor of your choice and add this in
0.0.0.0 encdn.ldmnq.com.w.alikunlun.com
0.0.0.0 apien.ldmnq.com
0.0.0.0 advertise.ldplayer.net.a.lahuashanbx.com
0.0.0.0 d19przo9d3f9zk.cloudfront.net
0.0.0.0 dldgmpfyeblzc.cloudfront.net
0.0.0.0 ins-o9iydzqn.ias.tencent-cloud.net
0.0.0.0 appstore.ldmnq.com
0.0.0.0 netease-publish-gdlgphs.w.alikunlun.com
0.0.0.0 d330if318qxsm2.cloudfront.net
0.0.0.0 dn2sifz9m7tkk.cloudfront.net
0.0.0.0 d3p6x1jquzbe0c.cloudfront.net
0.0.0.0 de2pmm85odupd.cloudfront.net
0.0.0.0 p-sgsg00.kxcdn.com
0.0.0.0 adabdapi.ldmnq.com
0.0.0.0 res.ldrescdn.com
0.0.0.0 en.ldplayer.net
0.0.0.0 ad.ldplayer.net

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

  1. Block dnplayer.exe in the firewall

And block the IP addresses using the files attached to this gist (original courtesy of ehindiayleau). Make sure both the batch and the text file are in the same folder! Open command prompt as admin and CD to the folder where you saved the two files.

Now let's install Magisk! (optional). Make sure you kept root on during all of this.

  1. Download Kitsune Magisk
  2. Launch it and allow everything it throws at you
  3. Directly install to system partition (you may need to relaunch the app for this option)
  4. Reboot, go to a root-supported file manager and delete /system/xbin/su to avoid conflicts and reboot again.
  5. That's about it. Go crazy

As far as I know there aren't any known ways to get around the SafetyNet detection. I've tried the usual methods that I use on my rooted phone and they didn't work. If you found a solution, please comment below! At the moment, SafetyNet requirements do not seem to pose a big threat and devs do use workarounds so that everyone can play no matter which platform (e.g. multiplayer games putting you in emulator lobbies).

@echo off
if "%1"=="list" (
netsh advfirewall firewall show rule ld_ip_to_fw_rule | findstr RemoteIP
exit/b
)
netsh advfirewall firewall delete rule name="ld_ip_to_fw_rule"
for /f %%i in (ld_block.txt) do (
netsh advfirewall firewall add rule name="ld_ip_to_fw_rule" protocol=any dir=in action=block remoteip=%%i
netsh advfirewall firewall add rule name="ld_ip_to_fw_rule" protocol=any dir=out action=block remoteip=%%i
)
call %0 list
pause
79.133.177.0-79.133.177.255,163.181.56.0-163.181.56.255,163.181.92.0-163.181.92.255,47.74.196.235,139.224.223.140,106.14.57.193,139.196.27.122,106.15.125.201,47.74.196.239
@Achyuth072

Copy link
Copy Markdown

@825i

Install latest version of LDPlayer 9 (I couldn't find existence of any "offline" version)

You can still get the latest offline version from the version history Do you have any issues accessing it?

I mean no version says its the offline version or is it that all of them are offline version?

@TameemS

TameemS commented Aug 23, 2024

Copy link
Copy Markdown
Author

@825i

Install latest version of LDPlayer 9 (I couldn't find existence of any "offline" version)

You can still get the latest offline version from the version history Do you have any issues accessing it?

I mean no version says its the offline version or is it that all of them are offline version?

All of them are offline

@825i

825i commented Aug 23, 2024

Copy link
Copy Markdown

Hello. Please don't quote my name lol unless you mean to actually reply to me. It just results in email spam even if I have disabled notifications :(

So please remove @825i from any of your comments.

Thanks! <3

@TameemS

TameemS commented Aug 23, 2024

Copy link
Copy Markdown
Author

Hello. Please don't quote my name lol unless you mean to actually reply to me. It just results in email spam even if I have disabled notifications :(

Thanks!

Ah, I apologize

@Achyuth072

Copy link
Copy Markdown

@825i

Install latest version of LDPlayer 9 (I couldn't find existence of any "offline" version)

You can still get the latest offline version from the version history Do you have any issues accessing it?

I mean no version says its the offline version or is it that all of them are offline version?

All of them are offline

Ok cool thanks! I think you meant to quote me.

@TameemS

TameemS commented Aug 23, 2024

Copy link
Copy Markdown
Author

Install latest version of LDPlayer 9 (I couldn't find existence of any "offline" version)

You can still get the latest offline version from the version history Do you have any issues accessing it?

I mean no version says its the offline version or is it that all of them are offline version?

All of them are offline

Ok cool thanks! I think you meant to quote me.

I did xd. You quoted me quoting him where I included the mention. I'll edit the one that mentions him.

@825i

825i commented Sep 22, 2024

Copy link
Copy Markdown

I updated my own gist because I had to do this again on a new Windows install.
I believe this is the fastest way to get this emulator set up for frequent and hassle-free use.
Bear in mind, it does add a few optional steps which I needed for my own use-case.

https://gist.github.com/825i/b010adc28544b9e5868a0f4617bb325e

🙏 PLEASE DO NOT "QUOTE REPLY" TO MY MESSAGE! 🙏
You can just comment below.

@ImGGAAVVIINN

Copy link
Copy Markdown

Hey, I love your guides on debloating emulators! Do you happen to know how to remove the massive, annoying ads that pop up when launching and using Mumu Player? It's the best emulator for running Android 12, but the ads are driving me crazy.

@HongYue1

HongYue1 commented Oct 9, 2024

Copy link
Copy Markdown

Hey, I love your guides on debloating emulators! Do you happen to know how to remove the massive, annoying ads that pop up when launching and using Mumu Player? It's the best emulator for running Android 12, but the ads are driving me crazy.

root + adaway

@ImGGAAVVIINN

ImGGAAVVIINN commented Oct 10, 2024

Copy link
Copy Markdown

root + adaway

What about the starting ads that fills the screen?
and the popup ads that show when the emulator finish running?

@TameemS

TameemS commented Oct 10, 2024

Copy link
Copy Markdown
Author

Hey, I love your guides on debloating emulators! Do you happen to know how to remove the massive, annoying ads that pop up when launching and using Mumu Player? It's the best emulator for running Android 12, but the ads are driving me crazy.

Same principle tbh
In the case of removing ads, record the connections using Glasswire, Fiddler, Wireshark, etc and add any sus one to a firewall or hosts.

@immarian

Copy link
Copy Markdown

I am in /system/priv-app and I don't have any "LDAppStore" folder. My version is not that old but it's not new either, I haven't updated in months, my version is: 9.1.20.1. I remember that I disabled their apps through settings though, maybe this has something to do with it ?

@Bobidobi

Copy link
Copy Markdown

Actually, if you have non standard FireWall (i use TinyWall for example), you can block most of the things with just 1-4 steps. Just don't allow "dnplayer.exe" to go online ever, i let it connect once and have to reinstall LDPlayer from scratch. You only need to allow "Ld9BoxHeadless.exe" to use network in android.

@Markerist

Copy link
Copy Markdown

Will you be making one for Mumu Player?

@smalllbuddy

Copy link
Copy Markdown

I am in /system/priv-app and I don't have any "LDAppStore" folder. My version is not that old but it's not new either, I haven't updated in months, my version is: 9.1.20.1. I remember that I disabled their apps through settings though, maybe this has something to do with it ?

same :(

@StickyChannel92

Copy link
Copy Markdown

I cannot delete Launcher3 or LDAppStore in Amaze File Manager, nor can I encrypt them, disable them, or remove permissions, even with root access. Am I doing something wrong?

@TameemS

TameemS commented Jan 27, 2025

Copy link
Copy Markdown
Author

I cannot delete Launcher3 or LDAppStore in Amaze File Manager, nor can I encrypt them, disable them, or remove permissions, even with root access. Am I doing something wrong?

seems like it's doing the same thing as nox is doing, this might work

@swablueme

Copy link
Copy Markdown

You can delete everything once it's rooted with Kitsune. Just follow as TameemS' video says, root it, give superuser access to mixplorer or any other file manager delete the folder. and then use anything you want to delete the ldstore app

@CrispyChicken01

Copy link
Copy Markdown

I am trying to use NextDNS to find and block the ip and domains.

@CrispyChicken01

Copy link
Copy Markdown

Guys use adguard home to monitor and block doamins. It is very easy to setup. I am using it as a local dns. Its better than windows hosts.

@Ryflick

Ryflick commented May 16, 2025

Copy link
Copy Markdown

Thanks for the Debloat guide! Works flawlessly

@TheShadowGamer06

Copy link
Copy Markdown

Not possible to remove the SU folder on the latest version of LDPlayer 9, just errors and says "read only" even with root access enabled in the ldplayer settings and granting SU access to CX file browser.

@frozenedx

Copy link
Copy Markdown

Thanks a lot for the guide. I did what I could and got rid of most of the ads/promo stuff.

Does anyone know how to get rid of the "Remote LDPlayer" blue button at the top next to the profile icon? It seems to disappear when the emulator is not in focus for a while and pops back up when I focus on the LDplayer again. I'm not sure if I missed a step for that or not.

@SESRDDDFGE

Copy link
Copy Markdown

wdym "make system.vmdk writable"

@TameemS

TameemS commented Jul 18, 2025

Copy link
Copy Markdown
Author

wdym "make system.vmdk writable"

it's an option in the settings so you can modify system files and root the emulator w/ delta/kitsune if u want
speaking of, changed hyperlink of kitsune to a fork

@DrivingInMyCarRightAfterABeer

Copy link
Copy Markdown

So what if I want to update LDPlayer to the latest version. Using an extremely outdated version of LDPlayer can pose a risk because it has unpatched vulnerablities. Would blocking dnplayer.exe in firewall prevent me from updating the app?

@TameemS

TameemS commented Sep 1, 2025

Copy link
Copy Markdown
Author

So what if I want to update LDPlayer to the latest version. Using an extremely outdated version of LDPlayer can pose a risk because it has unpatched vulnerablities. Would blocking dnplayer.exe in firewall prevent me from updating the app?

Yes but you can update manually if you're concerned. You could temporarily uncomment the entries in the hosts file to download the new installer. If you want to do it quickly then use a VPN

@leonardcezar71

Copy link
Copy Markdown

It worked perfectly until yesterday. I don't know what they changed since yesterday because the damn ads started again and I didn't update or anything.

@atiladpribeiro

Copy link
Copy Markdown

Here is the corrected code that recognizes the ld_block.txt file in the directory where the .bat is located.

@echo off
if "%1"=="list" (
netsh advfirewall firewall show rule name=ld_ip_to_fw_rule | findstr RemoteIP
exit /b
)

netsh advfirewall firewall delete rule name="ld_ip_to_fw_rule"

for /f %%i in (%~dp0ld_block.txt) do (
netsh advfirewall firewall add rule name="ld_ip_to_fw_rule" protocol=any dir=in action=block remoteip=%%i
netsh advfirewall firewall add rule name="ld_ip_to_fw_rule" protocol=any dir=out action=block remoteip=%%i
)

call %0 list

pause

@icreaterandomapps

Copy link
Copy Markdown

i made easy guide here where it change the start image with any image you like and block ads using your host list

tysm

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