mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-07-09 17:19:02 +00:00
Revert "fix(mobile-mcp): strip bounds attributes from UI hierarchy dump"
This reverts commit 5be74c99ca.
This commit is contained in:
parent
5be74c99ca
commit
3ef4859e10
1 changed files with 1 additions and 2 deletions
|
|
@ -1247,8 +1247,7 @@ export const createMcpServer = (): McpServer => {
|
|||
{ readOnlyHint: true },
|
||||
async ({ device, compressed, output_path }) => {
|
||||
const robot = getAndroidRobotFromDevice(device, 'mobile_ui_dump');
|
||||
let xml = await robot.dumpUiHierarchy(compressed ?? false);
|
||||
xml = xml.replace(/ bounds="\[[0-9,]+\]\[[0-9,]+\]"/g, '');
|
||||
const xml = await robot.dumpUiHierarchy(compressed ?? false);
|
||||
if (output_path) {
|
||||
validateOutputPath(output_path);
|
||||
fs.writeFileSync(output_path, xml, 'utf-8');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue