2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
Les modifications impliquant le framework se trouvent généralement dans le dossier QSSI.
1. Pour les appareils Android, il s'avère que les écouteurs sont branchés sur l'appareil, mais la barre d'état de l'appareil n'indique pas l'état des écouteurs branchés.
frameworks/base/packages/SystemUI/res/values/config.xml
Modification ci-dessous :
- <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. Connectez-vous au Wifi Si la connexion Wi-Fi réussit, un point d'exclamation ou un point d'interrogation s'affiche et ne peut pas être utilisé. L'accès réel au réseau est possible.
/packages/modules/NetworkStack/res/values/config.xml
Chaque fois que le Wifi est connecté, le système déterminera la connectivité du réseau en visitant un site Web. Google utilise par défaut le site Internet https://www.google.com/generate_204, accessible à l'étranger mais pas nécessairement accessible au niveau national. Il doit être remplacé par un site Web accessible tant au niveau national qu’à l’étranger.
- <!-- <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. Comment ajouter le package GMS. Généralement, le package GMS se trouve dans le dossier Partner_gms.
Copiez tous les dossiers Partner_gms dans le répertoire du fournisseur.
Écrivez une commande dans le fichier QSS/device/qcom/qssi/qssi.mk :
$(call inherit-product, vendor/partner_gms/products/gms.mk)
4、