Compartir tecnología

Resumen de algunos problemas encontrados en el desarrollo del Framework de la plataforma Qualcomm Android

2024-07-12

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

Las modificaciones que involucran el marco generalmente se encuentran en la carpeta QSSI.

1. Para dispositivos Android, se encuentra que los auriculares están conectados al dispositivo, pero la barra de estado del dispositivo no muestra el estado de los auriculares que están conectados.

frameworks/base/paquetes/SystemUI/res/valores/config.xml

Modificación a continuación:

  1. <string-array name="config_statusBarIconsToExclude" translatable="false">
  2. <item>@*android:string/status_bar_rotate</item>
  3. - <item>@*android:string/status_bar_headset</item>
  4. + <!-- <item>@*android:string/status_bar_headset</item> -->
  5. </string-array>

2. Conéctese a Wifi Si la conexión Wi-Fi se realiza correctamente, se muestra un signo de exclamación o de interrogación y no se puede utilizar. El acceso real a la red es posible.

/paquetes/módulos/NetworkStack/res/valores/config.xml

Siempre que el Wifi esté conectado, el sistema determinará la conectividad de la red visitando un sitio web. Google utiliza de forma predeterminada el sitio web https://www.google.com/generate_204, al que se puede acceder en el extranjero pero no necesariamente en el país. Es necesario sustituirlo por un sitio web al que se pueda acceder tanto en el país como en el extranjero.

  1. <!-- <string name="default_captive_portal_http_url" translatable="false">http://connectivitycheck.gstatic.com/generate_204</string> -->
  2. <string name="default_captive_portal_http_url" translatable="false">http://connectivitycheck.platform.hicloud.com/generate_204</string>
  3. <!-- HTTPS URL for network validation, to use for confirming internet connectivity. -->
  4. <!-- default_captive_portal_https_url is not configured as overlayable so
  5. OEMs that wish to change captive_portal_https_url configuration must
  6. do so via configuring runtime resource overlay to
  7. config_captive_portal_https_url and *NOT* by changing or overlaying
  8. this resource. It will break if the enforcement of overlayable starts.
  9. -->
  10. <!-- <string name="default_captive_portal_https_url" translatable="false">https://www.google.com/generate_204</string> -->
  11. <string name="default_captive_portal_https_url" translatable="false">https://connectivitycheck.platform.hicloud.com/generate_204</string>
  12. <!-- List of fallback URLs to use for detecting captive portals. -->
  13. <!-- default_captive_portal_fallback_urls is not configured as overlayable
  14. so OEMs that wish to change captive_portal_fallback_urls configuration
  15. must do so via configuring runtime resource overlay to
  16. config_captive_portal_fallback_urls and *NOT* by changing or overlaying
  17. this resource. It will break if the enforcement of overlayable starts.
  18. -->
  19. <string-array name="default_captive_portal_fallback_urls" translatable="false">
  20. <item>http://connectivitycheck.platform.hicloud.com/generate_204</item>
  21. <item>http://www.google.com/gen_204</item>
  22. <item>http://play.googleapis.com/generate_204</item>
  23. </string-array>

3. Cómo agregar el paquete GMS. Generalmente, el paquete GMS se encuentra en la carpeta partner_gms.

Copie todas las carpetas partners_gms al directorio de proveedores.

Escriba un comando en el archivo QSS/device/qcom/qssi/qssi.mk:

$(call inherit-product, vendor/partner_gms/products/gms.mk)

4、