uiautomator dump to /data/local/tmp

This commit is contained in:
LoveSy 2023-12-11 20:32:33 +08:00 committed by John Wu
parent 98861f0b5a
commit d7750b7220

View File

@ -150,10 +150,13 @@ test_emu() {
# Try to launch LSPosed # Try to launch LSPosed
if [ $api -ge $lsposed_min_api -a $api -le $atd_max_api ]; then if [ $api -ge $lsposed_min_api -a $api -le $atd_max_api ]; then
adb shell rm -f /data/local/tmp/window_dump.xml
adb shell am start -c org.lsposed.manager.LAUNCH_MANAGER com.android.shell/.BugreportWarningActivity adb shell am start -c org.lsposed.manager.LAUNCH_MANAGER com.android.shell/.BugreportWarningActivity
while adb shell '[ ! -f /data/local/tmp/window_dump.xml ]'; do
sleep 10 sleep 10
adb shell uiautomator dump adb shell uiautomator dump /data/local/tmp/window_dump.xml
adb shell grep -q org.lsposed.manager /sdcard/window_dump.xml done
adb shell grep -q org.lsposed.manager /data/local/tmp/window_dump.xml
fi fi
} }