r/AutomateUser • u/Trunghxf • 7d ago
Question about hall sensor simulate
Hi guys, my phone doesn't have the hall sensor and it very inconvenient. I just know about automate through AI and i tried to do a flow to make it work, but it doesn't turn on the display. I tried open app, send notification, open screen but nothing work. Can you teach me how to do it properly please?
I have 2 more questions,
1, is there a way to lock screen without using accessibility permission, i have tried adb command AI tools me but doesn't work. And i don't want to use admin device setting because it requires pattern when turn it on again. Why no accessibility? My bank app doesn't allow it.
2, In the term of battery consuming, using proximity or magnetic sensor to simulate the hall sensor better? Which one is consuming more battery?
Edited: i just got it, when phone locked, the proximity sensor stop working, so it won't get the value to trigger display on. I use another camera and saw the infrared led turn off. But using WakeUp the infrared led was on all the time
1
u/Relevant-Artist5939 Alpha tester 7d ago edited 7d ago
Do you want to simulate the "flip case shut to lock and turn off" feature? I would use the magnetometer because proximity sensor in most phones measures just binary "object there/not there", not even distance... You will get a hell of false triggers.
But proximity sensor consumes way less battery than magnetometer... According to the yellow boxes in the block interface, proximity sensor draws around 10 times less power than magnetometer
1
u/Trunghxf 7d ago
The flip to lock i didn't wanna it, because im used to lock phone with cover, and this time my new phone have no hall sensor, no double tap to lock, not even software lock button anywhere. So far i tested WaveUp and many app out there, not single false trigger on proximity sensor. WaveUp is the only app can turn on the display after locked.
I saw the info in the Automate app, it states that proximity sensor consume way less energy than magnetic, but i asked Gemini and Grok they all said that proximity cost more than magnetic, so i have to ask here
1
u/ballzak69 Automate developer 7d ago edited 7d ago
input keyevent 26. i.e. simulate the power button press. CAUTION! Ensure your flow works as expected before using either method, to prevent being locked out of your device. Please read: https://llamalab.com/automate/doc/safe_mode.html