Skip to content

Instantly share code, notes, and snippets.

@CokePokes
Last active September 10, 2020 08:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CokePokes/d50384a053478b7ac3564d121b8907d1 to your computer and use it in GitHub Desktop.
Save CokePokes/d50384a053478b7ac3564d121b8907d1 to your computer and use it in GitHub Desktop.
How to use letsdowngrade
@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