change gps android
This commit is contained in:
parent
3cff0e9346
commit
677037b450
25
README.md
25
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
|
||||
<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 screenshot prevention [stackoverflow question](https://stackoverflow.com/questions/9822076/how-do-i-prevent-android-taking-a-screenshot-when-my-app-goes-to-the-background)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user