اعتبارًا من 27 آذار (مارس) 2025، ننصحك باستخدام android-latest-release بدلاً من aosp-main لإنشاء AOSP والمساهمة فيه. لمزيد من المعلومات، يُرجى الاطّلاع على التغييرات في AOSP.
متصفّح متوافق مع WebUSB،
مثل Chrome أو Edge 79 والإصدارات الأحدث
تفعيل الاتصال عبر USB
قبل تشغيل نظام Android على جهاز، عليك تفعيل اتصال USB:
فعِّل خيارَي "فتح قفل المصنّع الأصلي للجهاز" و"تصحيح أخطاء الجهاز عبر USB" في خيارات المطوّرين:
في تطبيق "الإعدادات"، انقر على لمحة عن الهاتف.
انقر على رقم الإصدار سبع مرات.
عندما تظهر لك الرسالة لقد أصبحت الآن مطوّرًا، انقر على <-.
انقر على النظام، ثم انقر على خيارات المطوّرين.
فعِّل ميزة فتح قفل المصنّع الأصلي للجهاز وميزة تصحيح أخطاء الجهاز عبر USB. إذا كان خيار
فتح قفل الجهاز من قِبل الشركة المصنّعة غير متاح، يُرجى الاتصال بالإنترنت كي يتمكّن الجهاز من تسجيل الدخول. إذا لم تنجح هذه الطريقة، يمكنك فرض عملية تسجيل
دخول: في تطبيق "المخطّط الداعم"، أدخِل *#*#CHECKIN#*#* (*#*#2432546#*#*)
(لا يلزم توفُّر شريحة SIM). بعد إدخال الرقم (بدون الحاجة إلى الضغط على زر الاتصال)،
يختفي النص ويظهر إشعار يفيد بنجاح العملية.
إذا ظلت ميزة "فتح الجهاز من قِبل المصنّع الأصلي" غير متاحة، قد يكون جهازك مقفلًا برمز شريحة SIM من قِبل
مشغّل شبكة الجوّال ولا يمكن فتح قفل برنامج الإقلاع.
وصِّل جهازك بمنفذ USB على محطة العمل.
فلاش جهازك
إذا كان لديك
Android Debug Bridge (adb)
قيد التشغيل على جهازك، أوقِف خدمة adb قبل المتابعة كي
لا تتداخل مع عملية التفليش. لإيقاف adb، يمكنك تنفيذ ما يلي:
adbkill-server
في متصفّح على محطة عمل المطوّر، افتح
flash.android.com. ستظهر صفحة "مرحبًا".
انقر على السماح بالوصول إلى ADB للسماح للأداة بالتواصل مع
الجهاز الاختباري من خلال adb.
انقر على إضافة جهاز جديد.
اختَر جهازك من القائمة وانقر على ربط. قد
لا تتضمّن هذه القائمة اسم الجهاز الكامل.
على شاشة جهازك، اختَر السماح دائمًا من هذا الكمبيوتر
وانقر على حسنًا لقبول اتصال تصحيح أخطاء USB.
اختَر الجهاز المتصل في المتصفّح.
ابحث عن الإصدار الذي تريده واختَره من القائمة. يمكنك أيضًا اختيار
خيارات، مثل محو بيانات الجهاز أو فرض فلاش لجميع الأقسام.
لبدء عملية التفليش، انقر على تثبيت. تتم إعادة تشغيل الجهاز ويدخل في وضع
Fastboot.
بعد ظهور الرسالة Flash Complete (اكتمال الفلاش)، افصل الجهاز عن كابل USB.
تعذُّر تشغيل أجهزة الفلاش
إذا تعذّر على جهازك التمهيد بشكلٍ طبيعي، قد لا تتمكّن من فلاش
الجهاز باستخدام التعليمات السابقة. بدلاً من ذلك، يمكنك محاولة إعادة التثبيت باستخدام أداة
Fastboot.
لإجراء ذلك، عليك أولاً تشغيل جهازك في وضع Fastboot باستخدام
مجموعة مفاتيح:
حدِّد مجموعة المفاتيح لجهازك. للاطّلاع على جدول مجموعات مفاتيح Fastboot، يُرجى الاطّلاع على مجموعات مفاتيح Fastboot.
أوقِف تشغيل الجهاز.
شغِّل الجهاز واضغط مع الاستمرار على تركيبة المفاتيح الخاصة
بجهازك (التي تم تحديدها في الخطوة 1).
بعد أن يصبح جهازك في وضع Fastboot، يُرجى الانتقال إلى flash.android.com واتّباع تعليمات الفلاش السابقة، مع تجاهل الخطوات المتعلقة بـ ADB.
حلّ أخطاء نقل البيانات عبر USB
تواجه أجهزة Android أحيانًا مشكلة في التواصل من خلال منافذ USB أو مهايز معيّنة بسبب معدل نقل البيانات المرتفع. لحلّ أخطاء النقل:
لا تستخدِم وحدات تحكم USB. ويشمل ذلك عمليات الربط من خلال الشاشات.
لا تستخدِم كابلات أو محولات تمديد USB إن أمكن.
جرِّب استخدام منفذ USB مختلف. غالبًا ما تكون المنافذ الخلفية أكثر موثوقية من تلك الأمامية.
إذا كنت تستخدم منفذ USB-C، جرِّب استخدام منفذ USB-A بدلاً من ذلك.
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ Java وOpenJDK هما علامتان تجاريتان مسجَّلتان لشركة Oracle و/أو الشركات التابعة لها.
تاريخ التعديل الأخير: 2025-07-27 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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-27 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# Flash with Android Flash Tool\n\n[Android Flash Tool](https://flash.android.com/)\nis a web-based tool that lets you flash a pre built Android build to your\ndevice for development and testing.\n| **Note:** If you need to flash and test your own AOSP changes, refer to [Flash your device with Fastboot](/docs/setup/test/running).\n\nAndroid Flash Tool supports these devices:\n\n- Pixel 2 and newer\n- [DragonBoard RB3 (also known as db845c)](https://wiki.linaro.org/AOSP/db845c)\n- [HiKey 960](https://www.96boards.org/product/hikey960/)\n- [HiKey](https://www.96boards.org/product/hikey/)\n\nMeet requirements\n-----------------\n\nTo run the Android Flash Tool, you must meet these requirements:\n\n- [Hardware requirements](/docs/setup/start/requirements#hardware-requirements)\n- A browser supporting [WebUSB](https://caniuse.com/#search=Webusb), such as [Chrome](https://www.google.com/chrome/) or Edge 79+\n\nEnable your USB connection\n--------------------------\n\nBefore running Android on a device, you must enable your USB connection:\n\n1. Enable OEM unlocking and USB debugging in the developer options:\n\n 1. In the Settings app, tap **About phone**.\n 2. Tap **Build number** seven times.\n 3. When you see the message **You are now a developer!** , tap **\\\u003c-**.\n 4. Tap **System** , then tap **Developer options**.\n 5. Enable **OEM unlocking** and **USB debugging** . If OEM unlocking is unavailable, connect to the internet so the device can check in. If that still doesn't work, you can force a check in: In the Dialer app, enter **\\*#\\*#CHECKIN#\\*#\\*** (\\*#\\*#2432546#\\*#\\*) (no SIM required). After entering the number (no need to press call), the text disappears and a success notification appears.\n\n If OEM unlocking remains unavailable, your device might be SIM locked by\n your carrier and the bootloader can't be unlocked.\n2. Connect your device to a USB port on your workstation.\n\nFlash your device\n-----------------\n\n1. If you have\n [Android Debug Bridge (adb)](https://developer.android.com/studio/command-line/adb)\n running on your machine, stop the adb service before proceeding so that\n it doesn't interfere with the flashing process. To stop adb, run:\n\n adb kill-server\n\n2. In a browser on your development workstation, open\n [flash.android.com](https://flash.android.com/). The Welcome page appears.\n\n3. Click **Allow ADB access** to allow the tool to communicate with your test\n device through adb.\n\n4. Click **Add new device**.\n\n5. Select your device from the list and click **Connect**. This list might\n not contain the full device name.\n\n6. On your device's screen, select **Always allow from this computer**\n and click **OK** to accept the USB debugging connection.\n\n7. Select the connected device in your browser.\n\n8. Search for and select your build from the list. You can also select\n options, such as wiping the device or force flashing all partitions.\n\n9. To start flashing, click **Install**. The device reboots and enters fastboot\n mode.\n\n10. After **Flash Complete** appears, disconnect the device from the USB cable.\n\n| **Note:** If this is the first time flashing this device from this development workstation, the workstation loses the connection to the device and asks you to find it again. The next time you flash the same device on this workstation, you won't see the request to find the device. After reconnecting, the flashing resumes by downloading the images and performing all the required steps.\n\n### Flash devices unable to boot\n\nIf your device is unable to boot normally, you might not be able to flash your\ndevice using the previous instructions. Instead, you can try flashing with\nFastboot.\n\nTo do this, you need to first boot your device into Fastboot mode by using a\nkey combination:\n\n1. Determine the key combination for your device. For a table of Fastboot key combinations, see [Fastboot key combinations](/docs/setup/reference/fastboot-keys).\n2. Turn the device off.\n3. Turn the device on and immediately hold down the key combination for your device (determined in step 1).\n\nOnce your device is in Fastboot mode, open\n[flash.android.com](https://flash.android.com/) and follow the earlier\n[flashing instructions](#flashing-your-device), ignoring the steps related to\nADB.\n\n### Resolve USB transfer errors\n\nSometimes Android devices have trouble communicating through certain USB ports\nor hubs due to the high throughput of data. To resolve transfer errors:\n\n- Don't use USB hubs. This includes connections through monitors.\n- Don't use USB extension cables or adapters if possible.\n- Try a different USB port. Rear ports are often more reliable than front ones.\n- If you're using a USB C port, try a USB A port instead.\n\nReturn Pixel to public build\n----------------------------\n\nIf you want to return your Pixel device to a public build, use the\n[Android Flash Tool back-to-public option](https://flash.android.com/back-to-public)."]]