qcom-common: Update early-boot script
* Upstream update, fix issue with preloaded classes.
Change-Id: I443e0d1e82f0570c03cf97cf371a1ebad05b7eb1
diff --git a/rootdir/etc/init.qcom.early_boot.sh b/rootdir/etc/init.qcom.early_boot.sh
index 4076b4c..3aa4baa 100644
--- a/rootdir/etc/init.qcom.early_boot.sh
+++ b/rootdir/etc/init.qcom.early_boot.sh
@@ -1,5 +1,5 @@
#!/system/bin/sh
-# Copyright (c) 2012, The Linux Foundation. All rights reserved.
+# Copyright (c) 2012-2013, The Linux Foundation. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
@@ -79,6 +79,9 @@
;;
*)
case "$soc_hwid" in
+ "142") #8x30 QRD
+ setprop ro.sf.lcd_density 320
+ ;;
"109")
setprop ro.sf.lcd_density 160
;;
@@ -118,6 +121,7 @@
# HDMI can be fb1 or fb2
# Loop through the sysfs nodes and determine
# the HDMI(dtv panel)
+fb_cnt=0
for file in /sys/class/graphics/fb*
do
value=`cat $file/msm_fb_type`
@@ -132,8 +136,14 @@
chmod 0664 $file/video_mode
chmod 0664 $file/format_3d
# create symbolic link
- ln -s $file /dev/graphics/hdmi
+ ln -s "/dev/graphics/fb"$fb_cnt /dev/graphics/hdmi
# Change owner and group for media server and surface flinger
chown system.system $file/format_3d;;
esac
+ fb_cnt=$(( $fb_cnt + 1))
done
+
+# Set date to a time after 2008
+# This is a workaround for Zygote to preload time related classes properly
+date -s 20090102.130000
+