{"id":21478287,"url":"https://github.com/appsflyersdk/appsflyer-oaid","last_synced_at":"2026-03-09T19:13:07.176Z","repository":{"id":42469755,"uuid":"231204755","full_name":"AppsFlyerSDK/appsflyer-oaid","owner":"AppsFlyerSDK","description":"AppsFlyer OAID collection","archived":false,"fork":false,"pushed_at":"2023-09-20T14:37:21.000Z","size":6329,"stargazers_count":29,"open_issues_count":1,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-15T22:02:38.182Z","etag":null,"topics":["android","appsflyer","huawei","msa","oaid"],"latest_commit_sha":null,"homepage":"https://support.appsflyer.com/hc/en-us/articles/360006278797-Implementing-OAID-in-the-Android-SDK","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AppsFlyerSDK.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-01-01T10:57:56.000Z","updated_at":"2025-06-09T06:44:48.000Z","dependencies_parsed_at":"2025-07-15T11:31:45.888Z","dependency_job_id":"db2a61af-2d3a-4ee4-ae40-69de6942334e","html_url":"https://github.com/AppsFlyerSDK/appsflyer-oaid","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/AppsFlyerSDK/appsflyer-oaid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppsFlyerSDK%2Fappsflyer-oaid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppsFlyerSDK%2Fappsflyer-oaid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppsFlyerSDK%2Fappsflyer-oaid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppsFlyerSDK%2Fappsflyer-oaid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AppsFlyerSDK","download_url":"https://codeload.github.com/AppsFlyerSDK/appsflyer-oaid/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AppsFlyerSDK%2Fappsflyer-oaid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30308893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T17:35:44.120Z","status":"ssl_error","status_checked_at":"2026-03-09T17:35:43.707Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","appsflyer","huawei","msa","oaid"],"created_at":"2024-11-23T11:17:35.451Z","updated_at":"2026-03-09T19:13:07.159Z","avatar_url":"https://github.com/AppsFlyerSDK.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# OAID collection\n\n[![Release Artifacts](https://img.shields.io/nexus/r/com.appsflyer/oaid.svg?server=https%3A%2F%2Foss.sonatype.org)](https://oss.sonatype.org/content/repositories/releases/com/appsflyer/oaid/)\n\n## Table of content\n- [Adding to your project](#adding-to-your-project)\n- [Standalone usage](#standalone-usage)\n\nSupported devices:\n\nManufacturer    |   OS version\n---             |   ---  \nHuawei          |   HMS 2.6.2\nXiaomi          |   MIUI 10.2\nVivo            |   Android 8\nOPPO, Realme    |   Color OS 3\nLenovo          |   ZUI 11.4\nSamsung, Meizu, Nubia, ZTE, ASUS, OnePlus, Black shark, Motorola, Freeme OS  |   Android 10\n\n**Supported MSA library version:** 2.2.0\n\n## Adding to your project\nmodule **build.gradle**\n#### Step 1\nDownload AAR provided by the [MSA](http://www.msa-alliance.cn/col.jsp?id=120) to your module libs folder  \n**Note:** MSA AAR requires min API level 16\n```groovy  \nimplementation 'com.appsflyer:oaid:6.12.3'  \nimplementation files('libs/oaid_sdk_2.2.0.aar')  \n```  \n\n#### Step 2\nCopy your certificate file (\u003cAPPLICATION_PACKAGE_NAME\u003e.cert.pem) to the project assets directory.\n\n#### Step 3 (When using ProGaurd)\nAdd the following code to your `proguard-rules.pro` file:\n```\n# sdk\n-keep class com.bun.miitmdid.** { *; }\n-keep interface com.bun.supplier.** { *; }\n# asus\n-keep class com.asus.msa.SupplementaryDID.** { *; }\n-keep class com.asus.msa.sdid.** { *; }\n# freeme\n-keep class com.android.creator.** { *; }\n-keep class com.android.msasdk.** { *; }\n# huawei\n-keep class com.huawei.hms.ads.** { *; }\n-keep interface com.huawei.hms.ads.** {*; }\n# lenovo\n-keep class com.zui.deviceidservice.** { *; }\n-keep class com.zui.opendeviceidlibrary.** { *; }\n# meizu\n-keep class com.meizu.flyme.openidsdk.** { *; }\n# nubia\n-keep class com.bun.miitmdid.provider.nubia.NubiaIdentityImpl\n{ *; }\n# oppo\n-keep class com.heytap.openid.** { *; }\n# samsung\n-keep class com.samsung.android.deviceidservice.** { *; }\n# vivo\n-keep class com.vivo.identifier.** { *; }\n# xiaomi\n-keep class com.bun.miitmdid.provider.xiaomi.IdentifierManager\n{ *; }\n# zte\n-keep class com.bun.lib.** { *; }\n# coolpad\n-keep class com.coolpad.deviceidsupport.** { *; }\n```\n\n## Standalone usage\n```kotlin  \nclass MainActivity : AppCompatActivity() {  \n    override fun onCreate(savedInstanceState: Bundle?) {\n        super.onCreate(savedInstanceState)\n        setContentView(R.layout.activity_main)\n        Thread {\n            val info = OaidClient(this, 1, TimeUnit.SECONDS).fetch()\n            if (info != null) {\n                println(info.id)\n                val lat = info.lat\n                if (lat != null) {\n                    println(lat)\n                }\n            }\n        }.start()\n    }\n  }\n    \n ```\n\n## Important\nTime to fetch oaid is around 10 - 1000 ms\n  \n---  \n🛠 In order for us to provide optimal support, we would kindly ask you to submit any issues to support@appsflyer.com\n\n*When submitting an issue please specify your AppsFlyer sign-up (account) email , your app ID , production steps, logs, code snippets and any additional relevant information.*\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappsflyersdk%2Fappsflyer-oaid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappsflyersdk%2Fappsflyer-oaid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappsflyersdk%2Fappsflyer-oaid/lists"}