Skip to content

mobdev2 doesn't work when called directly, only in terminal #1514

@eymae

Description

@eymae
  • Windows 11
  • iPhone X 16.5.1

get_mobdev2_lockdowns doesn't return anything when I call it directly. Using mobdev2 command in terminal works fine though. Is there anything else I should be doing before calling the method?

When debugging the method, it finds the same pair records as it does when calling it in shell, but browse_mobdev2 returns nothing.

import asyncio
from pymobiledevice3.lockdown import get_mobdev2_lockdowns

async def mobdev2():
    async for ip, lockdown in get_mobdev2_lockdowns():
        print(ip, lockdown.get_value(key="DeviceName"))
    return None

asyncio.run(mobdev2())
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions