History log of /packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0ac7ec193e7a0a1750be0ac07ed31bfcaf4bb00a 29-Mar-2016 Junda Liu <junda@google.com> Merge "Catch generic exception to avoid crash." into nyc-dev
66d9f2c1c93dfc9858c52acbb88b6fca0c5e2cfc 29-Mar-2016 Junda Liu <junda@google.com> Catch generic exception to avoid crash.

Some exception can cross binder interface and only catch remoteexception is not enough.

Bug: b/26016518
Change-Id: I442fce72812c41f36479c3488765418604824103
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
5fb800bc2c2722fde5996523c2f8515c9c1160ca 25-Mar-2016 Junda Liu <junda@google.com> Merge "Make carrier config service binding file-encryption aware." into nyc-dev
6cb4500759f1fc56eb5b7248dbdfb2decc2129b3 23-Mar-2016 Junda Liu <junda@google.com> Increase bind timeout timer.

In rare cases the binding can take more than 10 seconds, and when
carrierconfigloader processes both timeout and connected messages, it
will unbind twice from the service, causing illegalargument error.

A proper fix would require non-trivial refactoring of the code to
encapsulate the binding etc into an object with atomic cancel signal.

Bug: b/26592555
Change-Id: I7bac7f12c7bf60fd4f1d0fd10beb2075e9ad9f8c
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
3d670504427b08d6efd96d05401b6a5d5e44742d 18-Mar-2016 Nanxi Chen <nxchen@google.com> Make carrier config service binding file-encryption aware.

When the system is not yet unlocked, it should only bind to the service
that is marked as file-encryption aware. It should reevaluate bindings
after system is unlocked.

Bug: b/27380116
Design: go/carrier-config-binding-fbe

Change-Id: Id35102209ded0d84614a076dc649c8eb3516a2af
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
40473a538d0b51b5d4e83421e06c99cbe05c2468 14-Aug-2015 Jonathan Basseri <misterikkit@google.com> Add safety check when binding to carrier app.

If a carrier app lost privilege at the same time we are fetching config
from it, there's a chance CarrierConfigLoader will use an invalid intent
to bind to the app, causing IllegalArgumentException.

This checks that the package name is not null just before use.

Bug: 23120391
Change-Id: I5bdf681b91509ec6c0937647c610959a2dd882b7
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
40b3fa5a53992ebf84484c37ba5afde99081f11a 14-Jul-2015 Amit Mahajan <amitmahajan@google.com> Add checks for READ_PRIVILEGED_PHONE_STATE.

Callers will have either PRIVILEGED or regular READ_PHONE_STATE.

Bug: 22468536
Change-Id: I60251f61250a975f4147b027d2539824a728e3b5
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
7697cae0185c7a3b4c62895245320f3f24abcada 07-Jul-2015 Jonathan Basseri <misterikkit@google.com> Clear cache after system update.

CarrierConfigLoader should clear its cache after system update just in
case some behavior related to carrier config has changed. In particular,
the default config app may have different config after an update, and
it's not guaranteed that the package version will have changed. (We
definitely don't get package install events if the package changes
during an OTA.)

Bug: 21999181
Change-Id: I6881afcb7754a74b14ada43c29d2496dd32c84f9
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
fca8a8daba0c2333fbe4ab0c4acca463a0f754a0 20-Jun-2015 Zach Johnson <zachoverflow@google.com> Update CarrierService API usage

CONFIG_SERVICE_INTERFACE -> CARRIER_SERVICE_INTERFACE

b/21080696

Change-Id: Icf51d8cdc07788d374d632bc22222899cecb5f6c
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
9ebf595b977b1f45f0bd42ce675fd5efed9f9949 19-Jun-2015 Junda Liu <junda@google.com> Merge "Require correct permission in carrier config loader." into mnc-dev
1f2b34d415e020ab88bc152a8d93116482da8d6a 19-Jun-2015 Junda Liu <junda@google.com> Require correct permission in carrier config loader.

Bug: b/20826627
Change-Id: Ia1dfe0c5dde10387501ab05afba4d80a0e9a446c
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
8a8a53ad137a6f40a00613f2c1f273bf798c8a61 16-May-2015 Junda Liu <junda@google.com> Handle package install/uninstall/update events.

Bug: b/20269900
Change-Id: Ic3dc33e6bb489ebec6d94820a8b25ec7ee641a8d
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
930701e59f6b2e29961916982fdd7bc96f36f13e 12-Jun-2015 Jonathan Basseri <misterikkit@google.com> Add bind timeout to CarrierConfigLoader.

Binding to a service can fail in ways that don't trigger
ServiceConnection#onServiceConnected or #onServiceDisconnected.

This adds a timeout to binds so that any of these failures will be
treated the same as failing to bind to a CarrierService.

Bug: 21614274
Change-Id: Ic18d1d0cd227175f2943f935e06e6aeae35009e0
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
8603035b5620cc61b8987ba576466f9aed083931 08-Jun-2015 Jonathan Basseri <misterikkit@google.com> Rename reloadCarrierConfigForSubId -> notifyConfigChangedForSubId

Per discussion with API council, "notify" makes more sense than "reload"
here.

Bug: 21571894
Change-Id: Ic226869b1243e9a92b3be1d96e74a8bd20a1d2a7
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
1f743c9007ee5bdfca3d2d5eb875dd8c99e654d6 15-May-2015 Jonathan Basseri <misterikkit@google.com> Save config to disk to avoid binding.

In order to avoid binding to a carrier app during boot, save the config
returned from carrier apps* in files. If a saved config is available, it
will be used instead of binding to the app.

Files will be written per ICCID per package, so that switching between
SIMs or SIM profiles can also avoid binding.

The package version of the carrier app will be written into the file,
so that we don't try to load a config that came from an old app version.

The files for a specific package should be deleted if that package is
installed, uninstalled, or updated. They also will be deleted if the
carrier app calls CarrierConfigManager.reloadCarrierConfigForSubId().

* This applies to the default app as well.

Note: This used to be change I4f64374bfba80d4ba690ea6d92be5fb2584fd96b

Bug: 20268926
Change-Id: I221649acb914a74859cbf25309e95034aef30420
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
a9d689ffc1e09a20539d314f24b5ff3390e1e59e 28-May-2015 Zach Johnson <zachoverflow@google.com> Update config loader to use CONFIG_SERVICE_INTERFACE

Change-Id: I3883e57abd25aeaf22af4f6f951b9ccf001a9911
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
36d7aab00cd08f9efded5148c8f8a42ed7402641 23-May-2015 Zach Johnson <zachoverflow@google.com> Drop the "Config". Just "CarrierService". It's cleaner.

b/21308727

Change-Id: If65d975113fa0e651805c46bcf8abe68dfd60e81
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
80a8786ebe16c9ee0916f7915c321529c0ee8292 27-May-2015 Jonathan Basseri <misterikkit@google.com> Merge "Revert "Save config to disk to avoid binding."" into mnc-dev
b919e93c9afe91914ed0d82dc63b57ecfa28eab2 27-May-2015 Jonathan Basseri <misterikkit@google.com> Revert "Save config to disk to avoid binding."

This commit was causing a crash in MRZ57. See b/21453372.

This reverts commit 4ae2e7c7e0b6480ec428b9efedc77d8f0fb07430.

Change-Id: Ibdc96ef865f653800de0d544084110ded850f3a0
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
ef296b603e0506bdd51638d75e232e8bf62c50f6 26-May-2015 Jonathan Basseri <misterikkit@google.com> Merge "Save config to disk to avoid binding." into mnc-dev
4ae2e7c7e0b6480ec428b9efedc77d8f0fb07430 15-May-2015 Jonathan Basseri <misterikkit@google.com> Save config to disk to avoid binding.

In order to avoid binding to a carrier app during boot, save the config
returned from carrier apps* in files. If a saved config is available, it
will be used instead of binding to the app.

Files will be written per ICCID per package, so that switching between
SIMs or SIM profiles can also avoid binding.

The package version of the carrier app will be written into the file,
so that we don't try to load a config that came from an old app version.

The files for a specific package should be deleted if that package is
installed, uninstalled, or updated. They also will be deleted if the
carrier app calls CarrierConfigManager.reloadCarrierConfigForSubId().

* This applies to the default app as well.

Bug: 20268926
Change-Id: I4f64374bfba80d4ba690ea6d92be5fb2584fd96b
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
0486bdbba59948613ef35f4b5e3300b488ac5b91 23-May-2015 Junda Liu <junda@google.com> Avoid duplicate carrier config change bcast.

Bug: b/21311587
Change-Id: I6944a409acee837f8e2225c2791ebc4ac50a5ced
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
9f2d271f693b445e513235ebc48ccd0f67926860 15-May-2015 Junda Liu <junda@google.com> Fix obtainMessage arg1 issue.

We should use the obtainMessage(int what, int arg1, int arg2) form and
ignore arg2 to pass the message correctly. Previously we got lucky
because default is 0.

Bug: b/21177838
Change-Id: I35cf35a4fcdec363f1136a8deca3204c400caa34
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
3f0a4268a919c7ffa178c4a2bff1b012d69cb575 14-May-2015 Jonathan Basseri <misterikkit@google.com> Merge "Adding helpers to save and restore config." into mnc-dev
73183530f04aa474758bfacbce0ed9d637d49e71 14-May-2015 Junda Liu <junda@google.com> call phone.getGroupIdLevel2 to get gid2 for carrier identifier.

Bug: b/21078450
Change-Id: Ia4fb0f9b658c2d95e8621681cc7fc6ac25342142
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
6b50e9f0ec71ffbd630da9c280a9d64ec267f33e 13-May-2015 Jonathan Basseri <misterikkit@google.com> Adding helpers to save and restore config.

This adds saveConfigToXml and restoreConfigFromXml so that we can save
PersistableBundle objects. There is no functional change yet because the
methods are not being called.

Bug: 20268926

Change-Id: I4bd04df1f3c131ecb3d88450c357041b826fd247
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
11f8957f3a603e5109ae15c5386ddbb7d76972ad 05-May-2015 Jonathan Basseri <misterikkit@google.com> Add null annotations for getting carrier config.

CarrierConfigLoader does not return null Bundles, so annotate
appropriately.

Change-Id: I437cfafc987827a9200696f1859df239eed7ccd3
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
c31f1f32963534763aaf82ae2544f3a94f13edca 12-May-2015 Jonathan Basseri <misterikkit@google.com> Switching to PersistableBundle in carrier config API.

Part of this API involves persisting config bundles to avoid binding to
apps at critical moments (like boot). Regular bundles should not be
written to disk because they support object types that can lose their
meaning while the data is at rest.

In order to use PersistableBundle, we must either start with one or
filter unwanted types out of Bundle objects. Since the carrier config
API has no use for unsupported types, we chose to use PersistableBundle
everywhere.

Bug: 20268926
Change-Id: Ia85c1b2426907a5e6431095dbd3776213c7eb45d
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
43d723a19bed8492da059b394869065cc713c484 13-May-2015 Junda Liu <junda@google.com> Add dumpsys support to carrier config service.

Bug: b/20825995
Change-Id: I2f7e7c8e65b34e5e661f6c595ed9c21e36c65133
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
0bdd55b3197debd0c781ee7d18753cd7f78917fa 04-May-2015 Junda Liu <junda@google.com> Support phoneId when querying carrier packages.

Bug: b/20268073
Change-Id: Ibadf0d7bdbf3a9be65f4d22656d3bfcd693d4b9b
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
1fa437cd0b34550ab4befc4f5198761e61b3b0bd 20-Apr-2015 Jonathan Basseri <misterikkit@google.com> Check for invalid simOperator.

The simOperator can either be null or empty string. Make sure the string
is long enough to split into MCC and MNC. Technically, a valid
simOperator can only be 5 or 6 digits, but we don't check explicitly for
those lengths to leave some flexibility in the code.

Bug: 20420802
Change-Id: Id8ac7f1e0d6866c5016f6b250d705ceb90626974
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java
6465afd1636d57fce4291b02beaa88facd4e02ae 25-Feb-2015 Jonathan Basseri <misterikkit@google.com> Add CarrierConfigLoader service.

Load configs from carrier app and return to CarrierConfigManager
getCarrierConfig calls.

Working: multi-sim and in-mem cache.
Next CL: persistence and handle package change events.

Bug: b/19483786
Change-Id: I3490a2698436144cba1d3cc0f2ce49c582d9ccc7
/packages/services/Telephony/src/com/android/phone/CarrierConfigLoader.java