{"id":28352266,"url":"https://github.com/arthur87/mdq","last_synced_at":"2026-04-02T23:44:42.855Z","repository":{"id":293938208,"uuid":"985530909","full_name":"arthur87/mdq","owner":"arthur87","description":"MDQ stands for Mobile Device Query and is a command line tool for displaying information about Android and Apple devices.","archived":false,"fork":false,"pushed_at":"2025-06-07T11:15:54.000Z","size":81,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-10-06T23:14:06.801Z","etag":null,"topics":["android","apple","ruby"],"latest_commit_sha":null,"homepage":"https://www.daispot.com","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/arthur87.png","metadata":{"files":{"readme":"README.base.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-18T00:54:31.000Z","updated_at":"2025-06-07T11:09:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"11f72f5a-38fd-4fa6-97da-252308c5b0f1","html_url":"https://github.com/arthur87/mdq","commit_stats":null,"previous_names":["arthur87/mdq"],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/arthur87/mdq","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthur87%2Fmdq","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthur87%2Fmdq/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthur87%2Fmdq/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthur87%2Fmdq/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arthur87","download_url":"https://codeload.github.com/arthur87/mdq/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arthur87%2Fmdq/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279016342,"owners_count":26085829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","apple","ruby"],"created_at":"2025-05-27T23:06:10.674Z","updated_at":"2026-04-02T23:44:42.848Z","avatar_url":"https://github.com/arthur87.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!----------------------------\u003e\n\u003c!-- multilingual suffix: en, ja --\u003e\n\u003c!-- no suffix: en --\u003e\n\u003c!----------------------------\u003e\n\n\u003c!-- $ mmg -y README.base.md --\u003e\n\n# mdq - Mobile Device Query\n\n[![Gem Version](https://badge.fury.io/rb/mdq.svg)](https://badge.fury.io/rb/mdq)\n\nMDQ stands for Mobile Device Query and is a command line tool for displaying information about Android and Apple devices.  \n\n# Usage\n\n## Check\n\nTo fully use MDQ, you need to install ADB and Xcode beforehand.\nCheck the software installation status.\n\n```\n$ mdq check\n```\n\n## Devices\n\nShow mobile devices.\n\n```\n$ mdq devices\n[\n  {\n    \"id\": 1,\n    \"udid\": \"ANDROID_UDID\",\n    \"serial_number\": \"ANDROID_UDID\",\n    \"name\": \"Pixel 7\",\n    \"authorized\": true,\n    \"platform\": \"Android\",\n    \"marketing_name\": null,\n    \"model\": \"Pixel 7\",\n    \"build_version\": \"16\",\n    \"build_id\": \"BP31.250502.008\",\n    \"battery_level\": 88,\n    \"total_disk\": 118015217664,\n    \"used_disk\": 19287748608,\n    \"available_disk\": 98727469056,\n    \"capacity\": 16,\n    \"human_readable_total_disk\": \"109.91 GB\",\n    \"human_readable_used_disk\": \"17.96 GB\",\n    \"human_readable_available_disk\": \"91.95 GB\",\n    \"mac_address\": \"ff:ff:ff:ff:ff:ff\",\n    \"ip_address\": \"192.168.1.1\",\n    \"ipv6_address\": \"IPV6_1,IPV6_2,IPV6_3,IPV6_3\",\n    \"wifi_network\": \"MyNet\"\n  },\n  {\n    \"id\": 2,\n    \"udid\": \"APPLE_UDID\",\n    \"serial_number\": \"XXX\",\n    \"name\": \"iPhone 16 Pro\",\n    \"authorized\": true,\n    \"platform\": \"iOS\",\n    \"marketing_name\": \"iPhone 16 Pro\",\n    \"model\": \"iPhone17,1\",\n    \"build_version\": \"18.4.1\",\n    \"build_id\": \"22E252\",\n    \"battery_level\": null,\n    \"total_disk\": 128000000000,\n    \"used_disk\": null,\n    \"available_disk\": null,\n    \"capacity\": null,\n    \"human_readable_total_disk\": \"128.0 GB\",\n    \"human_readable_used_disk\": null,\n    \"human_readable_available_disk\": null,\n    \"mac_address\": null,\n    \"ip_address\": null,\n    \"ipv6_address\": null,\n    \"wifi_network\": null\n  }\n]\n```\n\n## Apss\n\nShow apps.\n\n```\n$ mdq apps\n```\n\n\n## List\n\nYou can filter using SQL.\n\n```\n$ mdq list -q=\"select * from devices where platform='iOS'\"\n[\n  {\n    \"id\": 1,\n    \"udid\": \"APPLE_UDID\",\n    \"serial_number\": \"XXX\",\n    \"name\": \"iPhone 16 Pro\",\n    \"authorized\": true,\n    \"platform\": \"iOS\",\n    \"marketing_name\": \"iPhone 16 Pro\",\n    \"model\": \"iPhone17,1\",\n    \"build_version\": \"18.4.1\",\n    \"build_id\": \"22E252\",\n    \"battery_level\": null,\n    \"total_disk\": 128000000000,\n    \"used_disk\": null,\n    \"available_disk\": null,\n    \"capacity\": null,\n    \"human_readable_total_disk\": \"128.0 GB\",\n    \"human_readable_used_disk\": null,\n    \"human_readable_available_disk\": null,\n    \"mac_address\": null,\n    \"ip_address\": null,\n    \"ipv6_address\": null,\n    \"wifi_network\": null\n  }\n]\n```\n\nView apps installed on your device.\nApple Devices displays the apps installed with Xcode.\n\n```\n$ mdq list -q='select * from apps'\n```\n\nTake a screenshot on Android.\n\n```\n$ mdq cap -o='/Users/xxxxx/' -u='UDID'\n```\n\nInstall the app.\n\n```\n$ mdq install -i='/Users/xxxxx/example.apk' -u='UDID'\n$ mdq install -i=='/Users/xxxxx/example.ipa' -u='UDID'\n```\n\nUninstall the app.\n\n```\n$ mdq uninstall -i='com.example.app' -u='UDID'\n```\n\n\n\n# Specification\n\nDetails of the devices table.\n\n| name | android | apple devices |\n| -- | -- | -- |\n| udid | Serial number | hardwareProperties.udid |\n| serial_number | Serial number | hardwareProperties.serialNumber |\n| name | device_name | deviceProperties.name | \n| authorized | \"False\" if additional authentication is required. | Always \"True\" |\n| platform | Always \"Android\" | hardwareProperties.platform |\n| marketing_name | Always \"null\" | hardwareProperties.marketingName |\n| model | ro.product.model | hardwareProperties.productType |\n| build_version | ro.build.version.release | deviceProperties.osVersionNumber |\n| build_id | ro.build.id | deviceProperties.osBuildUpdate | \n| battery_level | battery | Always \"null\" |\n| total_disk | df | hardwareProperties.internalStorageCapacity |\n| available_disk | df | Always \"null\" |\n| used_disk | total_disk - total_disk | Always \"null\" |\n| capacity | (used_disk / total_disk) * 100 | Always \"null\" |\n| human_readable_total_disk | total_disk | total_disk |\n| human_readable_available_disk | available_disk | Always \"null\" |\n| human_readable_used_disk | used_disk | Always \"null\" |\n| mac_address | MAC address (may be a random MAC address) | Always \"null\" |\n| ip_address | IPv4 Address | Always \"null\" |\n| ipv6_address | IPv6 Address | Always \"null\" |\n| wifi_network | Wi-Fi Network | Always \"null\" |\n \nDetails of the apps table.\nApple Devices displays the apps installed with Xcode.\n\n| name | android | apple devices |\n| -- | -- | -- |\n| udid | Serial number | hardwareProperties.udid |\n| name | Always \"null\" | name |\n| package_name | Package name | bundleIdentifier |\n| version | Always \"null\" | version |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthur87%2Fmdq","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farthur87%2Fmdq","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farthur87%2Fmdq/lists"}