From 3e67a68b5403ca4ffffb8397e8e5491715dc8539 Mon Sep 17 00:00:00 2001 From: iddoeldor Date: Sun, 17 Mar 2019 16:53:56 +0200 Subject: [PATCH] android log SharedPreference update --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index e43edea..920009d 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,7 @@ * [`Hooking Unity3d`](https://github.com/iddoeldor/mplus) * [`Get Android ID`](#get-android-id) * [`Bypass FLAG_SECURE`](#bypass-flag_secure) +* [`Shared Preferences update`](#shared-preferences-update)
@@ -1013,6 +1014,24 @@ https://stackoverflow.com/a/54818023/2655092
[⬆ 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); + } +} +``` + +
+Output example +TODO +
+ +
[⬆ Back to top](#table-of-contents) + #### iOS alert box