From 0570f2cd5bf154c4accc18be7be45c00e8616448 Mon Sep 17 00:00:00 2001 From: Cameron Bates Date: Mon, 13 Sep 2021 17:11:53 -0400 Subject: [PATCH] [AltServer] Include `ALTDeviceID` on install of apps (#822) * Add ALTDeviceID to plist file on install * Only add if deviceid key is present Co-authored-by: Cameron Bates --- AltServer/Devices/ALTDeviceManager+Installation.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AltServer/Devices/ALTDeviceManager+Installation.swift b/AltServer/Devices/ALTDeviceManager+Installation.swift index 6d15b93c..e2c931b2 100644 --- a/AltServer/Devices/ALTDeviceManager+Installation.swift +++ b/AltServer/Devices/ALTDeviceManager+Installation.swift @@ -761,6 +761,10 @@ To prevent this from happening, feel free to try again with another Apple ID. infoDictionary[kCFBundleIdentifierKey as String] = profile.bundleIdentifier infoDictionary[Bundle.Info.altBundleID] = identifier + + if (infoDictionary.keys.contains(Bundle.Info.deviceID)) { + infoDictionary[Bundle.Info.deviceID] = device.identifier + } for (key, value) in additionalInfoDictionaryValues {