mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-23 18:15:30 +00:00
uiautomator dump to /data/local/tmp
This commit is contained in:
parent
98861f0b5a
commit
d7750b7220
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user