mumu_add_hosts
Adds IP-to-hostname mappings to the Android hosts file on a MuMu emulator, optionally replacing existing entries; requires root system overlay for persistence.
Instructions
Pin DNS: add {"ip": "hostname"} mappings to /system/etc/hosts.
Needs the root overlay (mumu_root_system(True)) because the file is on the
read-only system partition. replace=True rewrites the file instead of
appending. Mappings persist across reboots via the overlay diff image.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "mumu_add_hosts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entries | No | ||
| replace | No | ||
| vmindex | No |