Skip to content

Commit

Permalink
fix: 简单修复一下mumu保活时多屏幕分辨率错误
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 9, 2024
1 parent 0f95f66 commit b90cbb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/MaaAdbControlUnit/General/DeviceInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ bool DeviceInfo::parse(const json::value& config)
"{ADB}", "-s", "{ADB_SERIAL}", "shell", "settings get secure android_id",
};
static const json::array kDefaultResolutionArgv = {
"{ADB}", "-s", "{ADB_SERIAL}", "shell", "dumpsys window displays | grep DisplayFrames | grep -o -E [0-9]+",
"{ADB}", "-s", "{ADB_SERIAL}", "shell", "dumpsys window displays | grep DisplayFrames | tail -n 1 | grep -o -E [0-9]+",
};
static const json::array kDefaultOrientationArgv = {
"{ADB}", "-s", "{ADB_SERIAL}", "shell", "dumpsys input | grep SurfaceOrientation | grep -m 1 -o -E [0-9]",
"{ADB}", "-s", "{ADB_SERIAL}", "shell", "dumpsys input | grep SurfaceOrientation | tail -n 1 | grep -m 1 -o -E [0-9]",
};

return parse_command("UUID", config, kDefaultUuidArgv, uuid_argv_)
Expand Down

0 comments on commit b90cbb5

Please sign in to comment.