عرض الملفات على الجهاز فقط باستخدام Device Explorer
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
يتيح لك تطبيق Device Explorer عرض الملفات ونسخها وحذفها على
جهاز Android. وهو مفيد عند فحص الملفات التي ينشئها تطبيقك أو إذا كنت ترغب في نقل الملفات من وإلى أحد الأجهزة.
لاستخدام نظام الملفات في أحد الأجهزة، يمكنك المتابعة كما يلي:
لفتح "مستكشف الأجهزة"، اختَر عرض > أدوات Windows > استكشاف الأجهزة أو انقر على الزر مستكشف الأجهزة في شريط نافذة الأدوات.
اختَر جهازًا من القائمة المنسدلة.
تفاعَل مع محتوى الجهاز في نافذة "مستكشف الملفات":
انقر بزر الماوس الأيمن على ملف أو دليل لإنشاء ملف أو دليل جديد.
يمكنك حفظ الملف أو الدليل المحدد أو تحميله أو حذفه أو مزامنته مع جهازك.
انقر مرّتين على ملف لفتحه في "استوديو Android".
الشكل 1. نافذة أداة Device Explorer.
يحفظ "استوديو Android" الملفات التي تفتحها في Device Explorer في دليل مؤقت خارج مشروعك. إذا أجريت تعديلات على ملف تم فتحه باستخدام Device Explorer وأردت حفظ التغييرات مرة أخرى على الجهاز، يجب تحميل النسخة المعدّلة من الملف إلى الجهاز يدويًا.
وعند استكشاف ملفات أحد الأجهزة، تكون الأدلة التالية مفيدة بشكل خاص:
ملاحظة: ليس كل الملفات الموجودة على الجهاز
مرئية في Device Explorer. على سبيل المثال، في دليل data/data/،
لا يمكن توسيع الإدخالات المقابلة للتطبيقات غير القابلة للتصحيح على الجهاز في "مستكشف الأجهزة".
يخضع كل من المحتوى وعيّنات التعليمات البرمجية في هذه الصفحة للتراخيص الموضحّة في ترخيص استخدام المحتوى. إنّ 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,["# View on-device files with Device Explorer\n\nThe Device Explorer lets you view, copy, and delete files on an\nAndroid device. It's useful when examining files your app creates\nor if you want to transfer files to and from a device.\n| **Note:** Most device data is not visible unless you are using a rooted device or an emulator with a standard Android (AOSP) system image, not one of the Google APIs or Google Play system images. When using a connected device, be sure to [enable USB debugging](/studio/debug/dev-options#enable).\n\nTo work with a device's file system, proceed as follows:\n\n1. To open the Device Explorer, select **View \\\u003e Tool Windows \\\u003e Device\n Explorer** or click the **Device Explorer** button in the tool window bar.\n2. Select a device from the drop-down list.\n3. Interact with the device content in the file explorer window:\n - Right-click a file or directory to create a new file or directory.\n - Save, upload, delete, or synchronize the selected file or directory to your machine.\n - Double-click a file to open it in Android Studio.\n\n\n**Figure 1.** The Device Explorer tool window.\n\nAndroid Studio saves files you open in the Device Explorer in a temporary\ndirectory outside of your project. If you make modifications to a file\nopened using the Device Explorer and want to save your changes back\nto the device, you must manually upload the modified version of the file to the\ndevice.\n\nWhen exploring a device's files, the following directories are particularly\nuseful:\n\n`data/data/`\u003cvar translate=\"no\"\u003eapp_name\u003c/var\u003e`/`\n: Contains data files for your app stored on\n [internal storage](/training/data-storage#categories-locations).\n\n`sdcard/`\n: Contains user files stored on\n [external user\n storage](/training/data-storage#categories-locations) (pictures, etc.).\n\n**Note:** Not all files on a hardware device are\nvisible in the Device Explorer. For example, in the `data/data/`\ndirectory, entries corresponding to apps on the device that are not debuggable\ncan't be expanded in the Device Explorer."]]