درباره ایمنی کاربر و SDK
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
بهعنوان یک توسعهدهنده برنامه ، میخواهید مطمئن شوید که میتوانید کاربران خود را ایمن نگه دارید و برنامههایتان را از هر گونه آسیبپذیری، از جمله مواردی که ممکن است توسط کیتهای توسعه نرمافزار (SDK) معرفی شدهاند، ایمن و پایدار نگه دارید.
بهعنوان یک ارائهدهنده SDK ، نمیخواهید SDK شما باعث شود برنامهنویس یا توسعهدهنده بازی خطمشیهای برنامهنویس Google Play را نقض کند، که میتواند کسبوکار آنها را مختل کند و آنها را در معرض اقدامات اجرایی Google Play قرار دهد.
درباره بهترین روشها برای ایمنی کاربر، خواه توسعهدهنده برنامه با استفاده از SDK یا توسعهدهنده SDK، بیشتر بیاموزید.
برای توسعه دهندگان برنامه
برای ارائه دهندگان SDK
- خطمشیهای برنامهنویس Google Play را بدانید.
با بهروزرسانیهای خطمشی Google Play بهروز باشید تا مطمئن شوید SDK شما باعث نمیشود برنامهها خطمشیهای Play را نقض کنند، مانند بهروزرسانیهای خطمشی سوءاستفاده از دستگاه و شبکه ، خطمشی آگهیها ، و خطمشی دادههای کاربر با توجه به شناسههای دائمی . برنامههایی که از SDK شما استفاده میکنند ممکن است این خطمشیها را نقض کنند و بنابراین ممکن است با اقدامات اجرایی Google Play مواجه شوند. به عنوان مثال:
- اگر SDK شما از دادههای کاربر شخصی و حساس استفاده میکند، باید مطمئن شوید که این موضوع را در اسناد عمومی خود برای برنامههایی که از SDK خود استفاده میکنند، به وضوح بیان کردهاید.
- SDK با زبان های تفسیر شده (جاوا اسکریپت، پایتون، لوا، و غیره) که در زمان اجرا بارگیری شده اند (به عنوان مثال، با برنامه بسته بندی نشده اند) نباید اجازه نقض بالقوه (مثلاً جمع آوری بسته های نصب شده بدون هدف مناسب، افشا و رضایت) از خط مشی های Google Play را بدهند.
- اطلاعات شخصی و حساس کاربر را نفروشید.
از آخرین ویژگیهای امنیتی API و به حداقل رساندن دادهها در SDKهای خود پشتیبانی کنید. برای اطلاعات بیشتر به پست وبلاگ آوریل 2022 مراجعه کنید.
به مشتریان خود کمک کنید تا درک کنند که SDK شما چه دادههای کاربری ممکن است جمعآوری کند و دلیل استفاده از آن را درک کنند، به طوری که توسعهدهندگان برنامه میتوانند این را در افشای برجسته و رضایت خود به کاربران نهایی و در خطمشیهای رازداری خود در صورت اعمال آن لحاظ کنند.
شما باید منطقی را پیاده سازی کنید که اولویت کاربر جمع آوری شده توسط توسعه دهنده برنامه را بخواند و به آن پایبند باشد، یا مطمئن شوید که مکانیزمی برای توسعه دهنده برنامه وجود دارد تا SDK شما را با توجه به این رویداد رضایت کاربر به طور دقیق مقداردهی اولیه کند.
اطلاعات مربوط به استفاده از داده های خود را در قالبی ارائه دهید که دسترسی و مصرف عمومی آن آسان باشد. در اینجا یک قالب اختیاری است که ممکن است علاقه مند به استفاده از آن برای انتشار اطلاعات خود باشید، زیرا بسیاری از توسعه دهندگان با این قالب آشنا هستند. برای مثال، به افشای دادههای Google Firebase SDK و افشای دادههای Google AdMob SDK مراجعه کنید.
محتوا و نمونه کدها در این صفحه مشمول پروانههای توصیفشده در پروانه محتوا هستند. جاوا و OpenJDK علامتهای تجاری یا علامتهای تجاری ثبتشده Oracle و/یا وابستههای آن هستند.
تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-29 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# About user safety and SDKs\n\nAs an **app developer**, you want to make sure that you can keep your users safe\nand your apps secure and stable from any vulnerabilities, including those that\nmay be introduced by Software Development Kits (SDKs) that you use.\n\nAs an **SDK provider**, you don't want to have your SDK cause an app or game\ndeveloper to violate Google Play Developer policies, which can disrupt their\nbusiness and expose them to enforcement actions by Google Play.\n\nLearn more about best practices for user safety, whether you're an app developer\nusing an SDK or an SDK developer.\n\nFor app developers\n------------------\n\n- Before you integrate an SDK into your app, [ensure you\n know](https://medium.com/androiddevelopers/getting-to-know-the-behaviors-of-your-sdk-dependencies-f3dfed07a311) what permissions it uses, what data it collects, and why. Include this information in your [Data safety\n form](https://support.google.com/googleplay/android-developer/answer/10787469). Note that you as the app developer are responsible for the SDK's data collection behavior, even if you don't use a particular function of the SDK.\n- Review all [Google Play Developer policies](https://play.google.com/about/developer-content-policy/) relating to when you can and cannot extend the use of User Data you have collected. For use of device location, for example, you must make any sharing of this data with a third party/SDK known to end users through the [Prominent Disclosure and Consent requirements](https://support.google.com/googleplay/android-developer/answer/11150561).\n- Stay up to date with [Google Play policy\n updates](https://support.google.com/googleplay/android-developer/answer/9934569?ref_topic=9877065) to make sure an SDK you have included in your app does not cause your app to violate Play Policies, such as updates to the [Device and Network Abuse Policy](https://support.google.com/googleplay/android-developer/answer/9888379), [Ads Policy](https://support.google.com/googleplay/android-developer/answer/9857753?ref_topic=9857752), and [User Data Policy with respect to\n Persistent Identifiers](https://support.google.com/googleplay/android-developer/answer/10144311).\n- Do not sell personal and sensitive user information.\n- If you receive an enforcement notice about an SDK-caused violation in your app that you need to address, refer to [our instructions for how to resubmit\n your app following a policy violation](https://support.google.com/googleplay/android-developer/answer/2477981#resubmit).\n- Check out [Google Play SDK Index](https://play.google.com/sdks) to see which SDKs are registered on Google Play Console, which Android permissions those SDKs use, and more.\n\nFor SDK providers\n-----------------\n\n- Understand [Google Play Developer policies](https://play.google.com/about/developer-content-policy/).\n- Keep up to date with Google Play policy\n [updates](https://support.google.com/googleplay/android-developer/answer/9934569?ref_topic=9877065) to make sure your SDK does not cause\n apps to violate Play Policies, such as\n updates to the [Device and Network Abuse Policy](https://support.google.com/googleplay/android-developer/answer/9888379),\n [Ads Policy](https://support.google.com/googleplay/android-developer/answer/9857753?ref_topic=9857752), and [User Data Policy with respect to\n Persistent Identifiers](https://support.google.com/googleplay/android-developer/answer/10144311). Apps that use\n your SDK may be in violation of these policies and therefore may face\n enforcement actions by Google Play. For example:\n\n - If your SDK uses Personal and Sensitive user data, then you must ensure that you have made this clear in your public documentation to apps using your SDK.\n - SDKs with interpreted languages (JavaScript, Python, Lua, etc.) loaded at run time (for example, not packaged with the app) must not allow potential violations (for example, collection of installed packages without appropriate purpose, disclosure and consent) of Google Play policies.\n - Do not sell personal and sensitive user information.\n- Support the [latest API security and data minimization features](/google/play/requirements/target-sdk)\n in your SDKs. See an [April 2022 blog post](https://android-developers.googleblog.com/2022/04/expanding-plays-target-level-api-requirements-to-strengthen-user-security.html) for more\n information.\n\n- Help your customers understand what User Data your SDK may collect and\n the reason for its use, so that app developers can include this in their\n [Prominent Disclosure and Consent](https://support.google.com/googleplay/android-developer/answer/10144311) to\n end users, and in their Privacy Policies when this applies.\n\n- You should implement logic that reads and adheres to the app\n developer-collected user preference, or ensure that a mechanism exists for\n the app developer to accurately initialize your SDK according to this\n user-facing consent event.\n\n- Provide information about your data use in a format easy to access and\n consume publicly. Here is an [optional format](https://support.google.com/googleplay/android-developer/answer/10787469#optional_format_for_SDKs)\n that you may be interested in using to publish your information, as many\n developers are familiar with this format. For examples, see the [Google\n Firebase SDK data disclosure](https://support.google.com/analytics/answer/11582702) and the [Google AdMob\n SDK data disclosure](https://developers.google.com/admob/android/play-data-disclosure)."]]