Fix(iOS 12): fatal issues: dlopen, entitlement

* dlopening the main executable fails
* dlopening dylib fails due to codesign
* Installing PojavLauncher with AppSync causing
extended-virtual-addressing entitlement to be checked improperly

Current issue: it seems that Java 8 is broken on iOS 12
This commit is contained in:
Duy Tran Khanh committed 2023-01-20 21:42:51 +07:00
1 parent a08563ee36
commit fcc7d8b2d4
4 files changed
+18 -11

No files matched your search

+2 -1
View File
@@ -257,7 +257,8 @@ int launchJVM(NSString *username, id launchTarget, int width, int height, int mi
}
margv[++margc] = cacio_classpath.UTF8String;
if (!getEntitlementValue(@"com.apple.developer.kernel.extended-virtual-addressing")) {
if (UIDevice.currentDevice.systemVersion.floatValue < 14 ||
!getEntitlementValue(@"com.apple.developer.kernel.extended-virtual-addressing")) {
// In jailed environment, where extended virtual addressing entitlement isn't
// present (for free dev account), allocating compressed space fails.
// FIXME: does extended VA allow allocating compressed class space?