android log SharedPreference update

This commit is contained in:
iddoeldor 2019-03-17 16:53:56 +02:00 committed by GitHub
parent 7e3bde9518
commit 3e67a68b54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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