2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
Änderungen, die das Framework betreffen, befinden sich im Allgemeinen im QSSI-Ordner.
1. Bei Android-Geräten wird festgestellt, dass die Kopfhörer an das Gerät angeschlossen sind, die Statusleiste des Geräts zeigt jedoch nicht den Status der angeschlossenen Kopfhörer an.
frameworks/base/packages/SystemUI/res/values/config.xml
Änderung unten:
- <string-array name="config_statusBarIconsToExclude" translatable="false">
- <item>@*android:string/status_bar_rotate</item>
- - <item>@*android:string/status_bar_headset</item>
- + <!-- <item>@*android:string/status_bar_headset</item> -->
- </string-array>
2. Stellen Sie eine WLAN-Verbindung her. Wenn die WLAN-Verbindung erfolgreich ist, wird ein Ausrufezeichen oder Fragezeichen angezeigt und kann nicht verwendet werden. Ein tatsächlicher Zugriff auf das Netzwerk ist möglich.
/packages/modules/NetworkStack/res/values/config.xml
Immer wenn eine WLAN-Verbindung besteht, ermittelt das System die Konnektivität des Netzwerks durch den Besuch einer Website. Google nutzt standardmäßig die Website https://www.google.com/generate_204, die im Ausland, aber nicht unbedingt im Inland zugänglich ist. Es muss durch eine Website ersetzt werden, die sowohl im Inland als auch im Ausland zugänglich ist.
- <!-- <string name="default_captive_portal_http_url" translatable="false">http://connectivitycheck.gstatic.com/generate_204</string> -->
- <string name="default_captive_portal_http_url" translatable="false">http://connectivitycheck.platform.hicloud.com/generate_204</string>
- <!-- HTTPS URL for network validation, to use for confirming internet connectivity. -->
- <!-- default_captive_portal_https_url is not configured as overlayable so
- OEMs that wish to change captive_portal_https_url configuration must
- do so via configuring runtime resource overlay to
- config_captive_portal_https_url and *NOT* by changing or overlaying
- this resource. It will break if the enforcement of overlayable starts.
- -->
- <!-- <string name="default_captive_portal_https_url" translatable="false">https://www.google.com/generate_204</string> -->
- <string name="default_captive_portal_https_url" translatable="false">https://connectivitycheck.platform.hicloud.com/generate_204</string>
-
- <!-- List of fallback URLs to use for detecting captive portals. -->
- <!-- default_captive_portal_fallback_urls is not configured as overlayable
- so OEMs that wish to change captive_portal_fallback_urls configuration
- must do so via configuring runtime resource overlay to
- config_captive_portal_fallback_urls and *NOT* by changing or overlaying
- this resource. It will break if the enforcement of overlayable starts.
- -->
- <string-array name="default_captive_portal_fallback_urls" translatable="false">
- <item>http://connectivitycheck.platform.hicloud.com/generate_204</item>
- <item>http://www.google.com/gen_204</item>
- <item>http://play.googleapis.com/generate_204</item>
- </string-array>
3. So fügen Sie ein GMS-Paket hinzu. Im Allgemeinen befindet sich das GMS-Paket im Ordner partner_gms.
Kopieren Sie alle partner_gms-Ordner in das Vendor-Verzeichnis.
Schreiben Sie einen Befehl in die Datei QSS/device/qcom/qssi/qssi.mk:
$(call inherit-product, vendor/partner_gms/products/gms.mk)
4、