How to set host name on G1 phone

I have a root'd G1 phone and I would like to set its hostname. As root, I can run the command hostnameand install it, but this name will not reboot.

At first I tried to create a file /etc/hostnamecontaining only my hostname, but that did not work.

Then I edited /etc/hostsas follows:

127.0.0.1     g1-phone localhost

However, this failed. Are there other methods that I can try to set the host name on an ongoing basis?

+3
source share
1 answer

Cyanogen ROM for Android phones includes a userinit.sh script that you can customize. The About Page page describes this as such:

Runs /system/sd/userinit.sh after A2SD setup and before starting the runtime for user scripts

http://www.cyanogenmod.com/about

hostname , , script , reset .

+2

Source: https://habr.com/ru/post/1706388/


All Articles