Replaces ALTDeviceID Info.plist entry (if it exists) with correct UDID when resigning apps

Allows apps to use AltKit, which needs to know the current device's UDID to communicate with AltServer.
This commit is contained in:
Riley Testut
2021-09-01 16:46:39 -05:00
parent 98135bc5fd
commit 978544ed3f

View File

@@ -190,6 +190,11 @@ private extension ResignAppOperation
// The embedded certificate + certificate identifier are already in app bundle, no need to update them.
}
}
else if infoDictionary.keys.contains(Bundle.Info.deviceID), let udid = Bundle.main.object(forInfoDictionaryKey: Bundle.Info.deviceID) as? String
{
// There is an ALTDeviceID entry, so assume the app is using AltKit and replace it with the device's UDID.
additionalValues[Bundle.Info.deviceID] = udid
}
let iconScale = Int(UIScreen.main.scale)