Skip to content
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

dvt: Add memory limit waiver for pid #1315

Merged
merged 1 commit into from
Dec 27, 2024

Conversation

kvs-coder
Copy link
Contributor

@kvs-coder kvs-coder commented Dec 20, 2024

iOS provides strict limits regarding memory usage (especially for extensions).

There is a method - (NSNumber *)requestDisableMemoryLimitsForPid:(int)arg1; of header file DTProcessControlServiceAuthorizedMethods.h which sounded promising to utilize

By sending a message call to invoke that method, the iOS responds with either 0 (false) or 1 (true) if memory limit disabling request was declined or satisfied respectively

Full command to test:

pymobiledevice3 developer dvt memlimitoff <PID> --rsd <IPV6-ADDRESS> <RSD-PORT>

Expected command output:

true

OR

false

Copy link
Owner

@doronz88 doronz88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your PR! It'll be a very nice feature to have :)).
Please view the submitted notes

@doronz88 doronz88 changed the title Add memory limit waiver for pid dvt: Add memory limit waiver for pid Dec 27, 2024
@doronz88 doronz88 merged commit 3d13553 into doronz88:master Dec 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants