From 677037b450467586fe411f9da7163affa216aae4 Mon Sep 17 00:00:00 2001 From: iddoeldor Date: Thu, 18 Jul 2019 12:05:39 +0300 Subject: [PATCH] change gps android --- README.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/README.md b/README.md index a5dc297..314c940 100644 --- a/README.md +++ b/README.md @@ -38,6 +38,7 @@ * [`Trace class`](#trace-class) * [`Hooking Unity3d`](https://github.com/iddoeldor/mplus) * [`Get Android ID`](#get-android-id) +* [`Change location`](#change-location) * [`Bypass FLAG_SECURE`](#bypass-flag_secure) * [`Shared Preferences update`](#shared-preferences-update) * [`Hook all method overloads`](#hook-overloads) @@ -1226,6 +1227,30 @@ https://stackoverflow.com/a/54818023/2655092
[⬆ Back to top](#table-of-contents) +#### Change location + + +```js +Java.perform(() => { + var Location = Java.use('android.location.Location'); + Location.getLatitude.implementation = function() { + return LATITUDE; + } + Location.getLongitude.implementation = function() { + return LONGITUDE; + } +}) +``` + +
+Output example +TODO +
+ +
[⬆ Back to top](#table-of-contents) + + + #### Bypass FLAG_SECURE Bypass screenshot prevention [stackoverflow question](https://stackoverflow.com/questions/9822076/how-do-i-prevent-android-taking-a-screenshot-when-my-app-goes-to-the-background)