summaryrefslogtreecommitdiffstats
path: root/init.goldfish.sh
diff options
context:
space:
mode:
authorDavid 'Digit' Turner <digit@google.com>2016-06-15 17:34:35 +0200
committerDavid 'Digit' Turner <digit@google.com>2016-06-16 16:51:05 +0200
commit8b8cd0649614468be45c8655f4415508169be74a (patch)
tree8609636ff3818587370b74b81bc628df184610d6 /init.goldfish.sh
parentc25d1a31c56b7efe69a3a4099a3d11f1790676d1 (diff)
downloaddevice_generic_goldfish-8b8cd0649614468be45c8655f4415508169be74a.tar.gz
device_generic_goldfish-8b8cd0649614468be45c8655f4415508169be74a.tar.bz2
device_generic_goldfish-8b8cd0649614468be45c8655f4415508169be74a.zip
rild: Remove support for host-specific radio device.
The android.qemud kernel parameter was used before this patch in the following way: - If defined (e.g. to '1'), then enable the RIL daemon to control networking. - If undefined, and android.rild is defined, then use this device to communicate with a host-side GSM modem connected to the emulator (using the -radio <chardev> option). Since this feature is now deprecated / obsolete there is no need to support it anymore. - If both parameters are undefined, use the Java-based emulated telephony stack provided by the framework itself. The latter was never supported by the emulator so has never been tested. This patch removes all the tests to always enable the RIL daemon, simplifying the script. Change-Id: I6badcc6aa34f595e4c76c97e4b8a1a0348650fc1
Diffstat (limited to 'init.goldfish.sh')
-rwxr-xr-xinit.goldfish.sh32
1 files changed, 0 insertions, 32 deletions
diff --git a/init.goldfish.sh b/init.goldfish.sh
index ece75b42..459ed3b9 100755
--- a/init.goldfish.sh
+++ b/init.goldfish.sh
@@ -4,38 +4,6 @@
ifconfig eth0 10.0.2.15 netmask 255.255.255.0 up
route add default gw 10.0.2.2 dev eth0
-# ro.kernel.android.qemud is normally set when we
-# want the RIL (radio interface layer) to talk to
-# the emulated modem through qemud.
-#
-# However, this will be undefined in two cases:
-#
-# - When we want the RIL to talk directly to a guest
-# serial device that is connected to a host serial
-# device by the emulator.
-#
-# - We don't want to use the RIL but the VM-based
-# modem emulation that runs inside the guest system
-# instead.
-#
-# The following detects the latter case and sets up the
-# system for it.
-#
-qemud=`getprop ro.kernel.android.qemud`
-case "$qemud" in
- "")
- radio_ril=`getprop ro.kernel.android.ril`
- case "$radio_ril" in
- "")
- # no need for the radio interface daemon
- # telephony is entirely emulated in Java
- setprop ro.radio.noril yes
- stop ril-daemon
- ;;
- esac
- ;;
-esac
-
# Setup additionnal DNS servers if needed
num_dns=`getprop ro.kernel.ndns`
case "$num_dns" in