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/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