//
// OpenUDID.h
// openudid
//
// initiated by Yann Lechelle (cofounder @Appsfire) on 8/28/11.
// Copyright 2011 OpenUDID.org
//
// Main branches
// iOS code: https://github.com/ylechelle/OpenUDID
//
/*
!!! IMPORTANT !!!
IF YOU ARE GOING TO INTEGRATE OpenUDID INSIDE A (STATIC) LIBRARY,
PLEASE MAKE SURE YOU REFACTOR THE OpenUDID CLASS WITH A PREFIX OF YOUR OWN,
E.G. ACME_OpenUDID. THIS WILL AVOID CONFUSION BY DEVELOPERS WHO ARE ALSO
USING OpenUDID IN THEIR OWN CODE.
!!! IMPORTANT !!!
*/
/*
http://en.wikipedia.org/wiki/Zlib_License
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial applications, and to alter it and redistribute it
freely, subject to the following restrictions:
1. The origin of this software must not be misrepresented; you must not
claim that you wrote the original software. If you use this software
in a product, an acknowledgment in the product documentation would be
appreciated but is not required.
2. Altered source versions must be plainly marked as such, and must not be
misrepresented as being the original software.
3. This notice may not be removed or altered from any source
distribution.
*/
#import <Foundation/Foundation.h>
//
// Usage:
// #include "OpenUDID.h"
// NSString* openUDID = [OpenUDID value];
//
#define kOpenUDIDErrorNone 0
#define kOpenUDIDErrorOptedOut 1
#define kOpenUDIDErrorCompromised 2
@interface OpenUDID : NSObject {
}
+ (NSString*) value;
+ (NSString*) valueWithError:(NSError**)error;
+ (void) setOptOut:(BOOL)optOutValue;
@end
没有合适的资源?快使用搜索试试~ 我知道了~
利用网卡地址和OpenUDID,实现获取设备唯一标识的一种方案
共25个文件
m:6个
h:4个
plist:3个
5星 · 超过95%的资源 需积分: 50 75 下载量 26 浏览量
2014-05-23
15:06:07
上传
评论 1
收藏 38KB ZIP 举报
温馨提示
网卡地址(<iOS7的系统) 通过Unix级别的API去获取Wifi的网卡地址 该方法属于UDID替代方案中最为准确的一种 因为网卡地址不会因为刷机 还原设备而发生改变 故追求唯一性的厂商多选择此种方案 在iOS7之后 应用已经无法获取网卡地址 该方案在iOS7中也已经被废弃 所以可用于iOS7以前的系统 OpenUDID > iOS7的系统 开源的一个UDID替代方案 原理是利用应用间的剪贴板共享和本地一些必要的缓存信息 让多个应用间共享一个UUID OpenUDID在官方废弃UDID接口之后 受到广泛的欢迎 可以说是现在大多数应用的UDID替代方法 OpenUDID在刷机 还原设备后就会产生新的UDID 事实上 由于剪贴板的特殊性 如果所有使用了OpenUDID的应用被全部卸载之后 再次安装的应用取到的OpenUDID将会是一个全新的值 ">网卡地址(<iOS7的系统) 通过Unix级别的API去获取Wifi的网卡地址 该方法属于UDID替代方案中最为准确的一种 因为网卡地址不会因为刷机 还原设备而发生改变 故追求唯一性的厂商多选择此种方案 在iOS7之后 应用已经无 [更多]
资源推荐
资源详情
资源评论
收起资源包目录
OpenUDID(设备唯一标识).zip (25个子文件)
Test03
.DS_Store 6KB
Test03.xcodeproj
project.xcworkspace
contents.xcworkspacedata 151B
xcuserdata
sf_gxd.xcuserdatad
UserInterfaceState.xcuserstate 12KB
xcuserdata
sf_gxd.xcuserdatad
xcschemes
xcschememanagement.plist 568B
Test03.xcscheme 3KB
project.pbxproj 21KB
Test03Tests
en.lproj
InfoPlist.strings 45B
Test03Tests-Info.plist 683B
Test03Tests.m 622B
Test03
ViewController.m 683B
.DS_Store 6KB
en.lproj
InfoPlist.strings 45B
Test03-Info.plist 1KB
main.m 326B
UIDevice+IdentifierAddition.m 3KB
UIDevice+IdentifierAddition.h 871B
Base.lproj
Main.storyboard 2KB
OpenUDID.m 16KB
Images.xcassets
LaunchImage.launchimage
Contents.json 442B
AppIcon.appiconset
Contents.json 333B
Test03-Prefix.pch 344B
ViewController.h 204B
AppDelegate.h 266B
OpenUDID.h 2KB
AppDelegate.m 2KB
共 25 条
- 1
资源评论
- yumengxuan2014-08-04不错的东西,好用
- 弗林迪萨2015-12-30感谢分享, 觉得确实不错。
- 水碧2016-08-02感谢分享,终于知道什么叫udid了
- 篽風2015-05-26挺好用的,我拿来改了一下
- junyi20092018-09-19感谢分享, 觉得确实不错。
且心
- 粉丝: 75
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功