Stay organized with collections
Save and categorize content based on your preferences.
Gps
class Gps
GPS configs. See the GNSS HAL documentation for more details.
Summary
Constants |
static String |
Determine whether to enable Net Initiated SUPL (NI SUPL) message injection.
|
static String |
Determine whether current lpp_mode used for E-911 needs to be kept persistently.
|
static String |
Prefix of all Gps.
|
Constants
KEY_ENABLE_NI_SUPL_MESSAGE_INJECTION_BOOL
static val KEY_ENABLE_NI_SUPL_MESSAGE_INJECTION_BOOL: String
Determine whether to enable Net Initiated SUPL (NI SUPL) message injection. If enabled, the GnssLocationProvider will monitor for WAP PUSH or MT SMS NI SUPL intents and subsequently inject the NI SUPL packet into the GNSS HAL. false
- Disable NI SUPL message injection. This is default. true
- Enable NI SUPL message injection.
Value: "gps.enable_ni_supl_message_injection_bool"
KEY_PERSIST_LPP_MODE_BOOL
static val KEY_PERSIST_LPP_MODE_BOOL: String
Determine whether current lpp_mode used for E-911 needs to be kept persistently. false
- not keeping the lpp_mode means using default configuration of gps.conf when sim is not presented. true
- current lpp_profile of carrier will be kepted persistently even after sim is removed. This is default.
Value: "gps.persist_lpp_mode_bool"
KEY_PREFIX
static val KEY_PREFIX: String
Prefix of all Gps.KEY_* constants.
Value: "gps."
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-03-13 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-13 UTC."],[],[],null,["# CarrierConfigManager.Gps\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nGps\n===\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/telephony/CarrierConfigManager.Gps \"View this page in Java\") \n\n```\nclass Gps\n```\n\n|---|-------------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.telephony.CarrierConfigManager.Gps](#) |\n\nGPS configs. See the GNSS HAL documentation for more details.\n\nSummary\n-------\n\n| Constants ||\n|-----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [KEY_ENABLE_NI_SUPL_MESSAGE_INJECTION_BOOL](#KEY_ENABLE_NI_SUPL_MESSAGE_INJECTION_BOOL:kotlin.String) Determine whether to enable Net Initiated SUPL (NI SUPL) message injection. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [KEY_PERSIST_LPP_MODE_BOOL](#KEY_PERSIST_LPP_MODE_BOOL:kotlin.String) Determine whether current lpp_mode used for E-911 needs to be kept persistently. |\n| static [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [KEY_PREFIX](#KEY_PREFIX:kotlin.String) Prefix of all Gps. |\n\nConstants\n---------\n\n### KEY_ENABLE_NI_SUPL_MESSAGE_INJECTION_BOOL\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val KEY_ENABLE_NI_SUPL_MESSAGE_INJECTION_BOOL: String\n```\n\nDetermine whether to enable Net Initiated SUPL (NI SUPL) message injection. If enabled, the GnssLocationProvider will monitor for WAP PUSH or MT SMS NI SUPL intents and subsequently inject the NI SUPL packet into the GNSS HAL. `false` - Disable NI SUPL message injection. This is default. `true` - Enable NI SUPL message injection. \n\n Value: \"gps.enable_ni_supl_message_injection_bool\"\n\n### KEY_PERSIST_LPP_MODE_BOOL\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val KEY_PERSIST_LPP_MODE_BOOL: String\n```\n\nDetermine whether current lpp_mode used for E-911 needs to be kept persistently. `false` - not keeping the lpp_mode means using default configuration of gps.conf when sim is not presented. `true` - current lpp_profile of carrier will be kepted persistently even after sim is removed. This is default. \n\n Value: \"gps.persist_lpp_mode_bool\"\n\n### KEY_PREFIX\n\nAdded in [API level 30](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nstatic val KEY_PREFIX: String\n```\n\nPrefix of all Gps.KEY_\\* constants. \n\n Value: \"gps.\""]]