Detetcing IOS Device Temperature in Java #181747
Unanswered
SayyedaAsma
asked this question in
Programming Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Body
I am trying to detect iOS device temperature in Java. My project includes running the Appium server in Java to perform different actions on an iOS device. I am trying to use idevicesyslogs. From my research I know that iOS throws thermal state logs in syslogs when it sees a transition in states. These states include
When transition between these states happens, only then can syslog capture thermal states. I have written this piece of code for my scenario. I have called the monitor device temperature in a thread that starts taking the logs when the Appium driver starts and continues until the device is connected to the Mac. Even when I change the device state by heating an iOS device, which triggers an alert for high temperature, the syslogs still fail to capture the thermal state. I have also tried:
None of these consistently expose the thermal state, even when the device shows overheating alerts. Also, The device was in developer mode.
` public String getIosThermalState() {
String syslogPath = DeviceComGlobals.LIBIMOBILEDEVICE_PATH + "/idevicesyslog";
String detectedState = "UNKNOWN";
Question
Is there any supported or reliable way to detect iOS thermal state externally (from Java/Appium/libimobiledevice) without modifying the application under test?
Or is syslog-based detection fundamentally unreliable by design due to Apple’s platform restrictions?
Any confirmation or alternative approaches from the community would be appreciated.
Guidelines
Beta Was this translation helpful? Give feedback.
All reactions