技術共有

Qualcomm プラットフォーム Android のフレームワーク開発で発生したいくつかの問題の概要

2024-07-12

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

フレームワークに関係する変更は通常、QSSI フォルダーにあります。

1. Android デバイスの場合、ヘッドフォンがデバイスに接続されていることがわかりますが、デバイスのステータス バーには、接続されているヘッドフォンのステータスが表示されません。

フレームワーク/ベース/パッケージ/SystemUI/res/values/config.xml

以下の変更:

  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. Wi-Fi に接続します。Wi-Fi 接続に成功すると、感嘆符または疑問符が表示され、使用できません。実際にネットワークにアクセスすることが可能です。

/packages/modules/NetworkStack/res/values/config.xml

Wi-Fi が接続されると、システムは Web サイトにアクセスしてネットワークの接続性を判断します。 Google はデフォルトで Web サイト https://www.google.com/generate_204 を使用します。これは海外からアクセスできますが、国内からアクセスできるとは限りません。国内外からアクセスできるウェブサイトに置き換える必要がある。

  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. GMSパッケージの追加方法。通常、GMS パッケージは、partner_gms フォルダーの下にあります。

すべての Partner_gms フォルダーをベンダー ディレクトリにコピーします。

QSS/device/qcom/qssi/qssi.mk ファイルにコマンドを書き込みます。

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

4、