Coder Social home page Coder Social logo

motionemulator's Introduction

MotionEmulator

English Version | 中文文档

Motion Emulator is an Xposed module that allows you to mock location and sensor data, but in a continuous manner.

Scenarios

Trick your fitness app or your favourite game. Make you king of the world

Usage

  • Pick up your phone and turn on the motion recorder
  • Take a one-hundred-meter speed run and press STOP
  • Draw the path you desire to be running on
  • Set velocity and repeat count
  • Make more time

Adding salt

Now for each emulation, the path to run on is exactly the same

To reverse the behavior to make it not so sus

  • Turn to the Manage page and navigate to the trace
  • Add some Random Factor, saying x
  • Add some salt, like Rotation
  • Expand the salt you've just added, and put in some mathematics expression involving x as you like

Note: knowledge of linear algebra may be needed

For users whose targeting location is in China mainland

Due to mapping restrictions, ensure that coordinate system of the pending trace in Manage -> Trace page is set to GCJ02

If you are curious, go ahead to Restrictions on geographic data in China

Build Instructions

Build and maintain this project with Android Studio or Intellij IDEA.

This app contains sdk from Amap and Google Maps, thus api keys are required. Obtain them from here and here

echo amap.web.key="<Your Key>" >> local.properties
echo AMAP_SDK_KEY="<Your Key>" >> local.properties
echo GCP_MAPS_KEY="<Your Key>" >> local.properties

By the way, in case you are not familiar with Android dev, fill in your own SDK like so:

echo sdk.dir=<Your SDK Full Path> >> local.properties

License

Copyright 2022-2023 zhufucdev

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Special Thanks

motionemulator's People

Contributors

zhufucdev avatar yinsel avatar 1582421598 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.