Effective in 2026, to align with our trunk stable development model and ensure platform stability for the ecosystem, we will publish source code to AOSP in Q2 and Q4. For building and contributing to AOSP, use android-latest-release. The android-latest-release manifest branch will always reference the most recent release pushed to AOSP. For more information, see Changes to AOSP.
Google आपकी पसंदीदा भाषा में कॉन्टेंट का अनुवाद करने के लिए, एआई टेक्नोलॉजी का इस्तेमाल करता है. एआई से मिले अनुवादों में गलतियां हो सकती हैं.
मौजूदा APK से इंस्ट्रूमेंटेशन टेस्ट चलाना
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
यहां दिए गए निर्देशों का पालन करने के लिए, ज़रूरी है कि आपके पास Trade Federation पैकेज स्थानीय तौर पर उपलब्ध हो
. अगर ऐसा नहीं है, तो इसे डाउनलोड करने के लिए दिए गए निर्देशों का पालन करें
.
इसके बाद, इंस्ट्रुमेंटेशन टेस्ट के APK को इंस्टॉल करने, टेस्ट चलाने, और चल रहे टेस्ट दिखाने के लिए, यह निर्देश इस्तेमाल करें:
./tradefed.sh run instrumentations --apk-path <path of your apk>
जिसका आउटपुट ऐसा दिखेगा:
07-17 10:55:32 D/InvocationToJUnitResultForwarder: Starting test: android.animation.cts.ValueAnimatorTest#testOfArgb
07-17 10:55:33 D/InvocationToJUnitResultForwarder: Starting test: android.animation.cts.ValueAnimatorTest#testIsRunning
07-17 10:55:34 D/InvocationToJUnitResultForwarder: Starting test: android.animation.cts.ValueAnimatorTest#testGetCurrentPlayTime
07-17 10:55:35 D/InvocationToJUnitResultForwarder: Starting test: android.animation.cts.ValueAnimatorTest#testStartDelay
07-17 10:55:35 I/InvocationToJUnitResultForwarder: Run ended in 2m 20s
किसी डिवाइस पर टेस्ट चलाने के लिए, --serial <device serial number> विकल्प का इस्तेमाल किया जा सकता है. adb devices का इस्तेमाल करके, अपने डिवाइस का सीरियल नंबर पाया जा सकता है.
Tradefed के एक्ज़ीक्यूशन के बारे में ज़्यादा जानने के लिए,
Tradefed की मदद से टेस्ट करना सेक्शन
देखें.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2026-10-11 (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"]],["आखिरी बार 2026-10-11 (UTC) को अपडेट किया गया."],[],[]]