Changing the android hostname once and for all

Опубликовано: 25 Июнь 2026
на канале: LineNumber0
4,161
9

OS : Debian 7.9 GNU/Linux
Window manager : Compiz 0.9.5.92 + Emerald 0.9.5
sqlitebrowser 2.0b1 installed with Synaptic package manager
Eclipse Android Development Tools Linux x86 bundle version 23 (to create Android Virtual Device)

This is how to change your android network (DHCP) name rather than just "setprop net.hostname" which sets the hostname for one time and after each reboot returns to its default value ,also editing the "build.prop" file ,in my case, isn't effective at all.

Before doing anything backup your WHOLE ROM !!!
at least your applications files and settings, plus "settings.db" file.

Why ?! because "settings.db" file is a SQLite database placed in the /databases folder of a "com.android.providers" app, which means there is more than one application that uses "settings.db" as reference.

If you have any problem with some apps, (in the aftermath of this video) go to application management - force stop the app - clear its data and cache to reset the app.

Do it at your own risk !


Command list :

./adb shell getprop net.hostname

./adb pull /data/data/com.android.providers.settings/databases/settings.db $HOME/Desktop/

./adb remount

./adb push $HOME/Desktop/settings.db /data/data/com.android.providers.settings/databases/settings.db

./adb reboot











original format : https://drive.google.com/file/d/0B85Z...