2024-07-12
한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina
Modifications involving framwork are generally in the QSSI folder.
1. On Android devices, it is found that the headset is plugged into the device, but the device statusbar does not show the status of the headset being plugged in.
frameworks/base/packages/SystemUI/res/values/config.xml
Next modification:
- <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. Connect to Wifi. The WiFi connection is successful but an exclamation mark or question mark is displayed and it cannot be used. You can actually access the network.
/packages/modules/NetworkStack/res/values/config.xml
Whenever Wi-Fi is connected, the system will check the network connectivity by visiting a website. Google uses the website https://www.google.com/generate_204 by default, which is accessible abroad but not necessarily in China. You need to replace it with a website that is accessible both in China and abroad.
- <!-- <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. How to add GMS package. Generally, GMS package is in the partner_gms folder.
Copy the entire partner_gms folder to the vendor directory.
Write a command in the QSS/device/qcom/qssi/qssi.mk file:
$(call inherit-product, vendor/partner_gms/products/gms.mk)
4、