#!/system/bin/sh if [ -e /etc/no_fix_sim ]; then exit 0 fi #We will proceed if either #1. gsm.sim.state has a READY value #2. 100s timeout ( this would happen if we are booting without sim card ) loop_cnt=6 for i in `seq $loop_cnt` do sleep 10; state=`getprop gsm.sim.state` #下面一行针对双卡用户,如果是单卡用户,下面一行的"READY,READY"需要改为"READY" #不改大部分时候也能用,就是慢一些 #用的时候最好记得把这三行中文注释删掉 if [ -n $state ] && [ $state = "READY,READY" ] ; then echo "sim is ready"; break; fi done num=`getprop fix.sim.debug` if [ -z $num ] ; then #We have not initialized this variable before setprop fix.sim.debug 1 fi num=$(( $num + 1 )) setprop fix.sim.debug $num #wait for sometime to waive the potential glitch sleep 5 #Now do the fixing setprop gsm.sim.operator.alpha "Verizon" setprop gsm.sim.operator.iso-country "us" setprop gsm.sim.operator.numeric "310004"