diff options
| author | 2022-06-20 09:38:26 +0000 | |
|---|---|---|
| committer | 2022-07-01 10:53:53 +0000 | |
| commit | 4f221e5c5100baf56cdf88ee231f98c45865d382 (patch) | |
| tree | 1ee538df77d2b31253cc73db93dcc0688040baee /location/java | |
| parent | 6e2ad6aace89a9f8cc8f38e1f15e4e2ba54e28fa (diff) | |
Migrate Bundle/Intent APIs to new, type checked, variants
Part of go/safer-parcel. Follow up to ag/16639043. Migrates the following unsafe APIs:
* Parcel.readArray()
* Parcel.readParcelableArray()
* Bundle.getSerializable()
* Bundle.getParcelable()
* Bundle.getParcelableArrayList()
* Bundle.getParcelableArray()
* Bundle.getSparseParcelableArray()
* Intent.getSerializableExtra()
* Intent.getParcelableExtra()
* Intent.getParcelableArrayExtra()
* Intent.getParcelableArrayListExtra
Bug: 227458983
Test: m and presubmit pass
Change-Id: I72f206cb18eb5c669a7fff07a6845bed1c433fdb
Diffstat (limited to 'location/java')
| -rw-r--r-- | location/java/android/location/SettingInjectorService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/location/java/android/location/SettingInjectorService.java b/location/java/android/location/SettingInjectorService.java index d6f8a7ca3cfc..2aa812b6756e 100644 --- a/location/java/android/location/SettingInjectorService.java +++ b/location/java/android/location/SettingInjectorService.java @@ -179,7 +179,7 @@ public abstract class SettingInjectorService extends Service { * intent. */ private void sendStatus(Intent intent, String summary, boolean enabled) { - Messenger messenger = intent.getParcelableExtra(MESSENGER_KEY); + Messenger messenger = intent.getParcelableExtra(MESSENGER_KEY, android.os.Messenger.class); // Bail out to avoid crashing GmsCore with incoming malicious Intent. if (messenger == null) { return; |