This guide has been written originally by Ivan Alex HC
This method modifies the
/systempartition, even on a factory reset written data will stay, this also stops OTA updates.
USE AT YOUR OWN RISK.
Before making applying any changes on
/systempartition take a backup of it so that you can restore back to original state with a custom recovery
Make a backup of your existing hosts file: adb pull /system/etc/hosts
Copy and paste the content of this page into a file named hosts(wget URL -O hosts if you have got wget). This is the official StevenBlacks file from the hosts project, the more complete and updated blacklist of unwanted websites. For more details visit the official project https://github.com/StevenBlack/hosts
(optional) If you want, you can edit the list by just adding unwanted sites into the following space:
# Custom host records are listed here.
# End of custom host records.
# Start StevenBlack
By adding the line 0.0.0.0 ssp.kaiads.com you can remove annoyng ads from the official KaiOSs store, but this can cause problems installing many apps, like WhatsApp. Use this extension at your own risk. The author personally don't need it, they doesn't use official KaiOSs apps Visit the BananaHackers Store(accessible from the menu of this wiki which is on the left side if you are on Computer or top on small screens or this link if you are too lame) for so many alternative apps which number of them are growing.
Put the file on your SD card
Enable the debug mode
Get a temporary root access. Remember, the following commands are written if you use Telnetd app, but you can get root in a easier way using Wallace and ADBRoot. Using them you dont need to write busybox or busybox telnet localhost and just write exit one time:
adb shell
busybox telnet localhost
mount -o remount,rw /system
cp -f /sdcard/hosts /system/etc
exit
exit
adb reboot