Fixes virtual mouse, XVA entitlement (iOS 14)

Fixes virtual mouse not working when enabled from Preferences.
Added Extended Virtual Addressing Entitlement.
This commit is contained in:
khanhduytran0 committed 2022-02-25 06:58:07 +07:00
1 parent 9ee414a4b0
commit 147ac079be
2 files changed
+4 -1

No files matched your search

+2 -1
View File
@@ -220,9 +220,10 @@ const void * _CGDataProviderGetBytePointerCallbackOSMESA(void *info) {
}
// Virtual mouse
virtualMouseEnabled = [getPreference(@"virtmouse_enable") boolValue];
virtualMouseFrame = CGRectMake(screenBounds.size.width / 2, screenBounds.size.height / 2, 18, 27);
self.mousePointerView = [[UIImageView alloc] initWithFrame:virtualMouseFrame];
self.mousePointerView.hidden = ![getPreference(@"virtmouse_enable") boolValue];
self.mousePointerView.hidden = !virtualMouseEnabled;
self.mousePointerView.image = [UIImage imageNamed:@"mouse_pointer.png"];
self.mousePointerView.userInteractionEnabled = NO;
[self.view addSubview:self.mousePointerView];
+2
View File
@@ -1,6 +1,8 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.kernel.extended-virtual-addressing</key>
<true/>
<key>com.apple.private.security.container-required</key>
<true/>
<key>com.apple.security.exception.files.absolute-path.read-write</key>