mirror of
https://github.com/faroukbmiled/RyukGram.git
synced 2026-07-12 15:46:33 +02:00
[release] RyukGram v1.2.2
- Profile Analyzer (beta) — follower/following scans with mutuals, non-followbacks, new/lost trackers, and profile change history; searchable lists with batch follow/unfollow - Theme settings — force dark mode, Full OLED, OLED chat theme, and keyboard theme picker - Confirm story like - Confirm story emoji reaction - Swipe down to dismiss media viewer - Manually add users to story/chat exclusion lists by username - Keep stories visually seen locally - Auto-scroll reels mode - Quality picker: audio-only and raw photo download rows - Clear cache button with optional auto-clear interval - Spanish, Russian, Korean, Arabic, and Chinese (Traditional) translations - About page with version, credits, and links - Release notes popup on first launch of a new version - Anonymous live viewing - Toggle live comments - Disappearing DM media overlay — action button, mark-as-viewed eye, and audio toggle - Hide RyukGram UI on screenshots, screen recordings, and mirroring - Open link from clipboard — long-press the search tab - Messages-only mode: optional "Hide tab bar" sub-toggle - Fake profile stats — verified badge and follower/following/post counts on your own profile - Language switcher + import/export localization from Debug - Reveal poll/slider vote counts and quiz answers on stories and reels before interacting - Force legacy Quiz sticker back into the story composer tray - Advanced experimental features menu — toggle hidden IG experiments (QuickSnap, Homecoming, Prism, Direct Notes reply types) with apply-on-restart batching and a crash-loop auto-reset - Shortcut to Advanced experimental features from the General experimental features section - Push notifications render with rich previews on sideload again - IG 426 compatibility across story audio toggle, like confirmation, seen-on-like, live comments, notes audio download - Call confirm split into separate voice-call and video-call toggles - Messages-only mode: tab swiping disabled - Settings quick-access broken in non-English languages - Story seen-receipt block restored on IG v426 - Block selected mode no longer marks listed stories as seen - Hide explore posts grid works again on recent IG versions - Hide suggested stories no longer breaks profile highlights - Hide trending searches now also hides the category chip bar - Story eye long-press menu opens next to the button - Disable video autoplay: tap-to-play now works on videos inside carousels - Disable vanish mode swipe fixed on IG 426 - "Confirm shh mode" renamed to "Confirm vanish mode" across all languages - Confirm sticker interaction split into separate story and highlight toggles - Shared link embed presets: added eeinstagram.com and vxinstagram.com - Downloaded media filenames follow `@username_context_timestamp` - Reels pause mode: optional tap-to-mute on photo reels - Backup & Restore — scope picker with live preview for Settings / Excluded lists / Analyzer data - Profile Analyzer: filter by Not verified - Settings header: tap to open a sheet with GitHub and Telegram channel links - Thanks to Furamako for the Spanish translation - Thanks to [ZomkaDEV](https://github.com/ZomkaDEV) for the Russian translation - Thanks to [@ch1tmdgus](https://github.com/ch1tmdgus) (N4C) for the Korean translation - Thanks to [@bruuhim](https://github.com/bruuhim) for the Arabic translation - Thanks to [@jaydenjcpy](https://github.com/jaydenjcpy) for the Chinese (Traditional) translation - Thanks to [@darthplagueiswise](https://github.com/darthplagueiswise) (Radan) for the experimental flag feature set - Thanks to [@asdfzxcvbn](https://github.com/asdfzxcvbn) for [zxPluginsInject](https://github.com/asdfzxcvbn/zxPluginsInject) and [ipapatch](https://github.com/asdfzxcvbn/ipapatch) - Preserved unsent messages can't be removed via "Delete for you"; pull-to-refresh clears them (warning available in settings) - "Delete for you" detection uses a ~2s window after the local action — a real unsend landing in that window may be missed (rare) - With Liquid Glass buttons + Hide UI on capture both on, the DM eye leaves an empty glass bubble in captures
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
TARGET := iphone:clang:16.2:14.0
|
||||
ARCHS := arm64
|
||||
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
|
||||
TWEAK_NAME := zxPluginsInject
|
||||
|
||||
$(TWEAK_NAME)_FILES := $(shell find src -type f -name "*.*m") ../fishhook/fishhook.c
|
||||
$(TWEAK_NAME)_CFLAGS := -fobjc-arc -Os
|
||||
$(TWEAK_NAME)_LOGOS_DEFAULT_GENERATOR := internal
|
||||
|
||||
include $(THEOS_MAKE_PATH)/tweak.mk
|
||||
@@ -0,0 +1,15 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
extern NSString *accessGroupId;
|
||||
extern NSString *bundleId;
|
||||
|
||||
extern void rebindSecFuncs();
|
||||
|
||||
extern BOOL createDirectoryIfNotExists(NSString *path);
|
||||
extern NSURL *getAppGroupPathIfExists();
|
||||
|
||||
@interface LSBundleProxy: NSObject
|
||||
@property(nonatomic, assign, readonly) NSDictionary *entitlements;
|
||||
@property(nonatomic, assign, readonly) NSDictionary *groupContainerURLs;
|
||||
+ (instancetype)bundleProxyForCurrentProcess;
|
||||
@end
|
||||
@@ -0,0 +1,38 @@
|
||||
#import <objc/runtime.h>
|
||||
|
||||
#import "Header.h"
|
||||
|
||||
BOOL createDirectoryIfNotExists(NSString *path) {
|
||||
NSFileManager *fileManager = [NSFileManager defaultManager];
|
||||
if ([fileManager fileExistsAtPath:path]) return YES;
|
||||
|
||||
NSError *error = nil;
|
||||
[fileManager createDirectoryAtPath:path
|
||||
withIntermediateDirectories:YES
|
||||
attributes:nil
|
||||
error:&error];
|
||||
return error == nil;
|
||||
}
|
||||
|
||||
NSURL *getAppGroupPathIfExists() {
|
||||
static NSURL *cachedAppGroupPath = nil;
|
||||
static dispatch_once_t onceToken;
|
||||
|
||||
dispatch_once(&onceToken, ^{
|
||||
LSBundleProxy *bundleProxy = [objc_getClass("LSBundleProxy") bundleProxyForCurrentProcess];
|
||||
if (!bundleProxy) return;
|
||||
|
||||
NSDictionary *entitlements = bundleProxy.entitlements;
|
||||
if (![entitlements isKindOfClass:[NSDictionary class]]) return;
|
||||
|
||||
NSArray *appGroups = entitlements[@"com.apple.security.application-groups"];
|
||||
if (appGroups.count == 0) return;
|
||||
|
||||
NSDictionary *appGroupsPaths = bundleProxy.groupContainerURLs;
|
||||
if (![appGroupsPaths isKindOfClass:[NSDictionary class]]) return;
|
||||
|
||||
cachedAppGroupPath = appGroupsPaths[[appGroups firstObject]];
|
||||
});
|
||||
|
||||
return cachedAppGroupPath;
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
#import <Security/Security.h>
|
||||
|
||||
#import "Header.h"
|
||||
#import "../../fishhook/fishhook.h"
|
||||
|
||||
static OSStatus (*origSecItemAdd)(CFDictionaryRef attributes, CFTypeRef *result);
|
||||
static OSStatus (*origSecItemCopyMatching)(CFDictionaryRef query, CFTypeRef *result);
|
||||
static OSStatus (*origSecItemUpdate)(CFDictionaryRef query, CFDictionaryRef attributesToUpdate);
|
||||
static OSStatus (*origSecItemDelete)(CFDictionaryRef query);
|
||||
|
||||
static OSStatus zxSecItemAdd(CFDictionaryRef attributes, CFTypeRef *result) {
|
||||
NSMutableDictionary *mutableAttributes = [(__bridge NSDictionary *)attributes mutableCopy];
|
||||
mutableAttributes[(__bridge NSString *)kSecAttrAccessGroup] = accessGroupId;
|
||||
return origSecItemAdd((__bridge CFDictionaryRef)mutableAttributes, result);
|
||||
}
|
||||
|
||||
static OSStatus zxSecItemCopyMatching(CFDictionaryRef query, CFTypeRef *result) {
|
||||
NSMutableDictionary *mutableQuery = [(__bridge NSDictionary *)query mutableCopy];
|
||||
mutableQuery[(__bridge NSString *)kSecAttrAccessGroup] = accessGroupId;
|
||||
return origSecItemCopyMatching((__bridge CFDictionaryRef)mutableQuery, result);
|
||||
}
|
||||
|
||||
static OSStatus zxSecItemUpdate(CFDictionaryRef query, CFDictionaryRef attributesToUpdate) {
|
||||
NSMutableDictionary *mutableQuery = [(__bridge NSDictionary *)query mutableCopy];
|
||||
mutableQuery[(__bridge NSString *)kSecAttrAccessGroup] = accessGroupId;
|
||||
return origSecItemUpdate((__bridge CFDictionaryRef)mutableQuery, attributesToUpdate);
|
||||
}
|
||||
|
||||
static OSStatus zxSecItemDelete(CFDictionaryRef query) {
|
||||
NSMutableDictionary *mutableQuery = [(__bridge NSDictionary *)query mutableCopy];
|
||||
mutableQuery[(__bridge NSString *)kSecAttrAccessGroup] = accessGroupId;
|
||||
return origSecItemDelete((__bridge CFDictionaryRef)mutableQuery);
|
||||
}
|
||||
|
||||
void rebindSecFuncs() {
|
||||
struct rebinding rebinds[4] = {
|
||||
{"SecItemAdd", (void *)zxSecItemAdd, (void **)&origSecItemAdd},
|
||||
{"SecItemCopyMatching", (void *)zxSecItemCopyMatching, (void **)&origSecItemCopyMatching},
|
||||
{"SecItemUpdate", (void *)zxSecItemUpdate, (void **)&origSecItemUpdate},
|
||||
{"SecItemDelete", (void *)zxSecItemDelete, (void **)&origSecItemDelete}
|
||||
};
|
||||
rebind_symbols(rebinds, 4);
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
#import "Header.h"
|
||||
|
||||
%hook CKContainer
|
||||
- (id)_setupWithContainerID:(id)a options:(id)b { return nil; }
|
||||
- (id)_initWithContainerIdentifier:(id)a { return nil; }
|
||||
%end
|
||||
|
||||
%hook CKEntitlements
|
||||
- (id)initWithEntitlementsDict:(NSDictionary *)entitlements {
|
||||
NSMutableDictionary *mutEntitlements = [entitlements mutableCopy];
|
||||
[mutEntitlements removeObjectForKey:@"com.apple.developer.icloud-container-environment"];
|
||||
[mutEntitlements removeObjectForKey:@"com.apple.developer.icloud-services"];
|
||||
return %orig([mutEntitlements copy]);
|
||||
}
|
||||
%end
|
||||
|
||||
%hook NSFileManager
|
||||
- (NSURL *)containerURLForSecurityApplicationGroupIdentifier:(NSString *)groupIdentifier {
|
||||
if (NSURL *ourAppGroupURL = getAppGroupPathIfExists()) {
|
||||
NSURL *fakeAppGroupURL = [ourAppGroupURL URLByAppendingPathComponent:groupIdentifier];
|
||||
createDirectoryIfNotExists(fakeAppGroupURL.path);
|
||||
return fakeAppGroupURL;
|
||||
}
|
||||
|
||||
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
|
||||
NSString *fakePath = [[paths lastObject] stringByAppendingPathComponent:groupIdentifier];
|
||||
createDirectoryIfNotExists(fakePath);
|
||||
return [NSURL fileURLWithPath:fakePath];
|
||||
}
|
||||
%end
|
||||
|
||||
// Scoped to app-extension processes only. Appex needs the suite redirect so
|
||||
// it reads the group.* defaults the main app wrote (rich push previews depend
|
||||
// on it). Applying it in the main process breaks UI-dismiss flag persistence
|
||||
// on IG 423+ (Friends Map "Not now" reappears every launch).
|
||||
static BOOL sciIsAppExtensionProcess(void) {
|
||||
static BOOL cached = NO;
|
||||
static dispatch_once_t token;
|
||||
dispatch_once(&token, ^{
|
||||
cached = ([[NSBundle mainBundle] infoDictionary][@"NSExtension"] != nil);
|
||||
});
|
||||
return cached;
|
||||
}
|
||||
|
||||
%hook NSUserDefaults
|
||||
- (id)_initWithSuiteName:(NSString *)suiteName container:(NSURL *)container {
|
||||
if (!sciIsAppExtensionProcess()) return %orig(suiteName, container);
|
||||
|
||||
NSURL *appGroupURL = getAppGroupPathIfExists();
|
||||
if (!appGroupURL || ![suiteName hasPrefix:@"group"]) return %orig(suiteName, container);
|
||||
|
||||
if (NSURL *customContainerURL = [appGroupURL URLByAppendingPathComponent:suiteName]) {
|
||||
return %orig(suiteName, customContainerURL);
|
||||
}
|
||||
return %orig(suiteName, container);
|
||||
}
|
||||
%end
|
||||
@@ -0,0 +1,29 @@
|
||||
#import "Header.h"
|
||||
|
||||
NSString *accessGroupId;
|
||||
NSString *bundleId;
|
||||
|
||||
static void setRequiredIDs() {
|
||||
NSDictionary *query = @{
|
||||
(__bridge NSString *)kSecClass: (__bridge NSString *)kSecClassGenericPassword,
|
||||
(__bridge NSString *)kSecAttrAccount: @"zxPluginsInjectGenericEntry",
|
||||
(__bridge NSString *)kSecAttrService: @"",
|
||||
(__bridge id)kSecReturnAttributes: (id)kCFBooleanTrue
|
||||
};
|
||||
|
||||
CFDictionaryRef result = nil;
|
||||
OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)query, (CFTypeRef *)&result);
|
||||
if (status == errSecItemNotFound) {
|
||||
status = SecItemAdd((__bridge CFDictionaryRef)query, (CFTypeRef *)&result);
|
||||
}
|
||||
if (status != errSecSuccess) return;
|
||||
|
||||
bundleId = [[NSBundle mainBundle] bundleIdentifier];
|
||||
accessGroupId = [(__bridge NSDictionary *)result objectForKey:(__bridge NSString *)kSecAttrAccessGroup];
|
||||
if (result) CFRelease(result);
|
||||
}
|
||||
|
||||
__attribute__((constructor)) static void init() {
|
||||
setRequiredIDs();
|
||||
rebindSecFuncs();
|
||||
}
|
||||
Reference in New Issue
Block a user