test/rilmodem/sim: fix test-sim-removal

This changes fixes a fundemental flaw in the test-sim-removal
script.  The script used TestCase assert* methods in its callbacks
for timeout and DBus signals.  Any such asserts needs to be called
on the main unittest thread, or they're ignored by the framework.
 test/rilmodem/sim: add pin/puk unlock tests
Merge pull request #138 from vicamo/refactor-mtk-var-naming

Merged
Merge pull request #140 from tonyespy/sim-unlock-tests

Sim unlock tests
rilmodem: query network selection mode

Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
mtkmodem: optionally use RIL_REQUEST_RADIO_POWER

Some MTK devices do not have RIL_REQUEST_RADIO_POWERON/OFF, so fall
back to generic RIL_REQUEST_RADIO_POWER here if environment variable
"OFONO_MTK_NO_POWERON_POWEROFF" is *NOT* set.

Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
mtkmodem: add dummy RIL_REQUEST_DISABLE_VT_CAPABILITY

Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
mtkmodem: add RIL_REQUEST_STORE_MODEM_TYPE

Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
mtkmodem: support suspend/resume registration

Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
gril: support RIL_REQUEST_SET_INITIAL_ATTACH_APN

Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
mtkmodem: support RIL_REQUEST_SET_INITIAL_ATTACH_APN

Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
mtkmodem: send SET_GPRS_CONNECT_TYPE at init

Signed-off-by: You-Sheng Yang <vicamo@gmail.com>
mtkmodem: add MTK_RIL_REQUEST_DETECT_SIM_MISSING

Signed-off-by: You-Sheng Yang <vicamo@gmail.com>