-
Couldn't load subscription status.
- Fork 10
speedup jailbreak monkey (-700ms) #3289
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| - check = new GreaterThan23(); | ||
| - } else { | ||
| - check = new LessThan23(); | ||
| + Trace.beginSection("[JailMonkey] checkWithJailMonkeyMethod"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is all this tracing logic still needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed
| diff --git a/android/src/main/java/com/gantix/JailMonkey/JailMonkeyModule.java b/android/src/main/java/com/gantix/JailMonkey/JailMonkeyModule.java | ||
| index 018d7051a57a2250c738e018ba8e1518d1b9525a..e89a135c10edc50174315c5cf0a3c9871fe65e6a 100644 | ||
| --- a/android/src/main/java/com/gantix/JailMonkey/JailMonkeyModule.java | ||
| +++ b/android/src/main/java/com/gantix/JailMonkey/JailMonkeyModule.java |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you also drop a quick comment in packages/core-mobile/docs/patches.md about this patch?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Signed-off-by: Szymon Kapała <[email protected]>
Added a note about precomputing constants for jail-monkey checks. Signed-off-by: Szymon Kapała <[email protected]>
Signed-off-by: Szymon Kapała <[email protected]>
Description
Jailmonkey by default computes constants when we need them. The problem is that some operations it does are super slow. So instead we check if phone is rooted on background thread and return the answer right away without blocking anything.
Ticket: [CP-]
Please provide:
Screenshots/Videos
Include relevant screenshots or screen recordings of iOS and Android.
Testing
Dev Testing (if applicable)
QA Testing (if applicable)
Checklist
Please check all that apply (if applicable)