summaryrefslogtreecommitdiffstats
path: root/rootdir
diff options
context:
space:
mode:
authorRon Munitz <ron@nubosoftware.com>2013-05-16 16:28:23 +0300
committerColin Cross <ccross@android.com>2013-05-17 17:58:02 +0000
commitb1b45b9bd4f8610d7bda99849cac0b14e9ad771d (patch)
tree95d63eab0cc7ba1e92759fafc46fbb9f42d26504 /rootdir
parent7382459eca9632168b9d393bc77fb62bc21bb67a (diff)
downloadsystem_core-b1b45b9bd4f8610d7bda99849cac0b14e9ad771d.zip
system_core-b1b45b9bd4f8610d7bda99849cac0b14e9ad771d.tar.gz
system_core-b1b45b9bd4f8610d7bda99849cac0b14e9ad771d.tar.bz2
Added net.dns1 prop for emulator, as Android emulator ignores it by default.
This commit sets up the system property which is actually used by the Connectivity Service (frameworks/base/services/java/com/android/server/ConnectivityService.java). It fixes an (obsolete?) convention where the dns was affected directly by the interface (i.e. "net.eth0.dns1=10.0.2.3"), which causes the Android Emulator (goldfish) to ignore this value, and effectively have no DNS resolving at all. An immediate fix can be either add reference to net.eth%s.dns%s in the ConnectivityService and possibly on the dhcp code as well which would be bloated, or just stick to the apparant new convention. I chose the latter as a one line fix which gets the job done. Change-Id: Id4364129e9a82c1f48403068a837aca54de07944
Diffstat (limited to 'rootdir')
-rw-r--r--rootdir/etc/init.goldfish.rc1
1 files changed, 1 insertions, 0 deletions
diff --git a/rootdir/etc/init.goldfish.rc b/rootdir/etc/init.goldfish.rc
index 1373be8..d227bbe 100644
--- a/rootdir/etc/init.goldfish.rc
+++ b/rootdir/etc/init.goldfish.rc
@@ -13,6 +13,7 @@ on boot
setprop ARGH ARGH
setprop net.eth0.gw 10.0.2.2
setprop net.eth0.dns1 10.0.2.3
+ setprop net.dns1 10.0.2.3
setprop net.gprs.local-ip 10.0.2.15
setprop ro.radio.use-ppp no
setprop ro.build.product generic