# allmap **Repository Path**: ayucloud/allmap ## Basic Information - **Project Name**: allmap - **Description**: 基于Portal实现的Xposed模拟位置 - **Primary Language**: Java - **License**: CC-BY-SA-4.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 7 - **Forks**: 5 - **Created**: 2026-04-26 - **Last Updated**: 2026-07-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # AllMap A powerful Android Xposed module for simulating location information and related sensor data. ## Features ### Location Simulation - **GPS Location Simulation** - Supports multiple positioning methods including GPS, network, and fused positioning - **Route Simulation** - Supports automatic walking along predefined routes - **Location Offset** - Provides random jittering of location coordinates - **Multi-Provider Support** - Compatible with major vendor location services (MIUI, OPPO, Tencent, AutoNavi, Baidu, etc.) ### Sensor Simulation - **Step Counter Sensor** - Simulates pedometer and gait detection - **GNSS Raw Data** - Simulates GNSS measurements and navigation messages - **NMEA Data** - Generates standard NMEA 0183 protocol data (GGA, RMC, GSA, GSV, VTG, etc.) ### Phone Information Simulation - Base station information simulation - Phone number spoofing ### WiFi Information Simulation - WiFi service simulation ### Advanced Features - Hide simulation markers - Bypass app detection - Remote control support - Security check mechanism ## Directory Structure ``` moe/ ├── microbios/ │ └── nmea/ # NMEA protocol processing │ ├── NMEA.java │ └── NmeaValue.java ├── xposed/ │ ├── BaseDivineService.java │ ├── BaseLocationHook.java │ ├── FakeLocation.java │ ├── RemoteCommandHandler.java │ ├── dobby/ # Dobby utility │ ├── hooks/ # Xposed Hooks │ │ ├── BasicLocationHook.java │ │ ├── GnssMeasurementsHook.java │ │ ├── LocationManagerHook.java │ │ ├── LocationServiceHook.java │ │ ├── blindhook/ # Blind hook implementation │ │ ├── fused/ # Fused location │ │ ├── gnss/ # GNSS hooks │ │ ├── miui/ # MIUI-specific │ │ ├── nmea/ # NMEA hooks │ │ ├── oplus/ # OPPO-specific │ │ ├── provider/ # Location providers │ │ ├── sensor/ # Sensor hooks │ │ ├── telephony/ # Telephony hooks │ │ └── wlan/ # WiFi hooks │ ├── injector/ # Injector │ └── utils/ # Utility classes │ ├── BinderUtils.java │ ├── Callback.java │ ├── FakeLoc.java │ ├── HiddenApiBypassUtil.java │ ├── Logger.java │ ├── SecurityCheck.java │ └── Xposed.java ``` ## Technical Principles AllMap intercepts and forges location information by hooking Android system services via the Xposed framework: 1. **Location Manager Interception** - Intercept calls to the LocationManager service 2. **Location Listener Hook** - Intercept location update callbacks 3. **Sensor Manager Hook** - Simulate sensor data such as step counts 4. **NMEA Data Generation** - Generate standard-compliant NMEA sentences ## Usage Instructions ### Installation Requirements - Rooted Android device - Xposed framework installed - Target app has granted location spoofing permissions ### Configuration Options AllMap provides extensive configuration options: | Option | Description | |--------|-------------| | `enable` | Enable/disable location simulation | | `routeEnable` | Enable route simulation | | `enableMockGnss` | Simulate GNSS raw data | | `enableMockWifi` | Simulate WiFi information | | `enableNMEA` | Enable NMEA data output | | `hideMock` | Hide simulation markers | | `minSatellites` | Minimum number of satellites | | `randomFloatAmplitude` | Amplitude of location jitter | ### Route Simulation Supports defining walking routes via coordinate arrays: ```java // Set route coordinates [latitude, longitude, latitude, longitude, ...] double[] coords = {39.9042, 116.4074, 39.9142, 116.4174, ...}; FakeLoc.startRoute(coords, 5.0, 0.0, true); // Speed 5m/s, altitude 0, loop playback ``` ## Related Documentation - [Git Commit Guidelines](./.trae/rules/git-commit-message.md) ## Acknowledgments The development of this software has benefited from the following open source projects and technologies. We express our gratitude: - **GoGoGo** - Provides partial core functionality implementation - **Portal** - Provides key XP framework technical support - **HideMockLocation** - Enhances hidden mock location support - **AutoNavi Map SDK** - Provides location service capabilities - **All other open source projects and developers who have contributed to this software** This software respects and complies with the license terms of all open source projects used. ## License [LICENSE](./LICENSE)