change gps android

This commit is contained in:
iddoeldor 2019-07-18 12:05:39 +03:00 committed by GitHub
parent 3cff0e9346
commit 677037b450
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,7 @@
* [`Trace class`](#trace-class) * [`Trace class`](#trace-class)
* [`Hooking Unity3d`](https://github.com/iddoeldor/mplus) * [`Hooking Unity3d`](https://github.com/iddoeldor/mplus)
* [`Get Android ID`](#get-android-id) * [`Get Android ID`](#get-android-id)
* [`Change location`](#change-location)
* [`Bypass FLAG_SECURE`](#bypass-flag_secure) * [`Bypass FLAG_SECURE`](#bypass-flag_secure)
* [`Shared Preferences update`](#shared-preferences-update) * [`Shared Preferences update`](#shared-preferences-update)
* [`Hook all method overloads`](#hook-overloads) * [`Hook all method overloads`](#hook-overloads)
@ -1226,6 +1227,30 @@ https://stackoverflow.com/a/54818023/2655092
<br>[⬆ Back to top](#table-of-contents) <br>[⬆ 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;
}
})
```
<details>
<summary>Output example</summary>
TODO
</details>
<br>[⬆ Back to top](#table-of-contents)
#### Bypass FLAG_SECURE #### 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) 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)