{"id":25532592,"url":"https://github.com/delphiworlds/mockloc","last_synced_at":"2026-01-24T06:41:31.927Z","repository":{"id":111294427,"uuid":"443644282","full_name":"DelphiWorlds/MockLoc","owner":"DelphiWorlds","description":"Delphi app for mocking locations on Android","archived":false,"fork":false,"pushed_at":"2022-01-02T00:19:48.000Z","size":54,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-29T13:53:53.315Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Pascal","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/DelphiWorlds.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"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":"2022-01-01T23:34:42.000Z","updated_at":"2023-04-26T12:56:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"44ee6501-28ba-46c5-b893-3a85a3873a12","html_url":"https://github.com/DelphiWorlds/MockLoc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DelphiWorlds/MockLoc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DelphiWorlds%2FMockLoc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DelphiWorlds%2FMockLoc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DelphiWorlds%2FMockLoc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DelphiWorlds%2FMockLoc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DelphiWorlds","download_url":"https://codeload.github.com/DelphiWorlds/MockLoc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DelphiWorlds%2FMockLoc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28716882,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T05:53:42.649Z","status":"ssl_error","status_checked_at":"2026-01-24T05:53:41.698Z","response_time":89,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-02-20T01:49:42.435Z","updated_at":"2026-01-24T06:41:31.922Z","avatar_url":"https://github.com/DelphiWorlds.png","language":"Pascal","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MockLoc\r\n\r\n## Description\r\n\r\nAn app for mocking locations on Android. **This project is for Delphi 11 (or higher) only**\r\n\r\nDependent on the [Kastri library](https://github.com/DelphiWorlds/Kastri).\r\n\r\nCompatible with [Embarcadero](https://wwww.embarcadero.com) [Delphi](https://www.embarcadero.com/products/delphi)\r\n\r\n## How To Use MockLoc\r\n\r\nPresently, MockLoc uses intent broadcasts only to set mock locations. This is by design, allowing locations to be mocked without operating the app, so the device might have another app in the foreground, or the screen might be locked, and locations can still be mocked.\r\n\r\nTo mock a location, use the [adb command](https://developer.android.com/studio/command-line/adb) from the host computer in this format:\r\n\r\n```\r\nadb [-s serial] shell am broadcast -a ACTION_MOCK_LOCATION --ez ACTIVE true --ef LATITUDE latitude --ef LONGITUDE longitude com.delphiworlds.MockLoc\r\n```\r\n\r\nto set a mock location, or:\r\n\r\n```\r\nadb [-s serial] shell am broadcast -a ACTION_MOCK_LOCATION --ez ACTIVE false\r\n```\r\n\r\nto turn off mocking. The parameters are:\r\n\r\n* `serial` (optional) is the serial number of the device (useful when there is more than one device connected)\r\n* `latitude` is the desired latitude\r\n* `longitude` is the desired longitude\r\n\r\nFor example:\r\n\r\n```\r\nadb shell am broadcast -a ACTION_MOCK_LOCATION --ez ACTIVE true --ef LATITUDE -34.87654 --ef LONGITUDE 138.54321 com.delphiworlds.MockLoc\r\n```\r\n\r\n## Support\r\n\r\n### Issues page\r\n\r\nIf you encounter an issue, or want to make a suggestion, please [visit the issues page](https://github.com/DelphiWorlds/MockLoc/issues) to report it.\r\n\r\n### Slack Channel\r\n\r\nThe Delphi Worlds Slack workspace has a channel (#kastri) devoted to discussing Kastri, however this channel can also be used to discuss Playground topics.\r\n\r\nIf you would like to join the Delphi Worlds Slack workspace, [please visit this self-invite link](https://slack.delphiworlds.com)\r\n\r\n## License\r\n\r\nHow To is licensed under MIT, and the license file is included in this folder.\r\n\r\n![](https://tokei.rs/b1/github/DelphiWorlds/MockLoc)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelphiworlds%2Fmockloc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdelphiworlds%2Fmockloc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdelphiworlds%2Fmockloc/lists"}