import frida

dm = frida.get_device_manager()
dev = dm.add_remote_device("127.0.0.1:27042")
print("Device:", dev.name, dev.id)
apps = dev.enumerate_applications()
print("Total apps:", len(apps))
for a in apps:
    if a.identifier:
        print(f"{a.identifier}\t{a.name}")
