├── .gitattributes ├── .gitignore ├── LICENSE ├── Makefile ├── ReplayKitMax.plist ├── Tweak.x └── layout └── DEBIAN ├── control ├── postinst └── postrm /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .theos 2 | packages 3 | .DS_Store 4 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2021 - 2023 PoomSmart 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | TARGET = iphone:clang:latest:9.0 2 | PACKAGE_VERSION = 1.0.1 3 | 4 | include $(THEOS)/makefiles/common.mk 5 | 6 | TWEAK_NAME = ReplayKitMax 7 | 8 | $(TWEAK_NAME)_FILES = Tweak.x 9 | $(TWEAK_NAME)_CFLAGS = -fobjc-arc 10 | 11 | include $(THEOS_MAKE_PATH)/tweak.mk 12 | -------------------------------------------------------------------------------- /ReplayKitMax.plist: -------------------------------------------------------------------------------- 1 | { Filter = { Executables = ( "replayd" ); }; } 2 | -------------------------------------------------------------------------------- /Tweak.x: -------------------------------------------------------------------------------- 1 | #import 2 | 3 | // Future plan: Make it records in 120 FPS for devices that support it 4 | 5 | // BOOL canAddInput = YES; 6 | 7 | // @interface RPMovieWriter : NSObject 8 | // @property (retain, nonatomic) AVAssetWriter *assetWriter; 9 | // @property (retain, nonatomic) AVAssetWriterInput *videoInput; 10 | // @end 11 | 12 | // %hook AVAssetWriter 13 | 14 | // - (void)addInput:(id)input { 15 | // if (!canAddInput && [input isKindOfClass:[AVAssetWriterInput class]]) return; 16 | // %orig; 17 | // } 18 | 19 | // %end 20 | 21 | // %hook RPMovieWriter 22 | 23 | // - (void)setUpAssetWriter { 24 | // - (void)setUpAssetWriterWithHandler:(id)handler { 25 | // canAddInput = NO; 26 | // %orig; 27 | // NSDictionary *originalOutputSettings = self.videoInput.outputSettings; 28 | // if (originalOutputSettings) { 29 | // NSMutableDictionary *outputSettings = originalOutputSettings.mutableCopy; 30 | // NSMutableDictionary *compressionSettings = outputSettings[AVVideoCompressionPropertiesKey]; 31 | // [compressionSettings removeObjectForKey:AVVideoAverageBitRateKey]; 32 | // compressionSettings[AVVideoExpectedSourceFrameRateKey] = @(120); 33 | // compressionSettings[AVVideoMaxKeyFrameIntervalKey] = @(120); 34 | // self.videoInput = [AVAssetWriterInput assetWriterInputWithMediaType:AVMediaTypeVideo outputSettings:outputSettings]; 35 | // canAddInput = YES; 36 | // [self.assetWriter addInput:self.videoInput]; 37 | // } else 38 | // canAddInput = YES; 39 | // } 40 | 41 | // %end 42 | 43 | // iOS 14+ 44 | %hook RPHardwareUtility 45 | 46 | // Cap: 1920x1920 47 | + (CGSize)limitRecordingWindowSizeFromSize:(CGSize)size { 48 | return size; 49 | } 50 | 51 | %end 52 | 53 | // iOS 10 - 13 54 | %hook RPRecordingSession 55 | 56 | // Cap (iOS 10): 1600x1600 57 | // Cap (iOS 11 - 13): 1920x1920 58 | - (CGSize)_maximumSizeWithSize:(CGSize)size { 59 | return size; 60 | } 61 | 62 | %end 63 | 64 | // iOS 9 65 | %hook RPRecordingManager 66 | 67 | // Cap: 1600x1600 68 | - (CGSize)maximumSizeWithSize:(CGSize)size { 69 | return size; 70 | } 71 | 72 | %end 73 | -------------------------------------------------------------------------------- /layout/DEBIAN/control: -------------------------------------------------------------------------------- 1 | Package: com.ps.replaykitmax 2 | Name: ReplayKit Max 3 | Version: 1.0.0 4 | Architecture: iphoneos-arm 5 | Description: Record screen without resolution cap. 6 | Maintainer: PoomSmart 7 | Author: PoomSmart 8 | Section: Tweaks 9 | Depends: mobilesubstrate (>= 0.9.5000), firmware (>= 9.0) 10 | Depiction: https://poomsmart.github.io/repo/depictions/replaykitmax.html 11 | SileoDepiction: https://poomsmart.github.io/repo/sileodepictions/replaykitmax.json 12 | -------------------------------------------------------------------------------- /layout/DEBIAN/postinst: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | killall -9 replayd || true -------------------------------------------------------------------------------- /layout/DEBIAN/postrm: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | killall -9 replayd || true --------------------------------------------------------------------------------