हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main
के बजाय android-latest-release
का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
कटलफ़िश हाइब्रिड डिवाइस बनाना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
इस पेज पर, कटलफ़िश हाइब्रिड डिवाइस (सीएचडी) बनाने का तरीका बताया गया है.
सीएचडी, एक हाइब्रिड वर्चुअल कटलफ़िश डिवाइस है. यह डिवाइस के एचएएल पर, कटलफ़िश सिस्टम इमेज के बजाय, किसी फ़िज़िकल डिवाइस की सिस्टम इमेज चलाता है. इससे ये फ़ायदे मिलते हैं:
रिलीज़ से पहले सिस्टम सॉफ़्टवेयर को डेवलप और टेस्ट करना: सीएचडी की मदद से, अगली पीढ़ी के सिस्टम सॉफ़्टवेयर को रिलीज़ से पहले डेवलप और टेस्ट किया जा सकता है. ऐसा, हार्डवेयर उपलब्ध होने से पहले किया जा सकता है.
स्केलेबल: सीएचडी की मदद से, डेवलपमेंट और जांच की क्षमता को आसानी से बढ़ाया जा सकता है.
सीएचडी बनाने के लिए, यह तरीका अपनाएं:
make dist
का इस्तेमाल करके, Cuttlefish डिवाइस और फ़िज़िकल डिवाइस के लिए टारगेट फ़ाइलें जनरेट करें.
दोनों टारगेट फ़ाइलों को CHD टारगेट फ़ाइल में जोड़ें और build_cf_hybrid_device.py
स्क्रिप्ट को चलाकर, CHD टारगेट फ़ाइल से CHD इमेज जनरेट करें:
python3 tools/treble/cuttlefish/build_cf_hybrid_device.py \
--framework_target_files_zip <physical_device_target_files.zip> \
--vendor_target_files_zip <cuttlefish_device_target_files.zip> \
--otatools_zip <cuttlefish_otatools.zip> \
--target chd \
--output_dir <output_directory>
यह स्क्रिप्ट, merge_target_files.py
का इस्तेमाल करके, दो टारगेट फ़ाइलों को CHD टारगेट फ़ाइल में जोड़ती है. साथ ही, img_from_target_files
का इस्तेमाल करके, CHD टारगेट फ़ाइल से CHD इमेज जनरेट करती है.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (UTC) को अपडेट किया गया.
[[["समझने में आसान है","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 (UTC) को अपडेट किया गया."],[],[],null,["# Create a Cuttlefish hybrid device\n\nThis page describes how to create a Cuttlefish hybrid device (CHD).\n\nA CHD is a hybrid virtual Cuttlefish device, which runs a physical device's\nsystem image instead of a Cuttlefish system image on the device's HALs. This\noffers the following advantages:\n\n- **Early development and testing:** CHDs allow for early development and\n testing of next-generation system software before the physical hardware is\n available.\n\n- **Scalability:** CHDs facilitate easier expansion of development and\n testing capacity.\n\nTo create a CHD, do the following:\n\n1. Generate the target files for the Cuttlefish device and the physical device\n using `make dist`.\n\n2. Combine the two target files into a CHD target file and generate the CHD\n images from the CHD target file by running the\n [`build_cf_hybrid_device.py`](https://cs.android.com/android/platform/superproject/+/android-latest-release:tools/treble/cuttlefish/build_cf_hybrid_device.py)\n script:\n\n python3 tools/treble/cuttlefish/build_cf_hybrid_device.py \\\n --framework_target_files_zip \u003cphysical_device_target_files.zip\u003e \\\n --vendor_target_files_zip \u003ccuttlefish_device_target_files.zip\u003e \\\n --otatools_zip \u003ccuttlefish_otatools.zip\u003e \\\n --target chd \\\n --output_dir \u003coutput_directory\u003e\n\n This script combines the two target files into a CHD target file using\n [`merge_target_files.py`](https://cs.android.com/android/platform/superproject/+/android-latest-release:build/make/tools/releasetools/merge/merge_target_files.py)\n and generates the CHD images from the CHD target file using\n [`img_from_target_files`](https://cs.android.com/android/platform/superproject/+/android-latest-release:build/make/tools/releasetools/img_from_target_files.py)."]]