Example #1
0
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     self.flashImage = FlashImage()
     self.securityImpl.check_pre_build_test_or_ebimage()
     print
     print "[Setup]: %s" % self._test_name
     super(NegativeTipcTest, self).setUp()
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     print
     self.def_passwd = "qwer123"
     self.def_pin = 1234
     self.def_pattern = 14789
     print "[Setup]: %s" % self._test_name
     super(ScreenLockPasswdPinPatternUpdateNoChanges, self).setUp()
Example #3
0
 def start_RPCServer(self):
     """
     Start RPC server
     """
     self.adb_root()
     # self.func.push_uiautomator_jar()
     from testlib.security.security_impl import SecurityImpl
     self.securityImpl = SecurityImpl()
     self.securityImpl.start_RPCServer()
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     print
     self.def_passwd = "qwer123"
     self.def_pin = 1234
     self.def_pattern = 14789
     print "[Setup]: %s" % self._test_name
     super(ScreenLockToNoPassword, self).setUp()
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     print
     self.def_passwd = "qwer123"
     self.def_pin = 1234
     self.def_pattern = 14789
     print "[Setup]: %s" % self._test_name
     super(LockProtectedOptionsPasswdPinPattern, self).setUp()
Example #6
0
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     print
     self.def_passwd = "qwer123"
     self.def_pin = 1234
     self.def_pattern = 14789
     print "[Setup]: %s" % self._test_name
     super(GatekeeperdKilledWithScreenLock, self).setUp()
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     print
     self.def_passwd = "qwer123"
     self.def_pin = 1234
     self.def_pattern = 14789
     print "[Setup]: %s" % self._test_name
     self.securityImpl.run_check_disk_encryption_type()
     super(DiskEncryptionVoldDecryptStatus, self).setUp()
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     self.flashImage = FlashImage()
     self.securityImpl.check_pre_build_test_or_ebimage()
     self.tar_dut_path = "/data/local/tmp/"
     self.push_file = "alsr_exists"
     print
     print "[Setup]: %s" % self._test_name
     super(ALSRAddressCheck, self).setUp()
Example #9
0
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     self.flashImage = FlashImage()
     self.securityImpl.check_pre_build_test_or_ebimage()
     self.tar_dut_path = "/data/local/tmp/"
     self.push_file = "tipc-test32"
     print
     print "[Setup]: %s" % self._test_name
     super(TipcTest, self).setUp()
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     self.def_passwd = "qwer123"
     self.incorrect_passwd = "qwer"
     self.incorrect_passwd_long = "abcdefg123456"
     self.def_pin = 1234
     self.incorrect_pin = 1111
     self.incorrect_pin_long = 1234567890
     print
     print "[Setup]: %s" % self._test_name
     super(ScreenLockUpdateWrongPasswd, self).setUp()
Example #11
0
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     self.def_passwd = "qwer123"
     self.def_pin = 1234
     self.def_pattern = 14789
     self.update_passwd = "qwer123456"
     self.update_pin = 123456
     self.update_pattern = 4789
     print
     print "[Setup]: %s" % self._test_name
     self.securityImpl.run_check_disk_encryption_type()
     super(DiskEncryptionKeyUpdateLockType, self).setUp()
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     self.def_passwd = "qwer123"
     self.incorrect_passwd = "qwer"
     self.incorrect_passwd_long = "abcdefg123456"
     self.def_pin = 1234
     self.incorrect_pin = 1111
     self.incorrect_pin_long = 1234567890
     self.securityImpl.start_RPCServer()
     print
     print "[Setup]: %s" % self._test_name
     self.securityImpl.run_check_disk_encryption_type()
     super(ScreenLockTypeAtBootTime, self).setUp()
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     self.def_passwd = "qwer123"
     self.min_passwd = ["1", "q", "q1", "qw1"]
     self.incorrect_passwd_long = "abcdefg123456"
     self.def_pin = 1234
     self.min_pin = [0, 1, 12, 123]
     self.incorrect_pin_long = 1234567890
     # (draw_point_top, draw_point_left), (5, 5)==1 ,(3, 5)==2, (1,5)==3
     self.min_pattern = [5, 3, 1]
     print
     self.securityImpl.choose_screen_lock("None")
     print "[Setup]: %s" % self._test_name
     super(MinimiumRequirementCheckScreenLock, self).setUp()
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     self.def_passwd = "qwer123"
     self.incorrect_passwd = "qwer"
     self.incorrect_passwd_long = "abcdefg123456"
     self.def_pin = 1234
     self.incorrect_pin = 1111
     self.incorrect_pin_long = 1234567890
     self.init_dut = InitFlashDevices()
     self.securityImpl.start_RPCServer()
     print
     print "[Setup]: %s" % self._test_name
     self.securityImpl.run_check_disk_encryption_type()
     super(DataPartitionAccess, self).setUp()
Example #15
0
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     self.def_passwd = "qwer123"
     self.incorrect_passwd = "qwer"
     self.incorrect_passwd_long = "abcdefg123456"
     self.def_pin = 1234
     self.incorrect_pin = 1111
     self.incorrect_pin_long = 1234567890
     if 1 == 1:
         raise Exception(
             "Debug case on going, skip it, next time run this case")
     print
     print "[Setup]: %s" % self._test_name
     self.securityImpl.start_RPCServer()
     super(LockTypeUnlockMoreThan30times, self).setUp()
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     print
     print "[Setup]: %s" % self._test_name
     super(SystemMountAreReadOnly, self).setUp()
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     print
     print "[Setup]: %s" % self._test_name
     super(VMXFlagForTrustyOs, self).setUp()
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     print
     print "[Setup]: %s" % self._test_name
     super(GatekeeperdRunning, self).setUp()
Example #19
0
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     print
     print "[Setup]: %s" % self._test_name
     super(SelinuxModeSwitch, self).setUp()
Example #20
0
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     print
     print "[Setup]: %s" % self._test_name
     super(AdbConnectionAndKey, self).setUp()
Example #21
0
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     print
     print "[Setup]: %s" % self._test_name
     super(DiskEncryptionFlagCheck, self).setUp()
Example #22
0
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     print
     print "[Setup]: %s" % self._test_name
     super(HardwareBackedKeystore, self).setUp()
Example #23
0
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     print
     print "[Setup]: %s" % self._test_name
     super(KeymasterVersionCheck, self).setUp()
 def setUp(self):
     self._test_name = __name__
     self.securityImpl = SecurityImpl()
     print
     print "[Setup]: %s" % self._test_name
     super(CACredentialsCheck, self).setUp()