From cd5200988c48c3f77b7b5d55116a070ff1b5cfee Mon Sep 17 00:00:00 2001
From: Ravi Kishore R <ravikish@codeaurora.org>
Date: Mon, 29 Jan 2018 11:23:33 +0530
Subject: [PATCH] msm8953-common: Remove copying of QCRIL DB from vendor
 partition

Remove this redundant mechanism of copying DB.
QCRIL Daemon already takes care of the copying
at runtime

Change-Id: I2213c2a8a1c9717c92f3cf5e7873c0ee9e65da35
---
 rootdir/init.qcom.sh | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/rootdir/init.qcom.sh b/rootdir/init.qcom.sh
index 18b7645..f7af9dc 100644
--- a/rootdir/init.qcom.sh
+++ b/rootdir/init.qcom.sh
@@ -101,14 +101,6 @@ start_msm_irqbalance()
 	fi
 }
 
-start_copying_prebuilt_qcril_db()
-{
-    if [ -f /vendor/radio/qcril_database/qcril.db -a ! -f /data/vendor/radio/qcril.db ]; then
-        cp /vendor/radio/qcril_database/qcril.db /data/vendor/radio/qcril.db
-        chown -h radio.radio /data/vendor/radio/qcril.db
-    fi
-}
-
 baseband=`getprop ro.baseband`
 echo 1 > /proc/sys/net/ipv6/conf/default/accept_ra_defrtr
 
@@ -351,12 +343,6 @@ esac
 # Set shared touchpanel nodes ownership (these are proc_symlinks to the real sysfs nodes)
 chown -LR system.system /proc/touchpanel
 
-#
-# Copy qcril.db if needed for RIL
-#
-start_copying_prebuilt_qcril_db
-echo 1 > /data/vendor/radio/db_check_done
-
 #
 # Make modem config folder and copy firmware config to that folder for RIL
 #
-- 
GitLab