FR 30314: Do not copy mbns during every boot up

Do not copy mbns for every boot up, instead copy
only for first boot up or after a factory reset or
after modem update

CRs-Fixed: 938004
Change-Id: I74a417bcb05d3fb0f969580d51895b8ce23e13ec
This commit is contained in:
Sooraj Sasindran 2015-11-10 23:57:03 -08:00 committed by Gerrit - the friendly Code Review server
parent 7ffeb47c23
commit cccaccab57
1 changed files with 16 additions and 5 deletions

View File

@ -296,9 +296,20 @@ echo 1 > /data/misc/radio/db_check_done
#
# Make modem config folder and copy firmware config to that folder for RIL
#
rm -rf /data/misc/radio/modem_config
mkdir /data/misc/radio/modem_config
chmod 770 /data/misc/radio/modem_config
cp -r /firmware/image/modem_pr/mcfg/configs/* /data/misc/radio/modem_config
chown -hR radio.radio /data/misc/radio/modem_config
if [ -f /data/misc/radio/ver_info.txt ]; then
prev_version_info=`cat /data/misc/radio/ver_info.txt`
else
prev_version_info=""
fi
cur_version_info=`cat /firmware/verinfo/ver_info.txt`
if [ "$prev_version_info" != "$cur_version_info" ]; then
rm -rf /data/misc/radio/modem_config
mkdir /data/misc/radio/modem_config
chmod 770 /data/misc/radio/modem_config
cp -r /firmware/image/modem_pr/mcfg/configs/* /data/misc/radio/modem_config
chown -hR radio.radio /data/misc/radio/modem_config
cp /firmware/verinfo/ver_info.txt /data/misc/radio/ver_info.txt
chown radio.radio /data/misc/radio/ver_info.txt
fi
echo 1 > /data/misc/radio/copy_complete