Last active
September 10, 2020 08:38
-
-
Save CokePokes/d50384a053478b7ac3564d121b8907d1 to your computer and use it in GitHub Desktop.
How to use letsdowngrade
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface letsdowngrade : NSObject | |
- (id)init; | |
- (void)performAppInstallFromBundleId:(NSString*)bundleID externalIdentifier:(NSString*)externalIdentifier promptDeletion:(BOOL)prompt; | |
@end | |
How to use in tweak: | |
void *handle = dlopen("/Library/MobileSubstrate/DynamicLibraries/letsdowngrade.dylib", RTLD_NOW); | |
if (!handle){ | |
letsdowngrade *letsdowngrade = [[NSClassFromString(@"letsdowngrade") alloc] init]; | |
[letsdowngrade performAppInstallFromBundleId:@"com.burbn.instagram" externalIdentifier:@"837506065" promptDeletion:NO]; | |
} | |
dlclose(handle); | |
Note: if you use promptDeletion, downgrade will only proceed if the app is deleted by the user. | |
Also, you can find externalIdentifiers here: https://mixrank.com/appstore/apps/389801252/versions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment