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

fix: clear FingerprintResolutionLookupMaps before patching #210

Merged
merged 5 commits into from
Aug 3, 2023
Merged

fix: clear FingerprintResolutionLookupMaps before patching #210

merged 5 commits into from
Aug 3, 2023

Conversation

TheAabedKhan
Copy link
Member

@TheAabedKhan TheAabedKhan commented Aug 3, 2023

Right now, if we abort the patching process after merging integrations, we need to restart the app to start another patching process.

This PR aims to clear the maps from previous patching session so that new session can be started at any time.

Right now, if we abort the patching process after merging integrations, we need to restart the app to start another patching process.

This PR aims to allow clearing the maps from previous patching session so that new session can be started at any time.
@LisoUseInAIKyrios
Copy link
Contributor

Alternatively the patcher can clear the maps in the main patch routine. Then the clear method does not need to be exposed and manager won't need any changes.

@LisoUseInAIKyrios
Copy link
Contributor

Instead:

if (methods.isNotEmpty()) throw PatchResultError("Map already initialized")

Replace that line with clearFingerprintResolutionLookupMaps()

That'll fix the issue

@TheAabedKhan
Copy link
Member Author

Yes. Since the maps needs to be cleared just for patching process for now, this is a good solution.

@TheAabedKhan TheAabedKhan changed the title feat: allow clearing FingerprintResolutionLookupMaps before patching fix: clear FingerprintResolutionLookupMaps before patching Aug 3, 2023
@oSumAtrIX oSumAtrIX merged commit 746544f into ReVanced:dev Aug 3, 2023
1 check passed
@welcome
Copy link

welcome bot commented Aug 3, 2023

Thank you for contributing to ReVanced. Join us on Discord if you want to receive a contributor role.

revanced-bot pushed a commit that referenced this pull request Aug 3, 2023
## [12.1.1-dev.1](v12.1.0...v12.1.1-dev.1) (2023-08-03)

### Bug Fixes

* clear method lookup maps before initializing them ([#210](#210)) ([746544f](746544f))
revanced-bot pushed a commit that referenced this pull request Aug 3, 2023
## [12.1.1](v12.1.0...v12.1.1) (2023-08-03)

### Bug Fixes

* clear method lookup maps before initializing them ([#210](#210)) ([746544f](746544f))
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.

3 participants