android - Airplane mode On status is Always True -
i using adb command status of airlane_mode_on in appium using python. returning 'true' when off. below code snippet.
def getglobalsettingsoperation(self): self.__log.info('androiddevice.getglobalsettingsoperation() [{}]: performing operation on global setting "{}"'.format(self.name(), flag)) try: status = self.__adb.shell(['settings', 'get', 'global', 'airplane_mode_on']) self.__log.info('androiddevice.getglobalsettingsoperation(): value of getglobalsettingsoperation flag [{}] is: "{}"'.format(flag, status)) return status except: self.__log.exception('androiddevice.getglobalsettingsoperation() [{}]: exception'.format(self.name())) return false
the value of status true. same command when using put operation, working fine.i tried in many android devices. kindly help.
Comments
Post a Comment