JubeatPlus 3.9.11
Loading...
Searching...
No Matches
ApplilinkUdid Class Reference

Advertising-identifier, UDID-generation, and keychain-persistence helper for the Applilink SDK. More...

#include <ApplilinkUdid.h>

Inheritance diagram for ApplilinkUdid:
Collaboration diagram for ApplilinkUdid:

Instance Methods

(nullable NSString *) - bundleSeedID
 The keychain bundle-seed identifier, read from a keychain access group.

Class Methods

(instancetype) + sharedInstance
 The lazily-created shared singleton.
(nullable NSDictionary *) + writeUDIDForFirstEmptyLocationWithError:
 Writes a freshly generated UDID into the first empty pasteboard slot.
(nullable NSDictionary *) + writeUDIDForFirstEmptyLocationWithUdid:
 Writes the given UDID into the first empty pasteboard slot.
(nullable NSDictionary *) + writeUDIDWithUdid:
 Replaces the pasteboard's slot 0 UDID with the given value.
(nullable NSDictionary *) + udidWithServiceName:storageIndex:error:
 The pasteboard UDID for a service name and storage index.
(nullable NSDictionary *) + udidForFirstInvalidDataWithError:
 The first stored (potentially invalid) pasteboard UDID.
(nullable NSDictionary *) + udidOldForFirstInvalidDataWithError:
 The first stored (potentially invalid) old pasteboard UDID.
(BOOL) + deleteUDIDWithServiceName:storageIndex:error:
 Deletes the pasteboard UDID for a service name and storage index.
(void) + deleteAllUDID
 Deletes every stored pasteboard UDID, current and old.
(nullable NSString *) + getAdvertisingRewardUdidWithError:
 The stored advertising reward UDID, refreshing it from the keychain.
(nullable NSString *) + createAdvertisingRewardUdidWithError:
 Generates, hashes, and persists a fresh advertising reward UDID.
(BOOL) + deleteAdvertisingRewardUdidIndex:error:
 Deletes the advertising reward UDID at a keychain index.
(void) + deleteAllAdvertisingUDID
 Deletes every advertising reward UDID keychain entry.
(BOOL) + setOldUdid:error:
 Stores the old UDID in the keychain under the old service name.
(nullable NSString *) + getOldUdidWithError:
 Reads the old UDID from the keychain.
(BOOL) + deleteOldUdidWithError:
 Deletes the old UDID keychain entry.
(BOOL) + setNewUdid:error:
 Stores the new UDID in the keychain and the SDK core, keyed by the stored ad storage index.
(BOOL) + setUdidWithService:withUDID:
 Adds or updates a keychain generic-password item storing a UDID under a service key.
(nullable NSString *) + getUdidWithService:storageIndex:rewardNetworkUDIDType:error:
 Reads and validates a keychain UDID, updating its modification date on read.
(nullable NSDictionary *) + searchWithService:
 Looks up a single keychain generic-password item by service key.
(BOOL) + deleteKeyChainService:error:
 Deletes a keychain generic-password item by service key.
(BOOL) + validate:error:
 Validates that a keychain attribute dictionary holds a well-formed, live UDID record.
(NSString *) + getServiceIndex:
 The keychain account (storage index) recorded for a service key.
(void) + setService:withStorageIndex:
 Records the account (storage index) for a service key in the keychain.
(NSString *) + getCFUUID
 A freshly minted UUID string.
(nullable NSString *) + getAdvertisingUdid
 The device advertising identifier hashed with MD5, when tracking is available and enabled.
(BOOL) + isAdvertisingTrackingEnabled
 Whether the user permits advertising tracking on this device.
(BOOL) + isAdvertisingTrackingOSVersion
 Whether the operating-system version exposes the advertising identifier framework.
(nullable NSString *) + md5WithString:
 The lowercase hex MD5 digest of a string's UTF-8 bytes.
(BOOL) + setUdidParameters:isUDIDPriorityType:
 Attaches the resolved UDIDs to a request parameter dictionary, honouring the priority type.
(BOOL) + setUdidParameters:
 Attaches the primary UDID to a request parameter dictionary.
(BOOL) + isUdidThreeKinds
 Whether the ad, current, and old UDIDs are three distinct values.
(BOOL) + isUdidSDKPasteBoard
 Whether the current UDID differs from the SDK pasteboard UDID.
(NSString *) + getServiceName
 The keychain service name for advertising UDIDs, prefixed with the server environment.
(NSString *) + getServiceNameOld
 The keychain service name for old UDIDs, prefixed with the server environment.
(void) + setUdidKeychainFromPasteBoard
 Copies the pasteboard-stored UDID for the recorded storage index into the keychain.
(BOOL) + isPasteBoardStatus
 Whether the shared pasteboard reports the non-pasteboard UDID flag.
(nullable NSString *) + getAdUdid
 The device advertising identifier UUID string, resolved by name at runtime.
(void) + debugLog
 Logs the pasteboard and SDK-core UDID state when the debug environment default is set.

Properties

ApplilinkPasteBoard * pasteBoard
 The shared ApplilinkPasteBoard that mirrors the keychain-stored UDIDs.

Detailed Description

Advertising-identifier, UDID-generation, and keychain-persistence helper for the Applilink SDK.

Method Documentation

◆ bundleSeedID

- (NSString *) bundleSeedID

The keychain bundle-seed identifier, read from a keychain access group.

Returns
The bundle-seed identifier, or nil.
Ghidra address:
0x260db0
Ghidra address:
0x260db0

◆ createAdvertisingRewardUdidWithError:

+ (nullable NSString *) createAdvertisingRewardUdidWithError: (NSError *_Nullable *_Nullable) error

Generates, hashes, and persists a fresh advertising reward UDID.

Parameters
errorSet to a localised error on failure.
Returns
The new advertising reward UDID, or nil.
Ghidra address:
0x25e804

◆ debugLog

+ (void) debugLog

Logs the pasteboard and SDK-core UDID state when the debug environment default is set.

Ghidra address:
0x260f58

◆ deleteAdvertisingRewardUdidIndex:error:

+ (BOOL) deleteAdvertisingRewardUdidIndex: (int) index
error: (NSError *_Nullable *_Nullable) error 

Deletes the advertising reward UDID at a keychain index.

Parameters
indexThe reward UDID index, which must be below the storage-slot count.
errorSet to a localised error on failure.
Returns
YES when the entry was deleted or absent.
Ghidra address:
0x25ea80

◆ deleteAllAdvertisingUDID

+ (void) deleteAllAdvertisingUDID

Deletes every advertising reward UDID keychain entry.

Ghidra address:
0x25ebb8

◆ deleteAllUDID

+ (void) deleteAllUDID

Deletes every stored pasteboard UDID, current and old.

Ghidra address:
0x25e4cc

◆ deleteKeyChainService:error:

+ (BOOL) deleteKeyChainService: (nullable NSString *) service
error: (NSError *_Nullable *_Nullable) error 

Deletes a keychain generic-password item by service key.

Parameters
serviceThe keychain service key.
errorSet to a localised error on failure.
Returns
YES on success or when the item is absent.
Ghidra address:
0x25f6e4

◆ deleteOldUdidWithError:

+ (BOOL) deleteOldUdidWithError: (NSError *_Nullable *_Nullable) error

Deletes the old UDID keychain entry.

Parameters
errorSet to a localised error on failure.
Returns
YES when the entry was deleted or absent.
Ghidra address:
0x25ed68

◆ deleteUDIDWithServiceName:storageIndex:error:

+ (BOOL) deleteUDIDWithServiceName: (nullable NSString *) serviceName
storageIndex: (int) storageIndex
error: (NSError *_Nullable *_Nullable) error 

Deletes the pasteboard UDID for a service name and storage index.

Parameters
serviceNameThe pasteboard service name.
storageIndexThe storage slot index.
errorSet to a localised error on failure.
Returns
YES when the slot was deleted or absent.
Ghidra address:
0x25e37c

◆ getAdUdid

+ (NSString *) getAdUdid

The device advertising identifier UUID string, resolved by name at runtime.

Returns
The advertising identifier UUID string, or nil.
Ghidra address:
0x260bf4
Ghidra address:
0x260bf4

◆ getAdvertisingRewardUdidWithError:

+ (nullable NSString *) getAdvertisingRewardUdidWithError: (NSError *_Nullable *_Nullable) error

The stored advertising reward UDID, refreshing it from the keychain.

Parameters
errorSet to the keychain error when the read fails.
Returns
The advertising reward UDID, or nil.
Ghidra address:
0x25e6d0

◆ getAdvertisingUdid

+ (NSString *) getAdvertisingUdid

The device advertising identifier hashed with MD5, when tracking is available and enabled.

Returns
The hashed advertising identifier, or nil.
Ghidra address:
0x25fea4
Ghidra address:
0x25fea4

◆ getCFUUID

+ (NSString *) getCFUUID

A freshly minted UUID string.

Returns
A new lowercase-hyphenated UUID string.
Ghidra address:
0x25fe58
Ghidra address:
0x25fe58

◆ getOldUdidWithError:

+ (nullable NSString *) getOldUdidWithError: (NSError *_Nullable *_Nullable) error

Reads the old UDID from the keychain.

Parameters
errorSet to a localised error on failure.
Returns
The old UDID, or nil.
Ghidra address:
0x25ecec

◆ getServiceIndex:

+ (NSString *) getServiceIndex: (nullable NSString *) service

The keychain account (storage index) recorded for a service key.

Parameters
serviceThe keychain service key.
Returns
The stored account string, or "0" when absent.
Ghidra address:
0x25fb34

◆ getServiceName

+ (NSString *) getServiceName

The keychain service name for advertising UDIDs, prefixed with the server environment.

Returns
The advertising service name.
Ghidra address:
0x26077c
Ghidra address:
0x26077c

◆ getServiceNameOld

+ (NSString *) getServiceNameOld

The keychain service name for old UDIDs, prefixed with the server environment.

Returns
The old service name.
Ghidra address:
0x260864
Ghidra address:
0x260864

◆ getUdidWithService:storageIndex:rewardNetworkUDIDType:error:

+ (nullable NSString *) getUdidWithService: (nullable NSString *) service
storageIndex: (nullable NSString *) storageIndex
rewardNetworkUDIDType: (int) rewardNetworkUDIDType
error: (NSError *_Nullable *_Nullable) error 

Reads and validates a keychain UDID, updating its modification date on read.

Parameters
serviceThe keychain service prefix.
storageIndexThe storage index appended to the service key.
rewardNetworkUDIDTypeThe reward-network UDID type selector.
errorSet to a localised error when validation fails.
Returns
The stored UDID from the record's account attribute, or nil.
Ghidra address:
0x25f200

◆ isAdvertisingTrackingEnabled

+ (BOOL) isAdvertisingTrackingEnabled

Whether the user permits advertising tracking on this device.

Returns
YES when advertising tracking is enabled.
Ghidra address:
0x25ff58
Ghidra address:
0x25ff58

◆ isAdvertisingTrackingOSVersion

+ (BOOL) isAdvertisingTrackingOSVersion

Whether the operating-system version exposes the advertising identifier framework.

Returns
YES on iOS 6.1 or later.
Ghidra address:
0x25ffd8
Ghidra address:
0x25ffd8

◆ isPasteBoardStatus

+ (BOOL) isPasteBoardStatus

Whether the shared pasteboard reports the non-pasteboard UDID flag.

Returns
The pasteboard's non-pasteboard UDID flag.
Ghidra address:
0x260b6c
Ghidra address:
0x260b6c

◆ isUdidSDKPasteBoard

+ (BOOL) isUdidSDKPasteBoard

Whether the current UDID differs from the SDK pasteboard UDID.

Returns
YES when the two UDIDs differ.
Ghidra address:
0x2606d4
Ghidra address:
0x2606d4

◆ isUdidThreeKinds

+ (BOOL) isUdidThreeKinds

Whether the ad, current, and old UDIDs are three distinct values.

Returns
YES when all three UDIDs differ.
Ghidra address:
0x2605d4
Ghidra address:
0x2605d4

◆ md5WithString:

+ (nullable NSString *) md5WithString: (nullable NSString *) string

The lowercase hex MD5 digest of a string's UTF-8 bytes.

Parameters
stringThe string to hash.
Returns
The 32-character hex digest, or nil when string is nil.
Ghidra address:
0x26006c

◆ searchWithService:

+ (nullable NSDictionary *) searchWithService: (nullable NSString *) service

Looks up a single keychain generic-password item by service key.

Parameters
serviceThe keychain service key.
Returns
The item's attribute dictionary, or nil when absent.
Ghidra address:
0x25f5a8

◆ setNewUdid:error:

+ (BOOL) setNewUdid: (nullable NSString *) newUdid
error: (NSError *_Nullable *_Nullable) error 

Stores the new UDID in the keychain and the SDK core, keyed by the stored ad storage index.

Parameters
newUdidThe new UDID to store.
errorSet to a localised error on failure.
Returns
YES on success.
Ghidra address:
0x25ee5c

◆ setOldUdid:error:

+ (BOOL) setOldUdid: (nullable NSString *) oldUdid
error: (NSError *_Nullable *_Nullable) error 

Stores the old UDID in the keychain under the old service name.

Parameters
oldUdidThe old UDID to store.
errorSet to a localised error on failure.
Returns
YES on success.
Ghidra address:
0x25ec18

◆ setService:withStorageIndex:

+ (void) setService: (nullable NSString *) service
withStorageIndex: (nullable NSString *) storageIndex 

Records the account (storage index) for a service key in the keychain.

Parameters
serviceThe keychain service key.
storageIndexThe account string to store.
Ghidra address:
0x25fcfc

◆ setUdidKeychainFromPasteBoard

+ (void) setUdidKeychainFromPasteBoard

Copies the pasteboard-stored UDID for the recorded storage index into the keychain.

Ghidra address:
0x26094c

◆ setUdidParameters:

+ (BOOL) setUdidParameters: (nullable id) udidParameters

Attaches the primary UDID to a request parameter dictionary.

Parameters
udidParametersThe mutable parameter dictionary to populate.
Returns
YES when a UDID was attached.
Ghidra address:
0x260474

◆ setUdidParameters:isUDIDPriorityType:

+ (BOOL) setUdidParameters: (nullable id) udidParameters
isUDIDPriorityType: (int) isUDIDPriorityType 

Attaches the resolved UDIDs to a request parameter dictionary, honouring the priority type.

Parameters
udidParametersThe mutable parameter dictionary to populate.
isUDIDPriorityTypeThe priority selecting which UDID becomes the primary value.
Returns
YES when at least one UDID was attached.
Ghidra address:
0x260180

◆ setUdidWithService:withUDID:

+ (BOOL) setUdidWithService: (nullable NSString *) service
withUDID: (nullable NSString *) udid 

Adds or updates a keychain generic-password item storing a UDID under a service key.

Parameters
serviceThe keychain service key.
udidThe UDID value to store.
Returns
YES when udid is non-nil.
Ghidra address:
0x25efdc

◆ sharedInstance

+ (instancetype) sharedInstance

The lazily-created shared singleton.

Returns
The shared ApplilinkUdid instance.
Ghidra address:
0x25da9c
Ghidra address:
0x25da9c
Ghidra address:
0x25dae0

◆ udidForFirstInvalidDataWithError:

+ (nullable NSDictionary *) udidForFirstInvalidDataWithError: (NSError *_Nullable *_Nullable) error

The first stored (potentially invalid) pasteboard UDID.

Parameters
errorSet to a localised error when no data is present.
Returns
The stored UDID data, or nil.
Ghidra address:
0x25e1e4

◆ udidOldForFirstInvalidDataWithError:

+ (nullable NSDictionary *) udidOldForFirstInvalidDataWithError: (NSError *_Nullable *_Nullable) error

The first stored (potentially invalid) old pasteboard UDID.

Parameters
errorSet to a localised error when no data is present.
Returns
The stored old UDID data, or nil.
Ghidra address:
0x25e2b0

◆ udidWithServiceName:storageIndex:error:

+ (nullable NSDictionary *) udidWithServiceName: (nullable NSString *) serviceName
storageIndex: (int) storageIndex
error: (NSError *_Nullable *_Nullable) error 

The pasteboard UDID for a service name and storage index.

Parameters
serviceNameThe pasteboard service name.
storageIndexThe storage slot index.
errorSet to a localised error when the slot is empty.
Returns
The stored UDID dictionary, or nil.
Ghidra address:
0x25e0c0

◆ validate:error:

+ (BOOL) validate: (nullable NSDictionary *) attributes
error: (NSError *_Nullable *_Nullable) error 

Validates that a keychain attribute dictionary holds a well-formed, live UDID record.

Parameters
attributesThe keychain attribute dictionary.
errorSet to a localised error describing the first missing or invalid field.
Returns
YES when the record is valid.
Ghidra address:
0x25f850

◆ writeUDIDForFirstEmptyLocationWithError:

+ (nullable NSDictionary *) writeUDIDForFirstEmptyLocationWithError: (NSError *_Nullable *_Nullable) error

Writes a freshly generated UDID into the first empty pasteboard slot.

Parameters
errorSet to a localised error when the write fails.
Returns
The stored record, or nil on failure.
Ghidra address:
0x25db84

◆ writeUDIDForFirstEmptyLocationWithUdid:

+ (nullable NSDictionary *) writeUDIDForFirstEmptyLocationWithUdid: (nullable NSString *) udid

Writes the given UDID into the first empty pasteboard slot.

Parameters
udidThe UDID to store.
Returns
The stored record, or nil on failure.
Ghidra address:
0x25dd6c

◆ writeUDIDWithUdid:

+ (nullable NSDictionary *) writeUDIDWithUdid: (nullable NSString *) udid

Replaces the pasteboard's slot 0 UDID with the given value.

Parameters
udidThe UDID to store.
Returns
The stored record, or nil on failure.
Ghidra address:
0x25de98

The documentation for this class was generated from the following files: