기술나눔

Qualcomm 플랫폼 안드로이드의 프레임워크 개발에서 발생하는 몇 가지 문제 요약

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 연결에 성공하면 느낌표나 물음표가 표시되며 사용할 수 없습니다. 실제 네트워크 접속이 가능합니다.

/패키지/모듈/네트워크스택/res/값/config.xml

Wi-Fi가 연결될 때마다 시스템은 웹사이트를 방문하여 네트워크 연결을 확인합니다. Google은 기본적으로 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、