oxFaceAndroid
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
733 B

#!/bin/bash
# 触发系统启动测试脚本
echo "=== 触发系统启动测试 ==="
# 启动应用
echo "1. 启动应用..."
adb shell am start -n com.ouxuan.oxface.debug/com.ouxuan.oxface.MainActivity
sleep 3
# 检查应用进程
echo "2. 检查应用进程..."
adb shell ps | grep oxface
# 清除日志
echo "3. 清除日志..."
adb logcat -c
# 手动触发BootReceiver(这通常会失败,因为权限问题)
echo "4. 尝试触发系统启动事件..."
adb shell am broadcast -a android.intent.action.BOOT_COMPLETED -p com.ouxuan.oxface.debug
sleep 3
# 查看日志
echo "5. 查看相关日志..."
adb logcat -d | grep -E "(BootReceiver|AutoStartManager|ShellCommandManager)" | tail -20
echo "=== 测试完成 ==="