Check INVALID_SIM_STATE for sim permanent lock status
PUK1 and PUK2 can get permanent blocked when it inputs wrong passwords more than 10 times. Bug: 111211929 Test: sanity Change-Id: I736873b1b181b88f279df7dc1c09e18e0fc76af3
This commit is contained in:
parent
9da8a72744
commit
2d0ba0f61b
1 changed files with 4 additions and 2 deletions
|
@ -67,7 +67,8 @@ TEST_F(RadioHidlTest, supplyIccPukForApp) {
|
||||||
EXPECT_EQ(std::cv_status::no_timeout, wait());
|
EXPECT_EQ(std::cv_status::no_timeout, wait());
|
||||||
EXPECT_EQ(serial, radioRsp->rspInfo.serial);
|
EXPECT_EQ(serial, radioRsp->rspInfo.serial);
|
||||||
EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp->rspInfo.type);
|
EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp->rspInfo.type);
|
||||||
EXPECT_EQ(RadioError::PASSWORD_INCORRECT, radioRsp->rspInfo.error);
|
ASSERT_TRUE(CheckAnyOfErrors(radioRsp->rspInfo.error, {RadioError::PASSWORD_INCORRECT,
|
||||||
|
RadioError::INVALID_SIM_STATE}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -113,7 +114,8 @@ TEST_F(RadioHidlTest, supplyIccPuk2ForApp) {
|
||||||
EXPECT_EQ(std::cv_status::no_timeout, wait());
|
EXPECT_EQ(std::cv_status::no_timeout, wait());
|
||||||
EXPECT_EQ(serial, radioRsp->rspInfo.serial);
|
EXPECT_EQ(serial, radioRsp->rspInfo.serial);
|
||||||
EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp->rspInfo.type);
|
EXPECT_EQ(RadioResponseType::SOLICITED, radioRsp->rspInfo.type);
|
||||||
EXPECT_EQ(RadioError::PASSWORD_INCORRECT, radioRsp->rspInfo.error);
|
ASSERT_TRUE(CheckAnyOfErrors(radioRsp->rspInfo.error, {RadioError::PASSWORD_INCORRECT,
|
||||||
|
RadioError::INVALID_SIM_STATE}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue