[AVD] Android 步數模擬
在AVD的更多選項中,sensors 的 move,拉動 Y 軸可以模擬前後晃動,對部分 app 有模擬步數的效果。
[AVD] Android 步數模擬

在AVD的更多選項中,sensors 的 move,拉動 Y 軸可以模擬前後晃動,對部分 app 有模擬步數的效果。
不想一直手拉,可以用下面的指令不段重複,直到 crtl + c 離開:
trap "echo Stopped; exit" INT
while true; do
{
echo "auth $(cat ~/.emulator_console_auth_token)"
echo "sensor set acceleration 0:9:0"
} | nc localhost 5554
sleep 0.1
{
echo "auth $(cat ~/.emulator_console_auth_token)"
echo "sensor set acceleration 0:13:0"
} | nc localhost 5554
sleep 0.1
done 메타데이터
- post_id
- fead2b7f08c2
- slug
- avd-android-步數模擬-fead2b7f08c2
- url
- https://medium.com/@goescat/avd-android-%E6%AD%A5%E6%95%B8%E6%A8%A1%E6%93%AC-fead2b7f08c2
- canonical_url
- https://medium.com/@goescat/avd-android-%E6%AD%A5%E6%95%B8%E6%A8%A1%E6%93%AC-fead2b7f08c2
- author_url
- https://medium.com/@goescat
- status
- ok
- fetched_at
- 2026-07-17 17:24:50