OAID
개요
안드로이드 공개 익명 기기 식별자(OAID)를 수집하여 타사 안드로이드 앱 스토어로부터 인스톨을 어트리뷰션합니다.
OAID는 안드로이드 기기에 대해 사용자 재설정 가능한 고유 식별자입니다. IMEI와 같은 재설정 불가능한 기기 식별자에 대한 개인정보 보호 대안으로 MSA(Mobile Security Alliance), 중국 정보통신연구소 및 장치 제조업체가 도입했습니다.
연동
앱스플라이어 SDK V5.4.0 이상이 필요합니다.
OAID 연동은 다음 3단계로 구성됩니다.
- Integrating the AppsFlyer SDK in the
build.gradle
file of your project - Integrating the AppsFlyer OAID plugin module in the
build.gradle
file of your project
dependencies {
implementation 'com.appsflyer:af-android-sdk:6.9.4'
implementation 'com.appsflyer:oaid:6.9.0'
}
- Integrating an SDK to generate and provide the OAID (either the MSA SDK or Huawei HMS SDK)
- Add the ProGuard rules to protect the necessary classes and interfaces from the MSA and various device manufacturers.
일러두기:
- 앱을 중국에서 사용하려는 경우 MSA SDK를 사용해야 합니다.
- 앱을 Huawei 기기에 설치하여 전 세계적으로 사용하려는 경우 Huawei HMS 라이브러리를 사용해야 합니다.
MSA SDK integration
MSA SDK 연동 방법:
- 마케터로부터 가져오기: 앱에 연동해야 하는 MSA SDK(aar) 파일 및 인증서.
- 라이브러리 폴더의 MSA SDK(aar)를 복사합니다.
- 프로젝트의 에셋 폴더
supplierconfig.json
아래에 복사하여 붙여넣고 각 스토어에서 앱의 앱 업데이트와 같은 필요한 변경을 수행합니다. - 인증서 파일(bundle name.cert.pem)을 복사하여 프로젝트의 에셋 폴더 아래에 붙여넣습니다.
- MSA 웹 사이트의 전체 지침 참조
- 프로젝트의
build.gradle
파일을 다음과 같이 업데이트합니다:
implementation 'com.appsflyer:af-android-sdk:6.9.4'
implementation 'com.appsflyer:oaid:6.9.0'
implementation files('libs/oaid_sdk_2.0.0.aar')
Huawei HMS SDK integration
화웨이 HMS SDK 연동 방법:
- 다음과 같이 화웨이 메이븐 저장소를 추가합니다: 앱의
repositories {
maven {
url "https://developer.huawei.com/repo/"
}
}
- 프로젝트의
build.gradle
파일을 다음과 같이 추가:
dependencies {
implementation 'com.appsflyer:af-android-sdk:6.9.4'
implementation 'com.appsflyer:oaid:6.9.0'
implementation 'com.huawei.hms:ads-identifier:3.4.56.300'
}
ProGuard rules update (when using ProGuard)
Protect the necessary classes and interfaces from MSA and various device manufacturers.
다음 코드를 proguard-rules.pro
file:
# sdk
-keep class com.bun.miitmdid.** { *; }
-keep interface com.bun.supplier.** { *; }
# asus
-keep class com.asus.msa.SupplementaryDID.** { *; }
-keep class com.asus.msa.sdid.** { *; }
# freeme
-keep class com.android.creator.** { *; }
-keep class com.android.msasdk.** { *; }
# huawei
-keep class com.huawei.hms.ads.** { *; }
-keep interface com.huawei.hms.ads.** {*; }
# lenovo
-keep class com.zui.deviceidservice.** { *; }
-keep class com.zui.opendeviceidlibrary.** { *; }
# meizu
-keep class com.meizu.flyme.openidsdk.** { *; }
# nubia
-keep class com.bun.miitmdid.provider.nubia.NubiaIdentityImpl
{ *; }
# oppo
-keep class com.heytap.openid.** { *; }
# samsung
-keep class com.samsung.android.deviceidservice.** { *; }
# vivo
-keep class com.vivo.identifier.** { *; }
# xiaomi
-keep class com.bun.miitmdid.provider.xiaomi.IdentifierManager
{ *; }
# zte
-keep class com.bun.lib.** { *; }
# coolpad
-keep class com.coolpad.deviceidsupport.** { *; }
추가 정보
Opting out of OAID collection
OAID 수집을 옵트아웃하려면 다음 API 중 하나를 사용합니다.
- 다음과 같이 setCollectOAID를 사용합니다.
AppsFlyerlib.setCollectOaid(false);
- 다음과 같이 setDisableAdvertisingIdentifiers를 사용합니다.
AppsFlyerlib.setDisableAdvertisingIdentifiers(true);
Setting OAID manually
OAID를 앱스플라이어 SDK에 수동으로 설정하는 방법:
- 다음과 같이 setOaidData API를 사용합니다.
AppsFlyerlib.setOaidData(oaid);
최신 데이터 3개월 전