android log SharedPreference update
This commit is contained in:
parent
7e3bde9518
commit
3e67a68b54
19
README.md
19
README.md
@ -35,6 +35,7 @@
|
|||||||
* [`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)
|
||||||
* [`Bypass FLAG_SECURE`](#bypass-flag_secure)
|
* [`Bypass FLAG_SECURE`](#bypass-flag_secure)
|
||||||
|
* [`Shared Preferences update`](#shared-preferences-update)
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
@ -1013,6 +1014,24 @@ https://stackoverflow.com/a/54818023/2655092
|
|||||||
|
|
||||||
<br>[⬆ Back to top](#table-of-contents)
|
<br>[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
|
#### Shared Preferences update
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
function notifyNewSharedPreference() {
|
||||||
|
Java.use('android.app.SharedPreferencesImpl$EditorImpl').putString.overload('java.lang.String', 'java.lang.String').implementation = function(k, v) {
|
||||||
|
console.log('[SharedPreferencesImpl]', k, '=', v);
|
||||||
|
return this.putString(k, v);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Output example</summary>
|
||||||
|
TODO
|
||||||
|
</details>
|
||||||
|
|
||||||
|
<br>[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
|
|
||||||
#### iOS alert box
|
#### iOS alert box
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user