Editing host file in datalogic memor 10

Hi,

I need to connect my datalogic memor 10 device to my local working enviroment but I need to edit hosts file accordingly. Since those files are read-only, I can not manage it. How can I manage that?

Hello @Mehmet_Akif_SAYRIM

Thank you for your question about modifying the hosts file on your Datalogic Memor 10 device.

The hosts file on Android-based devices like the Memor 10 is intentionally set as read-only for security reasons ad part of Android’s security model to prevent malicious apps from redirecting network traffic by modifying DNS resolution, which could potentially lead to man-in-the-middle attacks or other security vulnerabilities.

While direct editing of the hosts file is restricted for security reasons, here are some effective alternatives:

  1. DNS Configuration:
  • Configure custom DNS settings in the device’s network settings
  • You can set a primary DNS server that properly resolves your internal hostnames
  • If you have control over your local network, consider updating your internal DNS server to include the mappings you need
  1. Proxy Server Configuration:
  • Configure a proxy server in your local environment that handles the name resolution
  • The device can be configured to use this proxy for network traffic
  • This approach centralizes the name resolution logic without modifying system files
  1. VPN Solution:
  • Set up a VPN connection to your local network
  • When connected via VPN, the device can use your internal network’s DNS services
  • This is particularly useful if you need to access multiple internal resources
  1. Enterprise Mobility Management (EMM):
  • If you’re managing multiple Datalogic devices, consider using an EMM solution
  • Some EMM tools provide advanced network configuration capabilities
  • This would allow centralized management of network settings across devices
  1. Application-Level Resolution:
  • If this is for a specific application, consider implementing hostname resolution within the app itself
  • Custom applications can be programmed to use specific IP addresses instead of relying on system-level hostname resolution

Which approach works best will depend on your specific network setup and requirements.

Simone Callegari
Mobile Products L3 Specialist - SW Engineer | Datalogic

1 Like