summaryrefslogtreecommitdiffstats
path: root/init.ranchu.rc
diff options
context:
space:
mode:
authorWeilun Du <wdu@google.com>2018-02-20 18:00:55 -0800
committerWeilun Du <wdu@google.com>2018-02-21 11:00:14 -0800
commit1a678f520e200e6029c4b141925fc8b137e40f08 (patch)
tree2f361626eae7239939b9169a18889b76a2c90400 /init.ranchu.rc
parent168ac26f9595653c4476925981293b7fa3b3177c (diff)
downloadandroid_device_generic_goldfish-1a678f520e200e6029c4b141925fc8b137e40f08.tar.gz
android_device_generic_goldfish-1a678f520e200e6029c4b141925fc8b137e40f08.tar.bz2
android_device_generic_goldfish-1a678f520e200e6029c4b141925fc8b137e40f08.zip
Set persist.sys.timezone proprety value using qemu.timezone
Because TV system image doesn't have SIM card, telephony manager would not connect to RIL daemon and listen to unsolicited AT commands. However, emulated system image relies on the NITZ message from RIL daemon to correct its timezone. To workaround, we inject a boot property "qemu.timezone" from host. Inside the guest, we set the proprety "persist.sys.timezone" using the value of "qemu.timezone" when boot completes. BUG: 73641994 Change-Id: I30d1fb1652ca38f5d2ac61616dffb695d7048d03 Signed-off-by: Weilun Du <wdu@google.com>
Diffstat (limited to 'init.ranchu.rc')
-rw-r--r--init.ranchu.rc3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.ranchu.rc b/init.ranchu.rc
index b78769d..9896d35 100644
--- a/init.ranchu.rc
+++ b/init.ranchu.rc
@@ -78,6 +78,9 @@ service ranchu-setup /vendor/bin/init.ranchu-core.sh
group root
oneshot
+on property:qemu.timezone=*
+ setprop persist.sys.timezone ${qemu.timezone}
+
service ranchu-net /vendor/bin/init.ranchu-net.sh
class late_start
user root