Merge "init.qcom.uicc: Handle uicc insert/remove properly"

This commit is contained in:
Linux Build Service Account 2014-12-06 00:26:23 -08:00 committed by Gerrit - the friendly Code Review server
commit 0357f832f1
1 changed files with 8 additions and 2 deletions

View File

@ -28,6 +28,12 @@
target=`getprop ro.board.platform`
action=`getprop sys.usb_uicc.enabled`
uicc_loading=`getprop sys.usb_uicc.loading`
# Perfom uicc_insert/uicc_remove only when usb uicc client says so
if [ $uicc_loading != "1" ]; then
action=""
fi
if [ -f /sys/devices/soc0/soc_id ]; then
soc_hwid=`cat /sys/devices/soc0/soc_id`
@ -110,11 +116,11 @@ uicc_remove()
case $action in
"1")
uicc_insert
setprop sys.usb_uicc.loading 1
setprop sys.usb_uicc.loading 0
;;
"0")
uicc_remove
setprop sys.usb_uicc.loading 1
setprop sys.usb_uicc.loading 0
;;
*)
echo "USB_UICC invalid action for uicc operation!"