हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main
के बजाय android-latest-release
का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
SuplCertificateInterface स्ट्रक्चर का रेफ़रंस
#include <
gps.h
>
SUPL सर्टिफ़िकेट से जुड़े ऑपरेशन को मैनेज करने के लिए AGPS इंटरफ़ेस
परिभाषा,
gps.h
फ़ाइल की लाइन
978
पर दी गई है.
AGPS सर्वर से SUPL कनेक्शन के लिए इस्तेमाल किए जाने वाले सर्टिफ़िकेट का एक सेट इंस्टॉल करता है. अगर ज़रूरी हो, तो एचएएल को यह पता लगाना चाहिए कि इंस्टॉल किए जाने वाले सर्टिफ़िकेट के लिए, किन सर्टिफ़िकेट को हटाना होगा. इंस्टॉल किए गए सर्टिफ़िकेट, AGPS SUPL सर्वर से कनेक्ट करने के लिए ज़रूरी मान्य सर्टिफ़िकेट का पूरा सेट दिखाते हैं. सर्टिफ़िकेट की सूची ज़रूरी है. साथ ही, AGPS सर्वर से कनेक्ट करने के दौरान, सभी सर्टिफ़िकेट एक ही समय पर उपलब्ध होने चाहिए.
पैरामीटर: सर्टिफ़िकेट - डीईआर कोड में बदले गए सर्टिफ़िकेट के कलेक्शन का पॉइंटर, जिन्हें एचएएल में इंस्टॉल करना ज़रूरी है. लंबाई - इंस्टॉल किए जाने वाले सर्टिफ़िकेट की संख्या. यह वैल्यू दिखाता है: अगर ऑपरेशन पूरा हो जाता है, तो AGPS_CERTIFICATE_OPERATION_SUCCESS दिखाता है. अगर एचएएल, इंस्टॉल किए जाने की कोशिश किए गए सर्टिफ़िकेट की संख्या को सेव नहीं कर पाता है, तो AGPS_CERTIFICATE_ERROR_TOO_MANY_CERTIFICATES दिखाता है. गड़बड़ी के इस मामले में, सेव किए गए सर्टिफ़िकेट की स्थिति पहले जैसी ही रहनी चाहिए.
अहम जानकारी: अगर ज़रूरी हो, तो एचएएल को यह पता लगाना चाहिए कि इंस्टॉल किए जाने वाले सर्टिफ़िकेट के लिए, किन सर्टिफ़िकेट को हटाना होगा.
परिभाषा, फ़ाइल
gps.h
की लाइन
1005
पर दी गई है.
एचएएल को सूचना देता है कि SUPL कनेक्शन के लिए इस्तेमाल किए गए सर्टिफ़िकेट की सूची रद्द कर दी गई है. उम्मीद है कि सर्टिफ़िकेट के दिए गए सेट को एचएएल के इंटरनल स्टोर से हटा दिया गया है.
पैरामीटर: फ़िंगरप्रिंट - रद्द किए जाने वाले सर्टिफ़िकेट के सेट की पहचान करने के लिए, SHA1 फ़िंगरप्रिंट के कलेक्शन का पॉइंटर. लंबाई - दिए गए फ़िंगरप्रिंट की संख्या. अगर कार्रवाई पूरी हो जाती है, तो यह वैल्यू दिखाता है: AGPS_CERTIFICATE_OPERATION_SUCCESS.
अहम जानकारी: अगर एचएएल को फ़िंगरप्रिंट की मदद से दिए गए किसी सर्टिफ़िकेट के बारे में नहीं पता है, तो उसे अनदेखा कर दिया जाना चाहिए. साथ ही, बाकी सर्टिफ़िकेट को रद्द/मिटाना जारी रखना चाहिए.
परिभाषा,
gps.h
फ़ाइल की लाइन
1022
पर दी गई है.
sizeof(SuplCertificateInterface) पर सेट करें
परिभाषा,
gps.h
फ़ाइल की लाइन
980
पर दी गई है.
इस स्ट्रक्चर का दस्तावेज़, इस फ़ाइल से जनरेट किया गया था:
-
hardware/libhardware/include/hardware/
gps.h
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. 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,["# Android Hardware Abstraction Layer: SuplCertificateInterface Struct Reference\n\nSuplCertificateInterface Struct Reference\n=========================================\n\n[Data Fields](#pub-attribs) \nSuplCertificateInterface Struct Reference \n\n`\n#include \u003c\n`[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)`\n\u003e\n`\n\n|--------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Data Fields ----------- ||\n| size_t | [size](/reference/hal/struct_supl_certificate_interface#a854352f53b148adc24983a58a1866d66) |\n| ||\n| int(\\* | [install_certificates](/reference/hal/struct_supl_certificate_interface#a9208ffa455b013091db3afa2abc2a1a3) )(const [DerEncodedCertificate](/reference/hal/struct_der_encoded_certificate) \\*certificates, size_t length) |\n| ||\n| int(\\* | [revoke_certificates](/reference/hal/struct_supl_certificate_interface#a6c541c29aa9f7a5fb5f44ce4283e98e3) )(const [Sha1CertificateFingerprint](/reference/hal/struct_sha1_certificate_fingerprint) \\*fingerprints, size_t length) |\n| ||\n\n\nDetailed Description\n--------------------\n\n\nAGPS Interface to handle SUPL certificate operations\n\n\nDefinition at line\n[978](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\nField Documentation\n-------------------\n\n\n|------------------------------------------------------------------------------------------------------------------------------------------|\n| int(\\* install_certificates)(const [DerEncodedCertificate](/reference/hal/struct_der_encoded_certificate) \\*certificates, size_t length) |\n\n\nInstalls a set of Certificates used for SUPL connections to the AGPS server. If needed the HAL should find out internally any certificates that need to be removed to accommodate the certificates to install. The certificates installed represent a full set of valid certificates needed to connect to AGPS SUPL servers. The list of certificates is required, and all must be available at the same time, when trying to establish a connection with the AGPS Server.\n\n\nParameters: certificates - A pointer to an array of DER encoded certificates that are need to be installed in the HAL. length - The number of certificates to install. Returns: AGPS_CERTIFICATE_OPERATION_SUCCESS if the operation is completed successfully AGPS_CERTIFICATE_ERROR_TOO_MANY_CERTIFICATES if the HAL cannot store the number of certificates attempted to be installed, the state of the certificates stored should remain the same as before on this error case.\n\n\nIMPORTANT: If needed the HAL should find out internally the set of certificates that need to be removed to accommodate the certificates to install.\n\n\nDefinition at line\n[1005](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| int(\\* revoke_certificates)(const [Sha1CertificateFingerprint](/reference/hal/struct_sha1_certificate_fingerprint) \\*fingerprints, size_t length) |\n\n\nNotifies the HAL that a list of certificates used for SUPL connections are revoked. It is expected that the given set of certificates is removed from the internal store of the HAL.\n\n\nParameters: fingerprints - A pointer to an array of SHA1 Fingerprints to identify the set of certificates to revoke. length - The number of fingerprints provided. Returns: AGPS_CERTIFICATE_OPERATION_SUCCESS if the operation is completed successfully.\n\n\nIMPORTANT: If any of the certificates provided (through its fingerprint) is not known by the HAL, it should be ignored and continue revoking/deleting the rest of them.\n\n\nDefinition at line\n[1022](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n|-------------|\n| size_t size |\n\n\nset to sizeof(SuplCertificateInterface)\n\n\nDefinition at line\n[980](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\nof file\n[gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)\n.\n\n*** ** * ** ***\n\nThe documentation for this struct was generated from the following file:\n\n- hardware/libhardware/include/hardware/ [gps.h](https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/gps.h)"]]