يتوفّر LiteRT في وقت تشغيل "خدمات Google Play" لجميع أجهزة Android
التي تعمل بالإصدار الحالي من "خدمات Play". يتيح لك هذا وقت التشغيل
تشغيل نماذج تعلُّم الآلة بدون تجميع مكتبات LiteRT
بشكل ثابت في تطبيقك.
باستخدام واجهة برمجة التطبيقات في "خدمات Google Play"، يمكنك تقليل حجم تطبيقاتك والحصول على
أداء أفضل من أحدث إصدار ثابت من المكتبات. TensorFlow
Lite في "خدمات Google Play" هي الطريقة المُقترَحة لاستخدام LiteRT على
Android.
إذا كنت تستخدِم حاليًا حزمة TensorFlow Lite المستقلة في تطبيقك، يمكنك الرجوع إلى القسم نقل البيانات من حزمة LiteRT المستقلة لتحديث تطبيق حالي لاستخدام وقت تشغيل "خدمات Play". لمزيد من المعلومات حول "خدمات Google
Play"، يُرجى الانتقال إلى الموقع الإلكتروني لخدمات Google
Play.
استخدام وقت تشغيل "خدمات Play"
يتوفّر LiteRT في "خدمات Google Play" من خلال واجهتَي برمجة التطبيقات التالية المخصّصتَين للغات البرمجة:
تفرض أداة LiteRT في "خدمات Google Play" القيود التالية:
تقتصر إمكانية استخدام ميزة "تسريع الأجهزة" على المفوَّضين المُدرَجين في قسم تسريع الأجهزة. ولا يُسمح باستخدام أيّ مفوّضين آخرين لتسريع الأداء.
إنّ واجهات برمجة تطبيقات LiteRT التجريبية أو المتوقّفة نهائيًا، بما في ذلك العمليات المخصّصة،
غير متاحة.
الدعم والتعليقات
يمكنك تقديم ملاحظاتك والحصول على الدعم من خلال أداة تتبُّع المشاكل في TensorFlow.
يُرجى الإبلاغ عن المشاكل وطلبات الدعم باستخدام
نموذج المشكلة
لـ LiteRT في "خدمات Google Play".
بنود الخدمة
يخضع استخدام LiteRT في واجهات برمجة تطبيقات "خدمات Google Play" لبنود خدمة Google APIs.
الخصوصية وجمع البيانات
عند استخدام LiteRT في واجهات برمجة تطبيقات "خدمات Google Play"، تتم معالجة
بيانات الإدخال، مثل الصور والفيديوهات والنصوص، بالكامل على الجهاز، ولا تُرسِل حزمة TensorFlow
Lite في واجهات برمجة تطبيقات "خدمات Google Play" هذه البيانات إلى خوادم Google. نتيجةً لذلك، يمكنك استخدام واجهات برمجة التطبيقات لمعالجة البيانات التي يجب ألا تغادر
الجهاز.
قد يتواصل LiteRT في واجهات برمجة التطبيقات في "خدمات Google Play" مع خوادم Google من وقتٍ لآخر لتلقّي معلومات، مثل إصلاحات الأخطاء والنماذج المعدّلة ومعلومات التوافق مع مسرع الأجهزة. تُرسِل مكتبة LiteRT في واجهات برمجة التطبيقات الخاصة بخدمات
Google Play أيضًا مقاييس إلى Google عن أداء واجهات برمجة التطبيقات واستخدامها في تطبيقك. تستخدم Google بيانات المقاييس هذه لقياس
الأداء وتصحيح الأخطاء في واجهات برمجة التطبيقات وصيانتها وتحسينها ورصد إساءة الاستخدام،
كما هو موضّح بالتفصيل في
سياسة الخصوصية.
أنت المسؤول عن إبلاغ مستخدمي تطبيقك بمعالجة Google
لـ LiteRT في بيانات مقاييس واجهات برمجة التطبيقات في "خدمات Google Play" على النحو المطلوب بموجب
القانون الساري.
تشمل البيانات التي نجمعها ما يلي:
معلومات الجهاز (مثل الشركة المصنّعة والطراز وإصدار نظام التشغيل وإصداره)
ومُسرِّعات الأجهزة المتاحة للتعلم الآلي (وحدة معالجة الرسومات ووحدة معالجة الإشارات الرقمية) تُستخدَم لبيانات التشخيص وتحليلات
الاستخدام.
معرّف الجهاز المستخدَم لبيانات التشخيص وإحصاءات الاستخدام
تاريخ التعديل الأخير: 2025-07-24 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],["تاريخ التعديل الأخير: 2025-07-24 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# LiteRT in Google Play services\n\nLiteRT is available in Google Play services runtime for all Android\ndevices running the current version of Play services. This runtime allows you to\nrun machine learning (ML) models without statically bundling LiteRT\nlibraries into your app.\n\nWith the Google Play services API, you can reduce the size of your apps and gain\nimproved performance from the latest stable version of the libraries. TensorFlow\nLite in Google Play services is the recommended way to use LiteRT on\nAndroid.\n\nIf you are already using standalone TensorFlow Lite in your app, refer to the\n[Migrating from standalone LiteRT](./java#migrating) section to update an\nexisting app to use the Play services runtime. For more information about Google\nPlay services, see the [Google Play\nservices](https://developers.google.com/android/guides/overview) website.\n| **Terms:** By accessing or using LiteRT in Google Play services APIs, you agree to the [Terms of Service](#tos). Please read and understand all applicable terms and policies before accessing the APIs.\n\nUsing the Play services runtime\n-------------------------------\n\nThe LiteRT in Google Play services is available through the following\nprogramming language apis:\n\n- Java API - [see guide](./java)\n- C/C++ APIs - [see guide](./native)\n\n| **Note:** LiteRT in Google Play services uses the `play-services-tflite-java` package, for both Java and C/C++.\n\nLimitations\n-----------\n\nLiteRT in Google Play services has the following limitations:\n\n- Support for hardware acceleration delegates is limited to the delegates listed in the [Hardware acceleration](../java#hardware-acceleration) section. No other acceleration delegates are supported.\n- Experimental or deprecated LiteRT APIs, including custom ops, are not supported.\n\nSupport and feedback\n--------------------\n\nYou can provide feedback and get support through the TensorFlow Issue Tracker.\nPlease report issues and support requests using the\n[Issue template](https://github.com/tensorflow/tensorflow/issues/new?title=TensorFlow+Lite+in+Play+Services+issue&template=tflite-in-play-services.md)\nfor LiteRT in Google Play services.\n\nTerms of service\n----------------\n\nUse of LiteRT in Google Play services APIs is subject to the\n[Google APIs Terms of Service](https://developers.google.com/terms/).\n\n### Privacy and data collection\n\nWhen you use LiteRT in Google Play services APIs, processing of the\ninput data, such as images, video, text, fully happens on-device, and TensorFlow\nLite in Google Play services APIs does not send that data to Google servers. As\na result, you can use our APIs for processing data that should not leave the\ndevice.\n\nThe LiteRT in Google Play services APIs may contact Google servers from\ntime to time in order to receive things like bug fixes, updated models and\nhardware accelerator compatibility information. The LiteRT in Google\nPlay services APIs also sends metrics about the performance and utilization of\nthe APIs in your app to Google. Google uses this metrics data to measure\nperformance, debug, maintain and improve the APIs, and detect misuse or abuse,\nas further described in our\n[Privacy Policy](https://policies.google.com/privacy).\n\n**You are responsible for informing users of your app about Google's processing\nof LiteRT in Google Play services APIs metrics data as required by\napplicable law.**\n\nData we collect includes the following:\n\n- Device information (such as manufacturer, model, OS version and build) and available ML hardware accelerators (GPU and DSP). Used for diagnostics and usage analytics.\n- Device identifier used for diagnostics and usage analytics.\n- App information (package name, app version). Used for diagnostics and usage analytics.\n- API configuration (such as which delegates are being used). Used for diagnostics and usage analytics.\n- Event type (such as interpreter creation, inference). Used for diagnostics and usage analytics.\n- Error codes. Used for diagnostics.\n- Performance metrics. Used for diagnostics."]]