Stop Asking for APK Modifications – Do This Instead!

The Common Question

A lot of posts on this forum ask:

“Can you modify this app to remove a specific feature?”

While it might seem like a good approach, it’s actually a bad idea (and I have no patience for downloading and uploading your APKs just to edit them).

The Problem with Modding Apps

Apps need updates—simple as that. When you modify an app, you’re creating a short-term solution that lasts only until the next update. Then, you’re back to square one.

Why Modding Isn’t the Right Approach:

  • No Source Code Access – We have to work with smali, which is tedious and unreliable.
  • High Risk of Bugs – Modding can break key functions, making the app unstable.
  • Forced Updates – Many online apps, like Telegram, require updates, making modded versions unusable.

For offline apps, modding sometimes works. But for online apps, being stuck on an outdated version is annoying and impractical.


The Better Solution: Block Network Requests

Instead of modifying the app, a more effective method is blocking specific network requests—this is exactly how MDM solutions and custom ROMs (like mine) handle it.

How to Find the URLs to Block

Before modifying the hosts file, you need to know which URLs the app is using.

  • Use HttpCanary (requires root for HTTPS apps) to monitor network requests.
  • Open the app you want to modify and start capturing traffic.
  • Identify the URLs related to the feature you want to block (e.g., ads, updates, status, tracking).

Once you have the URLs, add them to your hosts file.


Method 1: Editing the Hosts File (Easy & Recommended)

The hosts file is a simple way to block specific domains at the system level.

Steps to Modify the Hosts File:

  1. Locate the Hosts File

    • Path: /system/etc/hosts
    • Root access is required.
  2. Use a Text Editor

    • Open the file with a root-supported text editor (MT Manager, Solid Explorer, or ES File Explorer).
  3. Add the URLs You Want to Block

    • Use this format:
      127.0.0.1 example.com
      127.0.0.1 sub.example.com
      
    • This redirects the domain to your own device, effectively blocking it.
  4. Save & Reboot

    • After editing, save the file and reboot your device for changes to take effect.

Examples of Blocking Specific Features

1. Blocking WhatsApp Status & Channels

To disable WhatsApp’s Status and Channels, add these lines to your hosts file:

127.0.0.1 static.whatsapp.net
127.0.0.1 mmg.whatsapp.net
127.0.0.1 web.whatsapp.com

This prevents WhatsApp from loading those features while keeping chat functionality intact.

2. Blocking Telegram Forced Updates

Telegram requires updates by blocking older versions. To stop this, add:

127.0.0.1 updates.tdesktop.com
127.0.0.1 api.telegram.org

Note: Blocking api.telegram.org will also block all Telegram functionality, so use this carefully!

3. Blocking Ads & Trackers in Apps

You can also use the hosts file to block ads and tracking services by adding:

127.0.0.1 ads.google.com
127.0.0.1 analytics.facebook.com

This method works similarly to ad-blocking apps but is built into the system.


Method 2: Using Iptables (For Advanced Users)

If you need more control over network requests, you can use iptables (requires root):

  1. Install a terminal app like Termux.
  2. Run this command to block a domain:
    iptables -A OUTPUT -d example.com -j DROP
    
  3. To make the rule permanent, use a startup script or firewall app like AFWall+.

Final Thoughts

Blocking URLs at the system level is safer, easier, and update-friendly compared to modifying an app directly. It ensures that unwanted features stay disabled even after updates without causing crashes or instability.

So please, if you have root, stop asking for APK modifications. Just block the URLs yourself—it’s faster, easier, and won’t break after every update.

Hope this helps! Let me know if you have any questions or need help finding specific URLs to block.

2 Likes

What’s the url for waze privacy policy?

I uploaded a host file that blocks it, and much more. Here it is again:
hosts.zip (4.0 KB)

@Dev-in-the-BM

If you don’t have root - it’s not for you.
But who in the world makes a phone kosher without root?
Like, how to you make it that you cannot install apps? How to you block ADB?
Custom ROM? This guide is relevant.
With a MDM? They can edit the network requests as I said.

So if you wanna be fake kosher - go ahead. The guide isn’t for you.

I create custom ROMs for a living. I don’t even start without root or a full ROM. It’s the basics. Qualcomm chips without a firehose - I don’t work with unless the manufacturer gives me the ROM.

When I’m done the ROM - I can remove root.

Kyocera and sonim are both qualcomm.
i know you uploaded that host file but it blocks a whole bunch other stuff do you have the exact url for waze or do you not know it?

It’s there, search “waze” in notepad

Yeah, is there anyway to pull the rom off/make my own?

  • Mediatek - sp flash tool + wwr readback / root / cm2 dongle
  • unisoc - no clue
  • Qualcomm - root / firehose + edl

Make your own? Gotta learn Linux and kotlin for that

1 Like

Doing this blocked downloading any media on whatsapp for me

Ok, I just asked chatgpt for an example.
Use http canary to intercept status.

Trying to use this info to block on iPhone

Iphone runs a different os completely there is no rooting an iphone it doesn’t this guide is for android only

2 Likes

100 percent
I’m referring solely to the whatsapp thingy which on iOs apps actually work more with url trafficking
And blocking status on iOs would be amazing

You need root To use host files though which is not a thing on ios… But if you figure it out keep us posted

Don’t think its called root on iOs, but isn’t there such a thing as jailbreaking an iPhone?

Is it the same thing because i don’t think ios runs based off files like android but either way its probably not called a host file if it is

Forget about all these things
I am referring to simply blacklisting the correct url

1 Like

Ah Understand now try it i guess and find out but it could be the android app and iphone are built differently let us know

Some people have phones that are not rooted or want an app to be able to be used on multiple devices and just want the in-app-browsers removed and other features that are not kosher so host files will not work for them but for a guide for phones with root its an amazing guide

1 Like

After blocking URL’s on the host file, can I patch back my original unrooted boot.img and everything will stay blocked and the phone will boot up properly?