ترخيص التطبيقات
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يقدم Google Play خدمة ترخيص تتيح لك فرض سياسات الترخيص للتطبيقات التي تنشرها على Google Play. من خلال ترخيص Google Play، يمكن لتطبيقك
إجراء طلب بحث في Google Play في وقت التشغيل للحصول على حالة الترخيص للمستخدم الحالي، ثم السماح باستخدامه مرة أخرى أو
عدم السماح به حسب الحاجة.
باستخدام هذه الخدمة، يمكنك تطبيق سياسة ترخيص مرن على أساس كل تطبيق على حدة، ويمكن لكل تطبيق فرض الترخيص بالطريقة الأنسب له. وعند الضرورة، يمكن أن يطبِّق التطبيق قيودًا مخصّصة استنادًا إلى حالة الترخيص التي تم الحصول عليها من Google Play.
على سبيل المثال، يمكن للتطبيق التحقق من حالة الترخيص ثم تطبيق قيود مخصصة تسمح للمستخدم بتشغيله بدون ترخيص لفترة صلاحية محددة. يمكن للتطبيق أيضًا تقييد استخدام التطبيق على جهاز معين، بالإضافة إلى أي قيود أخرى.
خدمة الترخيص هي وسيلة آمنة للتحكم في الوصول إلى تطبيقاتك. عندما يتحقق التطبيق من حالة الترخيص، يوقِّع خادم Google Play على استجابة حالة الترخيص باستخدام مفتاحَي تشفير مرتبطَين بالتطبيق بشكل فريد. على الرغم من أنّه يمكن للتطبيق تخزين المفتاح العام في ملف .apk
المجمّع، إلا أنّ التحقق من استجابة حالة الترخيص على خادم تثق به يوفّر أمانًا أكبر.
يمكن لأي تطبيق تنشره من خلال Google Play استخدام خدمة
"ترخيص Google Play". لا حاجة إلى حساب خاص أو التسجيل. علاوةً على ذلك، ولأن الخدمة لا تستخدم واجهات برمجة تطبيقات مخصَّصة لإطار العمل، يمكنك إضافة ترخيص إلى أي تطبيق يستخدم مستوى واجهة برمجة تطبيقات 3 أو مستوى أعلى منه.
ملاحظة: خدمة ترخيص Google Play مُخصصة في المقام الأول للتطبيقات المدفوعة التي تريد التأكد من أن المستخدم الحالي هو الذي دفع رسوم التطبيق المتوفر على Google Play بالفعل. ومع ذلك، يمكن لأي تطبيق (بما في ذلك التطبيقات المجانية) استخدام خدمة الترخيص لبدء تنزيل ملف توسيع APK. في هذه الحالة، لا يكون الطلب الذي يرسله تطبيقك إلى خدمة الترخيص هو التحقق مما إذا كان المستخدم قد دفع ثمن التطبيق، بل طلب عنوان URL لملفات التوسيع. للحصول على معلومات حول تنزيل ملفات توسيع لتطبيقك،
اقرأ دليل ملفات توسيع APK.
لمعرفة المزيد من المعلومات عن خدمة ترخيص التطبيقات في Google Play وبدء دمجها في
تطبيقاتك، يُرجى قراءة المستندات التالية:
- نظرة عامة
على الترخيص
- تشير إلى آلية عمل الخدمة وآلية تنفيذ الترخيص المعتادة.
- الإعداد
للترخيص
- توضّح كيفية إعداد حسابك على Google Play وبيئة التطوير
وبيئة الاختبار لإضافة ترخيص إلى تطبيقك.
- إضافة
التحقق من الترخيص من جهة الخادم إلى تطبيقك
- يوفّر دليلاً مفصَّلاً لإضافة إثبات ملكية الترخيص من جهة الخادم إلى تطبيقك.
- مرجع
الترخيص
- يقدِّم معلومات تفصيلية حول صفوف مكتبة التراخيص ورموز استجابة
الخدمة.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# App Licensing\n\nGoogle Play offers a licensing service that lets you enforce licensing policies for\napplications that you publish on Google Play. With Google Play Licensing, your application can\nquery Google Play at run time to obtain the licensing status for the current user, then allow or\ndisallow further use as appropriate.\n\nUsing the service, you can apply a flexible licensing policy on an application-by-application\nbasis---each application can enforce licensing in the way most appropriate for it. If necessary,\nan application can apply custom constraints based on the licensing status obtained from Google Play.\nFor example, an application can check the licensing status and then apply custom constraints\nthat allow the user to run it unlicensed for a specific validity period. An application can also\nrestrict use of the application to a specific device, in addition to any other constraints.\n\nThe licensing service is a secure means of controlling access to your applications. When an\napplication checks the licensing status, the Google Play server signs the licensing status\nresponse using a key pair that is uniquely associated with the application. Although it's possible\nfor your application to store the public key in its compiled `.apk` file, it's much\nsafer to verify the licensing status response on a server that you trust.\n\nAny application that you publish through Google Play can use the Google Play Licensing\nservice. No special account or registration is needed. Additionally, because the service uses no\ndedicated framework APIs, you can add licensing to any application that uses a minimum API level of\n3 or higher.\n\n**Note:** The Google Play Licensing service is primarily intended\nfor paid applications that wish to verify that the current user did in fact pay for the application\non Google Play. However, any application (including free apps) may use the licensing service\nto initiate the download of an APK expansion file. In which case, the request that your application\nsends to the licensing service is not to check whether the user paid for the app, but to request the\nURL of the expansion files. For information about downloading expansion files for your application,\nread the guide to [APK Expansion Files](/google/play/expansion-files).\n\nTo learn more about Google Play's application licensing service and start integrating it into\nyour applications, read the following documents:\n\n**[Licensing\nOverview](/google/play/licensing/overview)**\n: Describes how the service works and what a typical licensing implementation looks\n like.\n\n**[Setting Up for\nLicensing](/google/play/licensing/setting-up)**\n: Explains how to set up your Google Play account, development environment, and\n testing environment in order to add licensing to your app.\n\n**[Adding\nServer-Side License Verification to Your App](/google/play/licensing/server-side-verification)**\n: Provides a step-by-step guide to add server-side licensing verification to your application.\n\n**[Licensing\nReference](/google/play/licensing/licensing-reference)**\n: Provides detailed information about the licensing library's classes and the service response\n codes."]]